Files
bDS2/priv/static/assets/monaco/ts.worker.js

67737 lines
6.7 MiB
Vendored

var vvt=Object.defineProperty;var bvt=(m,y)=>{for(var x in y)vvt(m,x,{get:y[x],enumerable:!0})};var zye=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(y){setTimeout(()=>{throw y.stack?nz.isErrorNoTelemetry(y)?new nz(y.message+`
`+y.stack):new Error(y.message+`
`+y.stack):y},0)}}emit(y){this.listeners.forEach(x=>{x(y)})}onUnexpectedError(y){this.unexpectedErrorHandler(y),this.emit(y)}onUnexpectedExternalError(y){this.unexpectedErrorHandler(y)}},Tvt=new zye;function U2(m){Svt(m)||Tvt.onUnexpectedError(m)}function B$(m){if(m instanceof Error){let{name:y,message:x,cause:W}=m,X=m.stacktrace||m.stack;return{$isError:!0,name:y,message:x,stack:X,noTelemetry:nz.isErrorNoTelemetry(m),cause:W?B$(W):void 0,code:m.code}}return m}var Bye="Canceled";function Svt(m){return m instanceof tz?!0:m instanceof Error&&m.name===Bye&&m.message===Bye}var tz=class extends Error{constructor(){super(Bye),this.name=this.message}};var nz=class m extends Error{constructor(y){super(y),this.name="CodeExpectedError"}static fromError(y){if(y instanceof m)return y;let x=new m;return x.message=y.message,x.stack=y.stack,x}static isErrorNoTelemetry(y){return y.name==="CodeExpectedError"}},af=class m extends Error{constructor(y){super(y||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}};function yFe(m,y="Unreachable"){throw new Error(y)}function Gye(m,y="unexpected state"){if(!m)throw typeof y=="string"?new af(`Assertion Failed: ${y}`):y}function XC(m){if(!m()){debugger;m(),U2(new af("Assertion Failed"))}}function rz(m,y){let x=0;for(;x<m.length-1;){let W=m[x],X=m[x+1];if(!y(W,X))return!1;x++}return!0}function vFe(m){return typeof m=="string"}function bFe(m){return!!m&&typeof m[Symbol.iterator]=="function"}var p8;(function(m){function y(jn){return!!jn&&typeof jn=="object"&&typeof jn[Symbol.iterator]=="function"}m.is=y;let x=Object.freeze([]);function W(){return x}m.empty=W;function*X(jn){yield jn}m.single=X;function he(jn){return y(jn)?jn:X(jn)}m.wrap=he;function Me(jn){return jn||x}m.from=Me;function*Ke(jn){for(let Gi=jn.length-1;Gi>=0;Gi--)yield jn[Gi]}m.reverse=Ke;function ae(jn){return!jn||jn[Symbol.iterator]().next().done===!0}m.isEmpty=ae;function yt(jn){return jn[Symbol.iterator]().next().value}m.first=yt;function et(jn,Gi){let Io=0;for(let Un of jn)if(Gi(Un,Io++))return!0;return!1}m.some=et;function Je(jn,Gi){let Io=0;for(let Un of jn)if(!Gi(Un,Io++))return!1;return!0}m.every=Je;function Pn(jn,Gi){for(let Io of jn)if(Gi(Io))return Io}m.find=Pn;function*Hn(jn,Gi){for(let Io of jn)Gi(Io)&&(yield Io)}m.filter=Hn;function*cr(jn,Gi){let Io=0;for(let Un of jn)yield Gi(Un,Io++)}m.map=cr;function*Gn(jn,Gi){let Io=0;for(let Un of jn)yield*Gi(Un,Io++)}m.flatMap=Gn;function*ki(...jn){for(let Gi of jn)bFe(Gi)?yield*Gi:yield Gi}m.concat=ki;function bo(jn,Gi,Io){let Un=Io;for(let ul of jn)Un=Gi(Un,ul);return Un}m.reduce=bo;function Vn(jn){let Gi=0;for(let Io of jn)Gi++;return Gi}m.length=Vn;function*hn(jn,Gi,Io=jn.length){for(Gi<-jn.length&&(Gi=0),Gi<0&&(Gi+=jn.length),Io<0?Io+=jn.length:Io>jn.length&&(Io=jn.length);Gi<Io;Gi++)yield jn[Gi]}m.slice=hn;function ga(jn,Gi=Number.POSITIVE_INFINITY){let Io=[];if(Gi===0)return[Io,jn];let Un=jn[Symbol.iterator]();for(let ul=0;ul<Gi;ul++){let hi=Un.next();if(hi.done)return[Io,m.empty()];Io.push(hi.value)}return[Io,{[Symbol.iterator](){return Un}}]}m.consume=ga;async function ho(jn){let Gi=[];for await(let Io of jn)Gi.push(Io);return Gi}m.asyncToArray=ho;async function gl(jn){let Gi=[];for await(let Io of jn)Gi=Gi.concat(Io);return Gi}m.asyncToArrayFlat=gl})(p8||(p8={}));function jye(m){if(p8.is(m)){let y=[];for(let x of m)if(x)try{x.dispose()}catch(W){y.push(W)}if(y.length===1)throw y[0];if(y.length>1)throw new AggregateError(y,"Encountered errors while disposing of store");return Array.isArray(m)?[]:m}else if(m)return m.dispose(),m}function TFe(...m){return YC(()=>jye(m))}var Vye=class{constructor(y){this._isDisposed=!1,this._fn=y}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}};function YC(m){return new Vye(m)}var H2=class m{static{this.DISABLE_DISPOSED_WARNING=!1}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{jye(this._toDispose)}finally{this._toDispose.clear()}}add(y){if(!y||y===CS.None)return y;if(y===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?m.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(y),y}delete(y){if(y){if(y===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(y),y.dispose()}}},CS=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new H2,this._store}dispose(){this._store.dispose()}_register(y){if(y===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(y)}};var Yp=class m{static{this.Undefined=new m(void 0)}constructor(y){this.element=y,this.next=m.Undefined,this.prev=m.Undefined}},iz=class{constructor(){this._first=Yp.Undefined,this._last=Yp.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Yp.Undefined}clear(){let y=this._first;for(;y!==Yp.Undefined;){let x=y.next;y.prev=Yp.Undefined,y.next=Yp.Undefined,y=x}this._first=Yp.Undefined,this._last=Yp.Undefined,this._size=0}unshift(y){return this._insert(y,!1)}push(y){return this._insert(y,!0)}_insert(y,x){let W=new Yp(y);if(this._first===Yp.Undefined)this._first=W,this._last=W;else if(x){let he=this._last;this._last=W,W.prev=he,he.next=W}else{let he=this._first;this._first=W,W.next=he,he.prev=W}this._size+=1;let X=!1;return()=>{X||(X=!0,this._remove(W))}}shift(){if(this._first!==Yp.Undefined){let y=this._first.element;return this._remove(this._first),y}}pop(){if(this._last!==Yp.Undefined){let y=this._last.element;return this._remove(this._last),y}}_remove(y){if(y.prev!==Yp.Undefined&&y.next!==Yp.Undefined){let x=y.prev;x.next=y.next,y.next.prev=x}else y.prev===Yp.Undefined&&y.next===Yp.Undefined?(this._first=Yp.Undefined,this._last=Yp.Undefined):y.next===Yp.Undefined?(this._last=this._last.prev,this._last.next=Yp.Undefined):y.prev===Yp.Undefined&&(this._first=this._first.next,this._first.prev=Yp.Undefined);this._size-=1}*[Symbol.iterator](){let y=this._first;for(;y!==Yp.Undefined;)yield y.element,y=y.next}};var Evt=globalThis.performance.now.bind(globalThis.performance),f8=class m{static create(y){return new m(y)}constructor(y){this._now=y===!1?Date.now:Evt,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 G$;(function(m){m.None=()=>CS.None;function y(hi,Vt){return Pn(hi,()=>{},0,void 0,!0,void 0,Vt)}m.defer=y;function x(hi){return(Vt,za=null,Zi)=>{let la=!1,Ki;return Ki=hi(vc=>{if(!la)return Ki?Ki.dispose():la=!0,Vt.call(za,vc)},null,Zi),la&&Ki.dispose(),Ki}}m.once=x;function W(hi,Vt){return m.once(m.filter(hi,Vt))}m.onceIf=W;function X(hi,Vt,za){return et((Zi,la=null,Ki)=>hi(vc=>Zi.call(la,Vt(vc)),null,Ki),za)}m.map=X;function he(hi,Vt,za){return et((Zi,la=null,Ki)=>hi(vc=>{Vt(vc),Zi.call(la,vc)},null,Ki),za)}m.forEach=he;function Me(hi,Vt,za){return et((Zi,la=null,Ki)=>hi(vc=>Vt(vc)&&Zi.call(la,vc),null,Ki),za)}m.filter=Me;function Ke(hi){return hi}m.signal=Ke;function ae(...hi){return(Vt,za=null,Zi)=>{let la=TFe(...hi.map(Ki=>Ki(vc=>Vt.call(za,vc))));return Je(la,Zi)}}m.any=ae;function yt(hi,Vt,za,Zi){let la=za;return X(hi,Ki=>(la=Vt(la,Ki),la),Zi)}m.reduce=yt;function et(hi,Vt){let za,Zi={onWillAddFirstListener(){za=hi(la.fire,la)},onDidRemoveLastListener(){za?.dispose()}},la=new Xg(Zi);return Vt?.add(la),la.event}function Je(hi,Vt){return Vt instanceof Array?Vt.push(hi):Vt&&Vt.add(hi),hi}function Pn(hi,Vt,za=100,Zi=!1,la=!1,Ki,vc){let sf,km,T0,Ui=0,nh,FA={leakWarningThreshold:Ki,onWillAddFirstListener(){sf=hi(R8=>{Ui++,km=Vt(km,R8),Zi&&!T0&&(rh.fire(km),km=void 0),nh=()=>{let nL=km;km=void 0,T0=void 0,(!Zi||Ui>1)&&rh.fire(nL),Ui=0},typeof za=="number"?(T0&&clearTimeout(T0),T0=setTimeout(nh,za)):T0===void 0&&(T0=null,queueMicrotask(nh))})},onWillRemoveListener(){la&&Ui>0&&nh?.()},onDidRemoveLastListener(){nh=void 0,sf.dispose()}},rh=new Xg(FA);return vc?.add(rh),rh.event}m.debounce=Pn;function Hn(hi,Vt=0,za){return m.debounce(hi,(Zi,la)=>Zi?(Zi.push(la),Zi):[la],Vt,void 0,!0,void 0,za)}m.accumulate=Hn;function cr(hi,Vt=(Zi,la)=>Zi===la,za){let Zi=!0,la;return Me(hi,Ki=>{let vc=Zi||!Vt(Ki,la);return Zi=!1,la=Ki,vc},za)}m.latch=cr;function Gn(hi,Vt,za){return[m.filter(hi,Vt,za),m.filter(hi,Zi=>!Vt(Zi),za)]}m.split=Gn;function ki(hi,Vt=!1,za=[],Zi){let la=za.slice(),Ki=hi(km=>{la?la.push(km):sf.fire(km)});Zi&&Zi.add(Ki);let vc=()=>{la?.forEach(km=>sf.fire(km)),la=null},sf=new Xg({onWillAddFirstListener(){Ki||(Ki=hi(km=>sf.fire(km)),Zi&&Zi.add(Ki))},onDidAddFirstListener(){la&&(Vt?setTimeout(vc):vc())},onDidRemoveLastListener(){Ki&&Ki.dispose(),Ki=null}});return Zi&&Zi.add(sf),sf.event}m.buffer=ki;function bo(hi,Vt){return(Zi,la,Ki)=>{let vc=Vt(new hn);return hi(function(sf){let km=vc.evaluate(sf);km!==Vn&&Zi.call(la,km)},void 0,Ki)}}m.chain=bo;let Vn=Symbol("HaltChainable");class hn{constructor(){this.steps=[]}map(Vt){return this.steps.push(Vt),this}forEach(Vt){return this.steps.push(za=>(Vt(za),za)),this}filter(Vt){return this.steps.push(za=>Vt(za)?za:Vn),this}reduce(Vt,za){let Zi=za;return this.steps.push(la=>(Zi=Vt(Zi,la),Zi)),this}latch(Vt=(za,Zi)=>za===Zi){let za=!0,Zi;return this.steps.push(la=>{let Ki=za||!Vt(la,Zi);return za=!1,Zi=la,Ki?la:Vn}),this}evaluate(Vt){for(let za of this.steps)if(Vt=za(Vt),Vt===Vn)break;return Vt}}function ga(hi,Vt,za=Zi=>Zi){let Zi=(...sf)=>vc.fire(za(...sf)),la=()=>hi.on(Vt,Zi),Ki=()=>hi.removeListener(Vt,Zi),vc=new Xg({onWillAddFirstListener:la,onDidRemoveLastListener:Ki});return vc.event}m.fromNodeEventEmitter=ga;function ho(hi,Vt,za=Zi=>Zi){let Zi=(...sf)=>vc.fire(za(...sf)),la=()=>hi.addEventListener(Vt,Zi),Ki=()=>hi.removeEventListener(Vt,Zi),vc=new Xg({onWillAddFirstListener:la,onDidRemoveLastListener:Ki});return vc.event}m.fromDOMEventEmitter=ho;function gl(hi,Vt){let za,Zi=new Promise((la,Ki)=>{let vc=x(hi)(la,null,Vt);za=()=>vc.dispose()});return Zi.cancel=za,Zi}m.toPromise=gl;function jn(hi,Vt){return hi(za=>Vt.fire(za))}m.forward=jn;function Gi(hi,Vt,za){return Vt(za),hi(Zi=>Vt(Zi))}m.runAndSubscribe=Gi;class Io{constructor(Vt,za){this._observable=Vt,this._counter=0,this._hasChanged=!1;let Zi={onWillAddFirstListener:()=>{Vt.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Vt.removeObserver(this)}};this.emitter=new Xg(Zi),za&&za.add(this.emitter)}beginUpdate(Vt){this._counter++}handlePossibleChange(Vt){}handleChange(Vt,za){this._hasChanged=!0}endUpdate(Vt){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Un(hi,Vt){return new Io(hi,Vt).emitter.event}m.fromObservable=Un;function ul(hi){return(Vt,za,Zi)=>{let la=0,Ki=!1,vc={beginUpdate(){la++},endUpdate(){la--,la===0&&(hi.reportChanges(),Ki&&(Ki=!1,Vt.call(za)))},handlePossibleChange(){},handleChange(){Ki=!0}};hi.addObserver(vc),hi.reportChanges();let sf={dispose(){hi.removeObserver(vc)}};return Zi instanceof H2?Zi.add(sf):Array.isArray(Zi)&&Zi.push(sf),sf}}m.fromObservableLight=ul})(G$||(G$={}));var Uye=class m{static{this.all=new Set}static{this._idPool=0}constructor(y){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${y}_${m._idPool++}`,m.all.add(this)}start(y){this._stopWatch=new f8,this.listenerCount=y}stop(){if(this._stopWatch){let y=this._stopWatch.elapsed();this.durations.push(y),this.elapsedOverall+=y,this.invocationCount+=1,this._stopWatch=void 0}}},Avt=-1,Hye=class m{static{this._idPool=1}constructor(y,x,W=(m._idPool++).toString(16).padStart(3,"0")){this._errorHandler=y,this.threshold=x,this.name=W,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(y,x){let W=this.threshold;if(W<=0||x<W)return;this._stacks||(this._stacks=new Map);let X=this._stacks.get(y.value)||0;if(this._stacks.set(y.value,X+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=W*.5;let[he,Me]=this.getMostFrequentStack(),Ke=`[${this.name}] potential listener LEAK detected, having ${x} listeners already. MOST frequent listener (${Me}):`;console.warn(Ke),console.warn(he);let ae=new Jye(Ke,he);this._errorHandler(ae)}return()=>{let he=this._stacks.get(y.value)||0;this._stacks.set(y.value,he-1)}}getMostFrequentStack(){if(!this._stacks)return;let y,x=0;for(let[W,X]of this._stacks)(!y||x<X)&&(y=[W,X],x=X);return y}},qye=class m{static create(){let y=new Error;return new m(y.stack??"")}constructor(y){this.value=y}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}},Jye=class extends Error{constructor(y,x){super(y),this.name="ListenerLeakError",this.stack=x}},Kye=class extends Error{constructor(y,x){super(y),this.name="ListenerRefusalError",this.stack=x}},oz=class{constructor(y){this.value=y}},Ivt=2,Xg=class{constructor(y){this._size=0,this._options=y,this._leakageMon=this._options?.leakWarningThreshold?new Hye(y?.onListenerError??U2,this._options?.leakWarningThreshold??Avt):void 0,this._perfMon=this._options?._profName?new Uye(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(y,x,W)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let Ke=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Ke);let ae=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],yt=new Kye(`${Ke}. HINT: Stack shows most frequent listener (${ae[1]}-times)`,ae[0]);return(this._options?.onListenerError||U2)(yt),CS.None}if(this._disposed)return CS.None;x&&(y=y.bind(x));let X=new oz(y),he;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(X.stack=qye.create(),he=this._leakageMon.check(X.stack,this._size+1)),this._listeners?this._listeners instanceof oz?(this._deliveryQueue??=new Xye,this._listeners=[this._listeners,X]):this._listeners.push(X):(this._options?.onWillAddFirstListener?.(this),this._listeners=X,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let Me=YC(()=>{he?.(),this._removeListener(X)});return W instanceof H2?W.add(Me):Array.isArray(W)&&W.push(Me),Me},this._event}_removeListener(y){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let x=this._listeners,W=x.indexOf(y);if(W===-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--,x[W]=void 0;let X=this._deliveryQueue.current===this;if(this._size*Ivt<=x.length){let he=0;for(let Me=0;Me<x.length;Me++)x[Me]?x[he++]=x[Me]:X&&he<this._deliveryQueue.end&&(this._deliveryQueue.end--,he<this._deliveryQueue.i&&this._deliveryQueue.i--);x.length=he}}_deliver(y,x){if(!y)return;let W=this._options?.onListenerError||U2;if(!W){y.value(x);return}try{y.value(x)}catch(X){W(X)}}_deliverQueue(y){let x=y.current._listeners;for(;y.i<y.end;)this._deliver(x[y.i++],y.value);y.reset()}fire(y){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof oz)this._deliver(this._listeners,y);else{let x=this._deliveryQueue;x.enqueue(this,y,this._listeners.length),this._deliverQueue(x)}this._perfMon?.stop()}hasListeners(){return this._size>0}};var Xye=class{constructor(){this.i=-1,this.end=0}enqueue(y,x,W){this.i=0,this.end=W,this.current=y,this.value=x}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function SFe(){return globalThis._VSCODE_NLS_MESSAGES}function V$(){return globalThis._VSCODE_NLS_LANGUAGE}var xvt=V$()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function EFe(m,y){let x;return y.length===0?x=m:x=m.replace(/\{(\d+)\}/g,(W,X)=>{let he=X[0],Me=y[he],Ke=W;return typeof Me=="string"?Ke=Me:(typeof Me=="number"||typeof Me=="boolean"||Me===void 0||Me===null)&&(Ke=String(Me)),Ke}),xvt&&(x="\uFF3B"+x.replace(/[aouei]/g,"$&$&")+"\uFF3D"),x}function xs(m,y,...x){return EFe(typeof m=="number"?Rvt(m,y):y,x)}function Rvt(m,y){let x=SFe()?.[m];if(typeof x!="string"){if(typeof y=="string")return y;throw new Error(`!!! NLS MISSING: ${m} !!!`)}return x}var q2="en",H$=!1,q$=!1,U$=!1,Dvt=!1,IFe=!1,Cvt=!1,Nvt=!1,j$,Yye=q2,AFe=q2,Mvt,lR,cR=globalThis,qv;typeof cR.vscode<"u"&&typeof cR.vscode.process<"u"?qv=cR.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(qv=process);var Pvt=typeof qv?.versions?.electron=="string",Lvt=Pvt&&qv?.type==="renderer";if(typeof qv=="object"){H$=qv.platform==="win32",q$=qv.platform==="darwin",U$=qv.platform==="linux",U$&&qv.env.SNAP&&qv.env.SNAP_REVISION,qv.env.CI||qv.env.BUILD_ARTIFACTSTAGINGDIRECTORY||qv.env.GITHUB_WORKSPACE,j$=q2,Yye=q2;let m=qv.env.VSCODE_NLS_CONFIG;if(m)try{let y=JSON.parse(m);j$=y.userLocale,AFe=y.osLocale,Yye=y.resolvedLanguage||q2,Mvt=y.languagePack?.translationsConfigFile}catch{}Dvt=!0}else typeof navigator=="object"&&!Lvt?(lR=navigator.userAgent,H$=lR.indexOf("Windows")>=0,q$=lR.indexOf("Macintosh")>=0,Cvt=(lR.indexOf("Macintosh")>=0||lR.indexOf("iPad")>=0||lR.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U$=lR.indexOf("Linux")>=0,Nvt=lR?.indexOf("Mobi")>=0,IFe=!0,Yye=V$()||q2,j$=navigator.language.toLowerCase(),AFe=j$):console.error("Unable to resolve platform.");var $ye=0;q$?$ye=1:H$?$ye=3:U$&&($ye=2);var J2=H$,xFe=q$;var kvt=IFe&&typeof cR.importScripts=="function",y0t=kvt?cR.origin:void 0;var PA=lR;var wvt=typeof cR.postMessage=="function"&&!cR.importScripts,RFe=(()=>{if(wvt){let m=[];cR.addEventListener("message",x=>{if(x.data&&x.data.vscodeScheduleAsyncWork)for(let W=0,X=m.length;W<X;W++){let he=m[W];if(he.id===x.data.vscodeScheduleAsyncWork){m.splice(W,1),he.callback();return}}});let y=0;return x=>{let W=++y;m.push({id:W,callback:x}),cR.postMessage({vscodeScheduleAsyncWork:W},"*")}}return m=>setTimeout(m)})();var Ovt=!!(PA&&PA.indexOf("Chrome")>=0),v0t=!!(PA&&PA.indexOf("Firefox")>=0),b0t=!!(!Ovt&&PA&&PA.indexOf("Safari")>=0),T0t=!!(PA&&PA.indexOf("Edg/")>=0),S0t=!!(PA&&PA.indexOf("Android")>=0);function Wvt(m){return m}var J$=class{constructor(y,x){this.lastCache=void 0,this.lastArgKey=void 0,typeof y=="function"?(this._fn=y,this._computeKey=Wvt):(this._fn=x,this._computeKey=y.getCacheKey)}get(y){let x=this._computeKey(y);return this.lastArgKey!==x&&(this.lastArgKey=x,this.lastCache=this._fn(y)),this.lastCache}};var K2;(function(m){m[m.Uninitialized=0]="Uninitialized",m[m.Running=1]="Running",m[m.Completed=2]="Completed"})(K2||(K2={}));var $C=class{constructor(y){this.executor=y,this._state=K2.Uninitialized}get value(){if(this._state===K2.Uninitialized){this._state=K2.Running;try{this._value=this.executor()}catch(y){this._error=y}finally{this._state=K2.Completed}}else if(this._state===K2.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function CFe(m){return m.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function NFe(m){return m.source==="^"||m.source==="^$"||m.source==="$"||m.source==="^\\s*$"?!1:!!(m.exec("")&&m.lastIndex===0)}function MFe(m){return m.split(/\r\n|\r|\n/)}function PFe(m){for(let y=0,x=m.length;y<x;y++){let W=m.charCodeAt(y);if(W!==32&&W!==9)return y}return-1}function LFe(m,y=m.length-1){for(let x=y;x>=0;x--){let W=m.charCodeAt(x);if(W!==32&&W!==9)return x}return-1}function Qye(m){return m>=65&&m<=90}function kFe(m,y){let x=Math.min(m.length,y.length),W;for(W=0;W<x;W++)if(m.charCodeAt(W)!==y.charCodeAt(W))return W;return x}function wFe(m,y){let x=Math.min(m.length,y.length),W,X=m.length-1,he=y.length-1;for(W=0;W<x;W++)if(m.charCodeAt(X-W)!==y.charCodeAt(he-W))return W;return x}function _8(m){return 55296<=m&&m<=56319}function K$(m){return 56320<=m&&m<=57343}function Zye(m,y){return(m-55296<<10)+(y-56320)+65536}function OFe(m,y,x){let W=m.charCodeAt(x);if(_8(W)&&x+1<y){let X=m.charCodeAt(x+1);if(K$(X))return Zye(W,X)}return W}var Fvt=/^[\t\n\r\x20-\x7E]*$/;function WFe(m){return Fvt.test(m)}var DFe=class m{static{this._INSTANCE=null}static getInstance(){return m._INSTANCE||(m._INSTANCE=new m),m._INSTANCE}constructor(){this._data=zvt()}getGraphemeBreakType(y){if(y<32)return y===10?3:y===13?2:4;if(y<127)return 0;let x=this._data,W=x.length/3,X=1;for(;X<=W;)if(y<x[3*X])X=2*X;else if(y>x[3*X+1])X=2*X+1;else return x[3*X+2];return 0}};function zvt(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var m8=class m{static{this.ambiguousCharacterData=new $C(()=>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,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.cache=new J$({getCacheKey:JSON.stringify},y=>{function x(et){let Je=new Map;for(let Pn=0;Pn<et.length;Pn+=2)Je.set(et[Pn],et[Pn+1]);return Je}function W(et,Je){let Pn=new Map(et);for(let[Hn,cr]of Je)Pn.set(Hn,cr);return Pn}function X(et,Je){if(!et)return Je;let Pn=new Map;for(let[Hn,cr]of et)Je.has(Hn)&&Pn.set(Hn,cr);return Pn}let he=this.ambiguousCharacterData.value,Me=y.filter(et=>!et.startsWith("_")&&Object.hasOwn(he,et));Me.length===0&&(Me=["_default"]);let Ke;for(let et of Me){let Je=x(he[et]);Ke=X(Ke,Je)}let ae=x(he._common),yt=W(ae,Ke);return new m(yt)})}static getInstance(y){return m.cache.get(Array.from(y))}static{this._locales=new $C(()=>Object.keys(m.ambiguousCharacterData.value).filter(y=>!y.startsWith("_")))}static getLocales(){return m._locales.value}constructor(y){this.confusableDictionary=y}isAmbiguous(y){return this.confusableDictionary.has(y)}getPrimaryConfusable(y){return this.confusableDictionary.get(y)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},h8=class m{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(m.getRawData())].flat())),this._data}static isInvisibleCharacter(y){return m.getData().has(y)}static get codePoints(){return m.getData()}};var eve="default",Bvt="$initialize";var tve=class{constructor(y,x,W,X,he){this.vsWorker=y,this.req=x,this.channel=W,this.method=X,this.args=he,this.type=0}},X$=class{constructor(y,x,W,X){this.vsWorker=y,this.seq=x,this.res=W,this.err=X,this.type=1}},nve=class{constructor(y,x,W,X,he){this.vsWorker=y,this.req=x,this.channel=W,this.eventName=X,this.arg=he,this.type=2}},rve=class{constructor(y,x,W){this.vsWorker=y,this.req=x,this.event=W,this.type=3}},ive=class{constructor(y,x){this.vsWorker=y,this.req=x,this.type=4}},ove=class{constructor(y){this._workerId=-1,this._handler=y,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(y){this._workerId=y}async sendMessage(y,x,W){let X=String(++this._lastSentReq);return new Promise((he,Me)=>{this._pendingReplies[X]={resolve:he,reject:Me},this._send(new tve(this._workerId,X,y,x,W))})}listen(y,x,W){let X=null,he=new Xg({onWillAddFirstListener:()=>{X=String(++this._lastSentReq),this._pendingEmitters.set(X,he),this._send(new nve(this._workerId,X,y,x,W))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(X),this._send(new ive(this._workerId,X)),X=null}});return he.event}handleMessage(y){!y||!y.vsWorker||this._workerId!==-1&&y.vsWorker!==this._workerId||this._handleMessage(y)}createProxyToRemoteChannel(y,x){let W={get:(X,he)=>(typeof he=="string"&&!X[he]&&(zFe(he)?X[he]=Me=>this.listen(y,he,Me):FFe(he)?X[he]=this.listen(y,he,void 0):he.charCodeAt(0)===36&&(X[he]=async(...Me)=>(await x?.(),this.sendMessage(y,he,Me)))),X[he])};return new Proxy(Object.create(null),W)}_handleMessage(y){switch(y.type){case 1:return this._handleReplyMessage(y);case 0:return this._handleRequestMessage(y);case 2:return this._handleSubscribeEventMessage(y);case 3:return this._handleEventMessage(y);case 4:return this._handleUnsubscribeEventMessage(y)}}_handleReplyMessage(y){if(!this._pendingReplies[y.seq]){console.warn("Got reply to unknown seq");return}let x=this._pendingReplies[y.seq];if(delete this._pendingReplies[y.seq],y.err){let W=y.err;if(y.err.$isError){let X=new Error;X.name=y.err.name,X.message=y.err.message,X.stack=y.err.stack,W=X}x.reject(W);return}x.resolve(y.res)}_handleRequestMessage(y){let x=y.req;this._handler.handleMessage(y.channel,y.method,y.args).then(X=>{this._send(new X$(this._workerId,x,X,void 0))},X=>{X.detail instanceof Error&&(X.detail=B$(X.detail)),this._send(new X$(this._workerId,x,void 0,B$(X)))})}_handleSubscribeEventMessage(y){let x=y.req,W=this._handler.handleEvent(y.channel,y.eventName,y.arg)(X=>{this._send(new rve(this._workerId,x,X))});this._pendingEvents.set(x,W)}_handleEventMessage(y){if(!this._pendingEmitters.has(y.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(y.req).fire(y.event)}_handleUnsubscribeEventMessage(y){if(!this._pendingEvents.has(y.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(y.req).dispose(),this._pendingEvents.delete(y.req)}_send(y){let x=[];if(y.type===0)for(let W=0;W<y.args.length;W++){let X=y.args[W];X instanceof ArrayBuffer&&x.push(X)}else y.type===1&&y.res instanceof ArrayBuffer&&x.push(y.res);this._handler.sendMessage(y,x)}};function FFe(m){return m[0]==="o"&&m[1]==="n"&&Qye(m.charCodeAt(2))}function zFe(m){return/^onDynamic/.test(m)&&Qye(m.charCodeAt(9))}var Y$=class{constructor(y,x){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new ove({sendMessage:(W,X)=>{y(W,X)},handleMessage:(W,X,he)=>this._handleMessage(W,X,he),handleEvent:(W,X,he)=>this._handleEvent(W,X,he)}),this.requestHandler=x(this)}onmessage(y){this._protocol.handleMessage(y)}_handleMessage(y,x,W){if(y===eve&&x===Bvt)return this.initialize(W[0]);let X=y===eve?this.requestHandler:this._localChannels.get(y);if(!X)return Promise.reject(new Error(`Missing channel ${y} on worker thread`));let he=X[x];if(typeof he!="function")return Promise.reject(new Error(`Missing method ${x} on worker thread channel ${y}`));try{return Promise.resolve(he.apply(X,W))}catch(Me){return Promise.reject(Me)}}_handleEvent(y,x,W){let X=y===eve?this.requestHandler:this._localChannels.get(y);if(!X)throw new Error(`Missing channel ${y} on worker thread`);if(zFe(x)){let he=X[x];if(typeof he!="function")throw new Error(`Missing dynamic event ${x} on request handler.`);let Me=he.call(X,W);if(typeof Me!="function")throw new Error(`Missing dynamic event ${x} on request handler.`);return Me}if(FFe(x)){let he=X[x];if(typeof he!="function")throw new Error(`Missing event ${x} on request handler.`);return he}throw new Error(`Malformed event name ${x}`)}getChannel(y){if(!this._remoteChannels.has(y)){let x=this._protocol.createProxyToRemoteChannel(y);this._remoteChannels.set(y,x)}return this._remoteChannels.get(y)}async initialize(y){this._protocol.setWorkerId(y)}};var BFe=!1;function GFe(m){if(BFe)throw new Error("WebWorker already initialized!");BFe=!0;let y=new Y$(x=>globalThis.postMessage(x),x=>m(x));return globalThis.onmessage=x=>{y.onmessage(x.data)},y}var NS=class{constructor(y,x,W,X){this.originalStart=y,this.originalLength=x,this.modifiedStart=W,this.modifiedLength=X}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};var VFe=typeof Buffer<"u";new $C(()=>new Uint8Array(256));var ave,$$=class m{static wrap(y){return VFe&&!Buffer.isBuffer(y)&&(y=Buffer.from(y.buffer,y.byteOffset,y.byteLength)),new m(y)}constructor(y){this.buffer=y,this.byteLength=this.buffer.byteLength}toString(){return VFe?this.buffer.toString():(ave||(ave=new TextDecoder),ave.decode(this.buffer))}};var jFe="0123456789abcdef";function UFe({buffer:m}){let y="";for(let x=0;x<m.length;x++){let W=m[x];y+=jFe[W>>>4],y+=jFe[W&15]}return y}function HFe(m,y){return(y<<5)-y+m|0}function JFe(m,y){y=HFe(149417,y);for(let x=0,W=m.length;x<W;x++)y=HFe(m.charCodeAt(x),y);return y}function sve(m,y,x=32){let W=x-y,X=~((1<<W)-1);return(m<<y|(X&m)>>>W)>>>0}function az(m,y=32){return m instanceof ArrayBuffer?UFe($$.wrap(new Uint8Array(m))):(m>>>0).toString(16).padStart(y/4,"0")}var qFe=class m{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(y){let x=y.length;if(x===0)return;let W=this._buff,X=this._buffLen,he=this._leftoverHighSurrogate,Me,Ke;for(he!==0?(Me=he,Ke=-1,he=0):(Me=y.charCodeAt(0),Ke=0);;){let ae=Me;if(_8(Me))if(Ke+1<x){let yt=y.charCodeAt(Ke+1);K$(yt)?(Ke++,ae=Zye(Me,yt)):ae=65533}else{he=Me;break}else K$(Me)&&(ae=65533);if(X=this._push(W,X,ae),Ke++,Ke<x)Me=y.charCodeAt(Ke);else break}this._buffLen=X,this._leftoverHighSurrogate=he}_push(y,x,W){return W<128?y[x++]=W:W<2048?(y[x++]=192|(W&1984)>>>6,y[x++]=128|(W&63)>>>0):W<65536?(y[x++]=224|(W&61440)>>>12,y[x++]=128|(W&4032)>>>6,y[x++]=128|(W&63)>>>0):(y[x++]=240|(W&1835008)>>>18,y[x++]=128|(W&258048)>>>12,y[x++]=128|(W&4032)>>>6,y[x++]=128|(W&63)>>>0),x>=64&&(this._step(),x-=64,this._totalLen+=64,y[0]=y[64],y[1]=y[65],y[2]=y[66]),x}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),az(this._h0)+az(this._h1)+az(this._h2)+az(this._h3)+az(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let y=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(y/4294967296),!1),this._buffDV.setUint32(60,y%4294967296,!1),this._step()}_step(){let y=m._bigBlock32,x=this._buffDV;for(let Je=0;Je<64;Je+=4)y.setUint32(Je,x.getUint32(Je,!1),!1);for(let Je=64;Je<320;Je+=4)y.setUint32(Je,sve(y.getUint32(Je-12,!1)^y.getUint32(Je-32,!1)^y.getUint32(Je-56,!1)^y.getUint32(Je-64,!1),1),!1);let W=this._h0,X=this._h1,he=this._h2,Me=this._h3,Ke=this._h4,ae,yt,et;for(let Je=0;Je<80;Je++)Je<20?(ae=X&he|~X&Me,yt=1518500249):Je<40?(ae=X^he^Me,yt=1859775393):Je<60?(ae=X&he|X&Me|he&Me,yt=2400959708):(ae=X^he^Me,yt=3395469782),et=sve(W,5)+ae+Ke+yt+y.getUint32(Je*4,!1)&4294967295,Ke=Me,Me=he,he=sve(X,30),X=W,W=et;this._h0=this._h0+W&4294967295,this._h1=this._h1+X&4294967295,this._h2=this._h2+he&4294967295,this._h3=this._h3+Me&4294967295,this._h4=this._h4+Ke&4294967295}};var Q$=class{constructor(y){this.source=y}getElements(){let y=this.source,x=new Int32Array(y.length);for(let W=0,X=y.length;W<X;W++)x[W]=y.charCodeAt(W);return x}};function KFe(m,y,x){return new sz(new Q$(m),new Q$(y)).ComputeDiff(x).changes}var QC=class{static Assert(y,x){if(!y)throw new Error(x)}},ZC=class{static Copy(y,x,W,X,he){for(let Me=0;Me<he;Me++)W[X+Me]=y[x+Me]}static Copy2(y,x,W,X,he){for(let Me=0;Me<he;Me++)W[X+Me]=y[x+Me]}},Z$=class{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 NS(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(y,x){this.m_originalStart=Math.min(this.m_originalStart,y),this.m_modifiedStart=Math.min(this.m_modifiedStart,x),this.m_originalCount++}AddModifiedElement(y,x){this.m_originalStart=Math.min(this.m_originalStart,y),this.m_modifiedStart=Math.min(this.m_modifiedStart,x),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}},sz=class m{constructor(y,x,W=null){this.ContinueProcessingPredicate=W,this._originalSequence=y,this._modifiedSequence=x;let[X,he,Me]=m._getElements(y),[Ke,ae,yt]=m._getElements(x);this._hasStrings=Me&&yt,this._originalStringElements=X,this._originalElementsOrHash=he,this._modifiedStringElements=Ke,this._modifiedElementsOrHash=ae,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(y){return y.length>0&&typeof y[0]=="string"}static _getElements(y){let x=y.getElements();if(m._isStringArray(x)){let W=new Int32Array(x.length);for(let X=0,he=x.length;X<he;X++)W[X]=JFe(x[X],0);return[x,W,!0]}return x instanceof Int32Array?[[],x,!1]:[[],new Int32Array(x),!1]}ElementsAreEqual(y,x){return this._originalElementsOrHash[y]!==this._modifiedElementsOrHash[x]?!1:this._hasStrings?this._originalStringElements[y]===this._modifiedStringElements[x]:!0}ElementsAreStrictEqual(y,x){if(!this.ElementsAreEqual(y,x))return!1;let W=m._getStrictElement(this._originalSequence,y),X=m._getStrictElement(this._modifiedSequence,x);return W===X}static _getStrictElement(y,x){return typeof y.getStrictElement=="function"?y.getStrictElement(x):null}OriginalElementsAreEqual(y,x){return this._originalElementsOrHash[y]!==this._originalElementsOrHash[x]?!1:this._hasStrings?this._originalStringElements[y]===this._originalStringElements[x]:!0}ModifiedElementsAreEqual(y,x){return this._modifiedElementsOrHash[y]!==this._modifiedElementsOrHash[x]?!1:this._hasStrings?this._modifiedStringElements[y]===this._modifiedStringElements[x]:!0}ComputeDiff(y){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,y)}_ComputeDiff(y,x,W,X,he){let Me=[!1],Ke=this.ComputeDiffRecursive(y,x,W,X,Me);return he&&(Ke=this.PrettifyChanges(Ke)),{quitEarly:Me[0],changes:Ke}}ComputeDiffRecursive(y,x,W,X,he){for(he[0]=!1;y<=x&&W<=X&&this.ElementsAreEqual(y,W);)y++,W++;for(;x>=y&&X>=W&&this.ElementsAreEqual(x,X);)x--,X--;if(y>x||W>X){let Je;return W<=X?(QC.Assert(y===x+1,"originalStart should only be one more than originalEnd"),Je=[new NS(y,0,W,X-W+1)]):y<=x?(QC.Assert(W===X+1,"modifiedStart should only be one more than modifiedEnd"),Je=[new NS(y,x-y+1,W,0)]):(QC.Assert(y===x+1,"originalStart should only be one more than originalEnd"),QC.Assert(W===X+1,"modifiedStart should only be one more than modifiedEnd"),Je=[]),Je}let Me=[0],Ke=[0],ae=this.ComputeRecursionPoint(y,x,W,X,Me,Ke,he),yt=Me[0],et=Ke[0];if(ae!==null)return ae;if(!he[0]){let Je=this.ComputeDiffRecursive(y,yt,W,et,he),Pn=[];return he[0]?Pn=[new NS(yt+1,x-(yt+1)+1,et+1,X-(et+1)+1)]:Pn=this.ComputeDiffRecursive(yt+1,x,et+1,X,he),this.ConcatenateChanges(Je,Pn)}return[new NS(y,x-y+1,W,X-W+1)]}WALKTRACE(y,x,W,X,he,Me,Ke,ae,yt,et,Je,Pn,Hn,cr,Gn,ki,bo,Vn){let hn=null,ga=null,ho=new Z$,gl=x,jn=W,Gi=Hn[0]-ki[0]-X,Io=-1073741824,Un=this.m_forwardHistory.length-1;do{let ul=Gi+y;ul===gl||ul<jn&&yt[ul-1]<yt[ul+1]?(Je=yt[ul+1],cr=Je-Gi-X,Je<Io&&ho.MarkNextChange(),Io=Je,ho.AddModifiedElement(Je+1,cr),Gi=ul+1-y):(Je=yt[ul-1]+1,cr=Je-Gi-X,Je<Io&&ho.MarkNextChange(),Io=Je-1,ho.AddOriginalElement(Je,cr+1),Gi=ul-1-y),Un>=0&&(yt=this.m_forwardHistory[Un],y=yt[0],gl=1,jn=yt.length-1)}while(--Un>=-1);if(hn=ho.getReverseChanges(),Vn[0]){let ul=Hn[0]+1,hi=ki[0]+1;if(hn!==null&&hn.length>0){let Vt=hn[hn.length-1];ul=Math.max(ul,Vt.getOriginalEnd()),hi=Math.max(hi,Vt.getModifiedEnd())}ga=[new NS(ul,Pn-ul+1,hi,Gn-hi+1)]}else{ho=new Z$,gl=Me,jn=Ke,Gi=Hn[0]-ki[0]-ae,Io=1073741824,Un=bo?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let ul=Gi+he;ul===gl||ul<jn&&et[ul-1]>=et[ul+1]?(Je=et[ul+1]-1,cr=Je-Gi-ae,Je>Io&&ho.MarkNextChange(),Io=Je+1,ho.AddOriginalElement(Je+1,cr+1),Gi=ul+1-he):(Je=et[ul-1],cr=Je-Gi-ae,Je>Io&&ho.MarkNextChange(),Io=Je,ho.AddModifiedElement(Je+1,cr+1),Gi=ul-1-he),Un>=0&&(et=this.m_reverseHistory[Un],he=et[0],gl=1,jn=et.length-1)}while(--Un>=-1);ga=ho.getChanges()}return this.ConcatenateChanges(hn,ga)}ComputeRecursionPoint(y,x,W,X,he,Me,Ke){let ae=0,yt=0,et=0,Je=0,Pn=0,Hn=0;y--,W--,he[0]=0,Me[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let cr=x-y+(X-W),Gn=cr+1,ki=new Int32Array(Gn),bo=new Int32Array(Gn),Vn=X-W,hn=x-y,ga=y-W,ho=x-X,jn=(hn-Vn)%2===0;ki[Vn]=y,bo[hn]=x,Ke[0]=!1;for(let Gi=1;Gi<=cr/2+1;Gi++){let Io=0,Un=0;et=this.ClipDiagonalBound(Vn-Gi,Gi,Vn,Gn),Je=this.ClipDiagonalBound(Vn+Gi,Gi,Vn,Gn);for(let hi=et;hi<=Je;hi+=2){hi===et||hi<Je&&ki[hi-1]<ki[hi+1]?ae=ki[hi+1]:ae=ki[hi-1]+1,yt=ae-(hi-Vn)-ga;let Vt=ae;for(;ae<x&&yt<X&&this.ElementsAreEqual(ae+1,yt+1);)ae++,yt++;if(ki[hi]=ae,ae+yt>Io+Un&&(Io=ae,Un=yt),!jn&&Math.abs(hi-hn)<=Gi-1&&ae>=bo[hi])return he[0]=ae,Me[0]=yt,Vt<=bo[hi]&&Gi<=1448?this.WALKTRACE(Vn,et,Je,ga,hn,Pn,Hn,ho,ki,bo,ae,x,he,yt,X,Me,jn,Ke):null}let ul=(Io-y+(Un-W)-Gi)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Io,ul))return Ke[0]=!0,he[0]=Io,Me[0]=Un,ul>0&&Gi<=1448?this.WALKTRACE(Vn,et,Je,ga,hn,Pn,Hn,ho,ki,bo,ae,x,he,yt,X,Me,jn,Ke):(y++,W++,[new NS(y,x-y+1,W,X-W+1)]);Pn=this.ClipDiagonalBound(hn-Gi,Gi,hn,Gn),Hn=this.ClipDiagonalBound(hn+Gi,Gi,hn,Gn);for(let hi=Pn;hi<=Hn;hi+=2){hi===Pn||hi<Hn&&bo[hi-1]>=bo[hi+1]?ae=bo[hi+1]-1:ae=bo[hi-1],yt=ae-(hi-hn)-ho;let Vt=ae;for(;ae>y&&yt>W&&this.ElementsAreEqual(ae,yt);)ae--,yt--;if(bo[hi]=ae,jn&&Math.abs(hi-Vn)<=Gi&&ae<=ki[hi])return he[0]=ae,Me[0]=yt,Vt>=ki[hi]&&Gi<=1448?this.WALKTRACE(Vn,et,Je,ga,hn,Pn,Hn,ho,ki,bo,ae,x,he,yt,X,Me,jn,Ke):null}if(Gi<=1447){let hi=new Int32Array(Je-et+2);hi[0]=Vn-et+1,ZC.Copy2(ki,et,hi,1,Je-et+1),this.m_forwardHistory.push(hi),hi=new Int32Array(Hn-Pn+2),hi[0]=hn-Pn+1,ZC.Copy2(bo,Pn,hi,1,Hn-Pn+1),this.m_reverseHistory.push(hi)}}return this.WALKTRACE(Vn,et,Je,ga,hn,Pn,Hn,ho,ki,bo,ae,x,he,yt,X,Me,jn,Ke)}PrettifyChanges(y){for(let x=0;x<y.length;x++){let W=y[x],X=x<y.length-1?y[x+1].originalStart:this._originalElementsOrHash.length,he=x<y.length-1?y[x+1].modifiedStart:this._modifiedElementsOrHash.length,Me=W.originalLength>0,Ke=W.modifiedLength>0;for(;W.originalStart+W.originalLength<X&&W.modifiedStart+W.modifiedLength<he&&(!Me||this.OriginalElementsAreEqual(W.originalStart,W.originalStart+W.originalLength))&&(!Ke||this.ModifiedElementsAreEqual(W.modifiedStart,W.modifiedStart+W.modifiedLength));){let yt=this.ElementsAreStrictEqual(W.originalStart,W.modifiedStart);if(this.ElementsAreStrictEqual(W.originalStart+W.originalLength,W.modifiedStart+W.modifiedLength)&&!yt)break;W.originalStart++,W.modifiedStart++}let ae=[null];if(x<y.length-1&&this.ChangesOverlap(y[x],y[x+1],ae)){y[x]=ae[0],y.splice(x+1,1),x--;continue}}for(let x=y.length-1;x>=0;x--){let W=y[x],X=0,he=0;if(x>0){let Je=y[x-1];X=Je.originalStart+Je.originalLength,he=Je.modifiedStart+Je.modifiedLength}let Me=W.originalLength>0,Ke=W.modifiedLength>0,ae=0,yt=this._boundaryScore(W.originalStart,W.originalLength,W.modifiedStart,W.modifiedLength);for(let Je=1;;Je++){let Pn=W.originalStart-Je,Hn=W.modifiedStart-Je;if(Pn<X||Hn<he||Me&&!this.OriginalElementsAreEqual(Pn,Pn+W.originalLength)||Ke&&!this.ModifiedElementsAreEqual(Hn,Hn+W.modifiedLength))break;let Gn=(Pn===X&&Hn===he?5:0)+this._boundaryScore(Pn,W.originalLength,Hn,W.modifiedLength);Gn>yt&&(yt=Gn,ae=Je)}W.originalStart-=ae,W.modifiedStart-=ae;let et=[null];if(x>0&&this.ChangesOverlap(y[x-1],y[x],et)){y[x-1]=et[0],y.splice(x,1),x++;continue}}if(this._hasStrings)for(let x=1,W=y.length;x<W;x++){let X=y[x-1],he=y[x],Me=he.originalStart-X.originalStart-X.originalLength,Ke=X.originalStart,ae=he.originalStart+he.originalLength,yt=ae-Ke,et=X.modifiedStart,Je=he.modifiedStart+he.modifiedLength,Pn=Je-et;if(Me<5&&yt<20&&Pn<20){let Hn=this._findBetterContiguousSequence(Ke,yt,et,Pn,Me);if(Hn){let[cr,Gn]=Hn;(cr!==X.originalStart+X.originalLength||Gn!==X.modifiedStart+X.modifiedLength)&&(X.originalLength=cr-X.originalStart,X.modifiedLength=Gn-X.modifiedStart,he.originalStart=cr+Me,he.modifiedStart=Gn+Me,he.originalLength=ae-he.originalStart,he.modifiedLength=Je-he.modifiedStart)}}}return y}_findBetterContiguousSequence(y,x,W,X,he){if(x<he||X<he)return null;let Me=y+x-he+1,Ke=W+X-he+1,ae=0,yt=0,et=0;for(let Je=y;Je<Me;Je++)for(let Pn=W;Pn<Ke;Pn++){let Hn=this._contiguousSequenceScore(Je,Pn,he);Hn>0&&Hn>ae&&(ae=Hn,yt=Je,et=Pn)}return ae>0?[yt,et]:null}_contiguousSequenceScore(y,x,W){let X=0;for(let he=0;he<W;he++){if(!this.ElementsAreEqual(y+he,x+he))return 0;X+=this._originalStringElements[y+he].length}return X}_OriginalIsBoundary(y){return y<=0||y>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[y])}_OriginalRegionIsBoundary(y,x){if(this._OriginalIsBoundary(y)||this._OriginalIsBoundary(y-1))return!0;if(x>0){let W=y+x;if(this._OriginalIsBoundary(W-1)||this._OriginalIsBoundary(W))return!0}return!1}_ModifiedIsBoundary(y){return y<=0||y>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[y])}_ModifiedRegionIsBoundary(y,x){if(this._ModifiedIsBoundary(y)||this._ModifiedIsBoundary(y-1))return!0;if(x>0){let W=y+x;if(this._ModifiedIsBoundary(W-1)||this._ModifiedIsBoundary(W))return!0}return!1}_boundaryScore(y,x,W,X){let he=this._OriginalRegionIsBoundary(y,x)?1:0,Me=this._ModifiedRegionIsBoundary(W,X)?1:0;return he+Me}ConcatenateChanges(y,x){let W=[];if(y.length===0||x.length===0)return x.length>0?x:y;if(this.ChangesOverlap(y[y.length-1],x[0],W)){let X=new Array(y.length+x.length-1);return ZC.Copy(y,0,X,0,y.length-1),X[y.length-1]=W[0],ZC.Copy(x,1,X,y.length,x.length-1),X}else{let X=new Array(y.length+x.length);return ZC.Copy(y,0,X,0,y.length),ZC.Copy(x,0,X,y.length,x.length),X}}ChangesOverlap(y,x,W){if(QC.Assert(y.originalStart<=x.originalStart,"Left change is not less than or equal to right change"),QC.Assert(y.modifiedStart<=x.modifiedStart,"Left change is not less than or equal to right change"),y.originalStart+y.originalLength>=x.originalStart||y.modifiedStart+y.modifiedLength>=x.modifiedStart){let X=y.originalStart,he=y.originalLength,Me=y.modifiedStart,Ke=y.modifiedLength;return y.originalStart+y.originalLength>=x.originalStart&&(he=x.originalStart+x.originalLength-y.originalStart),y.modifiedStart+y.modifiedLength>=x.modifiedStart&&(Ke=x.modifiedStart+x.modifiedLength-y.modifiedStart),W[0]=new NS(X,he,Me,Ke),!0}else return W[0]=null,!1}ClipDiagonalBound(y,x,W,X){if(y>=0&&y<X)return y;let he=W,Me=X-W-1,Ke=x%2===0;if(y<0){let ae=he%2===0;return Ke===ae?0:1}else{let ae=Me%2===0;return Ke===ae?X-1:X-2}}};var nc=class m{constructor(y,x){this.lineNumber=y,this.column=x}with(y=this.lineNumber,x=this.column){return y===this.lineNumber&&x===this.column?this:new m(y,x)}delta(y=0,x=0){return this.with(Math.max(1,this.lineNumber+y),Math.max(1,this.column+x))}equals(y){return m.equals(this,y)}static equals(y,x){return!y&&!x?!0:!!y&&!!x&&y.lineNumber===x.lineNumber&&y.column===x.column}isBefore(y){return m.isBefore(this,y)}static isBefore(y,x){return y.lineNumber<x.lineNumber?!0:x.lineNumber<y.lineNumber?!1:y.column<x.column}isBeforeOrEqual(y){return m.isBeforeOrEqual(this,y)}static isBeforeOrEqual(y,x){return y.lineNumber<x.lineNumber?!0:x.lineNumber<y.lineNumber?!1:y.column<=x.column}static compare(y,x){let W=y.lineNumber|0,X=x.lineNumber|0;if(W===X){let he=y.column|0,Me=x.column|0;return he-Me}return W-X}clone(){return new m(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(y){return new m(y.lineNumber,y.column)}static isIPosition(y){return!!y&&typeof y.lineNumber=="number"&&typeof y.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var hs=class m{constructor(y,x,W,X){y>W||y===W&&x>X?(this.startLineNumber=W,this.startColumn=X,this.endLineNumber=y,this.endColumn=x):(this.startLineNumber=y,this.startColumn=x,this.endLineNumber=W,this.endColumn=X)}isEmpty(){return m.isEmpty(this)}static isEmpty(y){return y.startLineNumber===y.endLineNumber&&y.startColumn===y.endColumn}containsPosition(y){return m.containsPosition(this,y)}static containsPosition(y,x){return!(x.lineNumber<y.startLineNumber||x.lineNumber>y.endLineNumber||x.lineNumber===y.startLineNumber&&x.column<y.startColumn||x.lineNumber===y.endLineNumber&&x.column>y.endColumn)}static strictContainsPosition(y,x){return!(x.lineNumber<y.startLineNumber||x.lineNumber>y.endLineNumber||x.lineNumber===y.startLineNumber&&x.column<=y.startColumn||x.lineNumber===y.endLineNumber&&x.column>=y.endColumn)}containsRange(y){return m.containsRange(this,y)}static containsRange(y,x){return!(x.startLineNumber<y.startLineNumber||x.endLineNumber<y.startLineNumber||x.startLineNumber>y.endLineNumber||x.endLineNumber>y.endLineNumber||x.startLineNumber===y.startLineNumber&&x.startColumn<y.startColumn||x.endLineNumber===y.endLineNumber&&x.endColumn>y.endColumn)}strictContainsRange(y){return m.strictContainsRange(this,y)}static strictContainsRange(y,x){return!(x.startLineNumber<y.startLineNumber||x.endLineNumber<y.startLineNumber||x.startLineNumber>y.endLineNumber||x.endLineNumber>y.endLineNumber||x.startLineNumber===y.startLineNumber&&x.startColumn<=y.startColumn||x.endLineNumber===y.endLineNumber&&x.endColumn>=y.endColumn)}plusRange(y){return m.plusRange(this,y)}static plusRange(y,x){let W,X,he,Me;return x.startLineNumber<y.startLineNumber?(W=x.startLineNumber,X=x.startColumn):x.startLineNumber===y.startLineNumber?(W=x.startLineNumber,X=Math.min(x.startColumn,y.startColumn)):(W=y.startLineNumber,X=y.startColumn),x.endLineNumber>y.endLineNumber?(he=x.endLineNumber,Me=x.endColumn):x.endLineNumber===y.endLineNumber?(he=x.endLineNumber,Me=Math.max(x.endColumn,y.endColumn)):(he=y.endLineNumber,Me=y.endColumn),new m(W,X,he,Me)}intersectRanges(y){return m.intersectRanges(this,y)}static intersectRanges(y,x){let W=y.startLineNumber,X=y.startColumn,he=y.endLineNumber,Me=y.endColumn,Ke=x.startLineNumber,ae=x.startColumn,yt=x.endLineNumber,et=x.endColumn;return W<Ke?(W=Ke,X=ae):W===Ke&&(X=Math.max(X,ae)),he>yt?(he=yt,Me=et):he===yt&&(Me=Math.min(Me,et)),W>he||W===he&&X>Me?null:new m(W,X,he,Me)}equalsRange(y){return m.equalsRange(this,y)}static equalsRange(y,x){return!y&&!x?!0:!!y&&!!x&&y.startLineNumber===x.startLineNumber&&y.startColumn===x.startColumn&&y.endLineNumber===x.endLineNumber&&y.endColumn===x.endColumn}getEndPosition(){return m.getEndPosition(this)}static getEndPosition(y){return new nc(y.endLineNumber,y.endColumn)}getStartPosition(){return m.getStartPosition(this)}static getStartPosition(y){return new nc(y.startLineNumber,y.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(y,x){return new m(this.startLineNumber,this.startColumn,y,x)}setStartPosition(y,x){return new m(y,x,this.endLineNumber,this.endColumn)}collapseToStart(){return m.collapseToStart(this)}static collapseToStart(y){return new m(y.startLineNumber,y.startColumn,y.startLineNumber,y.startColumn)}collapseToEnd(){return m.collapseToEnd(this)}static collapseToEnd(y){return new m(y.endLineNumber,y.endColumn,y.endLineNumber,y.endColumn)}delta(y){return new m(this.startLineNumber+y,this.startColumn,this.endLineNumber+y,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(y,x=y){return new m(y.lineNumber,y.column,x.lineNumber,x.column)}static lift(y){return y?new m(y.startLineNumber,y.startColumn,y.endLineNumber,y.endColumn):null}static isIRange(y){return!!y&&typeof y.startLineNumber=="number"&&typeof y.startColumn=="number"&&typeof y.endLineNumber=="number"&&typeof y.endColumn=="number"}static areIntersectingOrTouching(y,x){return!(y.endLineNumber<x.startLineNumber||y.endLineNumber===x.startLineNumber&&y.endColumn<x.startColumn||x.endLineNumber<y.startLineNumber||x.endLineNumber===y.startLineNumber&&x.endColumn<y.startColumn)}static areIntersecting(y,x){return!(y.endLineNumber<x.startLineNumber||y.endLineNumber===x.startLineNumber&&y.endColumn<=x.startColumn||x.endLineNumber<y.startLineNumber||x.endLineNumber===y.startLineNumber&&x.endColumn<=y.startColumn)}static areOnlyIntersecting(y,x){return!(y.endLineNumber<x.startLineNumber-1||y.endLineNumber===x.startLineNumber&&y.endColumn<x.startColumn-1||x.endLineNumber<y.startLineNumber-1||x.endLineNumber===y.startLineNumber&&x.endColumn<y.startColumn-1)}static compareRangesUsingStarts(y,x){if(y&&x){let he=y.startLineNumber|0,Me=x.startLineNumber|0;if(he===Me){let Ke=y.startColumn|0,ae=x.startColumn|0;if(Ke===ae){let yt=y.endLineNumber|0,et=x.endLineNumber|0;if(yt===et){let Je=y.endColumn|0,Pn=x.endColumn|0;return Je-Pn}return yt-et}return Ke-ae}return he-Me}return(y?1:0)-(x?1:0)}static compareRangesUsingEnds(y,x){return y.endLineNumber===x.endLineNumber?y.endColumn===x.endColumn?y.startLineNumber===x.startLineNumber?y.startColumn-x.startColumn:y.startLineNumber-x.startLineNumber:y.endColumn-x.endColumn:y.endLineNumber-x.endLineNumber}static spansMultipleLines(y){return y.endLineNumber>y.startLineNumber}toJSON(){return this}};function lve(m){return m<0?0:m>255?255:m|0}function X2(m){return m<0?0:m>4294967295?4294967295:m|0}var lz=class m{constructor(y){let x=lve(y);this._defaultValue=x,this._asciiMap=m._createAsciiMap(x),this._map=new Map}static _createAsciiMap(y){let x=new Uint8Array(256);return x.fill(y),x}set(y,x){let W=lve(x);y>=0&&y<256?this._asciiMap[y]=W:this._map.set(y,W)}get(y){return y>=0&&y<256?this._asciiMap[y]:this._map.get(y)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var dve=class{constructor(y,x,W){let X=new Uint8Array(y*x);for(let he=0,Me=y*x;he<Me;he++)X[he]=W;this._data=X,this.rows=y,this.cols=x}get(y,x){return this._data[y*this.cols+x]}set(y,x,W){this._data[y*this.cols+x]=W}},uve=class{constructor(y){let x=0,W=0;for(let he=0,Me=y.length;he<Me;he++){let[Ke,ae,yt]=y[he];ae>x&&(x=ae),Ke>W&&(W=Ke),yt>W&&(W=yt)}x++,W++;let X=new dve(W,x,0);for(let he=0,Me=y.length;he<Me;he++){let[Ke,ae,yt]=y[he];X.set(Ke,ae,yt)}this._states=X,this._maxCharCode=x}nextState(y,x){return x<0||x>=this._maxCharCode?0:this._states.get(y,x)}},cve=null;function Gvt(){return cve===null&&(cve=new uve([[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]])),cve}var cz=null;function Vvt(){if(cz===null){cz=new lz(0);let m=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026|`;for(let x=0;x<m.length;x++)cz.set(m.charCodeAt(x),1);let y=".,;:";for(let x=0;x<y.length;x++)cz.set(y.charCodeAt(x),2)}return cz}var pve=class m{static _createLink(y,x,W,X,he){let Me=he-1;do{let Ke=x.charCodeAt(Me);if(y.get(Ke)!==2)break;Me--}while(Me>X);if(X>0){let Ke=x.charCodeAt(X-1),ae=x.charCodeAt(Me);(Ke===40&&ae===41||Ke===91&&ae===93||Ke===123&&ae===125)&&Me--}return{range:{startLineNumber:W,startColumn:X+1,endLineNumber:W,endColumn:Me+2},url:x.substring(X,Me+1)}}static computeLinks(y,x=Gvt()){let W=Vvt(),X=[];for(let he=1,Me=y.getLineCount();he<=Me;he++){let Ke=y.getLineContent(he),ae=Ke.length,yt=0,et=0,Je=0,Pn=1,Hn=!1,cr=!1,Gn=!1,ki=!1;for(;yt<ae;){let bo=!1,Vn=Ke.charCodeAt(yt);if(Pn===13){let hn;switch(Vn){case 40:Hn=!0,hn=0;break;case 41:hn=Hn?0:1;break;case 91:Gn=!0,cr=!0,hn=0;break;case 93:Gn=!1,hn=cr?0:1;break;case 123:ki=!0,hn=0;break;case 125:hn=ki?0:1;break;case 39:case 34:case 96:Je===Vn?hn=1:Je===39||Je===34||Je===96?hn=0:hn=1;break;case 42:hn=Je===42?1:0;break;case 32:hn=Gn?0:1;break;default:hn=W.get(Vn)}hn===1&&(X.push(m._createLink(W,Ke,he,et,yt)),bo=!0)}else if(Pn===12){let hn;Vn===91?(cr=!0,hn=0):hn=W.get(Vn),hn===1?bo=!0:Pn=13}else Pn=x.nextState(Pn,Vn),Pn===0&&(bo=!0);bo&&(Pn=1,Hn=!1,cr=!1,ki=!1,et=yt+1,Je=Vn),yt++}Pn===13&&X.push(m._createLink(W,Ke,he,et,ae))}return X}};function XFe(m){return!m||typeof m.getLineCount!="function"||typeof m.getLineContent!="function"?[]:pve.computeLinks(m)}var eQ=class m{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new m}navigateValueSet(y,x,W,X,he){if(y&&x){let Me=this.doNavigateValueSet(x,he);if(Me)return{range:y,value:Me}}if(W&&X){let Me=this.doNavigateValueSet(X,he);if(Me)return{range:W,value:Me}}return null}doNavigateValueSet(y,x){let W=this.numberReplace(y,x);return W!==null?W:this.textReplace(y,x)}numberReplace(y,x){let W=Math.pow(10,y.length-(y.lastIndexOf(".")+1)),X=Number(y),he=parseFloat(y);return!isNaN(X)&&!isNaN(he)&&X===he?X===0&&!x?null:(X=Math.floor(X*W),X+=x?W:-W,String(X/W)):null}textReplace(y,x){return this.valueSetsReplace(this._defaultValueSet,y,x)}valueSetsReplace(y,x,W){let X=null;for(let he=0,Me=y.length;X===null&&he<Me;he++)X=this.valueSetReplace(y[he],x,W);return X}valueSetReplace(y,x,W){let X=y.indexOf(x);return X>=0?(X+=W?1:-1,X<0?X=y.length-1:X%=y.length,y[X]):null}};var YFe=Object.freeze(function(m,y){let x=setTimeout(m.bind(y),0);return{dispose(){clearTimeout(x)}}}),tQ;(function(m){function y(x){return x===m.None||x===m.Cancelled||x instanceof g8?!0:!x||typeof x!="object"?!1:typeof x.isCancellationRequested=="boolean"&&typeof x.onCancellationRequested=="function"}m.isCancellationToken=y,m.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:G$.None}),m.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:YFe})})(tQ||(tQ={}));var g8=class{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?YFe:(this._emitter||(this._emitter=new Xg),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},dz=class{constructor(y){this._token=void 0,this._parentListener=void 0,this._parentListener=y&&y.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new g8),this._token}cancel(){this._token?this._token instanceof g8&&this._token.cancel():this._token=tQ.Cancelled}dispose(y=!1){y&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof g8&&this._token.dispose():this._token=tQ.None}};var uz=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(y,x){this._keyCodeToStr[y]=x,this._strToKeyCode[x.toLowerCase()]=y}keyCodeToStr(y){return this._keyCodeToStr[y]}strToKeyCode(y){return this._strToKeyCode[y.toLowerCase()]||0}},nQ=new uz,fve=new uz,mve=new uz,jvt=new Array(230),Uvt=Object.create(null),Hvt=Object.create(null),QFe=[];for(let m=0;m<=193;m++)QFe[m]=-1;(function(){let m="",y=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",m,m],[1,1,"Hyper",0,m,0,m,m,m],[1,2,"Super",0,m,0,m,m,m],[1,3,"Fn",0,m,0,m,m,m],[1,4,"FnLock",0,m,0,m,m,m],[1,5,"Suspend",0,m,0,m,m,m],[1,6,"Resume",0,m,0,m,m,m],[1,7,"Turbo",0,m,0,m,m,m],[1,8,"Sleep",0,m,0,"VK_SLEEP",m,m],[1,9,"WakeUp",0,m,0,m,m,m],[0,10,"KeyA",31,"A",65,"VK_A",m,m],[0,11,"KeyB",32,"B",66,"VK_B",m,m],[0,12,"KeyC",33,"C",67,"VK_C",m,m],[0,13,"KeyD",34,"D",68,"VK_D",m,m],[0,14,"KeyE",35,"E",69,"VK_E",m,m],[0,15,"KeyF",36,"F",70,"VK_F",m,m],[0,16,"KeyG",37,"G",71,"VK_G",m,m],[0,17,"KeyH",38,"H",72,"VK_H",m,m],[0,18,"KeyI",39,"I",73,"VK_I",m,m],[0,19,"KeyJ",40,"J",74,"VK_J",m,m],[0,20,"KeyK",41,"K",75,"VK_K",m,m],[0,21,"KeyL",42,"L",76,"VK_L",m,m],[0,22,"KeyM",43,"M",77,"VK_M",m,m],[0,23,"KeyN",44,"N",78,"VK_N",m,m],[0,24,"KeyO",45,"O",79,"VK_O",m,m],[0,25,"KeyP",46,"P",80,"VK_P",m,m],[0,26,"KeyQ",47,"Q",81,"VK_Q",m,m],[0,27,"KeyR",48,"R",82,"VK_R",m,m],[0,28,"KeyS",49,"S",83,"VK_S",m,m],[0,29,"KeyT",50,"T",84,"VK_T",m,m],[0,30,"KeyU",51,"U",85,"VK_U",m,m],[0,31,"KeyV",52,"V",86,"VK_V",m,m],[0,32,"KeyW",53,"W",87,"VK_W",m,m],[0,33,"KeyX",54,"X",88,"VK_X",m,m],[0,34,"KeyY",55,"Y",89,"VK_Y",m,m],[0,35,"KeyZ",56,"Z",90,"VK_Z",m,m],[0,36,"Digit1",22,"1",49,"VK_1",m,m],[0,37,"Digit2",23,"2",50,"VK_2",m,m],[0,38,"Digit3",24,"3",51,"VK_3",m,m],[0,39,"Digit4",25,"4",52,"VK_4",m,m],[0,40,"Digit5",26,"5",53,"VK_5",m,m],[0,41,"Digit6",27,"6",54,"VK_6",m,m],[0,42,"Digit7",28,"7",55,"VK_7",m,m],[0,43,"Digit8",29,"8",56,"VK_8",m,m],[0,44,"Digit9",30,"9",57,"VK_9",m,m],[0,45,"Digit0",21,"0",48,"VK_0",m,m],[1,46,"Enter",3,"Enter",13,"VK_RETURN",m,m],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",m,m],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",m,m],[1,49,"Tab",2,"Tab",9,"VK_TAB",m,m],[1,50,"Space",10,"Space",32,"VK_SPACE",m,m],[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,m,0,m,m,m],[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",m,m],[1,64,"F1",59,"F1",112,"VK_F1",m,m],[1,65,"F2",60,"F2",113,"VK_F2",m,m],[1,66,"F3",61,"F3",114,"VK_F3",m,m],[1,67,"F4",62,"F4",115,"VK_F4",m,m],[1,68,"F5",63,"F5",116,"VK_F5",m,m],[1,69,"F6",64,"F6",117,"VK_F6",m,m],[1,70,"F7",65,"F7",118,"VK_F7",m,m],[1,71,"F8",66,"F8",119,"VK_F8",m,m],[1,72,"F9",67,"F9",120,"VK_F9",m,m],[1,73,"F10",68,"F10",121,"VK_F10",m,m],[1,74,"F11",69,"F11",122,"VK_F11",m,m],[1,75,"F12",70,"F12",123,"VK_F12",m,m],[1,76,"PrintScreen",0,m,0,m,m,m],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",m,m],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",m,m],[1,79,"Insert",19,"Insert",45,"VK_INSERT",m,m],[1,80,"Home",14,"Home",36,"VK_HOME",m,m],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",m,m],[1,82,"Delete",20,"Delete",46,"VK_DELETE",m,m],[1,83,"End",13,"End",35,"VK_END",m,m],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",m,m],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",m],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",m],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",m],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",m],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",m,m],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",m,m],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",m,m],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",m,m],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",m,m],[1,94,"NumpadEnter",3,m,0,m,m,m],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",m,m],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",m,m],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",m,m],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",m,m],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",m,m],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",m,m],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",m,m],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",m,m],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",m,m],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",m,m],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",m,m],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",m,m],[1,107,"ContextMenu",58,"ContextMenu",93,m,m,m],[1,108,"Power",0,m,0,m,m,m],[1,109,"NumpadEqual",0,m,0,m,m,m],[1,110,"F13",71,"F13",124,"VK_F13",m,m],[1,111,"F14",72,"F14",125,"VK_F14",m,m],[1,112,"F15",73,"F15",126,"VK_F15",m,m],[1,113,"F16",74,"F16",127,"VK_F16",m,m],[1,114,"F17",75,"F17",128,"VK_F17",m,m],[1,115,"F18",76,"F18",129,"VK_F18",m,m],[1,116,"F19",77,"F19",130,"VK_F19",m,m],[1,117,"F20",78,"F20",131,"VK_F20",m,m],[1,118,"F21",79,"F21",132,"VK_F21",m,m],[1,119,"F22",80,"F22",133,"VK_F22",m,m],[1,120,"F23",81,"F23",134,"VK_F23",m,m],[1,121,"F24",82,"F24",135,"VK_F24",m,m],[1,122,"Open",0,m,0,m,m,m],[1,123,"Help",0,m,0,m,m,m],[1,124,"Select",0,m,0,m,m,m],[1,125,"Again",0,m,0,m,m,m],[1,126,"Undo",0,m,0,m,m,m],[1,127,"Cut",0,m,0,m,m,m],[1,128,"Copy",0,m,0,m,m,m],[1,129,"Paste",0,m,0,m,m,m],[1,130,"Find",0,m,0,m,m,m],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",m,m],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",m,m],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",m,m],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",m,m],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",m,m],[1,136,"KanaMode",0,m,0,m,m,m],[0,137,"IntlYen",0,m,0,m,m,m],[1,138,"Convert",0,m,0,m,m,m],[1,139,"NonConvert",0,m,0,m,m,m],[1,140,"Lang1",0,m,0,m,m,m],[1,141,"Lang2",0,m,0,m,m,m],[1,142,"Lang3",0,m,0,m,m,m],[1,143,"Lang4",0,m,0,m,m,m],[1,144,"Lang5",0,m,0,m,m,m],[1,145,"Abort",0,m,0,m,m,m],[1,146,"Props",0,m,0,m,m,m],[1,147,"NumpadParenLeft",0,m,0,m,m,m],[1,148,"NumpadParenRight",0,m,0,m,m,m],[1,149,"NumpadBackspace",0,m,0,m,m,m],[1,150,"NumpadMemoryStore",0,m,0,m,m,m],[1,151,"NumpadMemoryRecall",0,m,0,m,m,m],[1,152,"NumpadMemoryClear",0,m,0,m,m,m],[1,153,"NumpadMemoryAdd",0,m,0,m,m,m],[1,154,"NumpadMemorySubtract",0,m,0,m,m,m],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",m,m],[1,156,"NumpadClearEntry",0,m,0,m,m,m],[1,0,m,5,"Ctrl",17,"VK_CONTROL",m,m],[1,0,m,4,"Shift",16,"VK_SHIFT",m,m],[1,0,m,6,"Alt",18,"VK_MENU",m,m],[1,0,m,57,"Meta",91,"VK_COMMAND",m,m],[1,157,"ControlLeft",5,m,0,"VK_LCONTROL",m,m],[1,158,"ShiftLeft",4,m,0,"VK_LSHIFT",m,m],[1,159,"AltLeft",6,m,0,"VK_LMENU",m,m],[1,160,"MetaLeft",57,m,0,"VK_LWIN",m,m],[1,161,"ControlRight",5,m,0,"VK_RCONTROL",m,m],[1,162,"ShiftRight",4,m,0,"VK_RSHIFT",m,m],[1,163,"AltRight",6,m,0,"VK_RMENU",m,m],[1,164,"MetaRight",57,m,0,"VK_RWIN",m,m],[1,165,"BrightnessUp",0,m,0,m,m,m],[1,166,"BrightnessDown",0,m,0,m,m,m],[1,167,"MediaPlay",0,m,0,m,m,m],[1,168,"MediaRecord",0,m,0,m,m,m],[1,169,"MediaFastForward",0,m,0,m,m,m],[1,170,"MediaRewind",0,m,0,m,m,m],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",m,m],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",m,m],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",m,m],[1,174,"Eject",0,m,0,m,m,m],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",m,m],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",m,m],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",m,m],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",m,m],[1,179,"LaunchApp1",0,m,0,"VK_MEDIA_LAUNCH_APP1",m,m],[1,180,"SelectTask",0,m,0,m,m,m],[1,181,"LaunchScreenSaver",0,m,0,m,m,m],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",m,m],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",m,m],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",m,m],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",m,m],[1,186,"BrowserStop",0,m,0,"VK_BROWSER_STOP",m,m],[1,187,"BrowserRefresh",0,m,0,"VK_BROWSER_REFRESH",m,m],[1,188,"BrowserFavorites",0,m,0,"VK_BROWSER_FAVORITES",m,m],[1,189,"ZoomToggle",0,m,0,m,m,m],[1,190,"MailReply",0,m,0,m,m,m],[1,191,"MailForward",0,m,0,m,m,m],[1,192,"MailSend",0,m,0,m,m,m],[1,0,m,114,"KeyInComposition",229,m,m,m],[1,0,m,116,"ABNT_C2",194,"VK_ABNT_C2",m,m],[1,0,m,96,"OEM_8",223,"VK_OEM_8",m,m],[1,0,m,0,m,0,"VK_KANA",m,m],[1,0,m,0,m,0,"VK_HANGUL",m,m],[1,0,m,0,m,0,"VK_JUNJA",m,m],[1,0,m,0,m,0,"VK_FINAL",m,m],[1,0,m,0,m,0,"VK_HANJA",m,m],[1,0,m,0,m,0,"VK_KANJI",m,m],[1,0,m,0,m,0,"VK_CONVERT",m,m],[1,0,m,0,m,0,"VK_NONCONVERT",m,m],[1,0,m,0,m,0,"VK_ACCEPT",m,m],[1,0,m,0,m,0,"VK_MODECHANGE",m,m],[1,0,m,0,m,0,"VK_SELECT",m,m],[1,0,m,0,m,0,"VK_PRINT",m,m],[1,0,m,0,m,0,"VK_EXECUTE",m,m],[1,0,m,0,m,0,"VK_SNAPSHOT",m,m],[1,0,m,0,m,0,"VK_HELP",m,m],[1,0,m,0,m,0,"VK_APPS",m,m],[1,0,m,0,m,0,"VK_PROCESSKEY",m,m],[1,0,m,0,m,0,"VK_PACKET",m,m],[1,0,m,0,m,0,"VK_DBE_SBCSCHAR",m,m],[1,0,m,0,m,0,"VK_DBE_DBCSCHAR",m,m],[1,0,m,0,m,0,"VK_ATTN",m,m],[1,0,m,0,m,0,"VK_CRSEL",m,m],[1,0,m,0,m,0,"VK_EXSEL",m,m],[1,0,m,0,m,0,"VK_EREOF",m,m],[1,0,m,0,m,0,"VK_PLAY",m,m],[1,0,m,0,m,0,"VK_ZOOM",m,m],[1,0,m,0,m,0,"VK_NONAME",m,m],[1,0,m,0,m,0,"VK_PA1",m,m],[1,0,m,0,m,0,"VK_OEM_CLEAR",m,m]],x=[],W=[];for(let X of y){let[he,Me,Ke,ae,yt,et,Je,Pn,Hn]=X;if(W[Me]||(W[Me]=!0,Uvt[Ke]=Me,Hvt[Ke.toLowerCase()]=Me,he&&(QFe[Me]=ae)),!x[ae]){if(x[ae]=!0,!yt)throw new Error(`String representation missing for key code ${ae} around scan code ${Ke}`);nQ.define(ae,yt),fve.define(ae,Pn||yt),mve.define(ae,Hn||Pn||yt)}et&&(jvt[et]=ae)}})();var $Fe;(function(m){function y(Ke){return nQ.keyCodeToStr(Ke)}m.toString=y;function x(Ke){return nQ.strToKeyCode(Ke)}m.fromString=x;function W(Ke){return fve.keyCodeToStr(Ke)}m.toUserSettingsUS=W;function X(Ke){return mve.keyCodeToStr(Ke)}m.toUserSettingsGeneral=X;function he(Ke){return fve.strToKeyCode(Ke)||mve.strToKeyCode(Ke)}m.fromUserSettings=he;function Me(Ke){if(Ke>=98&&Ke<=113)return null;switch(Ke){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return nQ.keyCodeToStr(Ke)}m.toElectronAccelerator=Me})($Fe||($Fe={}));function ZFe(m,y){let x=(y&65535)<<16>>>0;return(m|x)>>>0}var y8,hve=globalThis.vscode;if(typeof hve<"u"&&typeof hve.process<"u"){let m=hve.process;y8={get platform(){return m.platform},get arch(){return m.arch},get env(){return m.env},cwd(){return m.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?y8={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:y8={get platform(){return J2?"win32":xFe?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var pz=y8.cwd,e7e=y8.env,t7e=y8.platform;var qvt=65,Jvt=97,Kvt=90,Xvt=122,Y2=46,E_=47,Jv=92,dR=58,Yvt=63,rQ=class extends Error{constructor(y,x,W){let X;typeof x=="string"&&x.indexOf("not ")===0?(X="must not be",x=x.replace(/^not /,"")):X="must be";let he=y.indexOf(".")!==-1?"property":"argument",Me=`The "${y}" ${he} ${X} of type ${x}`;Me+=`. Received type ${typeof W}`,super(Me),this.code="ERR_INVALID_ARG_TYPE"}};function $vt(m,y){if(m===null||typeof m!="object")throw new rQ(y,"Object",m)}function sm(m,y){if(typeof m!="string")throw new rQ(y,"string",m)}var eN=t7e==="win32";function rc(m){return m===E_||m===Jv}function _ve(m){return m===E_}function uR(m){return m>=qvt&&m<=Kvt||m>=Jvt&&m<=Xvt}function iQ(m,y,x,W){let X="",he=0,Me=-1,Ke=0,ae=0;for(let yt=0;yt<=m.length;++yt){if(yt<m.length)ae=m.charCodeAt(yt);else{if(W(ae))break;ae=E_}if(W(ae)){if(!(Me===yt-1||Ke===1))if(Ke===2){if(X.length<2||he!==2||X.charCodeAt(X.length-1)!==Y2||X.charCodeAt(X.length-2)!==Y2){if(X.length>2){let et=X.lastIndexOf(x);et===-1?(X="",he=0):(X=X.slice(0,et),he=X.length-1-X.lastIndexOf(x)),Me=yt,Ke=0;continue}else if(X.length!==0){X="",he=0,Me=yt,Ke=0;continue}}y&&(X+=X.length>0?`${x}..`:"..",he=2)}else X.length>0?X+=`${x}${m.slice(Me+1,yt)}`:X=m.slice(Me+1,yt),he=yt-Me-1;Me=yt,Ke=0}else ae===Y2&&Ke!==-1?++Ke:Ke=-1}return X}function Qvt(m){return m?`${m[0]==="."?"":"."}${m}`:""}function n7e(m,y){$vt(y,"pathObject");let x=y.dir||y.root,W=y.base||`${y.name||""}${Qvt(y.ext)}`;return x?x===y.root?`${x}${W}`:`${x}${m}${W}`:W}var Yg={resolve(...m){let y="",x="",W=!1;for(let X=m.length-1;X>=-1;X--){let he;if(X>=0){if(he=m[X],sm(he,`paths[${X}]`),he.length===0)continue}else y.length===0?he=pz():(he=e7e[`=${y}`]||pz(),(he===void 0||he.slice(0,2).toLowerCase()!==y.toLowerCase()&&he.charCodeAt(2)===Jv)&&(he=`${y}\\`));let Me=he.length,Ke=0,ae="",yt=!1,et=he.charCodeAt(0);if(Me===1)rc(et)&&(Ke=1,yt=!0);else if(rc(et))if(yt=!0,rc(he.charCodeAt(1))){let Je=2,Pn=Je;for(;Je<Me&&!rc(he.charCodeAt(Je));)Je++;if(Je<Me&&Je!==Pn){let Hn=he.slice(Pn,Je);for(Pn=Je;Je<Me&&rc(he.charCodeAt(Je));)Je++;if(Je<Me&&Je!==Pn){for(Pn=Je;Je<Me&&!rc(he.charCodeAt(Je));)Je++;(Je===Me||Je!==Pn)&&(ae=`\\\\${Hn}\\${he.slice(Pn,Je)}`,Ke=Je)}}}else Ke=1;else uR(et)&&he.charCodeAt(1)===dR&&(ae=he.slice(0,2),Ke=2,Me>2&&rc(he.charCodeAt(2))&&(yt=!0,Ke=3));if(ae.length>0)if(y.length>0){if(ae.toLowerCase()!==y.toLowerCase())continue}else y=ae;if(W){if(y.length>0)break}else if(x=`${he.slice(Ke)}\\${x}`,W=yt,yt&&y.length>0)break}return x=iQ(x,!W,"\\",rc),W?`${y}\\${x}`:`${y}${x}`||"."},normalize(m){sm(m,"path");let y=m.length;if(y===0)return".";let x=0,W,X=!1,he=m.charCodeAt(0);if(y===1)return _ve(he)?"\\":m;if(rc(he))if(X=!0,rc(m.charCodeAt(1))){let Ke=2,ae=Ke;for(;Ke<y&&!rc(m.charCodeAt(Ke));)Ke++;if(Ke<y&&Ke!==ae){let yt=m.slice(ae,Ke);for(ae=Ke;Ke<y&&rc(m.charCodeAt(Ke));)Ke++;if(Ke<y&&Ke!==ae){for(ae=Ke;Ke<y&&!rc(m.charCodeAt(Ke));)Ke++;if(Ke===y)return`\\\\${yt}\\${m.slice(ae)}\\`;Ke!==ae&&(W=`\\\\${yt}\\${m.slice(ae,Ke)}`,x=Ke)}}}else x=1;else uR(he)&&m.charCodeAt(1)===dR&&(W=m.slice(0,2),x=2,y>2&&rc(m.charCodeAt(2))&&(X=!0,x=3));let Me=x<y?iQ(m.slice(x),!X,"\\",rc):"";if(Me.length===0&&!X&&(Me="."),Me.length>0&&rc(m.charCodeAt(y-1))&&(Me+="\\"),!X&&W===void 0&&m.includes(":")){if(Me.length>=2&&uR(Me.charCodeAt(0))&&Me.charCodeAt(1)===dR)return`.\\${Me}`;let Ke=m.indexOf(":");do if(Ke===y-1||rc(m.charCodeAt(Ke+1)))return`.\\${Me}`;while((Ke=m.indexOf(":",Ke+1))!==-1)}return W===void 0?X?`\\${Me}`:Me:X?`${W}\\${Me}`:`${W}${Me}`},isAbsolute(m){sm(m,"path");let y=m.length;if(y===0)return!1;let x=m.charCodeAt(0);return rc(x)||y>2&&uR(x)&&m.charCodeAt(1)===dR&&rc(m.charCodeAt(2))},join(...m){if(m.length===0)return".";let y,x;for(let he=0;he<m.length;++he){let Me=m[he];sm(Me,"path"),Me.length>0&&(y===void 0?y=x=Me:y+=`\\${Me}`)}if(y===void 0)return".";let W=!0,X=0;if(typeof x=="string"&&rc(x.charCodeAt(0))){++X;let he=x.length;he>1&&rc(x.charCodeAt(1))&&(++X,he>2&&(rc(x.charCodeAt(2))?++X:W=!1))}if(W){for(;X<y.length&&rc(y.charCodeAt(X));)X++;X>=2&&(y=`\\${y.slice(X)}`)}return Yg.normalize(y)},relative(m,y){if(sm(m,"from"),sm(y,"to"),m===y)return"";let x=Yg.resolve(m),W=Yg.resolve(y);if(x===W||(m=x.toLowerCase(),y=W.toLowerCase(),m===y))return"";if(x.length!==m.length||W.length!==y.length){let cr=x.split("\\"),Gn=W.split("\\");cr[cr.length-1]===""&&cr.pop(),Gn[Gn.length-1]===""&&Gn.pop();let ki=cr.length,bo=Gn.length,Vn=ki<bo?ki:bo,hn;for(hn=0;hn<Vn&&cr[hn].toLowerCase()===Gn[hn].toLowerCase();hn++);return hn===0?W:hn===Vn?bo>Vn?Gn.slice(hn).join("\\"):ki>Vn?"..\\".repeat(ki-1-hn)+"..":"":"..\\".repeat(ki-hn)+Gn.slice(hn).join("\\")}let X=0;for(;X<m.length&&m.charCodeAt(X)===Jv;)X++;let he=m.length;for(;he-1>X&&m.charCodeAt(he-1)===Jv;)he--;let Me=he-X,Ke=0;for(;Ke<y.length&&y.charCodeAt(Ke)===Jv;)Ke++;let ae=y.length;for(;ae-1>Ke&&y.charCodeAt(ae-1)===Jv;)ae--;let yt=ae-Ke,et=Me<yt?Me:yt,Je=-1,Pn=0;for(;Pn<et;Pn++){let cr=m.charCodeAt(X+Pn);if(cr!==y.charCodeAt(Ke+Pn))break;cr===Jv&&(Je=Pn)}if(Pn!==et){if(Je===-1)return W}else{if(yt>et){if(y.charCodeAt(Ke+Pn)===Jv)return W.slice(Ke+Pn+1);if(Pn===2)return W.slice(Ke+Pn)}Me>et&&(m.charCodeAt(X+Pn)===Jv?Je=Pn:Pn===2&&(Je=3)),Je===-1&&(Je=0)}let Hn="";for(Pn=X+Je+1;Pn<=he;++Pn)(Pn===he||m.charCodeAt(Pn)===Jv)&&(Hn+=Hn.length===0?"..":"\\..");return Ke+=Je,Hn.length>0?`${Hn}${W.slice(Ke,ae)}`:(W.charCodeAt(Ke)===Jv&&++Ke,W.slice(Ke,ae))},toNamespacedPath(m){if(typeof m!="string"||m.length===0)return m;let y=Yg.resolve(m);if(y.length<=2)return m;if(y.charCodeAt(0)===Jv){if(y.charCodeAt(1)===Jv){let x=y.charCodeAt(2);if(x!==Yvt&&x!==Y2)return`\\\\?\\UNC\\${y.slice(2)}`}}else if(uR(y.charCodeAt(0))&&y.charCodeAt(1)===dR&&y.charCodeAt(2)===Jv)return`\\\\?\\${y}`;return y},dirname(m){sm(m,"path");let y=m.length;if(y===0)return".";let x=-1,W=0,X=m.charCodeAt(0);if(y===1)return rc(X)?m:".";if(rc(X)){if(x=W=1,rc(m.charCodeAt(1))){let Ke=2,ae=Ke;for(;Ke<y&&!rc(m.charCodeAt(Ke));)Ke++;if(Ke<y&&Ke!==ae){for(ae=Ke;Ke<y&&rc(m.charCodeAt(Ke));)Ke++;if(Ke<y&&Ke!==ae){for(ae=Ke;Ke<y&&!rc(m.charCodeAt(Ke));)Ke++;if(Ke===y)return m;Ke!==ae&&(x=W=Ke+1)}}}}else uR(X)&&m.charCodeAt(1)===dR&&(x=y>2&&rc(m.charCodeAt(2))?3:2,W=x);let he=-1,Me=!0;for(let Ke=y-1;Ke>=W;--Ke)if(rc(m.charCodeAt(Ke))){if(!Me){he=Ke;break}}else Me=!1;if(he===-1){if(x===-1)return".";he=x}return m.slice(0,he)},basename(m,y){y!==void 0&&sm(y,"suffix"),sm(m,"path");let x=0,W=-1,X=!0,he;if(m.length>=2&&uR(m.charCodeAt(0))&&m.charCodeAt(1)===dR&&(x=2),y!==void 0&&y.length>0&&y.length<=m.length){if(y===m)return"";let Me=y.length-1,Ke=-1;for(he=m.length-1;he>=x;--he){let ae=m.charCodeAt(he);if(rc(ae)){if(!X){x=he+1;break}}else Ke===-1&&(X=!1,Ke=he+1),Me>=0&&(ae===y.charCodeAt(Me)?--Me===-1&&(W=he):(Me=-1,W=Ke))}return x===W?W=Ke:W===-1&&(W=m.length),m.slice(x,W)}for(he=m.length-1;he>=x;--he)if(rc(m.charCodeAt(he))){if(!X){x=he+1;break}}else W===-1&&(X=!1,W=he+1);return W===-1?"":m.slice(x,W)},extname(m){sm(m,"path");let y=0,x=-1,W=0,X=-1,he=!0,Me=0;m.length>=2&&m.charCodeAt(1)===dR&&uR(m.charCodeAt(0))&&(y=W=2);for(let Ke=m.length-1;Ke>=y;--Ke){let ae=m.charCodeAt(Ke);if(rc(ae)){if(!he){W=Ke+1;break}continue}X===-1&&(he=!1,X=Ke+1),ae===Y2?x===-1?x=Ke:Me!==1&&(Me=1):x!==-1&&(Me=-1)}return x===-1||X===-1||Me===0||Me===1&&x===X-1&&x===W+1?"":m.slice(x,X)},format:n7e.bind(null,"\\"),parse(m){sm(m,"path");let y={root:"",dir:"",base:"",ext:"",name:""};if(m.length===0)return y;let x=m.length,W=0,X=m.charCodeAt(0);if(x===1)return rc(X)?(y.root=y.dir=m,y):(y.base=y.name=m,y);if(rc(X)){if(W=1,rc(m.charCodeAt(1))){let Je=2,Pn=Je;for(;Je<x&&!rc(m.charCodeAt(Je));)Je++;if(Je<x&&Je!==Pn){for(Pn=Je;Je<x&&rc(m.charCodeAt(Je));)Je++;if(Je<x&&Je!==Pn){for(Pn=Je;Je<x&&!rc(m.charCodeAt(Je));)Je++;Je===x?W=Je:Je!==Pn&&(W=Je+1)}}}}else if(uR(X)&&m.charCodeAt(1)===dR){if(x<=2)return y.root=y.dir=m,y;if(W=2,rc(m.charCodeAt(2))){if(x===3)return y.root=y.dir=m,y;W=3}}W>0&&(y.root=m.slice(0,W));let he=-1,Me=W,Ke=-1,ae=!0,yt=m.length-1,et=0;for(;yt>=W;--yt){if(X=m.charCodeAt(yt),rc(X)){if(!ae){Me=yt+1;break}continue}Ke===-1&&(ae=!1,Ke=yt+1),X===Y2?he===-1?he=yt:et!==1&&(et=1):he!==-1&&(et=-1)}return Ke!==-1&&(he===-1||et===0||et===1&&he===Ke-1&&he===Me+1?y.base=y.name=m.slice(Me,Ke):(y.name=m.slice(Me,he),y.base=m.slice(Me,Ke),y.ext=m.slice(he,Ke))),Me>0&&Me!==W?y.dir=m.slice(0,Me-1):y.dir=y.root,y},sep:"\\",delimiter:";",win32:null,posix:null},Zvt=(()=>{if(eN){let m=/\\/g;return()=>{let y=pz().replace(m,"/");return y.slice(y.indexOf("/"))}}return()=>pz()})(),qy={resolve(...m){let y="",x=!1;for(let W=m.length-1;W>=0&&!x;W--){let X=m[W];sm(X,`paths[${W}]`),X.length!==0&&(y=`${X}/${y}`,x=X.charCodeAt(0)===E_)}if(!x){let W=Zvt();y=`${W}/${y}`,x=W.charCodeAt(0)===E_}return y=iQ(y,!x,"/",_ve),x?`/${y}`:y.length>0?y:"."},normalize(m){if(sm(m,"path"),m.length===0)return".";let y=m.charCodeAt(0)===E_,x=m.charCodeAt(m.length-1)===E_;return m=iQ(m,!y,"/",_ve),m.length===0?y?"/":x?"./":".":(x&&(m+="/"),y?`/${m}`:m)},isAbsolute(m){return sm(m,"path"),m.length>0&&m.charCodeAt(0)===E_},join(...m){if(m.length===0)return".";let y=[];for(let x=0;x<m.length;++x){let W=m[x];sm(W,"path"),W.length>0&&y.push(W)}return y.length===0?".":qy.normalize(y.join("/"))},relative(m,y){if(sm(m,"from"),sm(y,"to"),m===y||(m=qy.resolve(m),y=qy.resolve(y),m===y))return"";let x=1,W=m.length,X=W-x,he=1,Me=y.length-he,Ke=X<Me?X:Me,ae=-1,yt=0;for(;yt<Ke;yt++){let Je=m.charCodeAt(x+yt);if(Je!==y.charCodeAt(he+yt))break;Je===E_&&(ae=yt)}if(yt===Ke)if(Me>Ke){if(y.charCodeAt(he+yt)===E_)return y.slice(he+yt+1);if(yt===0)return y.slice(he+yt)}else X>Ke&&(m.charCodeAt(x+yt)===E_?ae=yt:yt===0&&(ae=0));let et="";for(yt=x+ae+1;yt<=W;++yt)(yt===W||m.charCodeAt(yt)===E_)&&(et+=et.length===0?"..":"/..");return`${et}${y.slice(he+ae)}`},toNamespacedPath(m){return m},dirname(m){if(sm(m,"path"),m.length===0)return".";let y=m.charCodeAt(0)===E_,x=-1,W=!0;for(let X=m.length-1;X>=1;--X)if(m.charCodeAt(X)===E_){if(!W){x=X;break}}else W=!1;return x===-1?y?"/":".":y&&x===1?"//":m.slice(0,x)},basename(m,y){y!==void 0&&sm(y,"suffix"),sm(m,"path");let x=0,W=-1,X=!0,he;if(y!==void 0&&y.length>0&&y.length<=m.length){if(y===m)return"";let Me=y.length-1,Ke=-1;for(he=m.length-1;he>=0;--he){let ae=m.charCodeAt(he);if(ae===E_){if(!X){x=he+1;break}}else Ke===-1&&(X=!1,Ke=he+1),Me>=0&&(ae===y.charCodeAt(Me)?--Me===-1&&(W=he):(Me=-1,W=Ke))}return x===W?W=Ke:W===-1&&(W=m.length),m.slice(x,W)}for(he=m.length-1;he>=0;--he)if(m.charCodeAt(he)===E_){if(!X){x=he+1;break}}else W===-1&&(X=!1,W=he+1);return W===-1?"":m.slice(x,W)},extname(m){sm(m,"path");let y=-1,x=0,W=-1,X=!0,he=0;for(let Me=m.length-1;Me>=0;--Me){let Ke=m[Me];if(Ke==="/"){if(!X){x=Me+1;break}continue}W===-1&&(X=!1,W=Me+1),Ke==="."?y===-1?y=Me:he!==1&&(he=1):y!==-1&&(he=-1)}return y===-1||W===-1||he===0||he===1&&y===W-1&&y===x+1?"":m.slice(y,W)},format:n7e.bind(null,"/"),parse(m){sm(m,"path");let y={root:"",dir:"",base:"",ext:"",name:""};if(m.length===0)return y;let x=m.charCodeAt(0)===E_,W;x?(y.root="/",W=1):W=0;let X=-1,he=0,Me=-1,Ke=!0,ae=m.length-1,yt=0;for(;ae>=W;--ae){let et=m.charCodeAt(ae);if(et===E_){if(!Ke){he=ae+1;break}continue}Me===-1&&(Ke=!1,Me=ae+1),et===Y2?X===-1?X=ae:yt!==1&&(yt=1):X!==-1&&(yt=-1)}if(Me!==-1){let et=he===0&&x?1:he;X===-1||yt===0||yt===1&&X===Me-1&&X===he+1?y.base=y.name=m.slice(et,Me):(y.name=m.slice(et,X),y.base=m.slice(et,Me),y.ext=m.slice(X,Me))}return he>0?y.dir=m.slice(0,he-1):x&&(y.dir="/"),y},sep:"/",delimiter:":",win32:null,posix:null};qy.win32=Yg.win32=Yg;qy.posix=Yg.posix=qy;var lTt=eN?Yg.normalize:qy.normalize,cTt=eN?Yg.resolve:qy.resolve,dTt=eN?Yg.relative:qy.relative,uTt=eN?Yg.dirname:qy.dirname,pTt=eN?Yg.basename:qy.basename,fTt=eN?Yg.extname:qy.extname,mTt=eN?Yg.sep:qy.sep;var ebt=/^\w[\w\d+.-]*$/,tbt=/^\//,nbt=/^\/\//;function rbt(m,y){if(!m.scheme&&y)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${m.authority}", path: "${m.path}", query: "${m.query}", fragment: "${m.fragment}"}`);if(m.scheme&&!ebt.test(m.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(m.path){if(m.authority){if(!tbt.test(m.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(nbt.test(m.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function ibt(m,y){return!m&&!y?"file":m}function obt(m,y){switch(m){case"https":case"http":case"file":y?y[0]!==MS&&(y=MS+y):y=MS;break}return y}var up="",MS="/",abt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,nN=class m{static isUri(y){return y instanceof m?!0:!y||typeof y!="object"?!1:typeof y.authority=="string"&&typeof y.fragment=="string"&&typeof y.path=="string"&&typeof y.query=="string"&&typeof y.scheme=="string"&&typeof y.fsPath=="string"&&typeof y.with=="function"&&typeof y.toString=="function"}constructor(y,x,W,X,he,Me=!1){typeof y=="object"?(this.scheme=y.scheme||up,this.authority=y.authority||up,this.path=y.path||up,this.query=y.query||up,this.fragment=y.fragment||up):(this.scheme=ibt(y,Me),this.authority=x||up,this.path=obt(this.scheme,W||up),this.query=X||up,this.fragment=he||up,rbt(this,Me))}get fsPath(){return gve(this,!1)}with(y){if(!y)return this;let{scheme:x,authority:W,path:X,query:he,fragment:Me}=y;return x===void 0?x=this.scheme:x===null&&(x=up),W===void 0?W=this.authority:W===null&&(W=up),X===void 0?X=this.path:X===null&&(X=up),he===void 0?he=this.query:he===null&&(he=up),Me===void 0?Me=this.fragment:Me===null&&(Me=up),x===this.scheme&&W===this.authority&&X===this.path&&he===this.query&&Me===this.fragment?this:new tN(x,W,X,he,Me)}static parse(y,x=!1){let W=abt.exec(y);return W?new tN(W[2]||up,oQ(W[4]||up),oQ(W[5]||up),oQ(W[7]||up),oQ(W[9]||up),x):new tN(up,up,up,up,up)}static file(y){let x=up;if(J2&&(y=y.replace(/\\/g,MS)),y[0]===MS&&y[1]===MS){let W=y.indexOf(MS,2);W===-1?(x=y.substring(2),y=MS):(x=y.substring(2,W),y=y.substring(W)||MS)}return new tN("file",x,y,up,up)}static from(y,x){return new tN(y.scheme,y.authority,y.path,y.query,y.fragment,x)}static joinPath(y,...x){if(!y.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let W;return J2&&y.scheme==="file"?W=m.file(Yg.join(gve(y,!0),...x)).path:W=qy.join(y.path,...x),y.with({path:W})}toString(y=!1){return yve(this,y)}toJSON(){return this}static revive(y){if(y){if(y instanceof m)return y;{let x=new tN(y);return x._formatted=y.external??null,x._fsPath=y._sep===o7e?y.fsPath??null:null,x}}else return y}},o7e=J2?1:void 0,tN=class extends nN{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=gve(this,!1)),this._fsPath}toString(y=!1){return y?yve(this,!0):(this._formatted||(this._formatted=yve(this,!1)),this._formatted)}toJSON(){let y={$mid:1};return this._fsPath&&(y.fsPath=this._fsPath,y._sep=o7e),this._formatted&&(y.external=this._formatted),this.path&&(y.path=this.path),this.scheme&&(y.scheme=this.scheme),this.authority&&(y.authority=this.authority),this.query&&(y.query=this.query),this.fragment&&(y.fragment=this.fragment),y}},a7e={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 r7e(m,y,x){let W,X=-1;for(let he=0;he<m.length;he++){let Me=m.charCodeAt(he);if(Me>=97&&Me<=122||Me>=65&&Me<=90||Me>=48&&Me<=57||Me===45||Me===46||Me===95||Me===126||y&&Me===47||x&&Me===91||x&&Me===93||x&&Me===58)X!==-1&&(W+=encodeURIComponent(m.substring(X,he)),X=-1),W!==void 0&&(W+=m.charAt(he));else{W===void 0&&(W=m.substr(0,he));let Ke=a7e[Me];Ke!==void 0?(X!==-1&&(W+=encodeURIComponent(m.substring(X,he)),X=-1),W+=Ke):X===-1&&(X=he)}}return X!==-1&&(W+=encodeURIComponent(m.substring(X))),W!==void 0?W:m}function sbt(m){let y;for(let x=0;x<m.length;x++){let W=m.charCodeAt(x);W===35||W===63?(y===void 0&&(y=m.substr(0,x)),y+=a7e[W]):y!==void 0&&(y+=m[x])}return y!==void 0?y:m}function gve(m,y){let x;return m.authority&&m.path.length>1&&m.scheme==="file"?x=`//${m.authority}${m.path}`:m.path.charCodeAt(0)===47&&(m.path.charCodeAt(1)>=65&&m.path.charCodeAt(1)<=90||m.path.charCodeAt(1)>=97&&m.path.charCodeAt(1)<=122)&&m.path.charCodeAt(2)===58?y?x=m.path.substr(1):x=m.path[1].toLowerCase()+m.path.substr(2):x=m.path,J2&&(x=x.replace(/\//g,"\\")),x}function yve(m,y){let x=y?sbt:r7e,W="",{scheme:X,authority:he,path:Me,query:Ke,fragment:ae}=m;if(X&&(W+=X,W+=":"),(he||X==="file")&&(W+=MS,W+=MS),he){let yt=he.indexOf("@");if(yt!==-1){let et=he.substr(0,yt);he=he.substr(yt+1),yt=et.lastIndexOf(":"),yt===-1?W+=x(et,!1,!1):(W+=x(et.substr(0,yt),!1,!1),W+=":",W+=x(et.substr(yt+1),!1,!0)),W+="@"}he=he.toLowerCase(),yt=he.lastIndexOf(":"),yt===-1?W+=x(he,!1,!0):(W+=x(he.substr(0,yt),!1,!0),W+=he.substr(yt))}if(Me){if(Me.length>=3&&Me.charCodeAt(0)===47&&Me.charCodeAt(2)===58){let yt=Me.charCodeAt(1);yt>=65&&yt<=90&&(Me=`/${String.fromCharCode(yt+32)}:${Me.substr(3)}`)}else if(Me.length>=2&&Me.charCodeAt(1)===58){let yt=Me.charCodeAt(0);yt>=65&&yt<=90&&(Me=`${String.fromCharCode(yt+32)}:${Me.substr(2)}`)}W+=x(Me,!0,!1)}return Ke&&(W+="?",W+=x(Ke,!1,!1)),ae&&(W+="#",W+=y?ae:r7e(ae,!1,!1)),W}function s7e(m){try{return decodeURIComponent(m)}catch{return m.length>3?m.substr(0,3)+s7e(m.substr(3)):m}}var i7e=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function oQ(m){return m.match(i7e)?m.replace(i7e,y=>s7e(y)):m}var aQ=class m extends hs{constructor(y,x,W,X){super(y,x,W,X),this.selectionStartLineNumber=y,this.selectionStartColumn=x,this.positionLineNumber=W,this.positionColumn=X}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(y){return m.selectionsEqual(this,y)}static selectionsEqual(y,x){return y.selectionStartLineNumber===x.selectionStartLineNumber&&y.selectionStartColumn===x.selectionStartColumn&&y.positionLineNumber===x.positionLineNumber&&y.positionColumn===x.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(y,x){return this.getDirection()===0?new m(this.startLineNumber,this.startColumn,y,x):new m(y,x,this.startLineNumber,this.startColumn)}getPosition(){return new nc(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new nc(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(y,x){return this.getDirection()===0?new m(y,x,this.endLineNumber,this.endColumn):new m(this.endLineNumber,this.endColumn,y,x)}static fromPositions(y,x=y){return new m(y.lineNumber,y.column,x.lineNumber,x.column)}static fromRange(y,x){return x===0?new m(y.startLineNumber,y.startColumn,y.endLineNumber,y.endColumn):new m(y.endLineNumber,y.endColumn,y.startLineNumber,y.startColumn)}static liftSelection(y){return new m(y.selectionStartLineNumber,y.selectionStartColumn,y.positionLineNumber,y.positionColumn)}static selectionsArrEqual(y,x){if(y&&!x||!y&&x)return!1;if(!y&&!x)return!0;if(y.length!==x.length)return!1;for(let W=0,X=y.length;W<X;W++)if(!this.selectionsEqual(y[W],x[W]))return!1;return!0}static isISelection(y){return!!y&&typeof y.selectionStartLineNumber=="number"&&typeof y.selectionStartColumn=="number"&&typeof y.positionLineNumber=="number"&&typeof y.positionColumn=="number"}static createWithDirection(y,x,W,X,he){return he===0?new m(y,x,W,X):new m(W,X,y,x)}};var l7e=Object.create(null);function Re(m,y){if(vFe(y)){let x=l7e[y];if(x===void 0)throw new Error(`${m} references an unknown codicon: ${y}`);y=x}return l7e[m]=y,{id:m}}var c7e={add:Re("add",6e4),plus:Re("plus",6e4),gistNew:Re("gist-new",6e4),repoCreate:Re("repo-create",6e4),lightbulb:Re("lightbulb",60001),lightBulb:Re("light-bulb",60001),repo:Re("repo",60002),repoDelete:Re("repo-delete",60002),gistFork:Re("gist-fork",60003),repoForked:Re("repo-forked",60003),gitPullRequest:Re("git-pull-request",60004),gitPullRequestAbandoned:Re("git-pull-request-abandoned",60004),recordKeys:Re("record-keys",60005),keyboard:Re("keyboard",60005),tag:Re("tag",60006),gitPullRequestLabel:Re("git-pull-request-label",60006),tagAdd:Re("tag-add",60006),tagRemove:Re("tag-remove",60006),person:Re("person",60007),personFollow:Re("person-follow",60007),personOutline:Re("person-outline",60007),personFilled:Re("person-filled",60007),sourceControl:Re("source-control",60008),mirror:Re("mirror",60009),mirrorPublic:Re("mirror-public",60009),star:Re("star",60010),starAdd:Re("star-add",60010),starDelete:Re("star-delete",60010),starEmpty:Re("star-empty",60010),comment:Re("comment",60011),commentAdd:Re("comment-add",60011),alert:Re("alert",60012),warning:Re("warning",60012),search:Re("search",60013),searchSave:Re("search-save",60013),logOut:Re("log-out",60014),signOut:Re("sign-out",60014),logIn:Re("log-in",60015),signIn:Re("sign-in",60015),eye:Re("eye",60016),eyeUnwatch:Re("eye-unwatch",60016),eyeWatch:Re("eye-watch",60016),circleFilled:Re("circle-filled",60017),primitiveDot:Re("primitive-dot",60017),closeDirty:Re("close-dirty",60017),debugBreakpoint:Re("debug-breakpoint",60017),debugBreakpointDisabled:Re("debug-breakpoint-disabled",60017),debugHint:Re("debug-hint",60017),terminalDecorationSuccess:Re("terminal-decoration-success",60017),primitiveSquare:Re("primitive-square",60018),edit:Re("edit",60019),pencil:Re("pencil",60019),info:Re("info",60020),issueOpened:Re("issue-opened",60020),gistPrivate:Re("gist-private",60021),gitForkPrivate:Re("git-fork-private",60021),lock:Re("lock",60021),mirrorPrivate:Re("mirror-private",60021),close:Re("close",60022),removeClose:Re("remove-close",60022),x:Re("x",60022),repoSync:Re("repo-sync",60023),sync:Re("sync",60023),clone:Re("clone",60024),desktopDownload:Re("desktop-download",60024),beaker:Re("beaker",60025),microscope:Re("microscope",60025),vm:Re("vm",60026),deviceDesktop:Re("device-desktop",60026),file:Re("file",60027),more:Re("more",60028),ellipsis:Re("ellipsis",60028),kebabHorizontal:Re("kebab-horizontal",60028),mailReply:Re("mail-reply",60029),reply:Re("reply",60029),organization:Re("organization",60030),organizationFilled:Re("organization-filled",60030),organizationOutline:Re("organization-outline",60030),newFile:Re("new-file",60031),fileAdd:Re("file-add",60031),newFolder:Re("new-folder",60032),fileDirectoryCreate:Re("file-directory-create",60032),trash:Re("trash",60033),trashcan:Re("trashcan",60033),history:Re("history",60034),clock:Re("clock",60034),folder:Re("folder",60035),fileDirectory:Re("file-directory",60035),symbolFolder:Re("symbol-folder",60035),logoGithub:Re("logo-github",60036),markGithub:Re("mark-github",60036),github:Re("github",60036),terminal:Re("terminal",60037),console:Re("console",60037),repl:Re("repl",60037),zap:Re("zap",60038),symbolEvent:Re("symbol-event",60038),error:Re("error",60039),stop:Re("stop",60039),variable:Re("variable",60040),symbolVariable:Re("symbol-variable",60040),array:Re("array",60042),symbolArray:Re("symbol-array",60042),symbolModule:Re("symbol-module",60043),symbolPackage:Re("symbol-package",60043),symbolNamespace:Re("symbol-namespace",60043),symbolObject:Re("symbol-object",60043),symbolMethod:Re("symbol-method",60044),symbolFunction:Re("symbol-function",60044),symbolConstructor:Re("symbol-constructor",60044),symbolBoolean:Re("symbol-boolean",60047),symbolNull:Re("symbol-null",60047),symbolNumeric:Re("symbol-numeric",60048),symbolNumber:Re("symbol-number",60048),symbolStructure:Re("symbol-structure",60049),symbolStruct:Re("symbol-struct",60049),symbolParameter:Re("symbol-parameter",60050),symbolTypeParameter:Re("symbol-type-parameter",60050),symbolKey:Re("symbol-key",60051),symbolText:Re("symbol-text",60051),symbolReference:Re("symbol-reference",60052),goToFile:Re("go-to-file",60052),symbolEnum:Re("symbol-enum",60053),symbolValue:Re("symbol-value",60053),symbolRuler:Re("symbol-ruler",60054),symbolUnit:Re("symbol-unit",60054),activateBreakpoints:Re("activate-breakpoints",60055),archive:Re("archive",60056),arrowBoth:Re("arrow-both",60057),arrowDown:Re("arrow-down",60058),arrowLeft:Re("arrow-left",60059),arrowRight:Re("arrow-right",60060),arrowSmallDown:Re("arrow-small-down",60061),arrowSmallLeft:Re("arrow-small-left",60062),arrowSmallRight:Re("arrow-small-right",60063),arrowSmallUp:Re("arrow-small-up",60064),arrowUp:Re("arrow-up",60065),bell:Re("bell",60066),bold:Re("bold",60067),book:Re("book",60068),bookmark:Re("bookmark",60069),debugBreakpointConditionalUnverified:Re("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Re("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Re("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Re("debug-breakpoint-data-unverified",60072),debugBreakpointData:Re("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Re("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Re("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Re("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Re("debug-breakpoint-log-disabled",60075),briefcase:Re("briefcase",60076),broadcast:Re("broadcast",60077),browser:Re("browser",60078),bug:Re("bug",60079),calendar:Re("calendar",60080),caseSensitive:Re("case-sensitive",60081),check:Re("check",60082),checklist:Re("checklist",60083),chevronDown:Re("chevron-down",60084),chevronLeft:Re("chevron-left",60085),chevronRight:Re("chevron-right",60086),chevronUp:Re("chevron-up",60087),chromeClose:Re("chrome-close",60088),chromeMaximize:Re("chrome-maximize",60089),chromeMinimize:Re("chrome-minimize",60090),chromeRestore:Re("chrome-restore",60091),circleOutline:Re("circle-outline",60092),circle:Re("circle",60092),debugBreakpointUnverified:Re("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Re("terminal-decoration-incomplete",60092),circleSlash:Re("circle-slash",60093),circuitBoard:Re("circuit-board",60094),clearAll:Re("clear-all",60095),clippy:Re("clippy",60096),closeAll:Re("close-all",60097),cloudDownload:Re("cloud-download",60098),cloudUpload:Re("cloud-upload",60099),code:Re("code",60100),collapseAll:Re("collapse-all",60101),colorMode:Re("color-mode",60102),commentDiscussion:Re("comment-discussion",60103),creditCard:Re("credit-card",60105),dash:Re("dash",60108),dashboard:Re("dashboard",60109),database:Re("database",60110),debugContinue:Re("debug-continue",60111),debugDisconnect:Re("debug-disconnect",60112),debugPause:Re("debug-pause",60113),debugRestart:Re("debug-restart",60114),debugStart:Re("debug-start",60115),debugStepInto:Re("debug-step-into",60116),debugStepOut:Re("debug-step-out",60117),debugStepOver:Re("debug-step-over",60118),debugStop:Re("debug-stop",60119),debug:Re("debug",60120),deviceCameraVideo:Re("device-camera-video",60121),deviceCamera:Re("device-camera",60122),deviceMobile:Re("device-mobile",60123),diffAdded:Re("diff-added",60124),diffIgnored:Re("diff-ignored",60125),diffModified:Re("diff-modified",60126),diffRemoved:Re("diff-removed",60127),diffRenamed:Re("diff-renamed",60128),diff:Re("diff",60129),diffSidebyside:Re("diff-sidebyside",60129),discard:Re("discard",60130),editorLayout:Re("editor-layout",60131),emptyWindow:Re("empty-window",60132),exclude:Re("exclude",60133),extensions:Re("extensions",60134),eyeClosed:Re("eye-closed",60135),fileBinary:Re("file-binary",60136),fileCode:Re("file-code",60137),fileMedia:Re("file-media",60138),filePdf:Re("file-pdf",60139),fileSubmodule:Re("file-submodule",60140),fileSymlinkDirectory:Re("file-symlink-directory",60141),fileSymlinkFile:Re("file-symlink-file",60142),fileZip:Re("file-zip",60143),files:Re("files",60144),filter:Re("filter",60145),flame:Re("flame",60146),foldDown:Re("fold-down",60147),foldUp:Re("fold-up",60148),fold:Re("fold",60149),folderActive:Re("folder-active",60150),folderOpened:Re("folder-opened",60151),gear:Re("gear",60152),gift:Re("gift",60153),gistSecret:Re("gist-secret",60154),gist:Re("gist",60155),gitCommit:Re("git-commit",60156),gitCompare:Re("git-compare",60157),compareChanges:Re("compare-changes",60157),gitMerge:Re("git-merge",60158),githubAction:Re("github-action",60159),githubAlt:Re("github-alt",60160),globe:Re("globe",60161),grabber:Re("grabber",60162),graph:Re("graph",60163),gripper:Re("gripper",60164),heart:Re("heart",60165),home:Re("home",60166),horizontalRule:Re("horizontal-rule",60167),hubot:Re("hubot",60168),inbox:Re("inbox",60169),issueReopened:Re("issue-reopened",60171),issues:Re("issues",60172),italic:Re("italic",60173),jersey:Re("jersey",60174),json:Re("json",60175),kebabVertical:Re("kebab-vertical",60176),key:Re("key",60177),law:Re("law",60178),lightbulbAutofix:Re("lightbulb-autofix",60179),linkExternal:Re("link-external",60180),link:Re("link",60181),listOrdered:Re("list-ordered",60182),listUnordered:Re("list-unordered",60183),liveShare:Re("live-share",60184),loading:Re("loading",60185),location:Re("location",60186),mailRead:Re("mail-read",60187),mail:Re("mail",60188),markdown:Re("markdown",60189),megaphone:Re("megaphone",60190),mention:Re("mention",60191),milestone:Re("milestone",60192),gitPullRequestMilestone:Re("git-pull-request-milestone",60192),mortarBoard:Re("mortar-board",60193),move:Re("move",60194),multipleWindows:Re("multiple-windows",60195),mute:Re("mute",60196),noNewline:Re("no-newline",60197),note:Re("note",60198),octoface:Re("octoface",60199),openPreview:Re("open-preview",60200),package:Re("package",60201),paintcan:Re("paintcan",60202),pin:Re("pin",60203),play:Re("play",60204),run:Re("run",60204),plug:Re("plug",60205),preserveCase:Re("preserve-case",60206),preview:Re("preview",60207),project:Re("project",60208),pulse:Re("pulse",60209),question:Re("question",60210),quote:Re("quote",60211),radioTower:Re("radio-tower",60212),reactions:Re("reactions",60213),references:Re("references",60214),refresh:Re("refresh",60215),regex:Re("regex",60216),remoteExplorer:Re("remote-explorer",60217),remote:Re("remote",60218),remove:Re("remove",60219),replaceAll:Re("replace-all",60220),replace:Re("replace",60221),repoClone:Re("repo-clone",60222),repoForcePush:Re("repo-force-push",60223),repoPull:Re("repo-pull",60224),repoPush:Re("repo-push",60225),report:Re("report",60226),requestChanges:Re("request-changes",60227),rocket:Re("rocket",60228),rootFolderOpened:Re("root-folder-opened",60229),rootFolder:Re("root-folder",60230),rss:Re("rss",60231),ruby:Re("ruby",60232),saveAll:Re("save-all",60233),saveAs:Re("save-as",60234),save:Re("save",60235),screenFull:Re("screen-full",60236),screenNormal:Re("screen-normal",60237),searchStop:Re("search-stop",60238),server:Re("server",60240),settingsGear:Re("settings-gear",60241),settings:Re("settings",60242),shield:Re("shield",60243),smiley:Re("smiley",60244),sortPrecedence:Re("sort-precedence",60245),splitHorizontal:Re("split-horizontal",60246),splitVertical:Re("split-vertical",60247),squirrel:Re("squirrel",60248),starFull:Re("star-full",60249),starHalf:Re("star-half",60250),symbolClass:Re("symbol-class",60251),symbolColor:Re("symbol-color",60252),symbolConstant:Re("symbol-constant",60253),symbolEnumMember:Re("symbol-enum-member",60254),symbolField:Re("symbol-field",60255),symbolFile:Re("symbol-file",60256),symbolInterface:Re("symbol-interface",60257),symbolKeyword:Re("symbol-keyword",60258),symbolMisc:Re("symbol-misc",60259),symbolOperator:Re("symbol-operator",60260),symbolProperty:Re("symbol-property",60261),wrench:Re("wrench",60261),wrenchSubaction:Re("wrench-subaction",60261),symbolSnippet:Re("symbol-snippet",60262),tasklist:Re("tasklist",60263),telescope:Re("telescope",60264),textSize:Re("text-size",60265),threeBars:Re("three-bars",60266),thumbsdown:Re("thumbsdown",60267),thumbsup:Re("thumbsup",60268),tools:Re("tools",60269),triangleDown:Re("triangle-down",60270),triangleLeft:Re("triangle-left",60271),triangleRight:Re("triangle-right",60272),triangleUp:Re("triangle-up",60273),twitter:Re("twitter",60274),unfold:Re("unfold",60275),unlock:Re("unlock",60276),unmute:Re("unmute",60277),unverified:Re("unverified",60278),verified:Re("verified",60279),versions:Re("versions",60280),vmActive:Re("vm-active",60281),vmOutline:Re("vm-outline",60282),vmRunning:Re("vm-running",60283),watch:Re("watch",60284),whitespace:Re("whitespace",60285),wholeWord:Re("whole-word",60286),window:Re("window",60287),wordWrap:Re("word-wrap",60288),zoomIn:Re("zoom-in",60289),zoomOut:Re("zoom-out",60290),listFilter:Re("list-filter",60291),listFlat:Re("list-flat",60292),listSelection:Re("list-selection",60293),selection:Re("selection",60293),listTree:Re("list-tree",60294),debugBreakpointFunctionUnverified:Re("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Re("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Re("debug-breakpoint-function-disabled",60296),debugStackframeActive:Re("debug-stackframe-active",60297),circleSmallFilled:Re("circle-small-filled",60298),debugStackframeDot:Re("debug-stackframe-dot",60298),terminalDecorationMark:Re("terminal-decoration-mark",60298),debugStackframe:Re("debug-stackframe",60299),debugStackframeFocused:Re("debug-stackframe-focused",60299),debugBreakpointUnsupported:Re("debug-breakpoint-unsupported",60300),symbolString:Re("symbol-string",60301),debugReverseContinue:Re("debug-reverse-continue",60302),debugStepBack:Re("debug-step-back",60303),debugRestartFrame:Re("debug-restart-frame",60304),debugAlt:Re("debug-alt",60305),callIncoming:Re("call-incoming",60306),callOutgoing:Re("call-outgoing",60307),menu:Re("menu",60308),expandAll:Re("expand-all",60309),feedback:Re("feedback",60310),gitPullRequestReviewer:Re("git-pull-request-reviewer",60310),groupByRefType:Re("group-by-ref-type",60311),ungroupByRefType:Re("ungroup-by-ref-type",60312),account:Re("account",60313),gitPullRequestAssignee:Re("git-pull-request-assignee",60313),bellDot:Re("bell-dot",60314),debugConsole:Re("debug-console",60315),library:Re("library",60316),output:Re("output",60317),runAll:Re("run-all",60318),syncIgnored:Re("sync-ignored",60319),pinned:Re("pinned",60320),githubInverted:Re("github-inverted",60321),serverProcess:Re("server-process",60322),serverEnvironment:Re("server-environment",60323),pass:Re("pass",60324),issueClosed:Re("issue-closed",60324),stopCircle:Re("stop-circle",60325),playCircle:Re("play-circle",60326),record:Re("record",60327),debugAltSmall:Re("debug-alt-small",60328),vmConnect:Re("vm-connect",60329),cloud:Re("cloud",60330),merge:Re("merge",60331),export:Re("export",60332),graphLeft:Re("graph-left",60333),magnet:Re("magnet",60334),notebook:Re("notebook",60335),redo:Re("redo",60336),checkAll:Re("check-all",60337),pinnedDirty:Re("pinned-dirty",60338),passFilled:Re("pass-filled",60339),circleLargeFilled:Re("circle-large-filled",60340),circleLarge:Re("circle-large",60341),circleLargeOutline:Re("circle-large-outline",60341),combine:Re("combine",60342),gather:Re("gather",60342),table:Re("table",60343),variableGroup:Re("variable-group",60344),typeHierarchy:Re("type-hierarchy",60345),typeHierarchySub:Re("type-hierarchy-sub",60346),typeHierarchySuper:Re("type-hierarchy-super",60347),gitPullRequestCreate:Re("git-pull-request-create",60348),runAbove:Re("run-above",60349),runBelow:Re("run-below",60350),notebookTemplate:Re("notebook-template",60351),debugRerun:Re("debug-rerun",60352),workspaceTrusted:Re("workspace-trusted",60353),workspaceUntrusted:Re("workspace-untrusted",60354),workspaceUnknown:Re("workspace-unknown",60355),terminalCmd:Re("terminal-cmd",60356),terminalDebian:Re("terminal-debian",60357),terminalLinux:Re("terminal-linux",60358),terminalPowershell:Re("terminal-powershell",60359),terminalTmux:Re("terminal-tmux",60360),terminalUbuntu:Re("terminal-ubuntu",60361),terminalBash:Re("terminal-bash",60362),arrowSwap:Re("arrow-swap",60363),copy:Re("copy",60364),personAdd:Re("person-add",60365),filterFilled:Re("filter-filled",60366),wand:Re("wand",60367),debugLineByLine:Re("debug-line-by-line",60368),inspect:Re("inspect",60369),layers:Re("layers",60370),layersDot:Re("layers-dot",60371),layersActive:Re("layers-active",60372),compass:Re("compass",60373),compassDot:Re("compass-dot",60374),compassActive:Re("compass-active",60375),azure:Re("azure",60376),issueDraft:Re("issue-draft",60377),gitPullRequestClosed:Re("git-pull-request-closed",60378),gitPullRequestDraft:Re("git-pull-request-draft",60379),debugAll:Re("debug-all",60380),debugCoverage:Re("debug-coverage",60381),runErrors:Re("run-errors",60382),folderLibrary:Re("folder-library",60383),debugContinueSmall:Re("debug-continue-small",60384),beakerStop:Re("beaker-stop",60385),graphLine:Re("graph-line",60386),graphScatter:Re("graph-scatter",60387),pieChart:Re("pie-chart",60388),bracket:Re("bracket",60175),bracketDot:Re("bracket-dot",60389),bracketError:Re("bracket-error",60390),lockSmall:Re("lock-small",60391),azureDevops:Re("azure-devops",60392),verifiedFilled:Re("verified-filled",60393),newline:Re("newline",60394),layout:Re("layout",60395),layoutActivitybarLeft:Re("layout-activitybar-left",60396),layoutActivitybarRight:Re("layout-activitybar-right",60397),layoutPanelLeft:Re("layout-panel-left",60398),layoutPanelCenter:Re("layout-panel-center",60399),layoutPanelJustify:Re("layout-panel-justify",60400),layoutPanelRight:Re("layout-panel-right",60401),layoutPanel:Re("layout-panel",60402),layoutSidebarLeft:Re("layout-sidebar-left",60403),layoutSidebarRight:Re("layout-sidebar-right",60404),layoutStatusbar:Re("layout-statusbar",60405),layoutMenubar:Re("layout-menubar",60406),layoutCentered:Re("layout-centered",60407),target:Re("target",60408),indent:Re("indent",60409),recordSmall:Re("record-small",60410),errorSmall:Re("error-small",60411),terminalDecorationError:Re("terminal-decoration-error",60411),arrowCircleDown:Re("arrow-circle-down",60412),arrowCircleLeft:Re("arrow-circle-left",60413),arrowCircleRight:Re("arrow-circle-right",60414),arrowCircleUp:Re("arrow-circle-up",60415),layoutSidebarRightOff:Re("layout-sidebar-right-off",60416),layoutPanelOff:Re("layout-panel-off",60417),layoutSidebarLeftOff:Re("layout-sidebar-left-off",60418),blank:Re("blank",60419),heartFilled:Re("heart-filled",60420),map:Re("map",60421),mapHorizontal:Re("map-horizontal",60421),foldHorizontal:Re("fold-horizontal",60421),mapFilled:Re("map-filled",60422),mapHorizontalFilled:Re("map-horizontal-filled",60422),foldHorizontalFilled:Re("fold-horizontal-filled",60422),circleSmall:Re("circle-small",60423),bellSlash:Re("bell-slash",60424),bellSlashDot:Re("bell-slash-dot",60425),commentUnresolved:Re("comment-unresolved",60426),gitPullRequestGoToChanges:Re("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Re("git-pull-request-new-changes",60428),searchFuzzy:Re("search-fuzzy",60429),commentDraft:Re("comment-draft",60430),send:Re("send",60431),sparkle:Re("sparkle",60432),insert:Re("insert",60433),mic:Re("mic",60434),thumbsdownFilled:Re("thumbsdown-filled",60435),thumbsupFilled:Re("thumbsup-filled",60436),coffee:Re("coffee",60437),snake:Re("snake",60438),game:Re("game",60439),vr:Re("vr",60440),chip:Re("chip",60441),piano:Re("piano",60442),music:Re("music",60443),micFilled:Re("mic-filled",60444),repoFetch:Re("repo-fetch",60445),copilot:Re("copilot",60446),lightbulbSparkle:Re("lightbulb-sparkle",60447),robot:Re("robot",60448),sparkleFilled:Re("sparkle-filled",60449),diffSingle:Re("diff-single",60450),diffMultiple:Re("diff-multiple",60451),surroundWith:Re("surround-with",60452),share:Re("share",60453),gitStash:Re("git-stash",60454),gitStashApply:Re("git-stash-apply",60455),gitStashPop:Re("git-stash-pop",60456),vscode:Re("vscode",60457),vscodeInsiders:Re("vscode-insiders",60458),codeOss:Re("code-oss",60459),runCoverage:Re("run-coverage",60460),runAllCoverage:Re("run-all-coverage",60461),coverage:Re("coverage",60462),githubProject:Re("github-project",60463),mapVertical:Re("map-vertical",60464),foldVertical:Re("fold-vertical",60464),mapVerticalFilled:Re("map-vertical-filled",60465),foldVerticalFilled:Re("fold-vertical-filled",60465),goToSearch:Re("go-to-search",60466),percentage:Re("percentage",60467),sortPercentage:Re("sort-percentage",60467),attach:Re("attach",60468),goToEditingSession:Re("go-to-editing-session",60469),editSession:Re("edit-session",60470),codeReview:Re("code-review",60471),copilotWarning:Re("copilot-warning",60472),python:Re("python",60473),copilotLarge:Re("copilot-large",60474),copilotWarningLarge:Re("copilot-warning-large",60475),keyboardTab:Re("keyboard-tab",60476),copilotBlocked:Re("copilot-blocked",60477),copilotNotConnected:Re("copilot-not-connected",60478),flag:Re("flag",60479),lightbulbEmpty:Re("lightbulb-empty",60480),symbolMethodArrow:Re("symbol-method-arrow",60481),copilotUnavailable:Re("copilot-unavailable",60482),repoPinned:Re("repo-pinned",60483),keyboardTabAbove:Re("keyboard-tab-above",60484),keyboardTabBelow:Re("keyboard-tab-below",60485),gitPullRequestDone:Re("git-pull-request-done",60486),mcp:Re("mcp",60487),extensionsLarge:Re("extensions-large",60488),layoutPanelDock:Re("layout-panel-dock",60489),layoutSidebarLeftDock:Re("layout-sidebar-left-dock",60490),layoutSidebarRightDock:Re("layout-sidebar-right-dock",60491),copilotInProgress:Re("copilot-in-progress",60492),copilotError:Re("copilot-error",60493),copilotSuccess:Re("copilot-success",60494),chatSparkle:Re("chat-sparkle",60495),searchSparkle:Re("search-sparkle",60496),editSparkle:Re("edit-sparkle",60497),copilotSnooze:Re("copilot-snooze",60498),sendToRemoteAgent:Re("send-to-remote-agent",60499),commentDiscussionSparkle:Re("comment-discussion-sparkle",60500),chatSparkleWarning:Re("chat-sparkle-warning",60501),chatSparkleError:Re("chat-sparkle-error",60502),collection:Re("collection",60503),newCollection:Re("new-collection",60504),thinking:Re("thinking",60505),build:Re("build",60506),commentDiscussionQuote:Re("comment-discussion-quote",60507),cursor:Re("cursor",60508),eraser:Re("eraser",60509),fileText:Re("file-text",60510),gitLens:Re("git-lens",60511),quotes:Re("quotes",60512),rename:Re("rename",60513),runWithDeps:Re("run-with-deps",60514),debugConnected:Re("debug-connected",60515),strikethrough:Re("strikethrough",60516),openInProduct:Re("open-in-product",60517),indexZero:Re("index-zero",60518),agent:Re("agent",60519),editCode:Re("edit-code",60520),repoSelected:Re("repo-selected",60521),skip:Re("skip",60522),mergeInto:Re("merge-into",60523),gitBranchChanges:Re("git-branch-changes",60524),gitBranchStagedChanges:Re("git-branch-staged-changes",60525),gitBranchConflicts:Re("git-branch-conflicts",60526),gitBranch:Re("git-branch",60527),gitBranchCreate:Re("git-branch-create",60527),gitBranchDelete:Re("git-branch-delete",60527),searchLarge:Re("search-large",60528),terminalGitBash:Re("terminal-git-bash",60529)};var lbt={dialogError:Re("dialog-error","error"),dialogWarning:Re("dialog-warning","warning"),dialogInfo:Re("dialog-info","info"),dialogClose:Re("dialog-close","close"),treeItemExpanded:Re("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Re("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Re("tree-filter-on-type-off","list-selection"),treeFilterClear:Re("tree-filter-clear","close"),treeItemLoading:Re("tree-item-loading","loading"),menuSelection:Re("menu-selection","check"),menuSubmenu:Re("menu-submenu","chevron-right"),menuBarMore:Re("menubar-more","more"),scrollbarButtonLeft:Re("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Re("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Re("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Re("scrollbar-button-down","triangle-down"),toolBarMore:Re("toolbar-more","more"),quickInputBack:Re("quick-input-back","arrow-left"),dropDownButton:Re("drop-down-button",60084),symbolCustomColor:Re("symbol-customcolor",60252),exportIcon:Re("export",60332),workspaceUnspecified:Re("workspace-unspecified",60355),newLine:Re("newline",60394),thumbsDownFilled:Re("thumbsdown-filled",60435),thumbsUpFilled:Re("thumbsup-filled",60436),gitFetch:Re("git-fetch",60445),lightbulbSparkleAutofix:Re("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Re("debug-breakpoint-pending",60377)},vs={...c7e,...lbt};var sQ=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Xg,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(y){this._onDidChange.fire({changedLanguages:y,changedColorMap:!1})}register(y,x){return this._tokenizationSupports.set(y,x),this.handleChange([y]),YC(()=>{this._tokenizationSupports.get(y)===x&&(this._tokenizationSupports.delete(y),this.handleChange([y]))})}get(y){return this._tokenizationSupports.get(y)||null}registerFactory(y,x){this._factories.get(y)?.dispose();let W=new vve(this,y,x);return this._factories.set(y,W),YC(()=>{let X=this._factories.get(y);!X||X!==W||(this._factories.delete(y),X.dispose())})}async getOrCreate(y){let x=this.get(y);if(x)return x;let W=this._factories.get(y);return!W||W.isResolved?null:(await W.resolve(),this.get(y))}isResolved(y){if(this.get(y))return!0;let W=this._factories.get(y);return!!(!W||W.isResolved)}setColorMap(y){this._colorMap=y,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}},vve=class extends CS{get isResolved(){return this._isResolved}constructor(y,x,W){super(),this._registry=y,this._languageId=x,this._factory=W,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(){let y=await this._factory.tokenizationSupport;this._isResolved=!0,y&&!this._isDisposed&&this._register(this._registry.register(this._languageId,y))}};var lQ=class{constructor(y,x,W){this.offset=y,this.type=x,this.language=W,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var d7e;(function(m){m[m.Increase=0]="Increase",m[m.Decrease=1]="Decrease"})(d7e||(d7e={}));var u7e;(function(m){let y=new Map;y.set(0,vs.symbolMethod),y.set(1,vs.symbolFunction),y.set(2,vs.symbolConstructor),y.set(3,vs.symbolField),y.set(4,vs.symbolVariable),y.set(5,vs.symbolClass),y.set(6,vs.symbolStruct),y.set(7,vs.symbolInterface),y.set(8,vs.symbolModule),y.set(9,vs.symbolProperty),y.set(10,vs.symbolEvent),y.set(11,vs.symbolOperator),y.set(12,vs.symbolUnit),y.set(13,vs.symbolValue),y.set(15,vs.symbolEnum),y.set(14,vs.symbolConstant),y.set(15,vs.symbolEnum),y.set(16,vs.symbolEnumMember),y.set(17,vs.symbolKeyword),y.set(28,vs.symbolSnippet),y.set(18,vs.symbolText),y.set(19,vs.symbolColor),y.set(20,vs.symbolFile),y.set(21,vs.symbolReference),y.set(22,vs.symbolCustomColor),y.set(23,vs.symbolFolder),y.set(24,vs.symbolTypeParameter),y.set(25,vs.account),y.set(26,vs.issues),y.set(27,vs.tools);function x(Me){let Ke=y.get(Me);return Ke||(console.info("No codicon found for CompletionItemKind "+Me),Ke=vs.symbolProperty),Ke}m.toIcon=x;function W(Me){switch(Me){case 0:return xs(728,"Method");case 1:return xs(729,"Function");case 2:return xs(730,"Constructor");case 3:return xs(731,"Field");case 4:return xs(732,"Variable");case 5:return xs(733,"Class");case 6:return xs(734,"Struct");case 7:return xs(735,"Interface");case 8:return xs(736,"Module");case 9:return xs(737,"Property");case 10:return xs(738,"Event");case 11:return xs(739,"Operator");case 12:return xs(740,"Unit");case 13:return xs(741,"Value");case 14:return xs(742,"Constant");case 15:return xs(743,"Enum");case 16:return xs(744,"Enum Member");case 17:return xs(745,"Keyword");case 18:return xs(746,"Text");case 19:return xs(747,"Color");case 20:return xs(748,"File");case 21:return xs(749,"Reference");case 22:return xs(750,"Custom Color");case 23:return xs(751,"Folder");case 24:return xs(752,"Type Parameter");case 25:return xs(753,"User");case 26:return xs(754,"Issue");case 27:return xs(755,"Tool");case 28:return xs(756,"Snippet");default:return""}}m.toLabel=W;let X=new Map;X.set("method",0),X.set("function",1),X.set("constructor",2),X.set("field",3),X.set("variable",4),X.set("class",5),X.set("struct",6),X.set("interface",7),X.set("module",8),X.set("property",9),X.set("event",10),X.set("operator",11),X.set("unit",12),X.set("value",13),X.set("constant",14),X.set("enum",15),X.set("enum-member",16),X.set("enumMember",16),X.set("keyword",17),X.set("snippet",28),X.set("text",18),X.set("color",19),X.set("file",20),X.set("reference",21),X.set("customcolor",22),X.set("folder",23),X.set("type-parameter",24),X.set("typeParameter",24),X.set("account",25),X.set("issue",26),X.set("tool",27);function he(Me,Ke){let ae=X.get(Me);return typeof ae>"u"&&!Ke&&(ae=9),ae}m.fromString=he})(u7e||(u7e={}));var p7e;(function(m){m[m.Automatic=0]="Automatic",m[m.Explicit=1]="Explicit"})(p7e||(p7e={}));var f7e;(function(m){m[m.Code=1]="Code",m[m.Label=2]="Label"})(f7e||(f7e={}));var m7e;(function(m){m[m.Accepted=0]="Accepted",m[m.Rejected=1]="Rejected",m[m.Ignored=2]="Ignored"})(m7e||(m7e={}));var h7e;(function(m){m[m.Automatic=0]="Automatic",m[m.PasteAs=1]="PasteAs"})(h7e||(h7e={}));var _7e;(function(m){m[m.Invoke=1]="Invoke",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.ContentChange=3]="ContentChange"})(_7e||(_7e={}));var g7e;(function(m){m[m.Text=0]="Text",m[m.Read=1]="Read",m[m.Write=2]="Write"})(g7e||(g7e={}));var WTt={17:xs(757,"array"),16:xs(758,"boolean"),4:xs(759,"class"),13:xs(760,"constant"),8:xs(761,"constructor"),9:xs(762,"enumeration"),21:xs(763,"enumeration member"),23:xs(764,"event"),7:xs(765,"field"),0:xs(766,"file"),11:xs(767,"function"),10:xs(768,"interface"),19:xs(769,"key"),5:xs(770,"method"),1:xs(771,"module"),2:xs(772,"namespace"),20:xs(773,"null"),15:xs(774,"number"),18:xs(775,"object"),24:xs(776,"operator"),3:xs(777,"package"),6:xs(778,"property"),14:xs(779,"string"),22:xs(780,"struct"),25:xs(781,"type parameter"),12:xs(782,"variable")};var y7e;(function(m){let y=new Map;y.set(0,vs.symbolFile),y.set(1,vs.symbolModule),y.set(2,vs.symbolNamespace),y.set(3,vs.symbolPackage),y.set(4,vs.symbolClass),y.set(5,vs.symbolMethod),y.set(6,vs.symbolProperty),y.set(7,vs.symbolField),y.set(8,vs.symbolConstructor),y.set(9,vs.symbolEnum),y.set(10,vs.symbolInterface),y.set(11,vs.symbolFunction),y.set(12,vs.symbolVariable),y.set(13,vs.symbolConstant),y.set(14,vs.symbolString),y.set(15,vs.symbolNumber),y.set(16,vs.symbolBoolean),y.set(17,vs.symbolArray),y.set(18,vs.symbolObject),y.set(19,vs.symbolKey),y.set(20,vs.symbolNull),y.set(21,vs.symbolEnumMember),y.set(22,vs.symbolStruct),y.set(23,vs.symbolEvent),y.set(24,vs.symbolOperator),y.set(25,vs.symbolTypeParameter);function x(he){let Me=y.get(he);return Me||(console.info("No codicon found for SymbolKind "+he),Me=vs.symbolProperty),Me}m.toIcon=x;let W=new Map;W.set(0,20),W.set(1,8),W.set(2,8),W.set(3,8),W.set(4,5),W.set(5,0),W.set(6,9),W.set(7,3),W.set(8,2),W.set(9,15),W.set(10,7),W.set(11,1),W.set(12,4),W.set(13,14),W.set(14,18),W.set(15,13),W.set(16,13),W.set(17,13),W.set(18,13),W.set(19,17),W.set(20,13),W.set(21,16),W.set(22,6),W.set(23,10),W.set(24,11),W.set(25,24);function X(he){let Me=W.get(he);return Me===void 0&&(console.info("No completion kind found for SymbolKind "+he),Me=20),Me}m.toCompletionKind=X})(y7e||(y7e={}));var v7e=class m{static{this.Comment=new m("comment")}static{this.Imports=new m("imports")}static{this.Region=new m("region")}static fromValue(y){switch(y){case"comment":return m.Comment;case"imports":return m.Imports;case"region":return m.Region}return new m(y)}constructor(y){this.value=y}},b7e;(function(m){m[m.AIGenerated=1]="AIGenerated"})(b7e||(b7e={}));var T7e;(function(m){m[m.Invoke=0]="Invoke",m[m.Automatic=1]="Automatic"})(T7e||(T7e={}));var S7e;(function(m){function y(x){return!x||typeof x!="object"?!1:typeof x.id=="string"&&typeof x.title=="string"}m.is=y})(S7e||(S7e={}));var E7e;(function(m){m[m.Type=1]="Type",m[m.Parameter=2]="Parameter"})(E7e||(E7e={}));var FTt=new sQ;var A7e;(function(m){m[m.Unknown=0]="Unknown",m[m.Disabled=1]="Disabled",m[m.Enabled=2]="Enabled"})(A7e||(A7e={}));var I7e;(function(m){m[m.Invoke=1]="Invoke",m[m.Auto=2]="Auto"})(I7e||(I7e={}));var x7e;(function(m){m[m.None=0]="None",m[m.KeepWhitespace=1]="KeepWhitespace",m[m.InsertAsSnippet=4]="InsertAsSnippet"})(x7e||(x7e={}));var R7e;(function(m){m[m.Method=0]="Method",m[m.Function=1]="Function",m[m.Constructor=2]="Constructor",m[m.Field=3]="Field",m[m.Variable=4]="Variable",m[m.Class=5]="Class",m[m.Struct=6]="Struct",m[m.Interface=7]="Interface",m[m.Module=8]="Module",m[m.Property=9]="Property",m[m.Event=10]="Event",m[m.Operator=11]="Operator",m[m.Unit=12]="Unit",m[m.Value=13]="Value",m[m.Constant=14]="Constant",m[m.Enum=15]="Enum",m[m.EnumMember=16]="EnumMember",m[m.Keyword=17]="Keyword",m[m.Text=18]="Text",m[m.Color=19]="Color",m[m.File=20]="File",m[m.Reference=21]="Reference",m[m.Customcolor=22]="Customcolor",m[m.Folder=23]="Folder",m[m.TypeParameter=24]="TypeParameter",m[m.User=25]="User",m[m.Issue=26]="Issue",m[m.Tool=27]="Tool",m[m.Snippet=28]="Snippet"})(R7e||(R7e={}));var D7e;(function(m){m[m.Deprecated=1]="Deprecated"})(D7e||(D7e={}));var C7e;(function(m){m[m.Invoke=0]="Invoke",m[m.TriggerCharacter=1]="TriggerCharacter",m[m.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(C7e||(C7e={}));var N7e;(function(m){m[m.EXACT=0]="EXACT",m[m.ABOVE=1]="ABOVE",m[m.BELOW=2]="BELOW"})(N7e||(N7e={}));var M7e;(function(m){m[m.NotSet=0]="NotSet",m[m.ContentFlush=1]="ContentFlush",m[m.RecoverFromMarkers=2]="RecoverFromMarkers",m[m.Explicit=3]="Explicit",m[m.Paste=4]="Paste",m[m.Undo=5]="Undo",m[m.Redo=6]="Redo"})(M7e||(M7e={}));var P7e;(function(m){m[m.LF=1]="LF",m[m.CRLF=2]="CRLF"})(P7e||(P7e={}));var L7e;(function(m){m[m.Text=0]="Text",m[m.Read=1]="Read",m[m.Write=2]="Write"})(L7e||(L7e={}));var k7e;(function(m){m[m.None=0]="None",m[m.Keep=1]="Keep",m[m.Brackets=2]="Brackets",m[m.Advanced=3]="Advanced",m[m.Full=4]="Full"})(k7e||(k7e={}));var w7e;(function(m){m[m.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",m[m.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",m[m.accessibilitySupport=2]="accessibilitySupport",m[m.accessibilityPageSize=3]="accessibilityPageSize",m[m.allowOverflow=4]="allowOverflow",m[m.allowVariableLineHeights=5]="allowVariableLineHeights",m[m.allowVariableFonts=6]="allowVariableFonts",m[m.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",m[m.ariaLabel=8]="ariaLabel",m[m.ariaRequired=9]="ariaRequired",m[m.autoClosingBrackets=10]="autoClosingBrackets",m[m.autoClosingComments=11]="autoClosingComments",m[m.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",m[m.autoClosingDelete=13]="autoClosingDelete",m[m.autoClosingOvertype=14]="autoClosingOvertype",m[m.autoClosingQuotes=15]="autoClosingQuotes",m[m.autoIndent=16]="autoIndent",m[m.autoIndentOnPaste=17]="autoIndentOnPaste",m[m.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",m[m.automaticLayout=19]="automaticLayout",m[m.autoSurround=20]="autoSurround",m[m.bracketPairColorization=21]="bracketPairColorization",m[m.guides=22]="guides",m[m.codeLens=23]="codeLens",m[m.codeLensFontFamily=24]="codeLensFontFamily",m[m.codeLensFontSize=25]="codeLensFontSize",m[m.colorDecorators=26]="colorDecorators",m[m.colorDecoratorsLimit=27]="colorDecoratorsLimit",m[m.columnSelection=28]="columnSelection",m[m.comments=29]="comments",m[m.contextmenu=30]="contextmenu",m[m.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",m[m.cursorBlinking=32]="cursorBlinking",m[m.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",m[m.cursorStyle=34]="cursorStyle",m[m.cursorSurroundingLines=35]="cursorSurroundingLines",m[m.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",m[m.cursorWidth=37]="cursorWidth",m[m.cursorHeight=38]="cursorHeight",m[m.disableLayerHinting=39]="disableLayerHinting",m[m.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",m[m.domReadOnly=41]="domReadOnly",m[m.dragAndDrop=42]="dragAndDrop",m[m.dropIntoEditor=43]="dropIntoEditor",m[m.editContext=44]="editContext",m[m.emptySelectionClipboard=45]="emptySelectionClipboard",m[m.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",m[m.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",m[m.extraEditorClassName=48]="extraEditorClassName",m[m.fastScrollSensitivity=49]="fastScrollSensitivity",m[m.find=50]="find",m[m.fixedOverflowWidgets=51]="fixedOverflowWidgets",m[m.folding=52]="folding",m[m.foldingStrategy=53]="foldingStrategy",m[m.foldingHighlight=54]="foldingHighlight",m[m.foldingImportsByDefault=55]="foldingImportsByDefault",m[m.foldingMaximumRegions=56]="foldingMaximumRegions",m[m.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",m[m.fontFamily=58]="fontFamily",m[m.fontInfo=59]="fontInfo",m[m.fontLigatures=60]="fontLigatures",m[m.fontSize=61]="fontSize",m[m.fontWeight=62]="fontWeight",m[m.fontVariations=63]="fontVariations",m[m.formatOnPaste=64]="formatOnPaste",m[m.formatOnType=65]="formatOnType",m[m.glyphMargin=66]="glyphMargin",m[m.gotoLocation=67]="gotoLocation",m[m.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",m[m.hover=69]="hover",m[m.inDiffEditor=70]="inDiffEditor",m[m.inlineSuggest=71]="inlineSuggest",m[m.letterSpacing=72]="letterSpacing",m[m.lightbulb=73]="lightbulb",m[m.lineDecorationsWidth=74]="lineDecorationsWidth",m[m.lineHeight=75]="lineHeight",m[m.lineNumbers=76]="lineNumbers",m[m.lineNumbersMinChars=77]="lineNumbersMinChars",m[m.linkedEditing=78]="linkedEditing",m[m.links=79]="links",m[m.matchBrackets=80]="matchBrackets",m[m.minimap=81]="minimap",m[m.mouseStyle=82]="mouseStyle",m[m.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",m[m.mouseWheelZoom=84]="mouseWheelZoom",m[m.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",m[m.multiCursorModifier=86]="multiCursorModifier",m[m.mouseMiddleClickAction=87]="mouseMiddleClickAction",m[m.multiCursorPaste=88]="multiCursorPaste",m[m.multiCursorLimit=89]="multiCursorLimit",m[m.occurrencesHighlight=90]="occurrencesHighlight",m[m.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",m[m.overtypeCursorStyle=92]="overtypeCursorStyle",m[m.overtypeOnPaste=93]="overtypeOnPaste",m[m.overviewRulerBorder=94]="overviewRulerBorder",m[m.overviewRulerLanes=95]="overviewRulerLanes",m[m.padding=96]="padding",m[m.pasteAs=97]="pasteAs",m[m.parameterHints=98]="parameterHints",m[m.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",m[m.placeholder=100]="placeholder",m[m.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",m[m.quickSuggestions=102]="quickSuggestions",m[m.quickSuggestionsDelay=103]="quickSuggestionsDelay",m[m.readOnly=104]="readOnly",m[m.readOnlyMessage=105]="readOnlyMessage",m[m.renameOnType=106]="renameOnType",m[m.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",m[m.renderControlCharacters=108]="renderControlCharacters",m[m.renderFinalNewline=109]="renderFinalNewline",m[m.renderLineHighlight=110]="renderLineHighlight",m[m.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",m[m.renderValidationDecorations=112]="renderValidationDecorations",m[m.renderWhitespace=113]="renderWhitespace",m[m.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",m[m.roundedSelection=115]="roundedSelection",m[m.rulers=116]="rulers",m[m.scrollbar=117]="scrollbar",m[m.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",m[m.scrollBeyondLastLine=119]="scrollBeyondLastLine",m[m.scrollPredominantAxis=120]="scrollPredominantAxis",m[m.selectionClipboard=121]="selectionClipboard",m[m.selectionHighlight=122]="selectionHighlight",m[m.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",m[m.selectionHighlightMultiline=124]="selectionHighlightMultiline",m[m.selectOnLineNumbers=125]="selectOnLineNumbers",m[m.showFoldingControls=126]="showFoldingControls",m[m.showUnused=127]="showUnused",m[m.snippetSuggestions=128]="snippetSuggestions",m[m.smartSelect=129]="smartSelect",m[m.smoothScrolling=130]="smoothScrolling",m[m.stickyScroll=131]="stickyScroll",m[m.stickyTabStops=132]="stickyTabStops",m[m.stopRenderingLineAfter=133]="stopRenderingLineAfter",m[m.suggest=134]="suggest",m[m.suggestFontSize=135]="suggestFontSize",m[m.suggestLineHeight=136]="suggestLineHeight",m[m.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",m[m.suggestSelection=138]="suggestSelection",m[m.tabCompletion=139]="tabCompletion",m[m.tabIndex=140]="tabIndex",m[m.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",m[m.unicodeHighlighting=142]="unicodeHighlighting",m[m.unusualLineTerminators=143]="unusualLineTerminators",m[m.useShadowDOM=144]="useShadowDOM",m[m.useTabStops=145]="useTabStops",m[m.wordBreak=146]="wordBreak",m[m.wordSegmenterLocales=147]="wordSegmenterLocales",m[m.wordSeparators=148]="wordSeparators",m[m.wordWrap=149]="wordWrap",m[m.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",m[m.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",m[m.wordWrapColumn=152]="wordWrapColumn",m[m.wordWrapOverride1=153]="wordWrapOverride1",m[m.wordWrapOverride2=154]="wordWrapOverride2",m[m.wrappingIndent=155]="wrappingIndent",m[m.wrappingStrategy=156]="wrappingStrategy",m[m.showDeprecated=157]="showDeprecated",m[m.inertialScroll=158]="inertialScroll",m[m.inlayHints=159]="inlayHints",m[m.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",m[m.effectiveCursorStyle=161]="effectiveCursorStyle",m[m.editorClassName=162]="editorClassName",m[m.pixelRatio=163]="pixelRatio",m[m.tabFocusMode=164]="tabFocusMode",m[m.layoutInfo=165]="layoutInfo",m[m.wrappingInfo=166]="wrappingInfo",m[m.defaultColorDecorators=167]="defaultColorDecorators",m[m.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",m[m.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",m[m.effectiveEditContext=170]="effectiveEditContext",m[m.scrollOnMiddleClick=171]="scrollOnMiddleClick",m[m.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(w7e||(w7e={}));var O7e;(function(m){m[m.TextDefined=0]="TextDefined",m[m.LF=1]="LF",m[m.CRLF=2]="CRLF"})(O7e||(O7e={}));var W7e;(function(m){m[m.LF=0]="LF",m[m.CRLF=1]="CRLF"})(W7e||(W7e={}));var F7e;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=3]="Right"})(F7e||(F7e={}));var z7e;(function(m){m[m.Increase=0]="Increase",m[m.Decrease=1]="Decrease"})(z7e||(z7e={}));var B7e;(function(m){m[m.None=0]="None",m[m.Indent=1]="Indent",m[m.IndentOutdent=2]="IndentOutdent",m[m.Outdent=3]="Outdent"})(B7e||(B7e={}));var G7e;(function(m){m[m.Both=0]="Both",m[m.Right=1]="Right",m[m.Left=2]="Left",m[m.None=3]="None"})(G7e||(G7e={}));var V7e;(function(m){m[m.Type=1]="Type",m[m.Parameter=2]="Parameter"})(V7e||(V7e={}));var j7e;(function(m){m[m.Accepted=0]="Accepted",m[m.Rejected=1]="Rejected",m[m.Ignored=2]="Ignored"})(j7e||(j7e={}));var U7e;(function(m){m[m.Code=1]="Code",m[m.Label=2]="Label"})(U7e||(U7e={}));var H7e;(function(m){m[m.Automatic=0]="Automatic",m[m.Explicit=1]="Explicit"})(H7e||(H7e={}));var cQ;(function(m){m[m.DependsOnKbLayout=-1]="DependsOnKbLayout",m[m.Unknown=0]="Unknown",m[m.Backspace=1]="Backspace",m[m.Tab=2]="Tab",m[m.Enter=3]="Enter",m[m.Shift=4]="Shift",m[m.Ctrl=5]="Ctrl",m[m.Alt=6]="Alt",m[m.PauseBreak=7]="PauseBreak",m[m.CapsLock=8]="CapsLock",m[m.Escape=9]="Escape",m[m.Space=10]="Space",m[m.PageUp=11]="PageUp",m[m.PageDown=12]="PageDown",m[m.End=13]="End",m[m.Home=14]="Home",m[m.LeftArrow=15]="LeftArrow",m[m.UpArrow=16]="UpArrow",m[m.RightArrow=17]="RightArrow",m[m.DownArrow=18]="DownArrow",m[m.Insert=19]="Insert",m[m.Delete=20]="Delete",m[m.Digit0=21]="Digit0",m[m.Digit1=22]="Digit1",m[m.Digit2=23]="Digit2",m[m.Digit3=24]="Digit3",m[m.Digit4=25]="Digit4",m[m.Digit5=26]="Digit5",m[m.Digit6=27]="Digit6",m[m.Digit7=28]="Digit7",m[m.Digit8=29]="Digit8",m[m.Digit9=30]="Digit9",m[m.KeyA=31]="KeyA",m[m.KeyB=32]="KeyB",m[m.KeyC=33]="KeyC",m[m.KeyD=34]="KeyD",m[m.KeyE=35]="KeyE",m[m.KeyF=36]="KeyF",m[m.KeyG=37]="KeyG",m[m.KeyH=38]="KeyH",m[m.KeyI=39]="KeyI",m[m.KeyJ=40]="KeyJ",m[m.KeyK=41]="KeyK",m[m.KeyL=42]="KeyL",m[m.KeyM=43]="KeyM",m[m.KeyN=44]="KeyN",m[m.KeyO=45]="KeyO",m[m.KeyP=46]="KeyP",m[m.KeyQ=47]="KeyQ",m[m.KeyR=48]="KeyR",m[m.KeyS=49]="KeyS",m[m.KeyT=50]="KeyT",m[m.KeyU=51]="KeyU",m[m.KeyV=52]="KeyV",m[m.KeyW=53]="KeyW",m[m.KeyX=54]="KeyX",m[m.KeyY=55]="KeyY",m[m.KeyZ=56]="KeyZ",m[m.Meta=57]="Meta",m[m.ContextMenu=58]="ContextMenu",m[m.F1=59]="F1",m[m.F2=60]="F2",m[m.F3=61]="F3",m[m.F4=62]="F4",m[m.F5=63]="F5",m[m.F6=64]="F6",m[m.F7=65]="F7",m[m.F8=66]="F8",m[m.F9=67]="F9",m[m.F10=68]="F10",m[m.F11=69]="F11",m[m.F12=70]="F12",m[m.F13=71]="F13",m[m.F14=72]="F14",m[m.F15=73]="F15",m[m.F16=74]="F16",m[m.F17=75]="F17",m[m.F18=76]="F18",m[m.F19=77]="F19",m[m.F20=78]="F20",m[m.F21=79]="F21",m[m.F22=80]="F22",m[m.F23=81]="F23",m[m.F24=82]="F24",m[m.NumLock=83]="NumLock",m[m.ScrollLock=84]="ScrollLock",m[m.Semicolon=85]="Semicolon",m[m.Equal=86]="Equal",m[m.Comma=87]="Comma",m[m.Minus=88]="Minus",m[m.Period=89]="Period",m[m.Slash=90]="Slash",m[m.Backquote=91]="Backquote",m[m.BracketLeft=92]="BracketLeft",m[m.Backslash=93]="Backslash",m[m.BracketRight=94]="BracketRight",m[m.Quote=95]="Quote",m[m.OEM_8=96]="OEM_8",m[m.IntlBackslash=97]="IntlBackslash",m[m.Numpad0=98]="Numpad0",m[m.Numpad1=99]="Numpad1",m[m.Numpad2=100]="Numpad2",m[m.Numpad3=101]="Numpad3",m[m.Numpad4=102]="Numpad4",m[m.Numpad5=103]="Numpad5",m[m.Numpad6=104]="Numpad6",m[m.Numpad7=105]="Numpad7",m[m.Numpad8=106]="Numpad8",m[m.Numpad9=107]="Numpad9",m[m.NumpadMultiply=108]="NumpadMultiply",m[m.NumpadAdd=109]="NumpadAdd",m[m.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",m[m.NumpadSubtract=111]="NumpadSubtract",m[m.NumpadDecimal=112]="NumpadDecimal",m[m.NumpadDivide=113]="NumpadDivide",m[m.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",m[m.ABNT_C1=115]="ABNT_C1",m[m.ABNT_C2=116]="ABNT_C2",m[m.AudioVolumeMute=117]="AudioVolumeMute",m[m.AudioVolumeUp=118]="AudioVolumeUp",m[m.AudioVolumeDown=119]="AudioVolumeDown",m[m.BrowserSearch=120]="BrowserSearch",m[m.BrowserHome=121]="BrowserHome",m[m.BrowserBack=122]="BrowserBack",m[m.BrowserForward=123]="BrowserForward",m[m.MediaTrackNext=124]="MediaTrackNext",m[m.MediaTrackPrevious=125]="MediaTrackPrevious",m[m.MediaStop=126]="MediaStop",m[m.MediaPlayPause=127]="MediaPlayPause",m[m.LaunchMediaPlayer=128]="LaunchMediaPlayer",m[m.LaunchMail=129]="LaunchMail",m[m.LaunchApp2=130]="LaunchApp2",m[m.Clear=131]="Clear",m[m.MAX_VALUE=132]="MAX_VALUE"})(cQ||(cQ={}));var dQ;(function(m){m[m.Hint=1]="Hint",m[m.Info=2]="Info",m[m.Warning=4]="Warning",m[m.Error=8]="Error"})(dQ||(dQ={}));var uQ;(function(m){m[m.Unnecessary=1]="Unnecessary",m[m.Deprecated=2]="Deprecated"})(uQ||(uQ={}));var q7e;(function(m){m[m.Inline=1]="Inline",m[m.Gutter=2]="Gutter"})(q7e||(q7e={}));var J7e;(function(m){m[m.Normal=1]="Normal",m[m.Underlined=2]="Underlined"})(J7e||(J7e={}));var K7e;(function(m){m[m.UNKNOWN=0]="UNKNOWN",m[m.TEXTAREA=1]="TEXTAREA",m[m.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",m[m.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",m[m.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",m[m.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",m[m.CONTENT_TEXT=6]="CONTENT_TEXT",m[m.CONTENT_EMPTY=7]="CONTENT_EMPTY",m[m.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",m[m.CONTENT_WIDGET=9]="CONTENT_WIDGET",m[m.OVERVIEW_RULER=10]="OVERVIEW_RULER",m[m.SCROLLBAR=11]="SCROLLBAR",m[m.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",m[m.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(K7e||(K7e={}));var X7e;(function(m){m[m.AIGenerated=1]="AIGenerated"})(X7e||(X7e={}));var Y7e;(function(m){m[m.Invoke=0]="Invoke",m[m.Automatic=1]="Automatic"})(Y7e||(Y7e={}));var $7e;(function(m){m[m.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",m[m.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",m[m.TOP_CENTER=2]="TOP_CENTER"})($7e||($7e={}));var Q7e;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=4]="Right",m[m.Full=7]="Full"})(Q7e||(Q7e={}));var Z7e;(function(m){m[m.Word=0]="Word",m[m.Line=1]="Line",m[m.Suggest=2]="Suggest"})(Z7e||(Z7e={}));var e5e;(function(m){m[m.Left=0]="Left",m[m.Right=1]="Right",m[m.None=2]="None",m[m.LeftOfInjectedText=3]="LeftOfInjectedText",m[m.RightOfInjectedText=4]="RightOfInjectedText"})(e5e||(e5e={}));var t5e;(function(m){m[m.Off=0]="Off",m[m.On=1]="On",m[m.Relative=2]="Relative",m[m.Interval=3]="Interval",m[m.Custom=4]="Custom"})(t5e||(t5e={}));var n5e;(function(m){m[m.None=0]="None",m[m.Text=1]="Text",m[m.Blocks=2]="Blocks"})(n5e||(n5e={}));var r5e;(function(m){m[m.Smooth=0]="Smooth",m[m.Immediate=1]="Immediate"})(r5e||(r5e={}));var i5e;(function(m){m[m.Auto=1]="Auto",m[m.Hidden=2]="Hidden",m[m.Visible=3]="Visible"})(i5e||(i5e={}));var pQ;(function(m){m[m.LTR=0]="LTR",m[m.RTL=1]="RTL"})(pQ||(pQ={}));var o5e;(function(m){m.Off="off",m.OnCode="onCode",m.On="on"})(o5e||(o5e={}));var a5e;(function(m){m[m.Invoke=1]="Invoke",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.ContentChange=3]="ContentChange"})(a5e||(a5e={}));var s5e;(function(m){m[m.File=0]="File",m[m.Module=1]="Module",m[m.Namespace=2]="Namespace",m[m.Package=3]="Package",m[m.Class=4]="Class",m[m.Method=5]="Method",m[m.Property=6]="Property",m[m.Field=7]="Field",m[m.Constructor=8]="Constructor",m[m.Enum=9]="Enum",m[m.Interface=10]="Interface",m[m.Function=11]="Function",m[m.Variable=12]="Variable",m[m.Constant=13]="Constant",m[m.String=14]="String",m[m.Number=15]="Number",m[m.Boolean=16]="Boolean",m[m.Array=17]="Array",m[m.Object=18]="Object",m[m.Key=19]="Key",m[m.Null=20]="Null",m[m.EnumMember=21]="EnumMember",m[m.Struct=22]="Struct",m[m.Event=23]="Event",m[m.Operator=24]="Operator",m[m.TypeParameter=25]="TypeParameter"})(s5e||(s5e={}));var l5e;(function(m){m[m.Deprecated=1]="Deprecated"})(l5e||(l5e={}));var c5e;(function(m){m[m.LTR=0]="LTR",m[m.RTL=1]="RTL"})(c5e||(c5e={}));var d5e;(function(m){m[m.Hidden=0]="Hidden",m[m.Blink=1]="Blink",m[m.Smooth=2]="Smooth",m[m.Phase=3]="Phase",m[m.Expand=4]="Expand",m[m.Solid=5]="Solid"})(d5e||(d5e={}));var u5e;(function(m){m[m.Line=1]="Line",m[m.Block=2]="Block",m[m.Underline=3]="Underline",m[m.LineThin=4]="LineThin",m[m.BlockOutline=5]="BlockOutline",m[m.UnderlineThin=6]="UnderlineThin"})(u5e||(u5e={}));var p5e;(function(m){m[m.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",m[m.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",m[m.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",m[m.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(p5e||(p5e={}));var f5e;(function(m){m[m.None=0]="None",m[m.Same=1]="Same",m[m.Indent=2]="Indent",m[m.DeepIndent=3]="DeepIndent"})(f5e||(f5e={}));var bve=class{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(y,x){return ZFe(y,x)}};function m5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:dz,Emitter:Xg,KeyCode:cQ,KeyMod:bve,Position:nc,Range:hs,Selection:aQ,SelectionDirection:pQ,MarkerSeverity:dQ,MarkerTag:uQ,Uri:nN,Token:lQ}}var h5e,_5e,g5e,Tve=class{constructor(y,x){this.uri=y,this.value=x}};function cbt(m){return Array.isArray(m)}var fQ=class m{static{this.defaultToKey=y=>y.toString()}constructor(y,x){if(this[h5e]="ResourceMap",y instanceof m)this.map=new Map(y.map),this.toKey=x??m.defaultToKey;else if(cbt(y)){this.map=new Map,this.toKey=x??m.defaultToKey;for(let[W,X]of y)this.set(W,X)}else this.map=new Map,this.toKey=y??m.defaultToKey}set(y,x){return this.map.set(this.toKey(y),new Tve(y,x)),this}get(y){return this.map.get(this.toKey(y))?.value}has(y){return this.map.has(this.toKey(y))}get size(){return this.map.size}clear(){this.map.clear()}delete(y){return this.map.delete(this.toKey(y))}forEach(y,x){typeof x<"u"&&(y=y.bind(x));for(let[W,X]of this.map)y(X.value,X.uri,this)}*values(){for(let y of this.map.values())yield y.value}*keys(){for(let y of this.map.values())yield y.uri}*entries(){for(let y of this.map.values())yield[y.uri,y.value]}*[(h5e=Symbol.toStringTag,Symbol.iterator)](){for(let[,y]of this.map)yield[y.uri,y.value]}},y5e=class{constructor(y,x){this[_5e]="ResourceSet",!y||typeof y=="function"?this._map=new fQ(y):(this._map=new fQ(x),y.forEach(this.add,this))}get size(){return this._map.size}add(y){return this._map.set(y,y),this}clear(){this._map.clear()}delete(y){return this._map.delete(y)}forEach(y,x){this._map.forEach((W,X)=>y.call(x,X,X,this))}has(y){return this._map.has(y)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(_5e=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},Sve=class{constructor(){this[g5e]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(y){return this._map.has(y)}get(y,x=0){let W=this._map.get(y);if(W)return x!==0&&this.touch(W,x),W.value}set(y,x,W=0){let X=this._map.get(y);if(X)X.value=x,W!==0&&this.touch(X,W);else{switch(X={key:y,value:x,next:void 0,previous:void 0},W){case 0:this.addItemLast(X);break;case 1:this.addItemFirst(X);break;case 2:this.addItemLast(X);break;default:this.addItemLast(X);break}this._map.set(y,X),this._size++}return this}delete(y){return!!this.remove(y)}remove(y){let x=this._map.get(y);if(x)return this._map.delete(y),this.removeItem(x),this._size--,x.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let y=this._head;return this._map.delete(y.key),this.removeItem(y),this._size--,y.value}forEach(y,x){let W=this._state,X=this._head;for(;X;){if(x?y.bind(x)(X.value,X.key,this):y(X.value,X.key,this),this._state!==W)throw new Error("LinkedMap got modified during iteration.");X=X.next}}keys(){let y=this,x=this._state,W=this._head,X={[Symbol.iterator](){return X},next(){if(y._state!==x)throw new Error("LinkedMap got modified during iteration.");if(W){let he={value:W.key,done:!1};return W=W.next,he}else return{value:void 0,done:!0}}};return X}values(){let y=this,x=this._state,W=this._head,X={[Symbol.iterator](){return X},next(){if(y._state!==x)throw new Error("LinkedMap got modified during iteration.");if(W){let he={value:W.value,done:!1};return W=W.next,he}else return{value:void 0,done:!0}}};return X}entries(){let y=this,x=this._state,W=this._head,X={[Symbol.iterator](){return X},next(){if(y._state!==x)throw new Error("LinkedMap got modified during iteration.");if(W){let he={value:[W.key,W.value],done:!1};return W=W.next,he}else return{value:void 0,done:!0}}};return X}[(g5e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(y){if(y>=this.size)return;if(y===0){this.clear();return}let x=this._head,W=this.size;for(;x&&W>y;)this._map.delete(x.key),x=x.next,W--;this._head=x,this._size=W,x&&(x.previous=void 0),this._state++}trimNew(y){if(y>=this.size)return;if(y===0){this.clear();return}let x=this._tail,W=this.size;for(;x&&W>y;)this._map.delete(x.key),x=x.previous,W--;this._tail=x,this._size=W,x&&(x.next=void 0),this._state++}addItemFirst(y){if(!this._head&&!this._tail)this._tail=y;else if(this._head)y.next=this._head,this._head.previous=y;else throw new Error("Invalid list");this._head=y,this._state++}addItemLast(y){if(!this._head&&!this._tail)this._head=y;else if(this._tail)y.previous=this._tail,this._tail.next=y;else throw new Error("Invalid list");this._tail=y,this._state++}removeItem(y){if(y===this._head&&y===this._tail)this._head=void 0,this._tail=void 0;else if(y===this._head){if(!y.next)throw new Error("Invalid list");y.next.previous=void 0,this._head=y.next}else if(y===this._tail){if(!y.previous)throw new Error("Invalid list");y.previous.next=void 0,this._tail=y.previous}else{let x=y.next,W=y.previous;if(!x||!W)throw new Error("Invalid list");x.previous=W,W.next=x}y.next=void 0,y.previous=void 0,this._state++}touch(y,x){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(x!==1&&x!==2)){if(x===1){if(y===this._head)return;let W=y.next,X=y.previous;y===this._tail?(X.next=void 0,this._tail=X):(W.previous=X,X.next=W),y.previous=void 0,y.next=this._head,this._head.previous=y,this._head=y,this._state++}else if(x===2){if(y===this._tail)return;let W=y.next,X=y.previous;y===this._head?(W.previous=void 0,this._head=W):(W.previous=X,X.next=W),y.next=void 0,y.previous=this._tail,this._tail.next=y,this._tail=y,this._state++}}}toJSON(){let y=[];return this.forEach((x,W)=>{y.push([W,x])}),y}fromJSON(y){this.clear();for(let[x,W]of y)this.set(x,W)}},Eve=class extends Sve{constructor(y,x=1){super(),this._limit=y,this._ratio=Math.min(Math.max(0,x),1)}get limit(){return this._limit}set limit(y){this._limit=y,this.checkTrim()}get(y,x=2){return super.get(y,x)}peek(y){return super.get(y,0)}set(y,x){return super.set(y,x,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},mQ=class extends Eve{constructor(y,x=1){super(y,x)}trim(y){this.trimOld(y)}set(y,x){return super.set(y,x),this.checkTrim(),this}};var hQ=class{constructor(){this.map=new Map}add(y,x){let W=this.map.get(y);W||(W=new Set,this.map.set(y,W)),W.add(x)}delete(y,x){let W=this.map.get(y);W&&(W.delete(x),W.size===0&&this.map.delete(y))}forEach(y,x){let W=this.map.get(y);W&&W.forEach(x)}};var o1t=new mQ(10);var v5e;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=4]="Right",m[m.Full=7]="Full"})(v5e||(v5e={}));var b5e;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=3]="Right"})(b5e||(b5e={}));var T5e;(function(m){m[m.LTR=0]="LTR",m[m.RTL=1]="RTL"})(T5e||(T5e={}));var S5e;(function(m){m[m.Both=0]="Both",m[m.Right=1]="Right",m[m.Left=2]="Left",m[m.None=3]="None"})(S5e||(S5e={}));function E5e(m){if(!m||m.length===0)return!1;for(let y=0,x=m.length;y<x;y++){let W=m.charCodeAt(y);if(W===10)return!0;if(W===92){if(y++,y>=x)break;let X=m.charCodeAt(y);if(X===110||X===114||X===87)return!0}}return!1}function dbt(m,y,x,W,X){if(W===0)return!0;let he=y.charCodeAt(W-1);if(m.get(he)!==0||he===13||he===10)return!0;if(X>0){let Me=y.charCodeAt(W);if(m.get(Me)!==0)return!0}return!1}function ubt(m,y,x,W,X){if(W+X===x)return!0;let he=y.charCodeAt(W+X);if(m.get(he)!==0||he===13||he===10)return!0;if(X>0){let Me=y.charCodeAt(W+X-1);if(m.get(Me)!==0)return!0}return!1}function pbt(m,y,x,W,X){return dbt(m,y,x,W,X)&&ubt(m,y,x,W,X)}var _Q=class{constructor(y,x){this._wordSeparators=y,this._searchRegex=x,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(y){this._searchRegex.lastIndex=y,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(y){let x=y.length,W;do{if(this._prevMatchStartIndex+this._prevMatchLength===x||(W=this._searchRegex.exec(y),!W))return null;let X=W.index,he=W[0].length;if(X===this._prevMatchStartIndex&&he===this._prevMatchLength){if(he===0){OFe(y,x,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=X,this._prevMatchLength=he,!this._wordSeparators||pbt(this._wordSeparators,y,x,X,he))return W}while(W);return null}};var fbt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function mbt(m=""){let y="(-?\\d*\\.\\d\\w*)|([^";for(let x of fbt)m.indexOf(x)>=0||(y+="\\"+x);return y+="\\s]+)",new RegExp(y,"g")}var Ave=mbt();function Ive(m){let y=Ave;if(m&&m instanceof RegExp)if(m.global)y=m;else{let x="g";m.ignoreCase&&(x+="i"),m.multiline&&(x+="m"),m.unicode&&(x+="u"),y=new RegExp(m.source,x)}return y.lastIndex=0,y}var A5e=new iz;A5e.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function fz(m,y,x,W,X){if(y=Ive(y),X||(X=p8.first(A5e)),x.length>X.maxLen){let yt=m-X.maxLen/2;return yt<0?yt=0:W+=yt,x=x.substring(yt,m+X.maxLen/2),fz(m,y,x,W,X)}let he=Date.now(),Me=m-1-W,Ke=-1,ae=null;for(let yt=1;!(Date.now()-he>=X.timeBudget);yt++){let et=Me-X.windowSize*yt;y.lastIndex=Math.max(0,et);let Je=hbt(y,x,Me,Ke);if(!Je&&ae||(ae=Je,et<=0))break;Ke=et}if(ae){let yt={word:ae[0],startColumn:W+1+ae.index,endColumn:W+1+ae.index+ae[0].length};return y.lastIndex=0,yt}return null}function hbt(m,y,x,W){let X;for(;X=m.exec(y);){let he=X.index||0;if(he<=x&&m.lastIndex>=x)return X;if(W>0&&he>W)return null}return null}var gQ=class{static computeUnicodeHighlights(y,x,W){let X=W?W.startLineNumber:1,he=W?W.endLineNumber:y.getLineCount(),Me=new yQ(x),Ke=Me.getCandidateCodePoints(),ae;Ke==="allNonBasicAscii"?ae=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):ae=new RegExp(`${_bt(Array.from(Ke))}`,"g");let yt=new _Q(null,ae),et=[],Je=!1,Pn,Hn=0,cr=0,Gn=0;e:for(let ki=X,bo=he;ki<=bo;ki++){let Vn=y.getLineContent(ki),hn=Vn.length;yt.reset(0);do if(Pn=yt.next(Vn),Pn){let ga=Pn.index,ho=Pn.index+Pn[0].length;if(ga>0){let Io=Vn.charCodeAt(ga-1);_8(Io)&&ga--}if(ho+1<hn){let Io=Vn.charCodeAt(ho-1);_8(Io)&&ho++}let gl=Vn.substring(ga,ho),jn=fz(ga+1,Ave,Vn,0);jn&&jn.endColumn<=ga+1&&(jn=null);let Gi=Me.shouldHighlightNonBasicASCII(gl,jn?jn.word:null);if(Gi!==0){if(Gi===3?Hn++:Gi===2?cr++:Gi===1?Gn++:yFe(),et.length>=1e3){Je=!0;break e}et.push(new hs(ki,ga+1,ki,ho+1))}}while(Pn)}return{ranges:et,hasMore:Je,ambiguousCharacterCount:Hn,invisibleCharacterCount:cr,nonBasicAsciiCharacterCount:Gn}}static computeUnicodeHighlightReason(y,x){let W=new yQ(x);switch(W.shouldHighlightNonBasicASCII(y,null)){case 0:return null;case 2:return{kind:1};case 3:{let he=y.codePointAt(0),Me=W.ambiguousCharacters.getPrimaryConfusable(he),Ke=m8.getLocales().filter(ae=>!m8.getInstance(new Set([...x.allowedLocales,ae])).isAmbiguous(he));return{kind:0,confusableWith:String.fromCodePoint(Me),notAmbiguousInLocales:Ke}}case 1:return{kind:2}}}};function _bt(m,y){return`[${CFe(m.map(W=>String.fromCodePoint(W)).join(""))}]`}var yQ=class{constructor(y){this.options=y,this.allowedCodePoints=new Set(y.allowedCodePoints),this.ambiguousCharacters=m8.getInstance(new Set(y.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let y=new Set;if(this.options.invisibleCharacters)for(let x of h8.codePoints)I5e(String.fromCodePoint(x))||y.add(x);if(this.options.ambiguousCharacters)for(let x of this.ambiguousCharacters.getConfusableCodePoints())y.add(x);for(let x of this.allowedCodePoints)y.delete(x);return y}shouldHighlightNonBasicASCII(y,x){let W=y.codePointAt(0);if(this.allowedCodePoints.has(W))return 0;if(this.options.nonBasicASCII)return 1;let X=!1,he=!1;if(x)for(let Me of x){let Ke=Me.codePointAt(0),ae=WFe(Me);X=X||ae,!ae&&!this.ambiguousCharacters.isAmbiguous(Ke)&&!h8.isInvisibleCharacter(Ke)&&(he=!0)}return!X&&he?0:this.options.invisibleCharacters&&!I5e(y)&&h8.isInvisibleCharacter(W)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(W)?3:0}};function I5e(m){return m===" "||m===`
`||m===" "}var rN=class{constructor(y,x,W){this.changes=y,this.moves=x,this.hitTimeout=W}},vQ=class{constructor(y,x){this.lineRangeMapping=y,this.changes=x}};function R5e(m,y,x=(W,X)=>W===X){if(m===y)return!0;if(!m||!y||m.length!==y.length)return!1;for(let W=0,X=m.length;W<X;W++)if(!x(m[W],y[W]))return!1;return!0}function*D5e(m,y){let x,W;for(let X of m)W!==void 0&&y(W,X)?x.push(X):(x&&(yield x),x=[X]),W=X;x&&(yield x)}function C5e(m,y){for(let x=0;x<=m.length;x++)y(x===0?void 0:m[x-1],x===m.length?void 0:m[x])}function N5e(m,y){for(let x=0;x<m.length;x++)y(x===0?void 0:m[x-1],m[x],x+1===m.length?void 0:m[x+1])}function M5e(m,y){for(let x of y)m.push(x)}var xve;(function(m){function y(he){return he<0}m.isLessThan=y;function x(he){return he<=0}m.isLessThanOrEqual=x;function W(he){return he>0}m.isGreaterThan=W;function X(he){return he===0}m.isNeitherLessOrGreaterThan=X,m.greaterThan=1,m.lessThan=-1,m.neitherLessOrGreaterThan=0})(xve||(xve={}));function iN(m,y){return(x,W)=>y(m(x),m(W))}var $2=(m,y)=>m-y;function P5e(m){return(y,x)=>-m(y,x)}var x5e=class m{static{this.empty=new m(y=>{})}constructor(y){this.iterate=y}toArray(){let y=[];return this.iterate(x=>(y.push(x),!0)),y}filter(y){return new m(x=>this.iterate(W=>y(W)?x(W):!0))}map(y){return new m(x=>this.iterate(W=>x(y(W))))}findLast(y){let x;return this.iterate(W=>(y(W)&&(x=W),!0)),x}findLastMaxBy(y){let x,W=!0;return this.iterate(X=>((W||xve.isGreaterThan(y(X,x)))&&(W=!1,x=X),!0)),x}};var Oc=class m{static fromTo(y,x){return new m(y,x)}static addRange(y,x){let W=0;for(;W<x.length&&x[W].endExclusive<y.start;)W++;let X=W;for(;X<x.length&&x[X].start<=y.endExclusive;)X++;if(W===X)x.splice(W,0,y);else{let he=Math.min(y.start,x[W].start),Me=Math.max(y.endExclusive,x[X-1].endExclusive);x.splice(W,X-W,new m(he,Me))}}static tryCreate(y,x){if(!(y>x))return new m(y,x)}static ofLength(y){return new m(0,y)}static ofStartAndLength(y,x){return new m(y,y+x)}static emptyAt(y){return new m(y,y)}constructor(y,x){if(this.start=y,this.endExclusive=x,y>x)throw new af(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(y){return new m(this.start+y,this.endExclusive+y)}deltaStart(y){return new m(this.start+y,this.endExclusive)}deltaEnd(y){return new m(this.start,this.endExclusive+y)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(y){return this.start===y.start&&this.endExclusive===y.endExclusive}contains(y){return this.start<=y&&y<this.endExclusive}join(y){return new m(Math.min(this.start,y.start),Math.max(this.endExclusive,y.endExclusive))}intersect(y){let x=Math.max(this.start,y.start),W=Math.min(this.endExclusive,y.endExclusive);if(x<=W)return new m(x,W)}intersectionLength(y){let x=Math.max(this.start,y.start),W=Math.min(this.endExclusive,y.endExclusive);return Math.max(0,W-x)}intersects(y){let x=Math.max(this.start,y.start),W=Math.min(this.endExclusive,y.endExclusive);return x<W}intersectsOrTouches(y){let x=Math.max(this.start,y.start),W=Math.min(this.endExclusive,y.endExclusive);return x<=W}isBefore(y){return this.endExclusive<=y.start}isAfter(y){return this.start>=y.endExclusive}slice(y){return y.slice(this.start,this.endExclusive)}substring(y){return y.substring(this.start,this.endExclusive)}clip(y){if(this.isEmpty)throw new af(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,y))}clipCyclic(y){if(this.isEmpty)throw new af(`Invalid clipping range: ${this.toString()}`);return y<this.start?this.endExclusive-(this.start-y)%this.length:y>=this.endExclusive?this.start+(y-this.start)%this.length:y}forEach(y){for(let x=this.start;x<this.endExclusive;x++)y(x)}joinRightTouching(y){if(this.endExclusive!==y.start)throw new af(`Invalid join: ${this.toString()} and ${y.toString()}`);return new m(this.start,y.endExclusive)}};function pR(m,y){let x=fR(m,y);return x===-1?void 0:m[x]}function fR(m,y,x=0,W=m.length){let X=x,he=W;for(;X<he;){let Me=Math.floor((X+he)/2);y(m[Me])?X=Me+1:he=Me}return X-1}function L5e(m,y){let x=bQ(m,y);return x===m.length?void 0:m[x]}function bQ(m,y,x=0,W=m.length){let X=x,he=W;for(;X<he;){let Me=Math.floor((X+he)/2);y(m[Me])?he=Me:X=Me+1}return X}var mz=class m{static{this.assertInvariants=!1}constructor(y){this._array=y,this._findLastMonotonousLastIdx=0}findLastMonotonous(y){if(m.assertInvariants){if(this._prevFindLastPredicate){for(let W of this._array)if(this._prevFindLastPredicate(W)&&!y(W))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=y}let x=fR(this._array,y,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=x+1,x===-1?void 0:this._array[x]}};var cc=class m{static ofLength(y,x){return new m(y,y+x)}static fromRange(y){return new m(y.startLineNumber,y.endLineNumber)}static fromRangeInclusive(y){return new m(y.startLineNumber,y.endLineNumber+1)}static{this.compareByStart=iN(y=>y.startLineNumber,$2)}static joinMany(y){if(y.length===0)return[];let x=new Q2(y[0].slice());for(let W=1;W<y.length;W++)x=x.getUnion(new Q2(y[W].slice()));return x.ranges}static join(y){if(y.length===0)throw new af("lineRanges cannot be empty");let x=y[0].startLineNumber,W=y[0].endLineNumberExclusive;for(let X=1;X<y.length;X++)x=Math.min(x,y[X].startLineNumber),W=Math.max(W,y[X].endLineNumberExclusive);return new m(x,W)}static deserialize(y){return new m(y[0],y[1])}constructor(y,x){if(y>x)throw new af(`startLineNumber ${y} cannot be after endLineNumberExclusive ${x}`);this.startLineNumber=y,this.endLineNumberExclusive=x}contains(y){return this.startLineNumber<=y&&y<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(y){return new m(this.startLineNumber+y,this.endLineNumberExclusive+y)}deltaLength(y){return new m(this.startLineNumber,this.endLineNumberExclusive+y)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(y){return new m(Math.min(this.startLineNumber,y.startLineNumber),Math.max(this.endLineNumberExclusive,y.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(y){let x=Math.max(this.startLineNumber,y.startLineNumber),W=Math.min(this.endLineNumberExclusive,y.endLineNumberExclusive);if(x<=W)return new m(x,W)}intersectsStrict(y){return this.startLineNumber<y.endLineNumberExclusive&&y.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(y){return this.startLineNumber<=y.endLineNumberExclusive&&y.startLineNumber<=this.endLineNumberExclusive}equals(y){return this.startLineNumber===y.startLineNumber&&this.endLineNumberExclusive===y.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new hs(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new hs(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(y){let x=[];for(let W=this.startLineNumber;W<this.endLineNumberExclusive;W++)x.push(y(W));return x}forEach(y){for(let x=this.startLineNumber;x<this.endLineNumberExclusive;x++)y(x)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new Oc(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(y,x){return new m(this.startLineNumber-y,this.endLineNumberExclusive+x)}},Q2=class m{constructor(y=[]){this._normalizedRanges=y}get ranges(){return this._normalizedRanges}addRange(y){if(y.length===0)return;let x=bQ(this._normalizedRanges,X=>X.endLineNumberExclusive>=y.startLineNumber),W=fR(this._normalizedRanges,X=>X.startLineNumber<=y.endLineNumberExclusive)+1;if(x===W)this._normalizedRanges.splice(x,0,y);else if(x===W-1){let X=this._normalizedRanges[x];this._normalizedRanges[x]=X.join(y)}else{let X=this._normalizedRanges[x].join(this._normalizedRanges[W-1]).join(y);this._normalizedRanges.splice(x,W-x,X)}}contains(y){let x=pR(this._normalizedRanges,W=>W.startLineNumber<=y);return!!x&&x.endLineNumberExclusive>y}intersects(y){let x=pR(this._normalizedRanges,W=>W.startLineNumber<y.endLineNumberExclusive);return!!x&&x.endLineNumberExclusive>y.startLineNumber}getUnion(y){if(this._normalizedRanges.length===0)return y;if(y._normalizedRanges.length===0)return this;let x=[],W=0,X=0,he=null;for(;W<this._normalizedRanges.length||X<y._normalizedRanges.length;){let Me=null;if(W<this._normalizedRanges.length&&X<y._normalizedRanges.length){let Ke=this._normalizedRanges[W],ae=y._normalizedRanges[X];Ke.startLineNumber<ae.startLineNumber?(Me=Ke,W++):(Me=ae,X++)}else W<this._normalizedRanges.length?(Me=this._normalizedRanges[W],W++):(Me=y._normalizedRanges[X],X++);he===null?he=Me:he.endLineNumberExclusive>=Me.startLineNumber?he=new cc(he.startLineNumber,Math.max(he.endLineNumberExclusive,Me.endLineNumberExclusive)):(x.push(he),he=Me)}return he!==null&&x.push(he),new m(x)}subtractFrom(y){let x=bQ(this._normalizedRanges,Me=>Me.endLineNumberExclusive>=y.startLineNumber),W=fR(this._normalizedRanges,Me=>Me.startLineNumber<=y.endLineNumberExclusive)+1;if(x===W)return new m([y]);let X=[],he=y.startLineNumber;for(let Me=x;Me<W;Me++){let Ke=this._normalizedRanges[Me];Ke.startLineNumber>he&&X.push(new cc(he,Ke.startLineNumber)),he=Ke.endLineNumberExclusive}return he<y.endLineNumberExclusive&&X.push(new cc(he,y.endLineNumberExclusive)),new m(X)}toString(){return this._normalizedRanges.map(y=>y.toString()).join(", ")}getIntersection(y){let x=[],W=0,X=0;for(;W<this._normalizedRanges.length&&X<y._normalizedRanges.length;){let he=this._normalizedRanges[W],Me=y._normalizedRanges[X],Ke=he.intersect(Me);Ke&&!Ke.isEmpty&&x.push(Ke),he.endLineNumberExclusive<Me.endLineNumberExclusive?W++:X++}return new m(x)}getWithDelta(y){return new m(this._normalizedRanges.map(x=>x.delta(y)))}};var Z2=class m{static{this.zero=new m(0,0)}static betweenPositions(y,x){return y.lineNumber===x.lineNumber?new m(0,x.column-y.column):new m(x.lineNumber-y.lineNumber,x.column-1)}static fromPosition(y){return new m(y.lineNumber-1,y.column-1)}static ofRange(y){return m.betweenPositions(y.getStartPosition(),y.getEndPosition())}static ofText(y){let x=0,W=0;for(let X of y)X===`
`?(x++,W=0):W++;return new m(x,W)}constructor(y,x){this.lineCount=y,this.columnCount=x}isGreaterThanOrEqualTo(y){return this.lineCount!==y.lineCount?this.lineCount>y.lineCount:this.columnCount>=y.columnCount}add(y){return y.lineCount===0?new m(this.lineCount,this.columnCount+y.columnCount):new m(this.lineCount+y.lineCount,y.columnCount)}createRange(y){return this.lineCount===0?new hs(y.lineNumber,y.column,y.lineNumber,y.column+this.columnCount):new hs(y.lineNumber,y.column,y.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new hs(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return cc.ofLength(1,this.lineCount+1)}addToPosition(y){return this.lineCount===0?new nc(y.lineNumber,y.column+this.columnCount):new nc(y.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};var Rve=class{getOffsetRange(y){return new Oc(this.getOffset(y.getStartPosition()),this.getOffset(y.getEndPosition()))}getRange(y){return hs.fromPositions(this.getPosition(y.start),this.getPosition(y.endExclusive))}getStringReplacement(y){return new v8.deps.StringReplacement(this.getOffsetRange(y.range),y.text)}getTextReplacement(y){return new v8.deps.TextReplacement(this.getRange(y.replaceRange),y.newText)}getTextEdit(y){let x=y.replacements.map(W=>this.getTextReplacement(W));return new v8.deps.TextEdit(x)}},v8=class{static{this._deps=void 0}static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};var TQ=class extends Rve{constructor(y){super(),this.text=y,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let x=0;x<y.length;x++)y.charAt(x)===`
`&&(this.lineStartOffsetByLineIdx.push(x+1),x>0&&y.charAt(x-1)==="\r"?this.lineEndOffsetByLineIdx.push(x-1):this.lineEndOffsetByLineIdx.push(x));this.lineEndOffsetByLineIdx.push(y.length)}getOffset(y){let x=this._validatePosition(y);return this.lineStartOffsetByLineIdx[x.lineNumber-1]+x.column-1}_validatePosition(y){if(y.lineNumber<1)return new nc(1,1);let x=this.textLength.lineCount+1;if(y.lineNumber>x){let X=this.getLineLength(x);return new nc(x,X+1)}if(y.column<1)return new nc(y.lineNumber,1);let W=this.getLineLength(y.lineNumber);return y.column-1>W?new nc(y.lineNumber,W+1):y}getPosition(y){let x=fR(this.lineStartOffsetByLineIdx,he=>he<=y),W=x+1,X=y-this.lineStartOffsetByLineIdx[x]+1;return new nc(W,X)}get textLength(){let y=this.lineStartOffsetByLineIdx.length-1;return new v8.deps.TextLength(y,this.text.length-this.lineStartOffsetByLineIdx[y])}getLineLength(y){return this.lineEndOffsetByLineIdx[y-1]-this.lineStartOffsetByLineIdx[y-1]}};var Dve=class{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new nc(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(y){return this.getValueOfRange(this.getTransformer().getRange(y))}getLineLength(y){return this.getValueOfRange(new hs(y,1,y,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new TQ(this.getValue())),this._transformer}getLineAt(y){return this.getValueOfRange(new hs(y,1,y,Number.MAX_SAFE_INTEGER))}},Cve=class extends Dve{constructor(y,x){Gye(x>=1),super(),this._getLineContent=y,this._lineCount=x}getValueOfRange(y){if(y.startLineNumber===y.endLineNumber)return this._getLineContent(y.startLineNumber).substring(y.startColumn-1,y.endColumn-1);let x=this._getLineContent(y.startLineNumber).substring(y.startColumn-1);for(let W=y.startLineNumber+1;W<y.endLineNumber;W++)x+=`
`+this._getLineContent(W);return x+=`
`+this._getLineContent(y.endLineNumber).substring(0,y.endColumn-1),x}getLineLength(y){return this._getLineContent(y).length}get length(){let y=this._getLineContent(this._lineCount);return new Z2(this._lineCount-1,y.length)}},eL=class extends Cve{constructor(y){super(x=>y[x-1],y.length)}};var SQ=class m{static joinReplacements(y,x){if(y.length===0)throw new af;if(y.length===1)return y[0];let W=y[0].range.getStartPosition(),X=y[y.length-1].range.getEndPosition(),he="";for(let Me=0;Me<y.length;Me++){let Ke=y[Me];if(he+=Ke.text,Me<y.length-1){let ae=y[Me+1],yt=hs.fromPositions(Ke.range.getEndPosition(),ae.range.getStartPosition()),et=x.getValueOfRange(yt);he+=et}}return new m(hs.fromPositions(W,X),he)}static fromStringReplacement(y,x){return new m(x.getTransformer().getRange(y.replaceRange),y.newText)}static delete(y){return new m(y,"")}constructor(y,x){this.range=y,this.text=x}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(y,x){return y.range.equalsRange(x.range)&&y.text===x.text}equals(y){return m.equals(this,y)}removeCommonPrefixAndSuffix(y){return this.removeCommonPrefix(y).removeCommonSuffix(y)}removeCommonPrefix(y){let x=y.getValueOfRange(this.range).replaceAll(`\r
`,`
`),W=this.text.replaceAll(`\r
`,`
`),X=kFe(x,W),he=Z2.ofText(x.substring(0,X)).addToPosition(this.range.getStartPosition()),Me=W.substring(X),Ke=hs.fromPositions(he,this.range.getEndPosition());return new m(Ke,Me)}removeCommonSuffix(y){let x=y.getValueOfRange(this.range).replaceAll(`\r
`,`
`),W=this.text.replaceAll(`\r
`,`
`),X=wFe(x,W),he=Z2.ofText(x.substring(0,x.length-X)).addToPosition(this.range.getStartPosition()),Me=W.substring(0,W.length-X),Ke=hs.fromPositions(this.range.getStartPosition(),he);return new m(Ke,Me)}toString(){let y=this.range.getStartPosition(),x=this.range.getEndPosition();return`(${y.lineNumber},${y.column} -> ${x.lineNumber},${x.column}): "${this.text}"`}};var LA=class m{static inverse(y,x,W){let X=[],he=1,Me=1;for(let ae of y){let yt=new m(new cc(he,ae.original.startLineNumber),new cc(Me,ae.modified.startLineNumber));yt.modified.isEmpty||X.push(yt),he=ae.original.endLineNumberExclusive,Me=ae.modified.endLineNumberExclusive}let Ke=new m(new cc(he,x+1),new cc(Me,W+1));return Ke.modified.isEmpty||X.push(Ke),X}static clip(y,x,W){let X=[];for(let he of y){let Me=he.original.intersect(x),Ke=he.modified.intersect(W);Me&&!Me.isEmpty&&Ke&&!Ke.isEmpty&&X.push(new m(Me,Ke))}return X}constructor(y,x){this.original=y,this.modified=x}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new m(this.modified,this.original)}join(y){return new m(this.original.join(y.original),this.modified.join(y.modified))}toRangeMapping(){let y=this.original.toInclusiveRange(),x=this.modified.toInclusiveRange();if(y&&x)return new b0(y,x);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new af("not a valid diff");return new b0(new hs(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new hs(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new b0(new hs(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new hs(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(y,x){if(k5e(this.original.endLineNumberExclusive,y)&&k5e(this.modified.endLineNumberExclusive,x))return new b0(new hs(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new hs(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new b0(hs.fromPositions(new nc(this.original.startLineNumber,1),b8(new nc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),y)),hs.fromPositions(new nc(this.modified.startLineNumber,1),b8(new nc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),x)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new b0(hs.fromPositions(b8(new nc(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),y),b8(new nc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),y)),hs.fromPositions(b8(new nc(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),x),b8(new nc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),x)));throw new af}};function b8(m,y){if(m.lineNumber<1)return new nc(1,1);if(m.lineNumber>y.length)return new nc(y.length,y[y.length-1].length+1);let x=y[m.lineNumber-1];return m.column>x.length+1?new nc(m.lineNumber,x.length+1):m}function k5e(m,y){return m>=1&&m<=y.length}var mR=class m extends LA{static fromRangeMappings(y){let x=cc.join(y.map(X=>cc.fromRangeInclusive(X.originalRange))),W=cc.join(y.map(X=>cc.fromRangeInclusive(X.modifiedRange)));return new m(x,W,y)}constructor(y,x,W){super(y,x),this.innerChanges=W}flip(){return new m(this.modified,this.original,this.innerChanges?.map(y=>y.flip()))}withInnerChangesFromLineRanges(){return new m(this.original,this.modified,[this.toRangeMapping()])}},b0=class m{static fromEdit(y){let x=y.getNewRanges();return y.replacements.map((X,he)=>new m(X.range,x[he]))}static assertSorted(y){for(let x=1;x<y.length;x++){let W=y[x-1],X=y[x];if(!(W.originalRange.getEndPosition().isBeforeOrEqual(X.originalRange.getStartPosition())&&W.modifiedRange.getEndPosition().isBeforeOrEqual(X.modifiedRange.getStartPosition())))throw new af("Range mappings must be sorted")}}constructor(y,x){this.originalRange=y,this.modifiedRange=x}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new m(this.modifiedRange,this.originalRange)}toTextEdit(y){let x=y.getValueOfRange(this.modifiedRange);return new SQ(this.originalRange,x)}};function Nve(m,y,x,W=!1){let X=[];for(let he of D5e(m.map(Me=>gbt(Me,y,x)),(Me,Ke)=>Me.original.intersectsOrTouches(Ke.original)||Me.modified.intersectsOrTouches(Ke.modified))){let Me=he[0],Ke=he[he.length-1];X.push(new mR(Me.original.join(Ke.original),Me.modified.join(Ke.modified),he.map(ae=>ae.innerChanges[0])))}return XC(()=>!W&&X.length>0&&(X[0].modified.startLineNumber!==X[0].original.startLineNumber||x.length.lineCount-X[X.length-1].modified.endLineNumberExclusive!==y.length.lineCount-X[X.length-1].original.endLineNumberExclusive)?!1:rz(X,(he,Me)=>Me.original.startLineNumber-he.original.endLineNumberExclusive===Me.modified.startLineNumber-he.modified.endLineNumberExclusive&&he.original.endLineNumberExclusive<Me.original.startLineNumber&&he.modified.endLineNumberExclusive<Me.modified.startLineNumber)),X}function gbt(m,y,x){let W=0,X=0;m.modifiedRange.endColumn===1&&m.originalRange.endColumn===1&&m.originalRange.startLineNumber+W<=m.originalRange.endLineNumber&&m.modifiedRange.startLineNumber+W<=m.modifiedRange.endLineNumber&&(X=-1),m.modifiedRange.startColumn-1>=x.getLineLength(m.modifiedRange.startLineNumber)&&m.originalRange.startColumn-1>=y.getLineLength(m.originalRange.startLineNumber)&&m.originalRange.startLineNumber<=m.originalRange.endLineNumber+X&&m.modifiedRange.startLineNumber<=m.modifiedRange.endLineNumber+X&&(W=1);let he=new cc(m.originalRange.startLineNumber+W,m.originalRange.endLineNumber+1+X),Me=new cc(m.modifiedRange.startLineNumber+W,m.modifiedRange.endLineNumber+1+X);return new mR(he,Me,[m])}var ybt=3,EQ=class{computeDiff(y,x,W){let he=new Pve(y,x,{maxComputationTime:W.maxComputationTimeMs,shouldIgnoreTrimWhitespace:W.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Me=[],Ke=null;for(let ae of he.changes){let yt;ae.originalEndLineNumber===0?yt=new cc(ae.originalStartLineNumber+1,ae.originalStartLineNumber+1):yt=new cc(ae.originalStartLineNumber,ae.originalEndLineNumber+1);let et;ae.modifiedEndLineNumber===0?et=new cc(ae.modifiedStartLineNumber+1,ae.modifiedStartLineNumber+1):et=new cc(ae.modifiedStartLineNumber,ae.modifiedEndLineNumber+1);let Je=new mR(yt,et,ae.charChanges?.map(Pn=>new b0(new hs(Pn.originalStartLineNumber,Pn.originalStartColumn,Pn.originalEndLineNumber,Pn.originalEndColumn),new hs(Pn.modifiedStartLineNumber,Pn.modifiedStartColumn,Pn.modifiedEndLineNumber,Pn.modifiedEndColumn))));Ke&&(Ke.modified.endLineNumberExclusive===Je.modified.startLineNumber||Ke.original.endLineNumberExclusive===Je.original.startLineNumber)&&(Je=new mR(Ke.original.join(Je.original),Ke.modified.join(Je.modified),Ke.innerChanges&&Je.innerChanges?Ke.innerChanges.concat(Je.innerChanges):void 0),Me.pop()),Me.push(Je),Ke=Je}return XC(()=>rz(Me,(ae,yt)=>yt.original.startLineNumber-ae.original.endLineNumberExclusive===yt.modified.startLineNumber-ae.modified.endLineNumberExclusive&&ae.original.endLineNumberExclusive<yt.original.startLineNumber&&ae.modified.endLineNumberExclusive<yt.modified.startLineNumber)),new rN(Me,[],he.quitEarly)}};function O5e(m,y,x,W){return new sz(m,y,x).ComputeDiff(W)}var AQ=class{constructor(y){let x=[],W=[];for(let X=0,he=y.length;X<he;X++)x[X]=Lve(y[X],1),W[X]=kve(y[X],1);this.lines=y,this._startColumns=x,this._endColumns=W}getElements(){let y=[];for(let x=0,W=this.lines.length;x<W;x++)y[x]=this.lines[x].substring(this._startColumns[x]-1,this._endColumns[x]-1);return y}getStrictElement(y){return this.lines[y]}getStartLineNumber(y){return y+1}getEndLineNumber(y){return y+1}createCharSequence(y,x,W){let X=[],he=[],Me=[],Ke=0;for(let ae=x;ae<=W;ae++){let yt=this.lines[ae],et=y?this._startColumns[ae]:1,Je=y?this._endColumns[ae]:yt.length+1;for(let Pn=et;Pn<Je;Pn++)X[Ke]=yt.charCodeAt(Pn-1),he[Ke]=ae+1,Me[Ke]=Pn,Ke++;!y&&ae<W&&(X[Ke]=10,he[Ke]=ae+1,Me[Ke]=yt.length+1,Ke++)}return new Mve(X,he,Me)}},Mve=class{constructor(y,x,W){this._charCodes=y,this._lineNumbers=x,this._columns=W}toString(){return"["+this._charCodes.map((y,x)=>(y===10?"\\n":String.fromCharCode(y))+`-(${this._lineNumbers[x]},${this._columns[x]})`).join(", ")+"]"}_assertIndex(y,x){if(y<0||y>=x.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(y){return y>0&&y===this._lineNumbers.length?this.getEndLineNumber(y-1):(this._assertIndex(y,this._lineNumbers),this._lineNumbers[y])}getEndLineNumber(y){return y===-1?this.getStartLineNumber(y+1):(this._assertIndex(y,this._lineNumbers),this._charCodes[y]===10?this._lineNumbers[y]+1:this._lineNumbers[y])}getStartColumn(y){return y>0&&y===this._columns.length?this.getEndColumn(y-1):(this._assertIndex(y,this._columns),this._columns[y])}getEndColumn(y){return y===-1?this.getStartColumn(y+1):(this._assertIndex(y,this._columns),this._charCodes[y]===10?1:this._columns[y]+1)}},T8=class m{constructor(y,x,W,X,he,Me,Ke,ae){this.originalStartLineNumber=y,this.originalStartColumn=x,this.originalEndLineNumber=W,this.originalEndColumn=X,this.modifiedStartLineNumber=he,this.modifiedStartColumn=Me,this.modifiedEndLineNumber=Ke,this.modifiedEndColumn=ae}static createFromDiffChange(y,x,W){let X=x.getStartLineNumber(y.originalStart),he=x.getStartColumn(y.originalStart),Me=x.getEndLineNumber(y.originalStart+y.originalLength-1),Ke=x.getEndColumn(y.originalStart+y.originalLength-1),ae=W.getStartLineNumber(y.modifiedStart),yt=W.getStartColumn(y.modifiedStart),et=W.getEndLineNumber(y.modifiedStart+y.modifiedLength-1),Je=W.getEndColumn(y.modifiedStart+y.modifiedLength-1);return new m(X,he,Me,Ke,ae,yt,et,Je)}};function vbt(m){if(m.length<=1)return m;let y=[m[0]],x=y[0];for(let W=1,X=m.length;W<X;W++){let he=m[W],Me=he.originalStart-(x.originalStart+x.originalLength),Ke=he.modifiedStart-(x.modifiedStart+x.modifiedLength);Math.min(Me,Ke)<ybt?(x.originalLength=he.originalStart+he.originalLength-x.originalStart,x.modifiedLength=he.modifiedStart+he.modifiedLength-x.modifiedStart):(y.push(he),x=he)}return y}var hz=class m{constructor(y,x,W,X,he){this.originalStartLineNumber=y,this.originalEndLineNumber=x,this.modifiedStartLineNumber=W,this.modifiedEndLineNumber=X,this.charChanges=he}static createFromDiffResult(y,x,W,X,he,Me,Ke){let ae,yt,et,Je,Pn;if(x.originalLength===0?(ae=W.getStartLineNumber(x.originalStart)-1,yt=0):(ae=W.getStartLineNumber(x.originalStart),yt=W.getEndLineNumber(x.originalStart+x.originalLength-1)),x.modifiedLength===0?(et=X.getStartLineNumber(x.modifiedStart)-1,Je=0):(et=X.getStartLineNumber(x.modifiedStart),Je=X.getEndLineNumber(x.modifiedStart+x.modifiedLength-1)),Me&&x.originalLength>0&&x.originalLength<20&&x.modifiedLength>0&&x.modifiedLength<20&&he()){let Hn=W.createCharSequence(y,x.originalStart,x.originalStart+x.originalLength-1),cr=X.createCharSequence(y,x.modifiedStart,x.modifiedStart+x.modifiedLength-1);if(Hn.getElements().length>0&&cr.getElements().length>0){let Gn=O5e(Hn,cr,he,!0).changes;Ke&&(Gn=vbt(Gn)),Pn=[];for(let ki=0,bo=Gn.length;ki<bo;ki++)Pn.push(T8.createFromDiffChange(Gn[ki],Hn,cr))}}return new m(ae,yt,et,Je,Pn)}},Pve=class{constructor(y,x,W){this.shouldComputeCharChanges=W.shouldComputeCharChanges,this.shouldPostProcessCharChanges=W.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=W.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=W.shouldMakePrettyDiff,this.originalLines=y,this.modifiedLines=x,this.original=new AQ(y),this.modified=new AQ(x),this.continueLineDiff=w5e(W.maxComputationTime),this.continueCharDiff=w5e(W.maxComputationTime===0?0:Math.min(W.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}]};let y=O5e(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),x=y.changes,W=y.quitEarly;if(this.shouldIgnoreTrimWhitespace){let Ke=[];for(let ae=0,yt=x.length;ae<yt;ae++)Ke.push(hz.createFromDiffResult(this.shouldIgnoreTrimWhitespace,x[ae],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:W,changes:Ke}}let X=[],he=0,Me=0;for(let Ke=-1,ae=x.length;Ke<ae;Ke++){let yt=Ke+1<ae?x[Ke+1]:null,et=yt?yt.originalStart:this.originalLines.length,Je=yt?yt.modifiedStart:this.modifiedLines.length;for(;he<et&&Me<Je;){let Pn=this.originalLines[he],Hn=this.modifiedLines[Me];if(Pn!==Hn){{let cr=Lve(Pn,1),Gn=Lve(Hn,1);for(;cr>1&&Gn>1;){let ki=Pn.charCodeAt(cr-2),bo=Hn.charCodeAt(Gn-2);if(ki!==bo)break;cr--,Gn--}(cr>1||Gn>1)&&this._pushTrimWhitespaceCharChange(X,he+1,1,cr,Me+1,1,Gn)}{let cr=kve(Pn,1),Gn=kve(Hn,1),ki=Pn.length+1,bo=Hn.length+1;for(;cr<ki&&Gn<bo;){let Vn=Pn.charCodeAt(cr-1),hn=Pn.charCodeAt(Gn-1);if(Vn!==hn)break;cr++,Gn++}(cr<ki||Gn<bo)&&this._pushTrimWhitespaceCharChange(X,he+1,cr,ki,Me+1,Gn,bo)}}he++,Me++}yt&&(X.push(hz.createFromDiffResult(this.shouldIgnoreTrimWhitespace,yt,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),he+=yt.originalLength,Me+=yt.modifiedLength)}return{quitEarly:W,changes:X}}_pushTrimWhitespaceCharChange(y,x,W,X,he,Me,Ke){if(this._mergeTrimWhitespaceCharChange(y,x,W,X,he,Me,Ke))return;let ae;this.shouldComputeCharChanges&&(ae=[new T8(x,W,x,X,he,Me,he,Ke)]),y.push(new hz(x,x,he,he,ae))}_mergeTrimWhitespaceCharChange(y,x,W,X,he,Me,Ke){let ae=y.length;if(ae===0)return!1;let yt=y[ae-1];return yt.originalEndLineNumber===0||yt.modifiedEndLineNumber===0?!1:yt.originalEndLineNumber===x&&yt.modifiedEndLineNumber===he?(this.shouldComputeCharChanges&&yt.charChanges&&yt.charChanges.push(new T8(x,W,x,X,he,Me,he,Ke)),!0):yt.originalEndLineNumber+1===x&&yt.modifiedEndLineNumber+1===he?(yt.originalEndLineNumber=x,yt.modifiedEndLineNumber=he,this.shouldComputeCharChanges&&yt.charChanges&&yt.charChanges.push(new T8(x,W,x,X,he,Me,he,Ke)),!0):!1}};function Lve(m,y){let x=PFe(m);return x===-1?y:x+1}function kve(m,y){let x=LFe(m);return x===-1?y:x+2}function w5e(m){if(m===0)return()=>!0;let y=Date.now();return()=>Date.now()-y<m}var wA=class m{static trivial(y,x){return new m([new Lm(Oc.ofLength(y.length),Oc.ofLength(x.length))],!1)}static trivialTimedOut(y,x){return new m([new Lm(Oc.ofLength(y.length),Oc.ofLength(x.length))],!0)}constructor(y,x){this.diffs=y,this.hitTimeout=x}},Lm=class m{static invert(y,x){let W=[];return C5e(y,(X,he)=>{W.push(m.fromOffsetPairs(X?X.getEndExclusives():kA.zero,he?he.getStarts():new kA(x,(X?X.seq2Range.endExclusive-X.seq1Range.endExclusive:0)+x)))}),W}static fromOffsetPairs(y,x){return new m(new Oc(y.offset1,x.offset1),new Oc(y.offset2,x.offset2))}static assertSorted(y){let x;for(let W of y){if(x&&!(x.seq1Range.endExclusive<=W.seq1Range.start&&x.seq2Range.endExclusive<=W.seq2Range.start))throw new af("Sequence diffs must be sorted");x=W}}constructor(y,x){this.seq1Range=y,this.seq2Range=x}swap(){return new m(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(y){return new m(this.seq1Range.join(y.seq1Range),this.seq2Range.join(y.seq2Range))}delta(y){return y===0?this:new m(this.seq1Range.delta(y),this.seq2Range.delta(y))}deltaStart(y){return y===0?this:new m(this.seq1Range.deltaStart(y),this.seq2Range.deltaStart(y))}deltaEnd(y){return y===0?this:new m(this.seq1Range.deltaEnd(y),this.seq2Range.deltaEnd(y))}intersect(y){let x=this.seq1Range.intersect(y.seq1Range),W=this.seq2Range.intersect(y.seq2Range);if(!(!x||!W))return new m(x,W)}getStarts(){return new kA(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new kA(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},kA=class m{static{this.zero=new m(0,0)}static{this.max=new m(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(y,x){this.offset1=y,this.offset2=x}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(y){return y===0?this:new m(this.offset1+y,this.offset2+y)}equals(y){return this.offset1===y.offset1&&this.offset2===y.offset2}},oN=class m{static{this.instance=new m}isValid(){return!0}},IQ=class{constructor(y){if(this.timeout=y,this.startTime=Date.now(),this.valid=!0,y<=0)throw new af("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}};var S8=class{constructor(y,x){this.width=y,this.height=x,this.array=[],this.array=new Array(y*x)}get(y,x){return this.array[y+x*this.width]}set(y,x,W){this.array[y+x*this.width]=W}};function gz(m){return m===32||m===9}var _z=class m{static{this.chrKeys=new Map}static getKey(y){let x=this.chrKeys.get(y);return x===void 0&&(x=this.chrKeys.size,this.chrKeys.set(y,x)),x}constructor(y,x,W){this.range=y,this.lines=x,this.source=W,this.histogram=[];let X=0;for(let he=y.startLineNumber-1;he<y.endLineNumberExclusive-1;he++){let Me=x[he];for(let ae=0;ae<Me.length;ae++){X++;let yt=Me[ae],et=m.getKey(yt);this.histogram[et]=(this.histogram[et]||0)+1}X++;let Ke=m.getKey(`
`);this.histogram[Ke]=(this.histogram[Ke]||0)+1}this.totalCount=X}computeSimilarity(y){let x=0,W=Math.max(this.histogram.length,y.histogram.length);for(let X=0;X<W;X++)x+=Math.abs((this.histogram[X]??0)-(y.histogram[X]??0));return 1-x/(this.totalCount+y.totalCount)}};var xQ=class{compute(y,x,W=oN.instance,X){if(y.length===0||x.length===0)return wA.trivial(y,x);let he=new S8(y.length,x.length),Me=new S8(y.length,x.length),Ke=new S8(y.length,x.length);for(let cr=0;cr<y.length;cr++)for(let Gn=0;Gn<x.length;Gn++){if(!W.isValid())return wA.trivialTimedOut(y,x);let ki=cr===0?0:he.get(cr-1,Gn),bo=Gn===0?0:he.get(cr,Gn-1),Vn;y.getElement(cr)===x.getElement(Gn)?(cr===0||Gn===0?Vn=0:Vn=he.get(cr-1,Gn-1),cr>0&&Gn>0&&Me.get(cr-1,Gn-1)===3&&(Vn+=Ke.get(cr-1,Gn-1)),Vn+=X?X(cr,Gn):1):Vn=-1;let hn=Math.max(ki,bo,Vn);if(hn===Vn){let ga=cr>0&&Gn>0?Ke.get(cr-1,Gn-1):0;Ke.set(cr,Gn,ga+1),Me.set(cr,Gn,3)}else hn===ki?(Ke.set(cr,Gn,0),Me.set(cr,Gn,1)):hn===bo&&(Ke.set(cr,Gn,0),Me.set(cr,Gn,2));he.set(cr,Gn,hn)}let ae=[],yt=y.length,et=x.length;function Je(cr,Gn){(cr+1!==yt||Gn+1!==et)&&ae.push(new Lm(new Oc(cr+1,yt),new Oc(Gn+1,et))),yt=cr,et=Gn}let Pn=y.length-1,Hn=x.length-1;for(;Pn>=0&&Hn>=0;)Me.get(Pn,Hn)===3?(Je(Pn,Hn),Pn--,Hn--):Me.get(Pn,Hn)===1?Pn--:Hn--;return Je(-1,-1),ae.reverse(),new wA(ae,!1)}};var E8=class{compute(y,x,W=oN.instance){if(y.length===0||x.length===0)return wA.trivial(y,x);let X=y,he=x;function Me(Gn,ki){for(;Gn<X.length&&ki<he.length&&X.getElement(Gn)===he.getElement(ki);)Gn++,ki++;return Gn}let Ke=0,ae=new wve;ae.set(0,Me(0,0));let yt=new Ove;yt.set(0,ae.get(0)===0?null:new RQ(null,0,0,ae.get(0)));let et=0;e:for(;;){if(Ke++,!W.isValid())return wA.trivialTimedOut(X,he);let Gn=-Math.min(Ke,he.length+Ke%2),ki=Math.min(Ke,X.length+Ke%2);for(et=Gn;et<=ki;et+=2){let bo=et===ki?-1:ae.get(et+1),Vn=et===Gn?-1:ae.get(et-1)+1,hn=Math.min(Math.max(bo,Vn),X.length),ga=hn-et;if(hn>X.length||ga>he.length)continue;let ho=Me(hn,ga);ae.set(et,ho);let gl=hn===bo?yt.get(et+1):yt.get(et-1);if(yt.set(et,ho!==hn?new RQ(gl,hn,ga,ho-hn):gl),ae.get(et)===X.length&&ae.get(et)-et===he.length)break e}}let Je=yt.get(et),Pn=[],Hn=X.length,cr=he.length;for(;;){let Gn=Je?Je.x+Je.length:0,ki=Je?Je.y+Je.length:0;if((Gn!==Hn||ki!==cr)&&Pn.push(new Lm(new Oc(Gn,Hn),new Oc(ki,cr))),!Je)break;Hn=Je.x,cr=Je.y,Je=Je.prev}return Pn.reverse(),new wA(Pn,!1)}},RQ=class{constructor(y,x,W,X){this.prev=y,this.x=x,this.y=W,this.length=X}},wve=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(y){return y<0?(y=-y-1,this.negativeArr[y]):this.positiveArr[y]}set(y,x){if(y<0){if(y=-y-1,y>=this.negativeArr.length){let W=this.negativeArr;this.negativeArr=new Int32Array(W.length*2),this.negativeArr.set(W)}this.negativeArr[y]=x}else{if(y>=this.positiveArr.length){let W=this.positiveArr;this.positiveArr=new Int32Array(W.length*2),this.positiveArr.set(W)}this.positiveArr[y]=x}}},Ove=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(y){return y<0?(y=-y-1,this.negativeArr[y]):this.positiveArr[y]}set(y,x){y<0?(y=-y-1,this.negativeArr[y]=x):this.positiveArr[y]=x}};var aN=class{constructor(y,x,W){this.lines=y,this.range=x,this.considerWhitespaceChanges=W,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let X=this.range.startLineNumber;X<=this.range.endLineNumber;X++){let he=y[X-1],Me=0;X===this.range.startLineNumber&&this.range.startColumn>1&&(Me=this.range.startColumn-1,he=he.substring(Me)),this.lineStartOffsets.push(Me);let Ke=0;if(!W){let yt=he.trimStart();Ke=he.length-yt.length,he=yt.trimEnd()}this.trimmedWsLengthsByLineIdx.push(Ke);let ae=X===this.range.endLineNumber?Math.min(this.range.endColumn-1-Me-Ke,he.length):he.length;for(let yt=0;yt<ae;yt++)this.elements.push(he.charCodeAt(yt));X<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Oc(0,this.length))}getText(y){return this.elements.slice(y.start,y.endExclusive).map(x=>String.fromCharCode(x)).join("")}getElement(y){return this.elements[y]}get length(){return this.elements.length}getBoundaryScore(y){let x=z5e(y>0?this.elements[y-1]:-1),W=z5e(y<this.elements.length?this.elements[y]:-1);if(x===7&&W===8)return 0;if(x===8)return 150;let X=0;return x!==W&&(X+=10,x===0&&W===1&&(X+=1)),X+=F5e(x),X+=F5e(W),X}translateOffset(y,x="right"){let W=fR(this.firstElementOffsetByLineIdx,he=>he<=y),X=y-this.firstElementOffsetByLineIdx[W];return new nc(this.range.startLineNumber+W,1+this.lineStartOffsets[W]+X+(X===0&&x==="left"?0:this.trimmedWsLengthsByLineIdx[W]))}translateRange(y){let x=this.translateOffset(y.start,"right"),W=this.translateOffset(y.endExclusive,"left");return W.isBefore(x)?hs.fromPositions(W,W):hs.fromPositions(x,W)}findWordContaining(y){if(y<0||y>=this.elements.length||!A8(this.elements[y]))return;let x=y;for(;x>0&&A8(this.elements[x-1]);)x--;let W=y;for(;W<this.elements.length&&A8(this.elements[W]);)W++;return new Oc(x,W)}findSubWordContaining(y){if(y<0||y>=this.elements.length||!A8(this.elements[y]))return;let x=y;for(;x>0&&A8(this.elements[x-1])&&!W5e(this.elements[x]);)x--;let W=y;for(;W<this.elements.length&&A8(this.elements[W])&&!W5e(this.elements[W]);)W++;return new Oc(x,W)}countLinesIn(y){return this.translateOffset(y.endExclusive).lineNumber-this.translateOffset(y.start).lineNumber}isStronglyEqual(y,x){return this.elements[y]===this.elements[x]}extendToFullLines(y){let x=pR(this.firstElementOffsetByLineIdx,X=>X<=y.start)??0,W=L5e(this.firstElementOffsetByLineIdx,X=>y.endExclusive<=X)??this.elements.length;return new Oc(x,W)}};function A8(m){return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57}function W5e(m){return m>=65&&m<=90}var bbt={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function F5e(m){return bbt[m]}function z5e(m){return m===10?8:m===13?7:gz(m)?6:m>=97&&m<=122?0:m>=65&&m<=90?1:m>=48&&m<=57?2:m===-1?3:m===44||m===59?5:4}function G5e(m,y,x,W,X,he){let{moves:Me,excludedChanges:Ke}=Sbt(m,y,x,he);if(!he.isValid())return[];let ae=m.filter(et=>!Ke.has(et)),yt=Ebt(ae,W,X,y,x,he);return M5e(Me,yt),Me=Abt(Me),Me=Me.filter(et=>{let Je=et.original.toOffsetRange().slice(y).map(Hn=>Hn.trim());return Je.join(`
`).length>=15&&Tbt(Je,Hn=>Hn.length>=2)>=2}),Me=Ibt(m,Me),Me}function Tbt(m,y){let x=0;for(let W of m)y(W)&&x++;return x}function Sbt(m,y,x,W){let X=[],he=m.filter(ae=>ae.modified.isEmpty&&ae.original.length>=3).map(ae=>new _z(ae.original,y,ae)),Me=new Set(m.filter(ae=>ae.original.isEmpty&&ae.modified.length>=3).map(ae=>new _z(ae.modified,x,ae))),Ke=new Set;for(let ae of he){let yt=-1,et;for(let Je of Me){let Pn=ae.computeSimilarity(Je);Pn>yt&&(yt=Pn,et=Je)}if(yt>.9&&et&&(Me.delete(et),X.push(new LA(ae.range,et.range)),Ke.add(ae.source),Ke.add(et.source)),!W.isValid())return{moves:X,excludedChanges:Ke}}return{moves:X,excludedChanges:Ke}}function Ebt(m,y,x,W,X,he){let Me=[],Ke=new hQ;for(let Pn of m)for(let Hn=Pn.original.startLineNumber;Hn<Pn.original.endLineNumberExclusive-2;Hn++){let cr=`${y[Hn-1]}:${y[Hn+1-1]}:${y[Hn+2-1]}`;Ke.add(cr,{range:new cc(Hn,Hn+3)})}let ae=[];m.sort(iN(Pn=>Pn.modified.startLineNumber,$2));for(let Pn of m){let Hn=[];for(let cr=Pn.modified.startLineNumber;cr<Pn.modified.endLineNumberExclusive-2;cr++){let Gn=`${x[cr-1]}:${x[cr+1-1]}:${x[cr+2-1]}`,ki=new cc(cr,cr+3),bo=[];Ke.forEach(Gn,({range:Vn})=>{for(let ga of Hn)if(ga.originalLineRange.endLineNumberExclusive+1===Vn.endLineNumberExclusive&&ga.modifiedLineRange.endLineNumberExclusive+1===ki.endLineNumberExclusive){ga.originalLineRange=new cc(ga.originalLineRange.startLineNumber,Vn.endLineNumberExclusive),ga.modifiedLineRange=new cc(ga.modifiedLineRange.startLineNumber,ki.endLineNumberExclusive),bo.push(ga);return}let hn={modifiedLineRange:ki,originalLineRange:Vn};ae.push(hn),bo.push(hn)}),Hn=bo}if(!he.isValid())return[]}ae.sort(P5e(iN(Pn=>Pn.modifiedLineRange.length,$2)));let yt=new Q2,et=new Q2;for(let Pn of ae){let Hn=Pn.modifiedLineRange.startLineNumber-Pn.originalLineRange.startLineNumber,cr=yt.subtractFrom(Pn.modifiedLineRange),Gn=et.subtractFrom(Pn.originalLineRange).getWithDelta(Hn),ki=cr.getIntersection(Gn);for(let bo of ki.ranges){if(bo.length<3)continue;let Vn=bo,hn=bo.delta(-Hn);Me.push(new LA(hn,Vn)),yt.addRange(Vn),et.addRange(hn)}}Me.sort(iN(Pn=>Pn.original.startLineNumber,$2));let Je=new mz(m);for(let Pn=0;Pn<Me.length;Pn++){let Hn=Me[Pn],cr=Je.findLastMonotonous(gl=>gl.original.startLineNumber<=Hn.original.startLineNumber),Gn=pR(m,gl=>gl.modified.startLineNumber<=Hn.modified.startLineNumber),ki=Math.max(Hn.original.startLineNumber-cr.original.startLineNumber,Hn.modified.startLineNumber-Gn.modified.startLineNumber),bo=Je.findLastMonotonous(gl=>gl.original.startLineNumber<Hn.original.endLineNumberExclusive),Vn=pR(m,gl=>gl.modified.startLineNumber<Hn.modified.endLineNumberExclusive),hn=Math.max(bo.original.endLineNumberExclusive-Hn.original.endLineNumberExclusive,Vn.modified.endLineNumberExclusive-Hn.modified.endLineNumberExclusive),ga;for(ga=0;ga<ki;ga++){let gl=Hn.original.startLineNumber-ga-1,jn=Hn.modified.startLineNumber-ga-1;if(gl>W.length||jn>X.length||yt.contains(jn)||et.contains(gl)||!B5e(W[gl-1],X[jn-1],he))break}ga>0&&(et.addRange(new cc(Hn.original.startLineNumber-ga,Hn.original.startLineNumber)),yt.addRange(new cc(Hn.modified.startLineNumber-ga,Hn.modified.startLineNumber)));let ho;for(ho=0;ho<hn;ho++){let gl=Hn.original.endLineNumberExclusive+ho,jn=Hn.modified.endLineNumberExclusive+ho;if(gl>W.length||jn>X.length||yt.contains(jn)||et.contains(gl)||!B5e(W[gl-1],X[jn-1],he))break}ho>0&&(et.addRange(new cc(Hn.original.endLineNumberExclusive,Hn.original.endLineNumberExclusive+ho)),yt.addRange(new cc(Hn.modified.endLineNumberExclusive,Hn.modified.endLineNumberExclusive+ho))),(ga>0||ho>0)&&(Me[Pn]=new LA(new cc(Hn.original.startLineNumber-ga,Hn.original.endLineNumberExclusive+ho),new cc(Hn.modified.startLineNumber-ga,Hn.modified.endLineNumberExclusive+ho)))}return Me}function B5e(m,y,x){if(m.trim()===y.trim())return!0;if(m.length>300&&y.length>300)return!1;let X=new E8().compute(new aN([m],new hs(1,1,1,m.length),!1),new aN([y],new hs(1,1,1,y.length),!1),x),he=0,Me=Lm.invert(X.diffs,m.length);for(let et of Me)et.seq1Range.forEach(Je=>{gz(m.charCodeAt(Je))||he++});function Ke(et){let Je=0;for(let Pn=0;Pn<m.length;Pn++)gz(et.charCodeAt(Pn))||Je++;return Je}let ae=Ke(m.length>y.length?m:y);return he/ae>.6&&ae>10}function Abt(m){if(m.length===0)return m;m.sort(iN(x=>x.original.startLineNumber,$2));let y=[m[0]];for(let x=1;x<m.length;x++){let W=y[y.length-1],X=m[x],he=X.original.startLineNumber-W.original.endLineNumberExclusive,Me=X.modified.startLineNumber-W.modified.endLineNumberExclusive;if(he>=0&&Me>=0&&he+Me<=2){y[y.length-1]=W.join(X);continue}y.push(X)}return y}function Ibt(m,y){let x=new mz(m);return y=y.filter(W=>{let X=x.findLastMonotonous(Ke=>Ke.original.startLineNumber<W.original.endLineNumberExclusive)||new LA(new cc(1,1),new cc(1,1)),he=pR(m,Ke=>Ke.modified.startLineNumber<W.modified.endLineNumberExclusive);return X!==he}),y}function Wve(m,y,x){let W=x;return W=V5e(m,y,W),W=V5e(m,y,W),W=xbt(m,y,W),W}function V5e(m,y,x){if(x.length===0)return x;let W=[];W.push(x[0]);for(let he=1;he<x.length;he++){let Me=W[W.length-1],Ke=x[he];if(Ke.seq1Range.isEmpty||Ke.seq2Range.isEmpty){let ae=Ke.seq1Range.start-Me.seq1Range.endExclusive,yt;for(yt=1;yt<=ae&&!(m.getElement(Ke.seq1Range.start-yt)!==m.getElement(Ke.seq1Range.endExclusive-yt)||y.getElement(Ke.seq2Range.start-yt)!==y.getElement(Ke.seq2Range.endExclusive-yt));yt++);if(yt--,yt===ae){W[W.length-1]=new Lm(new Oc(Me.seq1Range.start,Ke.seq1Range.endExclusive-ae),new Oc(Me.seq2Range.start,Ke.seq2Range.endExclusive-ae));continue}Ke=Ke.delta(-yt)}W.push(Ke)}let X=[];for(let he=0;he<W.length-1;he++){let Me=W[he+1],Ke=W[he];if(Ke.seq1Range.isEmpty||Ke.seq2Range.isEmpty){let ae=Me.seq1Range.start-Ke.seq1Range.endExclusive,yt;for(yt=0;yt<ae&&!(!m.isStronglyEqual(Ke.seq1Range.start+yt,Ke.seq1Range.endExclusive+yt)||!y.isStronglyEqual(Ke.seq2Range.start+yt,Ke.seq2Range.endExclusive+yt));yt++);if(yt===ae){W[he+1]=new Lm(new Oc(Ke.seq1Range.start+ae,Me.seq1Range.endExclusive),new Oc(Ke.seq2Range.start+ae,Me.seq2Range.endExclusive));continue}yt>0&&(Ke=Ke.delta(yt))}X.push(Ke)}return W.length>0&&X.push(W[W.length-1]),X}function xbt(m,y,x){if(!m.getBoundaryScore||!y.getBoundaryScore)return x;for(let W=0;W<x.length;W++){let X=W>0?x[W-1]:void 0,he=x[W],Me=W+1<x.length?x[W+1]:void 0,Ke=new Oc(X?X.seq1Range.endExclusive+1:0,Me?Me.seq1Range.start-1:m.length),ae=new Oc(X?X.seq2Range.endExclusive+1:0,Me?Me.seq2Range.start-1:y.length);he.seq1Range.isEmpty?x[W]=j5e(he,m,y,Ke,ae):he.seq2Range.isEmpty&&(x[W]=j5e(he.swap(),y,m,ae,Ke).swap())}return x}function j5e(m,y,x,W,X){let Me=1;for(;m.seq1Range.start-Me>=W.start&&m.seq2Range.start-Me>=X.start&&x.isStronglyEqual(m.seq2Range.start-Me,m.seq2Range.endExclusive-Me)&&Me<100;)Me++;Me--;let Ke=0;for(;m.seq1Range.start+Ke<W.endExclusive&&m.seq2Range.endExclusive+Ke<X.endExclusive&&x.isStronglyEqual(m.seq2Range.start+Ke,m.seq2Range.endExclusive+Ke)&&Ke<100;)Ke++;if(Me===0&&Ke===0)return m;let ae=0,yt=-1;for(let et=-Me;et<=Ke;et++){let Je=m.seq2Range.start+et,Pn=m.seq2Range.endExclusive+et,Hn=m.seq1Range.start+et,cr=y.getBoundaryScore(Hn)+x.getBoundaryScore(Je)+x.getBoundaryScore(Pn);cr>yt&&(yt=cr,ae=et)}return m.delta(ae)}function U5e(m,y,x){let W=[];for(let X of x){let he=W[W.length-1];if(!he){W.push(X);continue}X.seq1Range.start-he.seq1Range.endExclusive<=2||X.seq2Range.start-he.seq2Range.endExclusive<=2?W[W.length-1]=new Lm(he.seq1Range.join(X.seq1Range),he.seq2Range.join(X.seq2Range)):W.push(X)}return W}function Fve(m,y,x,W,X=!1){let he=Lm.invert(x,m.length),Me=[],Ke=new kA(0,0);function ae(et,Je){if(et.offset1<Ke.offset1||et.offset2<Ke.offset2)return;let Pn=W(m,et.offset1),Hn=W(y,et.offset2);if(!Pn||!Hn)return;let cr=new Lm(Pn,Hn),Gn=cr.intersect(Je),ki=Gn.seq1Range.length,bo=Gn.seq2Range.length;for(;he.length>0;){let Vn=he[0];if(!(Vn.seq1Range.intersects(cr.seq1Range)||Vn.seq2Range.intersects(cr.seq2Range)))break;let ga=W(m,Vn.seq1Range.start),ho=W(y,Vn.seq2Range.start),gl=new Lm(ga,ho),jn=gl.intersect(Vn);if(ki+=jn.seq1Range.length,bo+=jn.seq2Range.length,cr=cr.join(gl),cr.seq1Range.endExclusive>=Vn.seq1Range.endExclusive)he.shift();else break}(X&&ki+bo<cr.seq1Range.length+cr.seq2Range.length||ki+bo<(cr.seq1Range.length+cr.seq2Range.length)*2/3)&&Me.push(cr),Ke=cr.getEndExclusives()}for(;he.length>0;){let et=he.shift();et.seq1Range.isEmpty||(ae(et.getStarts(),et),ae(et.getEndExclusives().delta(-1),et))}return Rbt(x,Me)}function Rbt(m,y){let x=[];for(;m.length>0||y.length>0;){let W=m[0],X=y[0],he;W&&(!X||W.seq1Range.start<X.seq1Range.start)?he=m.shift():he=y.shift(),x.length>0&&x[x.length-1].seq1Range.endExclusive>=he.seq1Range.start?x[x.length-1]=x[x.length-1].join(he):x.push(he)}return x}function H5e(m,y,x){let W=x;if(W.length===0)return W;let X=0,he;do{he=!1;let Me=[W[0]];for(let Ke=1;Ke<W.length;Ke++){let et=function(Pn,Hn){let cr=new Oc(yt.seq1Range.endExclusive,ae.seq1Range.start);return m.getText(cr).replace(/\s/g,"").length<=4&&(Pn.seq1Range.length+Pn.seq2Range.length>5||Hn.seq1Range.length+Hn.seq2Range.length>5)},ae=W[Ke],yt=Me[Me.length-1];et(yt,ae)?(he=!0,Me[Me.length-1]=Me[Me.length-1].join(ae)):Me.push(ae)}W=Me}while(X++<10&&he);return W}function q5e(m,y,x){let W=x;if(W.length===0)return W;let X=0,he;do{he=!1;let Ke=[W[0]];for(let ae=1;ae<W.length;ae++){let Je=function(Hn,cr){let Gn=new Oc(et.seq1Range.endExclusive,yt.seq1Range.start);if(m.countLinesIn(Gn)>5||Gn.length>500)return!1;let bo=m.getText(Gn).trim();if(bo.length>20||bo.split(/\r\n|\r|\n/).length>1)return!1;let Vn=m.countLinesIn(Hn.seq1Range),hn=Hn.seq1Range.length,ga=y.countLinesIn(Hn.seq2Range),ho=Hn.seq2Range.length,gl=m.countLinesIn(cr.seq1Range),jn=cr.seq1Range.length,Gi=y.countLinesIn(cr.seq2Range),Io=cr.seq2Range.length,Un=2*40+50;function ul(hi){return Math.min(hi,Un)}return Math.pow(Math.pow(ul(Vn*40+hn),1.5)+Math.pow(ul(ga*40+ho),1.5),1.5)+Math.pow(Math.pow(ul(gl*40+jn),1.5)+Math.pow(ul(Gi*40+Io),1.5),1.5)>(Un**1.5)**1.5*1.3},yt=W[ae],et=Ke[Ke.length-1];Je(et,yt)?(he=!0,Ke[Ke.length-1]=Ke[Ke.length-1].join(yt)):Ke.push(yt)}W=Ke}while(X++<10&&he);let Me=[];return N5e(W,(Ke,ae,yt)=>{let et=ae;function Je(bo){return bo.length>0&&bo.trim().length<=3&&ae.seq1Range.length+ae.seq2Range.length>100}let Pn=m.extendToFullLines(ae.seq1Range),Hn=m.getText(new Oc(Pn.start,ae.seq1Range.start));Je(Hn)&&(et=et.deltaStart(-Hn.length));let cr=m.getText(new Oc(ae.seq1Range.endExclusive,Pn.endExclusive));Je(cr)&&(et=et.deltaEnd(cr.length));let Gn=Lm.fromOffsetPairs(Ke?Ke.getEndExclusives():kA.zero,yt?yt.getStarts():kA.max),ki=et.intersect(Gn);Me.length>0&&ki.getStarts().equals(Me[Me.length-1].getEndExclusives())?Me[Me.length-1]=Me[Me.length-1].join(ki):Me.push(ki)}),Me}var yz=class{constructor(y,x){this.trimmedHash=y,this.lines=x}getElement(y){return this.trimmedHash[y]}get length(){return this.trimmedHash.length}getBoundaryScore(y){let x=y===0?0:J5e(this.lines[y-1]),W=y===this.lines.length?0:J5e(this.lines[y]);return 1e3-(x+W)}getText(y){return this.lines.slice(y.start,y.endExclusive).join(`
`)}isStronglyEqual(y,x){return this.lines[y]===this.lines[x]}};function J5e(m){let y=0;for(;y<m.length&&(m.charCodeAt(y)===32||m.charCodeAt(y)===9);)y++;return y}var DQ=class{constructor(){this.dynamicProgrammingDiffing=new xQ,this.myersDiffingAlgorithm=new E8}computeDiff(y,x,W){if(y.length<=1&&R5e(y,x,(jn,Gi)=>jn===Gi))return new rN([],[],!1);if(y.length===1&&y[0].length===0||x.length===1&&x[0].length===0)return new rN([new mR(new cc(1,y.length+1),new cc(1,x.length+1),[new b0(new hs(1,1,y.length,y[y.length-1].length+1),new hs(1,1,x.length,x[x.length-1].length+1))])],[],!1);let X=W.maxComputationTimeMs===0?oN.instance:new IQ(W.maxComputationTimeMs),he=!W.ignoreTrimWhitespace,Me=new Map;function Ke(jn){let Gi=Me.get(jn);return Gi===void 0&&(Gi=Me.size,Me.set(jn,Gi)),Gi}let ae=y.map(jn=>Ke(jn.trim())),yt=x.map(jn=>Ke(jn.trim())),et=new yz(ae,y),Je=new yz(yt,x),Pn=et.length+Je.length<1700?this.dynamicProgrammingDiffing.compute(et,Je,X,(jn,Gi)=>y[jn]===x[Gi]?x[Gi].length===0?.1:1+Math.log(1+x[Gi].length):.99):this.myersDiffingAlgorithm.compute(et,Je,X),Hn=Pn.diffs,cr=Pn.hitTimeout;Hn=Wve(et,Je,Hn),Hn=H5e(et,Je,Hn);let Gn=[],ki=jn=>{if(he)for(let Gi=0;Gi<jn;Gi++){let Io=bo+Gi,Un=Vn+Gi;if(y[Io]!==x[Un]){let ul=this.refineDiff(y,x,new Lm(new Oc(Io,Io+1),new Oc(Un,Un+1)),X,he,W);for(let hi of ul.mappings)Gn.push(hi);ul.hitTimeout&&(cr=!0)}}},bo=0,Vn=0;for(let jn of Hn){XC(()=>jn.seq1Range.start-bo===jn.seq2Range.start-Vn);let Gi=jn.seq1Range.start-bo;ki(Gi),bo=jn.seq1Range.endExclusive,Vn=jn.seq2Range.endExclusive;let Io=this.refineDiff(y,x,jn,X,he,W);Io.hitTimeout&&(cr=!0);for(let Un of Io.mappings)Gn.push(Un)}ki(y.length-bo);let hn=new eL(y),ga=new eL(x),ho=Nve(Gn,hn,ga),gl=[];return W.computeMoves&&(gl=this.computeMoves(ho,y,x,ae,yt,X,he,W)),XC(()=>{function jn(Io,Un){if(Io.lineNumber<1||Io.lineNumber>Un.length)return!1;let ul=Un[Io.lineNumber-1];return!(Io.column<1||Io.column>ul.length+1)}function Gi(Io,Un){return!(Io.startLineNumber<1||Io.startLineNumber>Un.length+1||Io.endLineNumberExclusive<1||Io.endLineNumberExclusive>Un.length+1)}for(let Io of ho){if(!Io.innerChanges)return!1;for(let Un of Io.innerChanges)if(!(jn(Un.modifiedRange.getStartPosition(),x)&&jn(Un.modifiedRange.getEndPosition(),x)&&jn(Un.originalRange.getStartPosition(),y)&&jn(Un.originalRange.getEndPosition(),y)))return!1;if(!Gi(Io.modified,x)||!Gi(Io.original,y))return!1}return!0}),new rN(ho,gl,cr)}computeMoves(y,x,W,X,he,Me,Ke,ae){return G5e(y,x,W,X,he,Me).map(Je=>{let Pn=this.refineDiff(x,W,new Lm(Je.original.toOffsetRange(),Je.modified.toOffsetRange()),Me,Ke,ae),Hn=Nve(Pn.mappings,new eL(x),new eL(W),!0);return new vQ(Je,Hn)})}refineDiff(y,x,W,X,he,Me){let ae=Dbt(W).toRangeMapping2(y,x),yt=new aN(y,ae.originalRange,he),et=new aN(x,ae.modifiedRange,he),Je=yt.length+et.length<500?this.dynamicProgrammingDiffing.compute(yt,et,X):this.myersDiffingAlgorithm.compute(yt,et,X),Pn=Je.diffs;return Pn=Wve(yt,et,Pn),Pn=Fve(yt,et,Pn,(cr,Gn)=>cr.findWordContaining(Gn)),Me.extendToSubwords&&(Pn=Fve(yt,et,Pn,(cr,Gn)=>cr.findSubWordContaining(Gn),!0)),Pn=U5e(yt,et,Pn),Pn=q5e(yt,et,Pn),{mappings:Pn.map(cr=>new b0(yt.translateRange(cr.seq1Range),et.translateRange(cr.seq2Range))),hitTimeout:Je.hitTimeout}}};function Dbt(m){return new LA(new cc(m.seq1Range.start+1,m.seq1Range.endExclusive+1),new cc(m.seq2Range.start+1,m.seq2Range.endExclusive+1))}var zve={getLegacy:()=>new EQ,getDefault:()=>new DQ};function sN(m,y){let x=Math.pow(10,y);return Math.round(m*x)/x}var Tr=class{constructor(y,x,W,X=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,y))|0,this.g=Math.min(255,Math.max(0,x))|0,this.b=Math.min(255,Math.max(0,W))|0,this.a=sN(Math.max(Math.min(1,X),0),3)}static equals(y,x){return y.r===x.r&&y.g===x.g&&y.b===x.b&&y.a===x.a}},OA=class m{constructor(y,x,W,X){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,y),0)|0,this.s=sN(Math.max(Math.min(1,x),0),3),this.l=sN(Math.max(Math.min(1,W),0),3),this.a=sN(Math.max(Math.min(1,X),0),3)}static equals(y,x){return y.h===x.h&&y.s===x.s&&y.l===x.l&&y.a===x.a}static fromRGBA(y){let x=y.r/255,W=y.g/255,X=y.b/255,he=y.a,Me=Math.max(x,W,X),Ke=Math.min(x,W,X),ae=0,yt=0,et=(Ke+Me)/2,Je=Me-Ke;if(Je>0){switch(yt=Math.min(et<=.5?Je/(2*et):Je/(2-2*et),1),Me){case x:ae=(W-X)/Je+(W<X?6:0);break;case W:ae=(X-x)/Je+2;break;case X:ae=(x-W)/Je+4;break}ae*=60,ae=Math.round(ae)}return new m(ae,yt,et,he)}static _hue2rgb(y,x,W){return W<0&&(W+=1),W>1&&(W-=1),W<1/6?y+(x-y)*6*W:W<1/2?x:W<2/3?y+(x-y)*(2/3-W)*6:y}static toRGBA(y){let x=y.h/360,{s:W,l:X,a:he}=y,Me,Ke,ae;if(W===0)Me=Ke=ae=X;else{let yt=X<.5?X*(1+W):X+W-X*W,et=2*X-yt;Me=m._hue2rgb(et,yt,x+1/3),Ke=m._hue2rgb(et,yt,x),ae=m._hue2rgb(et,yt,x-1/3)}return new Tr(Math.round(Me*255),Math.round(Ke*255),Math.round(ae*255),he)}},I8=class m{constructor(y,x,W,X){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,y),0)|0,this.s=sN(Math.max(Math.min(1,x),0),3),this.v=sN(Math.max(Math.min(1,W),0),3),this.a=sN(Math.max(Math.min(1,X),0),3)}static equals(y,x){return y.h===x.h&&y.s===x.s&&y.v===x.v&&y.a===x.a}static fromRGBA(y){let x=y.r/255,W=y.g/255,X=y.b/255,he=Math.max(x,W,X),Me=Math.min(x,W,X),Ke=he-Me,ae=he===0?0:Ke/he,yt;return Ke===0?yt=0:he===x?yt=((W-X)/Ke%6+6)%6:he===W?yt=(X-x)/Ke+2:yt=(x-W)/Ke+4,new m(Math.round(yt*60),ae,he,y.a)}static toRGBA(y){let{h:x,s:W,v:X,a:he}=y,Me=X*W,Ke=Me*(1-Math.abs(x/60%2-1)),ae=X-Me,[yt,et,Je]=[0,0,0];return x<60?(yt=Me,et=Ke):x<120?(yt=Ke,et=Me):x<180?(et=Me,Je=Ke):x<240?(et=Ke,Je=Me):x<300?(yt=Ke,Je=Me):x<=360&&(yt=Me,Je=Ke),yt=Math.round((yt+ae)*255),et=Math.round((et+ae)*255),Je=Math.round((Je+ae)*255),new Tr(yt,et,Je,he)}},tL=class m{static fromHex(y){return m.Format.CSS.parseHex(y)||m.red}static equals(y,x){return!y&&!x?!0:!y||!x?!1:y.equals(x)}get hsla(){return this._hsla?this._hsla:OA.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:I8.fromRGBA(this.rgba)}constructor(y){if(y)if(y instanceof Tr)this.rgba=y;else if(y instanceof OA)this._hsla=y,this.rgba=OA.toRGBA(y);else if(y instanceof I8)this._hsva=y,this.rgba=I8.toRGBA(y);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(y){return!!y&&Tr.equals(this.rgba,y.rgba)&&OA.equals(this.hsla,y.hsla)&&I8.equals(this.hsva,y.hsva)}getRelativeLuminance(){let y=m._relativeLuminanceForComponent(this.rgba.r),x=m._relativeLuminanceForComponent(this.rgba.g),W=m._relativeLuminanceForComponent(this.rgba.b),X=.2126*y+.7152*x+.0722*W;return sN(X,4)}static _relativeLuminanceForComponent(y){let x=y/255;return x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(y){let x=this.getRelativeLuminance(),W=y.getRelativeLuminance();return x>W}isDarkerThan(y){let x=this.getRelativeLuminance(),W=y.getRelativeLuminance();return x<W}lighten(y){return new m(new OA(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*y,this.hsla.a))}darken(y){return new m(new OA(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*y,this.hsla.a))}transparent(y){let{r:x,g:W,b:X,a:he}=this.rgba;return new m(new Tr(x,W,X,he*y))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new m(new Tr(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(y,x=.5){let W=Math.min(Math.max(x,0),1),X=this.rgba,he=y.rgba,Me=X.r+(he.r-X.r)*W,Ke=X.g+(he.g-X.g)*W,ae=X.b+(he.b-X.b)*W,yt=X.a+(he.a-X.a)*W;return new m(new Tr(Me,Ke,ae,yt))}makeOpaque(y){if(this.isOpaque()||y.rgba.a!==1)return this;let{r:x,g:W,b:X,a:he}=this.rgba;return new m(new Tr(y.rgba.r-he*(y.rgba.r-x),y.rgba.g-he*(y.rgba.g-W),y.rgba.b-he*(y.rgba.b-X),1))}toString(){return this._toString||(this._toString=m.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(y,x,W){if(y.isLighterThan(x))return y;W=W||.5;let X=y.getRelativeLuminance(),he=x.getRelativeLuminance();return W=W*(he-X)/he,y.lighten(W)}static getDarkerColor(y,x,W){if(y.isDarkerThan(x))return y;W=W||.5;let X=y.getRelativeLuminance(),he=x.getRelativeLuminance();return W=W*(X-he)/X,y.darken(W)}static{this.white=new m(new Tr(255,255,255,1))}static{this.black=new m(new Tr(0,0,0,1))}static{this.red=new m(new Tr(255,0,0,1))}static{this.blue=new m(new Tr(0,0,255,1))}static{this.green=new m(new Tr(0,255,0,1))}static{this.cyan=new m(new Tr(0,255,255,1))}static{this.lightgrey=new m(new Tr(211,211,211,1))}static{this.transparent=new m(new Tr(0,0,0,0))}};(function(m){(function(y){(function(x){function W(Gn){return Gn.rgba.a===1?`rgb(${Gn.rgba.r}, ${Gn.rgba.g}, ${Gn.rgba.b})`:m.Format.CSS.formatRGBA(Gn)}x.formatRGB=W;function X(Gn){return`rgba(${Gn.rgba.r}, ${Gn.rgba.g}, ${Gn.rgba.b}, ${+Gn.rgba.a.toFixed(2)})`}x.formatRGBA=X;function he(Gn){return Gn.hsla.a===1?`hsl(${Gn.hsla.h}, ${Math.round(Gn.hsla.s*100)}%, ${Math.round(Gn.hsla.l*100)}%)`:m.Format.CSS.formatHSLA(Gn)}x.formatHSL=he;function Me(Gn){return`hsla(${Gn.hsla.h}, ${Math.round(Gn.hsla.s*100)}%, ${Math.round(Gn.hsla.l*100)}%, ${Gn.hsla.a.toFixed(2)})`}x.formatHSLA=Me;function Ke(Gn){let ki=Gn.toString(16);return ki.length!==2?"0"+ki:ki}function ae(Gn){return`#${Ke(Gn.rgba.r)}${Ke(Gn.rgba.g)}${Ke(Gn.rgba.b)}`}x.formatHex=ae;function yt(Gn,ki=!1){return ki&&Gn.rgba.a===1?m.Format.CSS.formatHex(Gn):`#${Ke(Gn.rgba.r)}${Ke(Gn.rgba.g)}${Ke(Gn.rgba.b)}${Ke(Math.round(Gn.rgba.a*255))}`}x.formatHexA=yt;function et(Gn){return Gn.isOpaque()?m.Format.CSS.formatHex(Gn):m.Format.CSS.formatRGBA(Gn)}x.format=et;function Je(Gn){if(Gn==="transparent")return m.transparent;if(Gn.startsWith("#"))return Hn(Gn);if(Gn.startsWith("rgba(")){let ki=Gn.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!ki)throw new Error("Invalid color format "+Gn);let bo=parseInt(ki.groups?.r??"0"),Vn=parseInt(ki.groups?.g??"0"),hn=parseInt(ki.groups?.b??"0"),ga=parseFloat(ki.groups?.a??"0");return new m(new Tr(bo,Vn,hn,ga))}if(Gn.startsWith("rgb(")){let ki=Gn.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!ki)throw new Error("Invalid color format "+Gn);let bo=parseInt(ki.groups?.r??"0"),Vn=parseInt(ki.groups?.g??"0"),hn=parseInt(ki.groups?.b??"0");return new m(new Tr(bo,Vn,hn))}return Pn(Gn)}x.parse=Je;function Pn(Gn){switch(Gn){case"aliceblue":return new m(new Tr(240,248,255,1));case"antiquewhite":return new m(new Tr(250,235,215,1));case"aqua":return new m(new Tr(0,255,255,1));case"aquamarine":return new m(new Tr(127,255,212,1));case"azure":return new m(new Tr(240,255,255,1));case"beige":return new m(new Tr(245,245,220,1));case"bisque":return new m(new Tr(255,228,196,1));case"black":return new m(new Tr(0,0,0,1));case"blanchedalmond":return new m(new Tr(255,235,205,1));case"blue":return new m(new Tr(0,0,255,1));case"blueviolet":return new m(new Tr(138,43,226,1));case"brown":return new m(new Tr(165,42,42,1));case"burlywood":return new m(new Tr(222,184,135,1));case"cadetblue":return new m(new Tr(95,158,160,1));case"chartreuse":return new m(new Tr(127,255,0,1));case"chocolate":return new m(new Tr(210,105,30,1));case"coral":return new m(new Tr(255,127,80,1));case"cornflowerblue":return new m(new Tr(100,149,237,1));case"cornsilk":return new m(new Tr(255,248,220,1));case"crimson":return new m(new Tr(220,20,60,1));case"cyan":return new m(new Tr(0,255,255,1));case"darkblue":return new m(new Tr(0,0,139,1));case"darkcyan":return new m(new Tr(0,139,139,1));case"darkgoldenrod":return new m(new Tr(184,134,11,1));case"darkgray":return new m(new Tr(169,169,169,1));case"darkgreen":return new m(new Tr(0,100,0,1));case"darkgrey":return new m(new Tr(169,169,169,1));case"darkkhaki":return new m(new Tr(189,183,107,1));case"darkmagenta":return new m(new Tr(139,0,139,1));case"darkolivegreen":return new m(new Tr(85,107,47,1));case"darkorange":return new m(new Tr(255,140,0,1));case"darkorchid":return new m(new Tr(153,50,204,1));case"darkred":return new m(new Tr(139,0,0,1));case"darksalmon":return new m(new Tr(233,150,122,1));case"darkseagreen":return new m(new Tr(143,188,143,1));case"darkslateblue":return new m(new Tr(72,61,139,1));case"darkslategray":return new m(new Tr(47,79,79,1));case"darkslategrey":return new m(new Tr(47,79,79,1));case"darkturquoise":return new m(new Tr(0,206,209,1));case"darkviolet":return new m(new Tr(148,0,211,1));case"deeppink":return new m(new Tr(255,20,147,1));case"deepskyblue":return new m(new Tr(0,191,255,1));case"dimgray":return new m(new Tr(105,105,105,1));case"dimgrey":return new m(new Tr(105,105,105,1));case"dodgerblue":return new m(new Tr(30,144,255,1));case"firebrick":return new m(new Tr(178,34,34,1));case"floralwhite":return new m(new Tr(255,250,240,1));case"forestgreen":return new m(new Tr(34,139,34,1));case"fuchsia":return new m(new Tr(255,0,255,1));case"gainsboro":return new m(new Tr(220,220,220,1));case"ghostwhite":return new m(new Tr(248,248,255,1));case"gold":return new m(new Tr(255,215,0,1));case"goldenrod":return new m(new Tr(218,165,32,1));case"gray":return new m(new Tr(128,128,128,1));case"green":return new m(new Tr(0,128,0,1));case"greenyellow":return new m(new Tr(173,255,47,1));case"grey":return new m(new Tr(128,128,128,1));case"honeydew":return new m(new Tr(240,255,240,1));case"hotpink":return new m(new Tr(255,105,180,1));case"indianred":return new m(new Tr(205,92,92,1));case"indigo":return new m(new Tr(75,0,130,1));case"ivory":return new m(new Tr(255,255,240,1));case"khaki":return new m(new Tr(240,230,140,1));case"lavender":return new m(new Tr(230,230,250,1));case"lavenderblush":return new m(new Tr(255,240,245,1));case"lawngreen":return new m(new Tr(124,252,0,1));case"lemonchiffon":return new m(new Tr(255,250,205,1));case"lightblue":return new m(new Tr(173,216,230,1));case"lightcoral":return new m(new Tr(240,128,128,1));case"lightcyan":return new m(new Tr(224,255,255,1));case"lightgoldenrodyellow":return new m(new Tr(250,250,210,1));case"lightgray":return new m(new Tr(211,211,211,1));case"lightgreen":return new m(new Tr(144,238,144,1));case"lightgrey":return new m(new Tr(211,211,211,1));case"lightpink":return new m(new Tr(255,182,193,1));case"lightsalmon":return new m(new Tr(255,160,122,1));case"lightseagreen":return new m(new Tr(32,178,170,1));case"lightskyblue":return new m(new Tr(135,206,250,1));case"lightslategray":return new m(new Tr(119,136,153,1));case"lightslategrey":return new m(new Tr(119,136,153,1));case"lightsteelblue":return new m(new Tr(176,196,222,1));case"lightyellow":return new m(new Tr(255,255,224,1));case"lime":return new m(new Tr(0,255,0,1));case"limegreen":return new m(new Tr(50,205,50,1));case"linen":return new m(new Tr(250,240,230,1));case"magenta":return new m(new Tr(255,0,255,1));case"maroon":return new m(new Tr(128,0,0,1));case"mediumaquamarine":return new m(new Tr(102,205,170,1));case"mediumblue":return new m(new Tr(0,0,205,1));case"mediumorchid":return new m(new Tr(186,85,211,1));case"mediumpurple":return new m(new Tr(147,112,219,1));case"mediumseagreen":return new m(new Tr(60,179,113,1));case"mediumslateblue":return new m(new Tr(123,104,238,1));case"mediumspringgreen":return new m(new Tr(0,250,154,1));case"mediumturquoise":return new m(new Tr(72,209,204,1));case"mediumvioletred":return new m(new Tr(199,21,133,1));case"midnightblue":return new m(new Tr(25,25,112,1));case"mintcream":return new m(new Tr(245,255,250,1));case"mistyrose":return new m(new Tr(255,228,225,1));case"moccasin":return new m(new Tr(255,228,181,1));case"navajowhite":return new m(new Tr(255,222,173,1));case"navy":return new m(new Tr(0,0,128,1));case"oldlace":return new m(new Tr(253,245,230,1));case"olive":return new m(new Tr(128,128,0,1));case"olivedrab":return new m(new Tr(107,142,35,1));case"orange":return new m(new Tr(255,165,0,1));case"orangered":return new m(new Tr(255,69,0,1));case"orchid":return new m(new Tr(218,112,214,1));case"palegoldenrod":return new m(new Tr(238,232,170,1));case"palegreen":return new m(new Tr(152,251,152,1));case"paleturquoise":return new m(new Tr(175,238,238,1));case"palevioletred":return new m(new Tr(219,112,147,1));case"papayawhip":return new m(new Tr(255,239,213,1));case"peachpuff":return new m(new Tr(255,218,185,1));case"peru":return new m(new Tr(205,133,63,1));case"pink":return new m(new Tr(255,192,203,1));case"plum":return new m(new Tr(221,160,221,1));case"powderblue":return new m(new Tr(176,224,230,1));case"purple":return new m(new Tr(128,0,128,1));case"rebeccapurple":return new m(new Tr(102,51,153,1));case"red":return new m(new Tr(255,0,0,1));case"rosybrown":return new m(new Tr(188,143,143,1));case"royalblue":return new m(new Tr(65,105,225,1));case"saddlebrown":return new m(new Tr(139,69,19,1));case"salmon":return new m(new Tr(250,128,114,1));case"sandybrown":return new m(new Tr(244,164,96,1));case"seagreen":return new m(new Tr(46,139,87,1));case"seashell":return new m(new Tr(255,245,238,1));case"sienna":return new m(new Tr(160,82,45,1));case"silver":return new m(new Tr(192,192,192,1));case"skyblue":return new m(new Tr(135,206,235,1));case"slateblue":return new m(new Tr(106,90,205,1));case"slategray":return new m(new Tr(112,128,144,1));case"slategrey":return new m(new Tr(112,128,144,1));case"snow":return new m(new Tr(255,250,250,1));case"springgreen":return new m(new Tr(0,255,127,1));case"steelblue":return new m(new Tr(70,130,180,1));case"tan":return new m(new Tr(210,180,140,1));case"teal":return new m(new Tr(0,128,128,1));case"thistle":return new m(new Tr(216,191,216,1));case"tomato":return new m(new Tr(255,99,71,1));case"turquoise":return new m(new Tr(64,224,208,1));case"violet":return new m(new Tr(238,130,238,1));case"wheat":return new m(new Tr(245,222,179,1));case"white":return new m(new Tr(255,255,255,1));case"whitesmoke":return new m(new Tr(245,245,245,1));case"yellow":return new m(new Tr(255,255,0,1));case"yellowgreen":return new m(new Tr(154,205,50,1));default:return null}}function Hn(Gn){let ki=Gn.length;if(ki===0||Gn.charCodeAt(0)!==35)return null;if(ki===7){let bo=16*cr(Gn.charCodeAt(1))+cr(Gn.charCodeAt(2)),Vn=16*cr(Gn.charCodeAt(3))+cr(Gn.charCodeAt(4)),hn=16*cr(Gn.charCodeAt(5))+cr(Gn.charCodeAt(6));return new m(new Tr(bo,Vn,hn,1))}if(ki===9){let bo=16*cr(Gn.charCodeAt(1))+cr(Gn.charCodeAt(2)),Vn=16*cr(Gn.charCodeAt(3))+cr(Gn.charCodeAt(4)),hn=16*cr(Gn.charCodeAt(5))+cr(Gn.charCodeAt(6)),ga=16*cr(Gn.charCodeAt(7))+cr(Gn.charCodeAt(8));return new m(new Tr(bo,Vn,hn,ga/255))}if(ki===4){let bo=cr(Gn.charCodeAt(1)),Vn=cr(Gn.charCodeAt(2)),hn=cr(Gn.charCodeAt(3));return new m(new Tr(16*bo+bo,16*Vn+Vn,16*hn+hn))}if(ki===5){let bo=cr(Gn.charCodeAt(1)),Vn=cr(Gn.charCodeAt(2)),hn=cr(Gn.charCodeAt(3)),ga=cr(Gn.charCodeAt(4));return new m(new Tr(16*bo+bo,16*Vn+Vn,16*hn+hn,(16*ga+ga)/255))}return null}x.parseHex=Hn;function cr(Gn){switch(Gn){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}})(y.CSS||(y.CSS={}))})(m.Format||(m.Format={}))})(tL||(tL={}));function Y5e(m){let y=[];for(let x of m){let W=Number(x);(W||W===0&&x.replace(/\s/g,"")!=="")&&y.push(W)}return y}function Bve(m,y,x,W){return{red:m/255,blue:x/255,green:y/255,alpha:W}}function vz(m,y){let x=y.index,W=y[0].length;if(x===void 0)return;let X=m.positionAt(x);return{startLineNumber:X.lineNumber,startColumn:X.column,endLineNumber:X.lineNumber,endColumn:X.column+W}}function Cbt(m,y){if(!m)return;let x=tL.Format.CSS.parseHex(y);if(x)return{range:m,color:Bve(x.rgba.r,x.rgba.g,x.rgba.b,x.rgba.a)}}function K5e(m,y,x){if(!m||y.length!==1)return;let X=y[0].values(),he=Y5e(X);return{range:m,color:Bve(he[0],he[1],he[2],x?he[3]:1)}}function X5e(m,y,x){if(!m||y.length!==1)return;let X=y[0].values(),he=Y5e(X),Me=new tL(new OA(he[0],he[1]/100,he[2]/100,x?he[3]:1));return{range:m,color:Bve(Me.rgba.r,Me.rgba.g,Me.rgba.b,Me.rgba.a)}}function bz(m,y){return typeof m=="string"?[...m.matchAll(y)]:m.findMatches(y)}function Nbt(m){let y=[],W=bz(m,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(W.length>0)for(let X of W){let he=X.filter(yt=>yt!==void 0),Me=he[1],Ke=he[2];if(!Ke)continue;let ae;if(Me==="rgb"){let yt=/^\(\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;ae=K5e(vz(m,X),bz(Ke,yt),!1)}else if(Me==="rgba"){let yt=/^\(\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;ae=K5e(vz(m,X),bz(Ke,yt),!0)}else if(Me==="hsl"){let yt=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;ae=X5e(vz(m,X),bz(Ke,yt),!1)}else if(Me==="hsla"){let yt=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;ae=X5e(vz(m,X),bz(Ke,yt),!0)}else Me==="#"&&(ae=Cbt(vz(m,X),Me+Ke));ae&&y.push(ae)}return y}function $5e(m){return!m||typeof m.getValue!="function"||typeof m.positionAt!="function"?[]:Nbt(m)}var Mbt=/^-+|-+$/g,Q5e=100,Pbt=5;function Z5e(m,y){let x=[];if(y.findRegionSectionHeaders&&y.foldingRules?.markers){let W=Lbt(m,y);x=x.concat(W)}if(y.findMarkSectionHeaders){let W=kbt(m,y);x=x.concat(W)}return x}function Lbt(m,y){let x=[],W=m.getLineCount();for(let X=1;X<=W;X++){let he=m.getLineContent(X),Me=he.match(y.foldingRules.markers.start);if(Me){let Ke={startLineNumber:X,startColumn:Me[0].length+1,endLineNumber:X,endColumn:he.length+1};if(Ke.endColumn>Ke.startColumn){let ae={range:Ke,...wbt(he.substring(Me[0].length)),shouldBeInComments:!1};(ae.text||ae.hasSeparatorLine)&&x.push(ae)}}}return x}function kbt(m,y){let x=[],W=m.getLineCount();if(!y.markSectionHeaderRegex||y.markSectionHeaderRegex.trim()==="")return x;let X=E5e(y.markSectionHeaderRegex),he=new RegExp(y.markSectionHeaderRegex,`gdm${X?"s":""}`);if(NFe(he))return x;for(let Me=1;Me<=W;Me+=Q5e-Pbt){let Ke=Math.min(Me+Q5e-1,W),ae=[];for(let Je=Me;Je<=Ke;Je++)ae.push(m.getLineContent(Je));let yt=ae.join(`
`);he.lastIndex=0;let et;for(;(et=he.exec(yt))!==null;){let Je=yt.substring(0,et.index),Pn=(Je.match(/\n/g)||[]).length,Hn=Me+Pn,cr=et[0].split(`
`),Gn=cr.length,ki=Hn+Gn-1,bo=Je.lastIndexOf(`
`)+1,Vn=et.index-bo+1,hn=cr[cr.length-1],ga=Gn===1?Vn+et[0].length:hn.length+1,ho={startLineNumber:Hn,startColumn:Vn,endLineNumber:ki,endColumn:ga},gl=(et.groups??{}).label??"",jn=((et.groups??{}).separator??"")!=="",Gi={range:ho,text:gl,hasSeparatorLine:jn,shouldBeInComments:!0};(Gi.text||Gi.hasSeparatorLine)&&(x.length===0||x[x.length-1].range.endLineNumber<Gi.range.startLineNumber)&&x.push(Gi),he.lastIndex=et.index+et[0].length}}return x}function wbt(m){m=m.trim();let y=m.startsWith("-");return m=m.replace(Mbt,""),{text:m,hasSeparatorLine:y}}var Obt=Symbol("MicrotaskDelay");var Wbt,Gve;(function(){let m=globalThis;typeof m.requestIdleCallback!="function"||typeof m.cancelIdleCallback!="function"?Gve=(y,x,W)=>{RFe(()=>{if(X)return;let he=Date.now()+15;x(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,he-Date.now())}}))});let X=!1;return{dispose(){X||(X=!0)}}}:Gve=(y,x,W)=>{let X=y.requestIdleCallback(x,typeof W=="number"?{timeout:W}:void 0),he=!1;return{dispose(){he||(he=!0,y.cancelIdleCallback(X))}}},Wbt=(y,x)=>Gve(globalThis,y,x)})();var Vve=class{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((y,x)=>{this.completeCallback=y,this.errorCallback=x})}complete(y){return this.isSettled?Promise.resolve():new Promise(x=>{this.completeCallback(y),this.outcome={outcome:0,value:y},x()})}error(y){return this.isSettled?Promise.resolve():new Promise(x=>{this.errorCallback(y),this.outcome={outcome:1,value:y},x()})}cancel(){return this.error(new tz)}},e9e;(function(m){async function y(W){let X,he=await Promise.all(W.map(Me=>Me.then(Ke=>Ke,Ke=>{X||(X=Ke)})));if(typeof X<"u")throw X;return he}m.settled=y;function x(W){return new Promise(async(X,he)=>{try{await W(X,he)}catch(Me){he(Me)}})}m.withAsyncBody=x})(e9e||(e9e={}));var jve=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(y){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let x=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(x,y)}else this._unconsumedValues.push(y)}produceFinal(y){this._ensureNoFinalValue(),this._finalValue=y;for(let x of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(x,y);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new af("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(y,x){x.ok?y.complete(x.value):y.error(x.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let y=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return y.ok?Promise.resolve(y.value):Promise.reject(y.error)}else{let y=new Vve;return this._unsatisfiedConsumers.push(y),y.p}}},t9e=class m{constructor(y,x){this._onReturn=x,this._producerConsumer=new jve,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async W=>(this._finishError(W),{done:!0,value:void 0})},queueMicrotask(async()=>{let W=y({emitOne:X=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:X}}),emitMany:X=>{for(let he of X)this._producerConsumer.produce({ok:!0,value:{done:!1,value:he}})},reject:X=>this._finishError(X)});if(!this._producerConsumer.hasFinalValue)try{await W,this._finishOk()}catch(X){this._finishError(X)}})}static fromArray(y){return new m(x=>{x.emitMany(y)})}static fromPromise(y){return new m(async x=>{x.emitMany(await y)})}static fromPromisesResolveOrder(y){return new m(async x=>{await Promise.all(y.map(async W=>x.emitOne(await W)))})}static merge(y){return new m(async x=>{await Promise.all(y.map(async W=>{for await(let X of W)x.emitOne(X)}))})}static{this.EMPTY=m.fromArray([])}static map(y,x){return new m(async W=>{for await(let X of y)W.emitOne(x(X))})}map(y){return m.map(this,y)}static coalesce(y){return m.filter(y,x=>!!x)}coalesce(){return m.coalesce(this)}static filter(y,x){return new m(async W=>{for await(let X of y)x(X)&&W.emitOne(X)})}filter(y){return m.filter(this,y)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(y){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:y})}[Symbol.asyncIterator](){return this._iterator}};var CQ=class{constructor(y){this.values=y,this.prefixSum=new Uint32Array(y.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(y,x){y=X2(y);let W=this.values,X=this.prefixSum,he=x.length;return he===0?!1:(this.values=new Uint32Array(W.length+he),this.values.set(W.subarray(0,y),0),this.values.set(W.subarray(y),y+he),this.values.set(x,y),y-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=y-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(y,x){return y=X2(y),x=X2(x),this.values[y]===x?!1:(this.values[y]=x,y-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=y-1),!0)}removeValues(y,x){y=X2(y),x=X2(x);let W=this.values,X=this.prefixSum;if(y>=W.length)return!1;let he=W.length-y;return x>=he&&(x=he),x===0?!1:(this.values=new Uint32Array(W.length-x),this.values.set(W.subarray(0,y),0),this.values.set(W.subarray(y+x),y),this.prefixSum=new Uint32Array(this.values.length),y-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=y-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(y){return y<0?0:(y=X2(y),this._getPrefixSum(y))}_getPrefixSum(y){if(y<=this.prefixSumValidIndex[0])return this.prefixSum[y];let x=this.prefixSumValidIndex[0]+1;x===0&&(this.prefixSum[0]=this.values[0],x++),y>=this.values.length&&(y=this.values.length-1);for(let W=x;W<=y;W++)this.prefixSum[W]=this.prefixSum[W-1]+this.values[W];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],y),this.prefixSum[y]}getIndexOf(y){y=Math.floor(y),this.getTotalSum();let x=0,W=this.values.length-1,X=0,he=0,Me=0;for(;x<=W;)if(X=x+(W-x)/2|0,he=this.prefixSum[X],Me=he-this.values[X],y<Me)W=X-1;else if(y>=he)x=X+1;else break;return new Uve(X,y-Me)}};var Uve=class{constructor(y,x){this.index=y,this.remainder=x,this._prefixSumIndexOfResultBrand=void 0,this.index=y,this.remainder=x}};var NQ=class{constructor(y,x,W,X){this._uri=y,this._lines=x,this._eol=W,this._versionId=X,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(y){y.eol&&y.eol!==this._eol&&(this._eol=y.eol,this._lineStarts=null);let x=y.changes;for(let W of x)this._acceptDeleteRange(W.range),this._acceptInsertText(new nc(W.range.startLineNumber,W.range.startColumn),W.text);this._versionId=y.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let y=this._eol.length,x=this._lines.length,W=new Uint32Array(x);for(let X=0;X<x;X++)W[X]=this._lines[X].length+y;this._lineStarts=new CQ(W)}}_setLineText(y,x){this._lines[y]=x,this._lineStarts&&this._lineStarts.setValue(y,this._lines[y].length+this._eol.length)}_acceptDeleteRange(y){if(y.startLineNumber===y.endLineNumber){if(y.startColumn===y.endColumn)return;this._setLineText(y.startLineNumber-1,this._lines[y.startLineNumber-1].substring(0,y.startColumn-1)+this._lines[y.startLineNumber-1].substring(y.endColumn-1));return}this._setLineText(y.startLineNumber-1,this._lines[y.startLineNumber-1].substring(0,y.startColumn-1)+this._lines[y.endLineNumber-1].substring(y.endColumn-1)),this._lines.splice(y.startLineNumber,y.endLineNumber-y.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(y.startLineNumber,y.endLineNumber-y.startLineNumber)}_acceptInsertText(y,x){if(x.length===0)return;let W=MFe(x);if(W.length===1){this._setLineText(y.lineNumber-1,this._lines[y.lineNumber-1].substring(0,y.column-1)+W[0]+this._lines[y.lineNumber-1].substring(y.column-1));return}W[W.length-1]+=this._lines[y.lineNumber-1].substring(y.column-1),this._setLineText(y.lineNumber-1,this._lines[y.lineNumber-1].substring(0,y.column-1)+W[0]);let X=new Uint32Array(W.length-1);for(let he=1;he<W.length;he++)this._lines.splice(y.lineNumber+he-1,0,W[he]),X[he-1]=W[he].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(y.lineNumber,X)}};var sAt=60*1e3;var MQ=class{constructor(){this._models=Object.create(null)}getModel(y){return this._models[y]}getModels(){let y=[];return Object.keys(this._models).forEach(x=>y.push(this._models[x])),y}$acceptNewModel(y){this._models[y.url]=new Hve(nN.parse(y.url),y.lines,y.EOL,y.versionId)}$acceptModelChanged(y,x){if(!this._models[y])return;this._models[y].onEvents(x)}$acceptRemovedModel(y){this._models[y]&&delete this._models[y]}},Hve=class extends NQ{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(y){let x=[];for(let W=0;W<this._lines.length;W++){let X=this._lines[W],he=this.offsetAt(new nc(W+1,1)),Me=X.matchAll(y);for(let Ke of Me)(Ke.index||Ke.index===0)&&(Ke.index=Ke.index+he),x.push(Ke)}return x}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(y){return this._lines[y-1]}getWordAtPosition(y,x){let W=fz(y.column,Ive(x),this._lines[y.lineNumber-1],0);return W?new hs(y.lineNumber,W.startColumn,y.lineNumber,W.endColumn):null}words(y){let x=this._lines,W=this._wordenize.bind(this),X=0,he="",Me=0,Ke=[];return{*[Symbol.iterator](){for(;;)if(Me<Ke.length){let ae=he.substring(Ke[Me].start,Ke[Me].end);Me+=1,yield ae}else if(X<x.length)he=x[X],Ke=W(he,y),Me=0,X+=1;else break}}}getLineWords(y,x){let W=this._lines[y-1],X=this._wordenize(W,x),he=[];for(let Me of X)he.push({word:W.substring(Me.start,Me.end),startColumn:Me.start+1,endColumn:Me.end+1});return he}_wordenize(y,x){let W=[],X;for(x.lastIndex=0;(X=x.exec(y))&&X[0].length!==0;)W.push({start:X.index,end:X.index+X[0].length});return W}getValueInRange(y){if(y=this._validateRange(y),y.startLineNumber===y.endLineNumber)return this._lines[y.startLineNumber-1].substring(y.startColumn-1,y.endColumn-1);let x=this._eol,W=y.startLineNumber-1,X=y.endLineNumber-1,he=[];he.push(this._lines[W].substring(y.startColumn-1));for(let Me=W+1;Me<X;Me++)he.push(this._lines[Me]);return he.push(this._lines[X].substring(0,y.endColumn-1)),he.join(x)}offsetAt(y){return y=this._validatePosition(y),this._ensureLineStarts(),this._lineStarts.getPrefixSum(y.lineNumber-2)+(y.column-1)}positionAt(y){y=Math.floor(y),y=Math.max(0,y),this._ensureLineStarts();let x=this._lineStarts.getIndexOf(y),W=this._lines[x.index].length;return{lineNumber:1+x.index,column:1+Math.min(x.remainder,W)}}_validateRange(y){let x=this._validatePosition({lineNumber:y.startLineNumber,column:y.startColumn}),W=this._validatePosition({lineNumber:y.endLineNumber,column:y.endColumn});return x.lineNumber!==y.startLineNumber||x.column!==y.startColumn||W.lineNumber!==y.endLineNumber||W.column!==y.endColumn?{startLineNumber:x.lineNumber,startColumn:x.column,endLineNumber:W.lineNumber,endColumn:W.column}:y}_validatePosition(y){if(!nc.isIPosition(y))throw new Error("bad position");let{lineNumber:x,column:W}=y,X=!1;if(x<1)x=1,W=1,X=!0;else if(x>this._lines.length)x=this._lines.length,W=this._lines[x-1].length+1,X=!0;else{let he=this._lines[x-1].length+1;W<1?(W=1,X=!0):W>he&&(W=he,X=!0)}return X?{lineNumber:x,column:W}:y}};var PQ=class m{constructor(y=null){this._foreignModule=y,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new MQ}dispose(){}async $ping(){return"pong"}_getModel(y){return this._workerTextModelSyncServer.getModel(y)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(y){this._workerTextModelSyncServer.$acceptNewModel(y)}$acceptModelChanged(y,x){this._workerTextModelSyncServer.$acceptModelChanged(y,x)}$acceptRemovedModel(y){this._workerTextModelSyncServer.$acceptRemovedModel(y)}async $computeUnicodeHighlights(y,x,W){let X=this._getModel(y);return X?gQ.computeUnicodeHighlights(X,x,W):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(y,x){let W=this._getModel(y);return W?Z5e(W,x):[]}async $computeDiff(y,x,W,X){let he=this._getModel(y),Me=this._getModel(x);return!he||!Me?null:m.computeDiff(he,Me,W,X)}static computeDiff(y,x,W,X){let he=X==="advanced"?zve.getDefault():zve.getLegacy(),Me=y.getLinesContent(),Ke=x.getLinesContent(),ae=he.computeDiff(Me,Ke,W),yt=ae.changes.length>0?!1:this._modelsAreIdentical(y,x);function et(Je){return Je.map(Pn=>[Pn.original.startLineNumber,Pn.original.endLineNumberExclusive,Pn.modified.startLineNumber,Pn.modified.endLineNumberExclusive,Pn.innerChanges?.map(Hn=>[Hn.originalRange.startLineNumber,Hn.originalRange.startColumn,Hn.originalRange.endLineNumber,Hn.originalRange.endColumn,Hn.modifiedRange.startLineNumber,Hn.modifiedRange.startColumn,Hn.modifiedRange.endLineNumber,Hn.modifiedRange.endColumn])])}return{identical:yt,quitEarly:ae.hitTimeout,changes:et(ae.changes),moves:ae.moves.map(Je=>[Je.lineRangeMapping.original.startLineNumber,Je.lineRangeMapping.original.endLineNumberExclusive,Je.lineRangeMapping.modified.startLineNumber,Je.lineRangeMapping.modified.endLineNumberExclusive,et(Je.changes)])}}static _modelsAreIdentical(y,x){let W=y.getLineCount(),X=x.getLineCount();if(W!==X)return!1;for(let he=1;he<=W;he++){let Me=y.getLineContent(he),Ke=x.getLineContent(he);if(Me!==Ke)return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(y,x,W){let X=this._getModel(y);if(!X)return x;let he=[],Me;x=x.slice(0).sort((ae,yt)=>{if(ae.range&&yt.range)return hs.compareRangesUsingStarts(ae.range,yt.range);let et=ae.range?0:1,Je=yt.range?0:1;return et-Je});let Ke=0;for(let ae=1;ae<x.length;ae++)hs.getEndPosition(x[Ke].range).equals(hs.getStartPosition(x[ae].range))?(x[Ke].range=hs.fromPositions(hs.getStartPosition(x[Ke].range),hs.getEndPosition(x[ae].range)),x[Ke].text+=x[ae].text):(Ke++,x[Ke]=x[ae]);x.length=Ke+1;for(let{range:ae,text:yt,eol:et}of x){if(typeof et=="number"&&(Me=et),hs.isEmpty(ae)&&!yt)continue;let Je=X.getValueInRange(ae);if(yt=yt.replace(/\r\n|\n|\r/g,X.eol),Je===yt)continue;if(Math.max(yt.length,Je.length)>m._diffLimit){he.push({range:ae,text:yt});continue}let Pn=KFe(Je,yt,W),Hn=X.offsetAt(hs.lift(ae).getStartPosition());for(let cr of Pn){let Gn=X.positionAt(Hn+cr.originalStart),ki=X.positionAt(Hn+cr.originalStart+cr.originalLength),bo={text:yt.substr(cr.modifiedStart,cr.modifiedLength),range:{startLineNumber:Gn.lineNumber,startColumn:Gn.column,endLineNumber:ki.lineNumber,endColumn:ki.column}};X.getValueInRange(bo.range)!==bo.text&&he.push(bo)}}return typeof Me=="number"&&he.push({eol:Me,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),he}async $computeLinks(y){let x=this._getModel(y);return x?XFe(x):null}async $computeDefaultDocumentColors(y){let x=this._getModel(y);return x?$5e(x):null}static{this._suggestionsLimit=1e4}async $textualSuggest(y,x,W,X){let he=new f8,Me=new RegExp(W,X),Ke=new Set;e:for(let ae of y){let yt=this._getModel(ae);if(yt){for(let et of yt.words(Me))if(!(et===x||!isNaN(Number(et)))&&(Ke.add(et),Ke.size>m._suggestionsLimit))break e}}return{words:Array.from(Ke),duration:he.elapsed()}}async $computeWordRanges(y,x,W,X){let he=this._getModel(y);if(!he)return Object.create(null);let Me=new RegExp(W,X),Ke=Object.create(null);for(let ae=x.startLineNumber;ae<x.endLineNumber;ae++){let yt=he.getLineWords(ae,Me);for(let et of yt){if(!isNaN(Number(et.word)))continue;let Je=Ke[et.word];Je||(Je=[],Ke[et.word]=Je),Je.push({startLineNumber:ae,startColumn:et.startColumn,endLineNumber:ae,endColumn:et.endColumn})}}return Ke}async $navigateValueSet(y,x,W,X,he){let Me=this._getModel(y);if(!Me)return null;let Ke=new RegExp(X,he);x.startColumn===x.endColumn&&(x={startLineNumber:x.startLineNumber,startColumn:x.startColumn,endLineNumber:x.endLineNumber,endColumn:x.endColumn+1});let ae=Me.getValueInRange(x),yt=Me.getWordAtPosition({lineNumber:x.startLineNumber,column:x.startColumn},Ke);if(!yt)return null;let et=Me.getValueInRange(yt);return eQ.INSTANCE.navigateValueSet(x,ae,yt,et,W)}$fmr(y,x){if(!this._foreignModule||typeof this._foreignModule[y]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+y));try{return Promise.resolve(this._foreignModule[y].apply(this._foreignModule,x))}catch(W){return Promise.reject(W)}}};typeof importScripts=="function"&&(globalThis.monaco=m5e());var LQ=class m{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(y){return y.getChannel(m.CHANNEL_NAME)}static setChannel(y,x){y.setChannel(m.CHANNEL_NAME,x)}};function n9e(m){let y,x=GFe(W=>{let X=LQ.getChannel(W),Me={host:new Proxy({},{get(Ke,ae,yt){if(ae!=="then"){if(typeof ae!="string")throw new Error("Not supported");return(...et)=>X.$fhr(ae,et)}}}),getMirrorModels:()=>x.requestHandler.getModels()};return y=m(Me),new PQ(y)});return y}var Fbt=!1;function r9e(m){Fbt=!0,self.onmessage=y=>{n9e(x=>m(x,y.data))}}var wQ={};bvt(wQ,{EndOfLineState:()=>Gbt,IndentStyle:()=>jbt,ScriptKind:()=>cN,ScriptTarget:()=>Ubt,TokenClass:()=>Hbt,createClassifier:()=>zbt,createLanguageService:()=>$ve,displayPartsToString:()=>Bbt,flattenDiagnosticMessageText:()=>Vbt,typescript:()=>Qve});var i9e=void 0;var e1={};(m=>{var y=Object.defineProperty,x=(e,t)=>{for(var r in t)y(e,r,{get:t[r],enumerable:!0})},W=e=>e,X={};x(X,{ANONYMOUS:()=>Qq,AccessFlags:()=>LZ,AssertionLevel:()=>jQ,AssignmentDeclarationKind:()=>VZ,AssignmentKind:()=>pne,Associativity:()=>bne,BreakpointResolver:()=>YJ,BuilderFileEmit:()=>_se,BuilderProgramKind:()=>Ase,BuilderState:()=>_h,CallHierarchy:()=>lx,CharacterCodes:()=>ZZ,CheckFlags:()=>CZ,CheckMode:()=>TU,ClassificationType:()=>cq,ClassificationTypeNames:()=>xle,CommentDirectiveType:()=>mZ,Comparison:()=>Ke,CompletionInfoFlags:()=>vle,CompletionTriggerKind:()=>sq,Completions:()=>fx,ContainerFlags:()=>Yoe,ContextFlags:()=>TZ,Debug:()=>C,DiagnosticCategory:()=>W8,Diagnostics:()=>f,DocumentHighlights:()=>L7,ElementFlags:()=>PZ,EmitFlags:()=>aB,EmitHint:()=>ree,EmitOnly:()=>_Z,EndOfLineState:()=>Sle,ExitStatus:()=>gZ,ExportKind:()=>_ce,Extension:()=>eee,ExternalEmitHelpers:()=>nee,FileIncludeKind:()=>Yz,FilePreprocessingDiagnosticsKind:()=>hZ,FileSystemEntryKind:()=>pee,FileWatcherEventKind:()=>cee,FindAllReferences:()=>Ys,FlattenLevel:()=>yae,FlowFlags:()=>O8,ForegroundColorEscapeSequences:()=>ase,FunctionFlags:()=>yne,GeneratedIdentifierFlags:()=>Xz,GetLiteralTextFlags:()=>Cte,GoToDefinition:()=>iC,HighlightSpanKind:()=>gle,IdentifierNameMap:()=>kD,ImportKind:()=>hce,ImportsNotUsedAsValues:()=>KZ,IndentStyle:()=>yle,IndexFlags:()=>kZ,IndexKind:()=>WZ,InferenceFlags:()=>BZ,InferencePriority:()=>zZ,InlayHintKind:()=>_le,InlayHints:()=>GK,InternalEmitFlags:()=>tee,InternalNodeBuilderFlags:()=>EZ,InternalSymbolName:()=>NZ,IntersectionFlags:()=>bZ,InvalidatedProjectKind:()=>Jse,JSDocParsingMode:()=>lee,JsDoc:()=>uT,JsTyping:()=>Fb,JsxEmit:()=>JZ,JsxFlags:()=>dZ,JsxReferenceKind:()=>wZ,LanguageFeatureMinimumTarget:()=>ed,LanguageServiceMode:()=>mle,LanguageVariant:()=>$Z,LexicalEnvironmentFlags:()=>oee,ListFormat:()=>aee,LogLevel:()=>ZQ,MapCode:()=>VK,MemberOverrideStatus:()=>yZ,ModifierFlags:()=>Jz,ModuleDetectionKind:()=>jZ,ModuleInstanceState:()=>Koe,ModuleKind:()=>bR,ModuleResolutionKind:()=>vR,ModuleSpecifierEnding:()=>gre,NavigateTo:()=>Bce,NavigationBar:()=>Vce,NewLineKind:()=>XZ,NodeBuilderFlags:()=>SZ,NodeCheckFlags:()=>Zz,NodeFactoryFlags:()=>Xre,NodeFlags:()=>qz,NodeResolutionFeatures:()=>Foe,ObjectFlags:()=>tB,OperationCanceledException:()=>yN,OperatorPrecedence:()=>Tne,OrganizeImports:()=>pT,OrganizeImportsMode:()=>aq,OuterExpressionKinds:()=>iee,OutliningElementsCollector:()=>UK,OutliningSpanKind:()=>ble,OutputFileType:()=>Tle,PackageJsonAutoImportPreference:()=>fle,PackageJsonDependencyGroup:()=>ple,PatternMatchKind:()=>gJ,PollingInterval:()=>sB,PollingWatchKind:()=>qZ,PragmaKindFlags:()=>see,PredicateSemantics:()=>uZ,PreparePasteEdits:()=>oX,PrivateIdentifierKind:()=>oie,ProcessLevel:()=>Sae,ProgramUpdateLevel:()=>tse,QuotePreference:()=>Kle,RegularExpressionFlags:()=>pZ,RelationComparisonResult:()=>Kz,Rename:()=>_5,ScriptElementKind:()=>Ale,ScriptElementKindModifier:()=>Ile,ScriptKind:()=>rB,ScriptSnapshot:()=>HF,ScriptTarget:()=>YZ,SemanticClassificationFormat:()=>hle,SemanticMeaning:()=>Rle,SemicolonPreference:()=>lq,SignatureCheckMode:()=>SU,SignatureFlags:()=>nB,SignatureHelp:()=>JO,SignatureInfo:()=>hse,SignatureKind:()=>OZ,SmartSelectionRange:()=>JK,SnippetKind:()=>oB,StatisticType:()=>nle,StructureIsReused:()=>$z,SymbolAccessibility:()=>xZ,SymbolDisplay:()=>_v,SymbolDisplayPartKind:()=>JF,SymbolFlags:()=>Qz,SymbolFormatFlags:()=>IZ,SyntaxKind:()=>Hz,Ternary:()=>GZ,ThrottledCancellationToken:()=>Yde,TokenClass:()=>Ele,TokenFlags:()=>fZ,TransformFlags:()=>iB,TypeFacts:()=>bU,TypeFlags:()=>eB,TypeFormatFlags:()=>AZ,TypeMapKind:()=>FZ,TypePredicateKind:()=>RZ,TypeReferenceSerializationKind:()=>DZ,UnionReduction:()=>vZ,UpToDateStatusType:()=>Bse,VarianceFlags:()=>MZ,Version:()=>ih,VersionRange:()=>w8,WatchDirectoryFlags:()=>QZ,WatchDirectoryKind:()=>HZ,WatchFileKind:()=>UZ,WatchLogLevel:()=>rse,WatchType:()=>sd,accessPrivateIdentifier:()=>gae,addEmitFlags:()=>$h,addEmitHelper:()=>CI,addEmitHelpers:()=>Eg,addInternalEmitFlags:()=>aE,addNodeFactoryPatcher:()=>H0e,addObjectAllocatorPatcher:()=>C0e,addRange:()=>Xr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>xb,addSyntheticTrailingComment:()=>LM,addToSeen:()=>_m,advancedAsyncSuperHelper:()=>t3,affectsDeclarationPathOptionDeclarations:()=>doe,affectsEmitOptionDeclarations:()=>coe,allKeysStartWithDot:()=>X3,altDirectorySeparator:()=>V8,and:()=>P8,append:()=>Bn,appendIfUnique:()=>$g,arrayFrom:()=>Co,arrayIsEqualTo:()=>$p,arrayIsHomogeneous:()=>xre,arrayOf:()=>zQ,arrayReverseIterator:()=>Az,arrayToMap:()=>hR,arrayToMultiMap:()=>oL,arrayToNumericMap:()=>GQ,assertType:()=>rbe,assign:()=>PS,asyncSuperHelper:()=>e3,attachFileToDiagnostics:()=>bI,base64decode:()=>Vne,base64encode:()=>Gne,binarySearch:()=>Yv,binarySearchKey:()=>BA,bindSourceFile:()=>$oe,breakIntoCharacterSpans:()=>Pce,breakIntoWordSpans:()=>Lce,buildLinkParts:()=>nce,buildOpts:()=>Tw,buildOverload:()=>Pke,bundlerModuleNameResolver:()=>zoe,canBeConvertedToAsync:()=>EJ,canHaveDecorators:()=>F1,canHaveExportModifier:()=>Hk,canHaveFlowNode:()=>HR,canHaveIllegalDecorators:()=>Nj,canHaveIllegalModifiers:()=>Uie,canHaveIllegalType:()=>gTe,canHaveIllegalTypeParameters:()=>jie,canHaveJSDoc:()=>pk,canHaveLocals:()=>R_,canHaveModifiers:()=>bm,canHaveModuleSpecifier:()=>cne,canHaveSymbol:()=>ah,canIncludeBindAndCheckDiagnostics:()=>EM,canJsonReportNoInputFiles:()=>Rw,canProduceDiagnostics:()=>Ow,canUsePropertyAccess:()=>kV,canWatchAffectingLocation:()=>Pse,canWatchAtTypes:()=>Mse,canWatchDirectoryOrFile:()=>EH,canWatchDirectoryOrFilePath:()=>$w,cartesianProduct:()=>$Q,cast:()=>ma,chainBundle:()=>hh,chainDiagnosticMessages:()=>qo,changeAnyExtension:()=>pL,changeCompilerHostLikeToUseCache:()=>hP,changeExtension:()=>rv,changeFullExtension:()=>H8,changesAffectModuleResolution:()=>y6,changesAffectingProgramStructure:()=>Tte,characterCodeToRegularExpressionFlag:()=>yB,childIsDecorated:()=>HN,classElementOrClassElementParameterIsDecorated:()=>gG,classHasClassThisAssignment:()=>WU,classHasDeclaredOrExplicitlyAssignedName:()=>FU,classHasExplicitlyAssignedName:()=>cF,classOrConstructorParameterIsDecorated:()=>Qy,classicNameResolver:()=>qoe,classifier:()=>eue,cleanExtendedConfigCache:()=>hF,clear:()=>hi,clearMap:()=>mp,clearSharedExtendedConfigFileWatcher:()=>QU,climbPastPropertyAccess:()=>YF,clone:()=>VQ,cloneCompilerOptions:()=>Dq,closeFileWatcher:()=>zm,closeFileWatcherOf:()=>qf,codefix:()=>lu,collapseTextChangeRangesAcrossMultipleVersions:()=>Lee,collectExternalModuleInfo:()=>LU,combine:()=>zA,combinePaths:()=>Qr,commandLineOptionOfCustomType:()=>foe,commentPragmas:()=>F8,commonOptionsWithBuild:()=>D3,compact:()=>rL,compareBooleans:()=>E0,compareDataObjects:()=>dV,compareDiagnostics:()=>_M,compareEmitHelpers:()=>sie,compareNumberOfDirectorySeparators:()=>Gk,comparePaths:()=>Zg,comparePathsCaseInsensitive:()=>Cbe,comparePathsCaseSensitive:()=>Dbe,comparePatternKeys:()=>fU,compareProperties:()=>JQ,compareStringsCaseInsensitive:()=>sL,compareStringsCaseInsensitiveEslintCompatible:()=>UQ,compareStringsCaseSensitive:()=>Wd,compareStringsCaseSensitiveUI:()=>lL,compareTextSpans:()=>N8,compareValues:()=>js,compilerOptionsAffectDeclarationPath:()=>dre,compilerOptionsAffectEmit:()=>cre,compilerOptionsAffectSemanticDiagnostics:()=>lre,compilerOptionsDidYouMeanDiagnostics:()=>P3,compilerOptionsIndicateEsModules:()=>kq,computeCommonSourceDirectoryOfFilenames:()=>ise,computeLineAndCharacterOfPosition:()=>AR,computeLineOfPosition:()=>SN,computeLineStarts:()=>KA,computePositionOfLineAndCharacter:()=>X8,computeSignatureWithDiagnostics:()=>gH,computeSuggestionDiagnostics:()=>bJ,computedOptions:()=>gM,concatenate:()=>so,concatenateDiagnosticMessageChains:()=>tre,consumesNodeCoreModules:()=>A7,contains:()=>jn,containsIgnoredPath:()=>xM,containsObjectRestOrSpread:()=>gw,containsParseError:()=>rI,containsPath:()=>dm,convertCompilerOptionsForTelemetry:()=>Doe,convertCompilerOptionsFromJson:()=>x1e,convertJsonOption:()=>TE,convertToBase64:()=>Bne,convertToJson:()=>Aw,convertToObject:()=>Soe,convertToOptionsWithAbsolutePaths:()=>O3,convertToRelativePath:()=>bN,convertToTSConfig:()=>Yj,convertTypeAcquisitionFromJson:()=>R1e,copyComments:()=>NE,copyEntries:()=>v6,copyLeadingComments:()=>YD,copyProperties:()=>Mz,copyTrailingAsLeadingComments:()=>yO,copyTrailingComments:()=>MP,couldStartTrivia:()=>vee,countWhere:()=>Io,createAbstractBuilder:()=>kEe,createAccessorPropertyBackingField:()=>Lj,createAccessorPropertyGetRedirector:()=>Qie,createAccessorPropertySetRedirector:()=>Zie,createBaseNodeFactory:()=>Ure,createBinaryExpressionTrampoline:()=>E3,createBuilderProgram:()=>yH,createBuilderProgramUsingIncrementalBuildInfo:()=>Dse,createBuilderStatusReporter:()=>WF,createCacheableExportInfoMap:()=>cJ,createCachedDirectoryStructureHost:()=>fF,createClassifier:()=>dIe,createCommentDirectivesMap:()=>Rte,createCompilerDiagnostic:()=>Il,createCompilerDiagnosticForInvalidCustomType:()=>moe,createCompilerDiagnosticFromMessageChain:()=>SW,createCompilerHost:()=>ose,createCompilerHostFromProgramHost:()=>FH,createCompilerHostWorker:()=>_F,createDetachedDiagnostic:()=>vI,createDiagnosticCollection:()=>aM,createDiagnosticForFileFromMessageChain:()=>pG,createDiagnosticForNode:()=>Ar,createDiagnosticForNodeArray:()=>WR,createDiagnosticForNodeArrayFromMessageChain:()=>UL,createDiagnosticForNodeFromMessageChain:()=>mg,createDiagnosticForNodeInSourceFile:()=>wf,createDiagnosticForRange:()=>Gte,createDiagnosticMessageChainFromDiagnostic:()=>Bte,createDiagnosticReporter:()=>ex,createDocumentPositionMapper:()=>pae,createDocumentRegistry:()=>Tce,createDocumentRegistryInternal:()=>mJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>SH,createEmitHelperFactory:()=>aie,createEmptyExports:()=>cw,createEvaluator:()=>Ore,createExpressionForJsxElement:()=>Wie,createExpressionForJsxFragment:()=>Fie,createExpressionForObjectLiteralElementLike:()=>zie,createExpressionForPropertyName:()=>Aj,createExpressionFromEntityName:()=>dw,createExternalHelpersImportDeclarationIfNeeded:()=>Rj,createFileDiagnostic:()=>Fc,createFileDiagnosticFromMessageChain:()=>C6,createFlowNode:()=>W_,createForOfBindingStatement:()=>Ej,createFutureSourceFile:()=>N7,createGetCanonicalFileName:()=>Fd,createGetIsolatedDeclarationErrors:()=>Hae,createGetSourceFile:()=>rH,createGetSymbolAccessibilityDiagnosticForNode:()=>tT,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Uae,createGetSymbolWalker:()=>Qoe,createIncrementalCompilerHost:()=>OF,createIncrementalProgram:()=>zse,createJsxFactoryExpression:()=>Sj,createLanguageService:()=>$de,createLanguageServiceSourceFile:()=>X7,createMemberAccessForPropertyName:()=>vE,createModeAwareCache:()=>CD,createModeAwareCacheKey:()=>eP,createModeMismatchDetails:()=>YB,createModuleNotFoundChain:()=>T6,createModuleResolutionCache:()=>ND,createModuleResolutionLoader:()=>cH,createModuleResolutionLoaderUsingGlobalCache:()=>Ose,createModuleSpecifierResolutionHost:()=>oT,createMultiMap:()=>lm,createNameResolver:()=>zV,createNodeConverters:()=>Jre,createNodeFactory:()=>Yk,createOptionNameMap:()=>N3,createOverload:()=>sX,createPackageJsonImportFilter:()=>$D,createPackageJsonInfo:()=>tJ,createParenthesizerRules:()=>Hre,createPatternMatcher:()=>xce,createPrinter:()=>Ob,createPrinterWithDefaults:()=>Zae,createPrinterWithRemoveComments:()=>V1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>ese,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>$U,createProgram:()=>Kw,createProgramDiagnostics:()=>fse,createProgramHost:()=>zH,createPropertyNameNodeForIdentifierOrLiteral:()=>Uk,createQueue:()=>aL,createRange:()=>Ff,createRedirectedBuilderProgram:()=>TH,createResolutionCache:()=>IH,createRuntimeTypeSerializer:()=>Rae,createScanner:()=>lg,createSemanticDiagnosticsBuilderProgram:()=>LEe,createSet:()=>Pz,createSolutionBuilder:()=>Use,createSolutionBuilderHost:()=>Vse,createSolutionBuilderWithWatch:()=>Hse,createSolutionBuilderWithWatchHost:()=>jse,createSortedArray:()=>Ez,createSourceFile:()=>HI,createSourceMapGenerator:()=>sae,createSourceMapSource:()=>X0e,createSuperAccessVariableStatement:()=>uF,createSymbolTable:()=>da,createSymlinkCache:()=>bV,createSyntacticTypeNodeBuilder:()=>cle,createSystemWatchFunctions:()=>Tbe,createTextChange:()=>uO,createTextChangeFromStartLength:()=>c7,createTextChangeRange:()=>SL,createTextRangeFromNode:()=>Mq,createTextRangeFromSpan:()=>l7,createTextSpan:()=>Id,createTextSpanFromBounds:()=>ic,createTextSpanFromNode:()=>Fu,createTextSpanFromRange:()=>fv,createTextSpanFromStringLiteralLikeContent:()=>Nq,createTextWriter:()=>Ek,createTokenRange:()=>oV,createTypeChecker:()=>oae,createTypeReferenceDirectiveResolutionCache:()=>q3,createTypeReferenceResolutionLoader:()=>vF,createWatchCompilerHost:()=>UEe,createWatchCompilerHostOfConfigFile:()=>BH,createWatchCompilerHostOfFilesAndCompilerOptions:()=>GH,createWatchFactory:()=>WH,createWatchHost:()=>OH,createWatchProgram:()=>VH,createWatchStatusReporter:()=>xH,createWriteFileMeasuringIO:()=>iH,declarationNameToString:()=>ws,decodeMappings:()=>NU,decodedTextSpanIntersectsWith:()=>TL,deduplicate:()=>t1,defaultHoverMaximumTruncationLength:()=>vte,defaultInitCompilerOptions:()=>qTe,defaultMaximumTruncationLength:()=>FN,diagnosticCategoryName:()=>kS,diagnosticToString:()=>J1,diagnosticsEqualityComparer:()=>EW,directoryProbablyExists:()=>ch,directorySeparator:()=>Js,displayPart:()=>gp,displayPartsToString:()=>MO,disposeEmitNodes:()=>YV,documentSpansEqual:()=>Gq,dumpTracingLegend:()=>cZ,elementAt:()=>Xv,elideNodes:()=>$ie,emitDetachedComments:()=>Nne,emitFiles:()=>XU,emitFilesAndReportErrors:()=>PF,emitFilesAndReportErrorsAndGetExitStatus:()=>wH,emitModuleKindIsNonNodeESM:()=>Wk,emitNewLineBeforeLeadingCommentOfPosition:()=>Cne,emitResolverSkipsTypeChecking:()=>KU,emitSkippedWithNoDiagnostics:()=>pH,emptyArray:()=>ae,emptyFileSystemEntries:()=>Tre,emptyMap:()=>yt,emptyOptions:()=>Tm,endsWith:()=>el,ensurePathIsNonModuleName:()=>wS,ensureScriptKind:()=>LW,ensureTrailingDirectorySeparator:()=>Hc,entityNameToString:()=>Cp,enumerateInsertsAndDeletes:()=>k8,equalOwnProperties:()=>BQ,equateStringsCaseInsensitive:()=>eb,equateStringsCaseSensitive:()=>i1,equateValues:()=>Zv,escapeJsxAttributeString:()=>GG,escapeLeadingUnderscores:()=>Cl,escapeNonAsciiString:()=>nW,escapeSnippetText:()=>D1,escapeString:()=>L_,escapeTemplateSubstitution:()=>zG,evaluatorResult:()=>Jc,every:()=>Vn,exclusivelyPrefixedNodeCoreModules:()=>KW,executeCommandLine:()=>EAe,expandPreOrPostfixIncrementOrDecrementExpression:()=>y3,explainFiles:()=>NH,explainIfFileIsRedirectAndImpliedFormat:()=>MH,exportAssignmentIsAlias:()=>_k,expressionResultIsUnused:()=>Dre,extend:()=>Nz,extensionFromPath:()=>TM,extensionIsTS:()=>FW,extensionsNotSupportingExtensionlessResolution:()=>WW,externalHelpersModuleNameText:()=>pb,factory:()=>L,fileExtensionIs:()=>El,fileExtensionIsOneOf:()=>Yl,fileIncludeReasonToDiagnostics:()=>kH,fileShouldUseJavaScriptRequire:()=>lJ,filter:()=>Un,filterMutate:()=>ul,filterSemanticDiagnostics:()=>EF,find:()=>hn,findAncestor:()=>Dn,findBestPatternMatch:()=>Fz,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>A3,findConfigFile:()=>tH,findConstructorDeclaration:()=>Kk,findContainingList:()=>t7,findDiagnosticForNode:()=>pce,findFirstNonJsxWhitespaceToken:()=>wle,findIndex:()=>ho,findLast:()=>ga,findLastIndex:()=>gl,findListItemInfo:()=>kle,findModifier:()=>JD,findNextToken:()=>q1,findPackageJson:()=>uce,findPackageJsons:()=>eJ,findPrecedingMatchingToken:()=>a7,findPrecedingToken:()=>Vc,findSuperStatementIndexPath:()=>oF,findTokenOnLeftOfPosition:()=>AP,findUseStrictPrologue:()=>xj,first:()=>$a,firstDefined:()=>Hn,firstDefinedIterator:()=>cr,firstIterator:()=>xz,firstOrOnly:()=>iJ,firstOrUndefined:()=>Ic,firstOrUndefinedIterator:()=>C8,fixupCompilerOptions:()=>AJ,flatMap:()=>Ki,flatMapIterator:()=>sf,flatMapToMutable:()=>vc,flatten:()=>la,flattenCommaList:()=>eoe,flattenDestructuringAssignment:()=>IE,flattenDestructuringBinding:()=>G1,flattenDiagnosticMessageText:()=>o_,forEach:()=>Je,forEachAncestor:()=>Ste,forEachAncestorDirectory:()=>TN,forEachAncestorDirectoryStoppingAtGlobalCache:()=>O_,forEachChild:()=>Jo,forEachChildRecursively:()=>UI,forEachDynamicImportOrRequireCall:()=>XW,forEachEmittedFile:()=>UU,forEachEnclosingBlockScopeContainer:()=>Wte,forEachEntry:()=>qc,forEachExternalModuleToImportFrom:()=>uJ,forEachImportClauseDeclaration:()=>dne,forEachKey:()=>pg,forEachLeadingCommentRange:()=>hL,forEachNameInAccessChainWalkingLeft:()=>Yne,forEachNameOfDefaultExport:()=>P7,forEachOptionsSyntaxByName:()=>HV,forEachProjectReference:()=>MM,forEachPropertyAssignment:()=>BR,forEachResolvedProjectReference:()=>jV,forEachReturnStatement:()=>_b,forEachRight:()=>Pn,forEachTrailingCommentRange:()=>_L,forEachTsConfigPropArray:()=>XL,forEachUnique:()=>jq,forEachYieldExpression:()=>Hte,formatColorAndReset:()=>j1,formatDiagnostic:()=>oH,formatDiagnostics:()=>sEe,formatDiagnosticsWithColorAndContext:()=>cse,formatGeneratedName:()=>Y0,formatGeneratedNamePart:()=>ID,formatLocation:()=>aH,formatMessage:()=>TI,formatStringFromArgs:()=>vg,formatting:()=>Mc,generateDjb2Hash:()=>uL,generateTSConfig:()=>Eoe,getAdjustedReferenceLocation:()=>Sq,getAdjustedRenameLocation:()=>r7,getAliasDeclarationFromName:()=>CG,getAllAccessorDeclarations:()=>E1,getAllDecoratorsOfClass:()=>wU,getAllDecoratorsOfClassElement:()=>sF,getAllJSDocTags:()=>n6,getAllJSDocTagsOfKind:()=>Qbe,getAllKeys:()=>Zve,getAllProjectOutputs:()=>pF,getAllSuperTypeNodes:()=>eM,getAllowImportingTsExtensions:()=>rre,getAllowJSCompilerOption:()=>Eb,getAllowSyntheticDefaultImports:()=>SI,getAncestor:()=>w0,getAnyExtensionFromPath:()=>qA,getAreDeclarationMapsEnabled:()=>AW,getAssignedExpandoInitializer:()=>aI,getAssignedName:()=>Z8,getAssignmentDeclarationKind:()=>oc,getAssignmentDeclarationPropertyAccessKind:()=>sk,getAssignmentTargetKind:()=>gb,getAutomaticTypeDirectiveNames:()=>U3,getBaseFileName:()=>xc,getBinaryOperatorPrecedence:()=>bk,getBuildInfo:()=>YU,getBuildInfoFileVersionMap:()=>bH,getBuildInfoText:()=>$ae,getBuildOrderFromAnyBuildOrder:()=>Zw,getBuilderCreationParameters:()=>RF,getBuilderFileEmit:()=>Wb,getCanonicalDiagnostic:()=>Vte,getCheckFlags:()=>Wl,getClassExtendsHeritageElement:()=>v1,getClassLikeDeclarationOfSymbol:()=>cy,getCombinedLocalAndExportSymbolFlags:()=>eD,getCombinedModifierFlags:()=>I0,getCombinedNodeFlags:()=>ty,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>AB,getCommentRange:()=>Qh,getCommonSourceDirectory:()=>mP,getCommonSourceDirectoryOfConfig:()=>xE,getCompilerOptionValue:()=>RW,getConditions:()=>Lb,getConfigFileParsingDiagnostics:()=>U1,getConstantValue:()=>Qre,getContainerFlags:()=>hU,getContainerNode:()=>CE,getContainingClass:()=>hd,getContainingClassExcludingClassDecorators:()=>W6,getContainingClassStaticBlock:()=>Zte,getContainingFunction:()=>cf,getContainingFunctionDeclaration:()=>Qte,getContainingFunctionOrClassStaticBlock:()=>O6,getContainingNodeArray:()=>Cre,getContainingObjectLiteralElement:()=>PO,getContextualTypeFromParent:()=>y7,getContextualTypeFromParentOrAncestorTypeNode:()=>n7,getDeclarationDiagnostics:()=>qae,getDeclarationEmitExtensionForPath:()=>oW,getDeclarationEmitOutputFilePath:()=>Ine,getDeclarationEmitOutputFilePathWorker:()=>iW,getDeclarationFileExtension:()=>x3,getDeclarationFromName:()=>ZN,getDeclarationModifierFlagsFromSymbol:()=>Bf,getDeclarationOfKind:()=>al,getDeclarationsOfKind:()=>bte,getDeclaredExpandoInitializer:()=>XN,getDecorators:()=>ob,getDefaultCompilerOptions:()=>K7,getDefaultFormatCodeSettings:()=>qF,getDefaultLibFileName:()=>yL,getDefaultLibFilePath:()=>Qde,getDefaultLikeExportInfo:()=>M7,getDefaultLikeExportNameFromDeclaration:()=>oJ,getDefaultResolutionModeForFileWorker:()=>SF,getDiagnosticText:()=>tp,getDiagnosticsWithinSpan:()=>fce,getDirectoryPath:()=>ci,getDirectoryToWatchFailedLookupLocation:()=>AH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>kse,getDocumentPositionMapper:()=>vJ,getDocumentSpansEqualityComparer:()=>Vq,getESModuleInterop:()=>Yh,getEditsForFileRename:()=>Ece,getEffectiveBaseTypeNode:()=>lh,getEffectiveConstraintOfTypeParameter:()=>DR,getEffectiveContainerForJSDocTemplateTag:()=>X6,getEffectiveImplementsTypeNodes:()=>JR,getEffectiveInitializer:()=>ik,getEffectiveJSDocHost:()=>k0,getEffectiveModifierFlags:()=>Gd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>kne,getEffectiveModifierFlagsNoCache:()=>wne,getEffectiveReturnTypeNode:()=>Pp,getEffectiveSetAccessorTypeAnnotationNode:()=>XG,getEffectiveTypeAnnotationNode:()=>Rc,getEffectiveTypeParameterDeclarations:()=>ab,getEffectiveTypeRoots:()=>ZM,getElementOrPropertyAccessArgumentExpressionOrName:()=>K6,getElementOrPropertyAccessName:()=>iy,getElementsOfBindingOrAssignmentPattern:()=>AD,getEmitDeclarations:()=>hp,getEmitFlags:()=>Qa,getEmitHelpers:()=>$V,getEmitModuleDetectionKind:()=>ire,getEmitModuleFormatOfFileWorker:()=>yP,getEmitModuleKind:()=>vu,getEmitModuleResolutionKind:()=>ru,getEmitScriptTarget:()=>Ga,getEmitStandardClassFields:()=>yV,getEnclosingBlockScopeContainer:()=>sh,getEnclosingContainer:()=>D6,getEncodedSemanticClassifications:()=>pJ,getEncodedSyntacticClassifications:()=>fJ,getEndLinePosition:()=>zL,getEntityNameFromTypeNode:()=>QL,getEntrypointsFromPackageJsonInfo:()=>dU,getErrorCountForSummary:()=>NF,getErrorSpanForNode:()=>qS,getErrorSummaryText:()=>DH,getEscapedTextOfIdentifierOrLiteral:()=>rM,getEscapedTextOfJsxAttributeName:()=>CM,getEscapedTextOfJsxNamespacedName:()=>xI,getExpandoInitializer:()=>P0,getExportAssignmentExpression:()=>NG,getExportInfoMap:()=>AO,getExportNeedsImportStarHelper:()=>fae,getExpressionAssociativity:()=>WG,getExpressionPrecedence:()=>oM,getExternalHelpersModuleName:()=>pw,getExternalModuleImportEqualsDeclarationExpression:()=>qN,getExternalModuleName:()=>lI,getExternalModuleNameFromDeclaration:()=>Ene,getExternalModuleNameFromPath:()=>UG,getExternalModuleNameLiteral:()=>jI,getExternalModuleRequireArgument:()=>vG,getFallbackOptions:()=>Hw,getFileEmitOutput:()=>mse,getFileMatcherPatterns:()=>PW,getFileNamesFromConfigSpecs:()=>$M,getFileWatcherEventKind:()=>dB,getFilesInErrorForSummary:()=>MF,getFirstConstructorWithBody:()=>gg,getFirstIdentifier:()=>Pu,getFirstNonSpaceCharacterPosition:()=>oce,getFirstProjectOutput:()=>JU,getFixableErrorSpanExpression:()=>nJ,getFormatCodeSettingsForWriting:()=>D7,getFullWidth:()=>WL,getFunctionFlags:()=>dc,getHeritageClause:()=>gk,getHostSignatureFromJSDoc:()=>L0,getIdentifierAutoGenerate:()=>Q0e,getIdentifierGeneratedImportReference:()=>iie,getIdentifierTypeArguments:()=>sE,getImmediatelyInvokedFunctionExpression:()=>N0,getImpliedNodeFormatForEmitWorker:()=>RE,getImpliedNodeFormatForFile:()=>Jw,getImpliedNodeFormatForFileWorker:()=>TF,getImportNeedsImportDefaultHelper:()=>PU,getImportNeedsImportStarHelper:()=>rF,getIndentString:()=>rW,getInferredLibraryNameResolveFrom:()=>bF,getInitializedVariables:()=>fM,getInitializerOfBinaryExpression:()=>EG,getInitializerOfBindingOrAssignmentElement:()=>mw,getInterfaceBaseTypeNodes:()=>tM,getInternalEmitFlags:()=>Wm,getInvokedExpression:()=>B6,getIsFileExcluded:()=>yce,getIsolatedModules:()=>gm,getJSDocAugmentsTag:()=>jee,getJSDocClassTag:()=>RB,getJSDocCommentRanges:()=>mG,getJSDocCommentsAndTags:()=>AG,getJSDocDeprecatedTag:()=>DB,getJSDocDeprecatedTagNoCache:()=>Yee,getJSDocEnumTag:()=>CB,getJSDocHost:()=>g1,getJSDocImplementsTags:()=>Uee,getJSDocOverloadTags:()=>xG,getJSDocOverrideTagNoCache:()=>Xee,getJSDocParameterTags:()=>RR,getJSDocParameterTagsNoCache:()=>zee,getJSDocPrivateTag:()=>Kbe,getJSDocPrivateTagNoCache:()=>qee,getJSDocProtectedTag:()=>Xbe,getJSDocProtectedTagNoCache:()=>Jee,getJSDocPublicTag:()=>Jbe,getJSDocPublicTagNoCache:()=>Hee,getJSDocReadonlyTag:()=>Ybe,getJSDocReadonlyTagNoCache:()=>Kee,getJSDocReturnTag:()=>$ee,getJSDocReturnType:()=>AL,getJSDocRoot:()=>qR,getJSDocSatisfiesExpressionType:()=>OV,getJSDocSatisfiesTag:()=>NB,getJSDocTags:()=>R0,getJSDocTemplateTag:()=>$be,getJSDocThisTag:()=>e6,getJSDocType:()=>Ky,getJSDocTypeAliasName:()=>Cj,getJSDocTypeAssertionType:()=>SD,getJSDocTypeParameterDeclarations:()=>dW,getJSDocTypeParameterTags:()=>Bee,getJSDocTypeParameterTagsNoCache:()=>Gee,getJSDocTypeTag:()=>x0,getJSXImplicitImportBase:()=>Fk,getJSXRuntimeImport:()=>CW,getJSXTransformEnabled:()=>DW,getKeyForCompilerOptions:()=>oU,getLanguageVariant:()=>Pk,getLastChild:()=>uV,getLeadingCommentRanges:()=>sg,getLeadingCommentRangesOfNode:()=>fG,getLeftmostAccessExpression:()=>tD,getLeftmostExpression:()=>nD,getLibFileNameFromLibReference:()=>VV,getLibNameFromLibReference:()=>GV,getLibraryNameFromLibFileName:()=>dH,getLineAndCharacterOfPosition:()=>ca,getLineInfo:()=>CU,getLineOfLocalPosition:()=>sM,getLineStartPositionForPosition:()=>Sm,getLineStarts:()=>og,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Jne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>qne,getLinesBetweenPositions:()=>EN,getLinesBetweenRangeEndAndRangeStart:()=>aV,getLinesBetweenRangeEndPositions:()=>R0e,getLiteralText:()=>Nte,getLocalNameForExternalImport:()=>ED,getLocalSymbolForExportDefault:()=>uM,getLocaleSpecificMessage:()=>Ho,getLocaleTimeString:()=>Qw,getMappedContextSpan:()=>Uq,getMappedDocumentSpan:()=>h7,getMappedLocation:()=>DP,getMatchedFileSpec:()=>PH,getMatchedIncludeSpec:()=>LH,getMeaningFromDeclaration:()=>KF,getMeaningFromLocation:()=>DE,getMembersOfDeclaration:()=>qte,getModeForFileReference:()=>dse,getModeForResolutionAtIndex:()=>fEe,getModeForUsageLocation:()=>lH,getModifiedTime:()=>HA,getModifiers:()=>a1,getModuleInstanceState:()=>my,getModuleNameStringLiteralAt:()=>Xw,getModuleSpecifierEndingPreference:()=>yre,getModuleSpecifierResolverHost:()=>wq,getNameForExportedSymbol:()=>I7,getNameFromImportAttribute:()=>HW,getNameFromIndexInfo:()=>Fte,getNameFromPropertyName:()=>fO,getNameOfAccessExpression:()=>fV,getNameOfCompilerOptionValue:()=>w3,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>bG,getNameOfJSDocTypedef:()=>Fee,getNameOfScriptTarget:()=>xW,getNameOrArgument:()=>ak,getNameTable:()=>XJ,getNamespaceDeclarationNode:()=>UR,getNewLineCharacter:()=>tv,getNewLineKind:()=>EO,getNewLineOrDefaultFromHost:()=>_y,getNewTargetContainer:()=>tne,getNextJSDocCommentLocation:()=>IG,getNodeChildren:()=>bj,getNodeForGeneratedName:()=>_w,getNodeId:()=>ss,getNodeKind:()=>H1,getNodeModifiers:()=>IP,getNodeModulePathParts:()=>VW,getNonAssignedNameOfDeclaration:()=>Q8,getNonAssignmentOperatorForCompoundAssignment:()=>sP,getNonAugmentationDeclaration:()=>aG,getNonDecoratorTokenPosOfNode:()=>eG,getNonIncrementalBuildInfoRoots:()=>Cse,getNonModifierTokenPosOfNode:()=>Dte,getNormalizedAbsolutePath:()=>To,getNormalizedAbsolutePathWithoutRoot:()=>mB,getNormalizedPathComponents:()=>U8,getObjectFlags:()=>Hr,getOperatorAssociativity:()=>FG,getOperatorPrecedence:()=>vk,getOptionFromName:()=>Hj,getOptionsForLibraryResolution:()=>aU,getOptionsNameMap:()=>RD,getOptionsSyntaxByArrayElementValue:()=>UV,getOptionsSyntaxByValue:()=>Gre,getOrCreateEmitNode:()=>jd,getOrUpdate:()=>FA,getOriginalNode:()=>yl,getOriginalNodeId:()=>Wu,getOutputDeclarationFileName:()=>fP,getOutputDeclarationFileNameWorker:()=>HU,getOutputExtension:()=>Vw,getOutputFileNames:()=>oEe,getOutputJSFileNameWorker:()=>qU,getOutputPathsFor:()=>pP,getOwnEmitOutputFilePath:()=>Ane,getOwnKeys:()=>Oh,getOwnValues:()=>GA,getPackageJsonTypesVersionsPaths:()=>j3,getPackageNameFromTypesPackageName:()=>rP,getPackageScopeForPath:()=>nP,getParameterSymbolFromJSDoc:()=>fk,getParentNodeInSpan:()=>hO,getParseTreeNode:()=>jo,getParsedCommandLineOfConfigFile:()=>Sw,getPathComponents:()=>zd,getPathFromPathComponents:()=>A0,getPathUpdater:()=>_J,getPathsBasePath:()=>aW,getPatternFromSpec:()=>EV,getPendingEmitKindWithSeen:()=>xF,getPositionOfLineAndCharacter:()=>fL,getPossibleGenericSignatures:()=>Aq,getPossibleOriginalInputExtensionForExtension:()=>HG,getPossibleOriginalInputPathWithoutChangingExt:()=>qG,getPossibleTypeArgumentsInfo:()=>Iq,getPreEmitDiagnostics:()=>aEe,getPrecedingNonSpaceCharacterPosition:()=>_7,getPrivateIdentifier:()=>OU,getProperties:()=>kU,getProperty:()=>iL,getPropertyAssignmentAliasLikeExpression:()=>gne,getPropertyNameForPropertyNameNode:()=>eE,getPropertyNameFromType:()=>Vf,getPropertyNameOfBindingOrAssignmentElement:()=>Dj,getPropertySymbolFromBindingElement:()=>m7,getPropertySymbolsFromContextualType:()=>Y7,getQuoteFromPreference:()=>Wq,getQuotePreference:()=>zp,getRangesWhere:()=>Sz,getRefactorContextSpan:()=>ix,getReferencedFileLocation:()=>gP,getRegexFromPattern:()=>nv,getRegularExpressionForWildcard:()=>yM,getRegularExpressionsForWildcards:()=>NW,getRelativePathFromDirectory:()=>lf,getRelativePathFromFile:()=>SR,getRelativePathToDirectoryOrUrl:()=>ER,getRenameLocation:()=>gO,getReplacementSpanForContextToken:()=>Cq,getResolutionDiagnostic:()=>mH,getResolutionModeOverride:()=>OD,getResolveJsonModule:()=>I1,getResolvePackageJsonExports:()=>kk,getResolvePackageJsonImports:()=>wk,getResolvedExternalModuleName:()=>jG,getResolvedModuleFromResolution:()=>nI,getResolvedTypeReferenceDirectiveFromResolution:()=>b6,getRestIndicatorOfBindingOrAssignmentElement:()=>T3,getRestParameterElementType:()=>hG,getRightMostAssignedExpression:()=>ok,getRootDeclaration:()=>qh,getRootDirectoryOfResolutionCache:()=>wse,getRootLength:()=>Fh,getScriptKind:()=>Kq,getScriptKindFromFileName:()=>kW,getScriptTargetFeatures:()=>tG,getSelectedEffectiveModifierFlags:()=>mI,getSelectedSyntacticModifierFlags:()=>Pne,getSemanticClassifications:()=>vce,getSemanticJsxChildren:()=>XR,getSetAccessorTypeAnnotationNode:()=>Rne,getSetAccessorValueParameter:()=>lM,getSetExternalModuleIndicator:()=>Lk,getShebang:()=>Y8,getSingleVariableOfVariableStatement:()=>uI,getSnapshotText:()=>rx,getSnippetElement:()=>QV,getSourceFileOfModule:()=>FL,getSourceFileOfNode:()=>Wn,getSourceFilePathInNewDir:()=>lW,getSourceFileVersionAsHashFromText:()=>LF,getSourceFilesToEmit:()=>sW,getSourceMapRange:()=>ov,getSourceMapper:()=>wce,getSourceTextOfNodeFromSourceFile:()=>u1,getSpanOfTokenAtPosition:()=>Vh,getSpellingSuggestion:()=>o1,getStartPositionOfLine:()=>fb,getStartPositionOfRange:()=>pM,getStartsOnNewLine:()=>PM,getStaticPropertiesAndClassStaticBlock:()=>aF,getStrictOptionValue:()=>Vd,getStringComparer:()=>gR,getSubPatternFromSpec:()=>MW,getSuperCallFromStatement:()=>iF,getSuperContainer:()=>YL,getSupportedCodeFixes:()=>JJ,getSupportedExtensions:()=>vM,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Bk,getSwitchedType:()=>$q,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>yk,getSymbolTarget:()=>Xq,getSyntacticClassifications:()=>bce,getSyntacticModifierFlags:()=>Zy,getSyntacticModifierFlagsNoCache:()=>QG,getSynthesizedDeepClone:()=>_s,getSynthesizedDeepCloneWithReplacements:()=>Xk,getSynthesizedDeepClones:()=>C1,getSynthesizedDeepClonesWithReplacements:()=>qV,getSyntheticLeadingComments:()=>lD,getSyntheticTrailingComments:()=>ew,getTargetLabel:()=>$F,getTargetOfBindingOrAssignmentElement:()=>Mb,getTemporaryModuleResolutionState:()=>tP,getTextOfConstantValue:()=>Mte,getTextOfIdentifierOrLiteral:()=>Wf,getTextOfJSDocComment:()=>IL,getTextOfJsxAttributeName:()=>Jk,getTextOfJsxNamespacedName:()=>NM,getTextOfNode:()=>Al,getTextOfNodeFromSourceText:()=>BN,getTextOfPropertyName:()=>oI,getThisContainer:()=>yu,getThisParameter:()=>T1,getTokenAtPosition:()=>Fi,getTokenPosOfNode:()=>mb,getTokenSourceMapRange:()=>Y0e,getTouchingPropertyName:()=>np,getTouchingToken:()=>HD,getTrailingCommentRanges:()=>ib,getTrailingSemicolonDeferringWriter:()=>VG,getTransformers:()=>Kae,getTsBuildInfoEmitOutputFilePath:()=>nT,getTsConfigObjectLiteralExpression:()=>UN,getTsConfigPropArrayElementValue:()=>w6,getTypeAnnotationNode:()=>Dne,getTypeArgumentOrTypeParameterList:()=>Vle,getTypeKeywordOfTypeOnlyImport:()=>Bq,getTypeNode:()=>nie,getTypeNodeIfAccessible:()=>LP,getTypeParameterFromJsDoc:()=>une,getTypeParameterOwner:()=>jbe,getTypesPackageName:()=>Y3,getUILocale:()=>HQ,getUniqueName:()=>ME,getUniqueSymbolId:()=>ice,getUseDefineForClassFields:()=>Ok,getWatchErrorSummaryDiagnosticMessage:()=>RH,getWatchFactory:()=>eH,group:()=>_R,groupBy:()=>Cz,guessIndentation:()=>gte,handleNoEmitOptions:()=>fH,handleWatchOptionsConfigDirTemplateSubstitution:()=>W3,hasAbstractModifier:()=>A1,hasAccessorModifier:()=>Jh,hasAmbientModifier:()=>$G,hasChangesInResolutions:()=>$B,hasContextSensitiveParameters:()=>GW,hasDecorators:()=>uf,hasDocComment:()=>Ble,hasDynamicName:()=>oy,hasEffectiveModifier:()=>Lp,hasEffectiveModifiers:()=>YG,hasEffectiveReadonlyModifier:()=>nE,hasExtension:()=>TR,hasImplementationTSFileExtension:()=>_re,hasIndexSignature:()=>Yq,hasInferredType:()=>JW,hasInitializer:()=>Yy,hasInvalidEscape:()=>BG,hasJSDocNodes:()=>Zp,hasJSDocParameterTags:()=>Vee,hasJSFileExtension:()=>bg,hasJsonModuleEmitEnabled:()=>IW,hasOnlyExpressionInitializer:()=>US,hasOverrideModifier:()=>uW,hasPossibleExternalModuleReference:()=>Ote,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>oO,hasQuestionToken:()=>cI,hasRecordedExternalHelpers:()=>Vie,hasResolutionModeOverride:()=>kre,hasRestParameter:()=>qB,hasScopeMarker:()=>lte,hasStaticModifier:()=>Wc,hasSyntacticModifier:()=>di,hasSyntacticModifiers:()=>Mne,hasTSFileExtension:()=>iE,hasTabstop:()=>Mre,hasTrailingDirectorySeparator:()=>nb,hasType:()=>h6,hasTypeArguments:()=>g0e,hasZeroOrOneAsteriskCharacter:()=>vV,hostGetCanonicalFileName:()=>ay,hostUsesCaseSensitiveFileNames:()=>tE,idText:()=>Kr,identifierIsThisKeyword:()=>KG,identifierToKeywordKind:()=>FS,identity:()=>Vs,identitySourceMapConsumer:()=>MU,ignoreSourceNewlines:()=>ej,ignoredPaths:()=>B8,importFromModuleSpecifier:()=>$N,importSyntaxAffectsModuleResolution:()=>gV,indexOfAnyCharCode:()=>Gi,indexOfNode:()=>wR,indicesOf:()=>D8,inferredTypesContainingFile:()=>_P,injectClassNamedEvaluationHelperBlockIfMissing:()=>dF,injectClassThisAssignmentIfMissing:()=>Tae,insertImports:()=>zq,insertSorted:()=>Kv,insertStatementAfterCustomPrologue:()=>HS,insertStatementAfterStandardPrologue:()=>d0e,insertStatementsAfterCustomPrologue:()=>QB,insertStatementsAfterStandardPrologue:()=>fg,intersperse:()=>bo,intrinsicTagNameToString:()=>WV,introducesArgumentsExoticObject:()=>Xte,inverseJsxOptionMap:()=>bw,isAbstractConstructorSymbol:()=>Kne,isAbstractModifier:()=>mie,isAccessExpression:()=>Ks,isAccessibilityModifier:()=>Rq,isAccessor:()=>db,isAccessorModifier:()=>aj,isAliasableExpression:()=>Y6,isAmbientModule:()=>gu,isAmbientPropertyDeclaration:()=>lG,isAnyDirectorySeparator:()=>uB,isAnyImportOrBareOrAccessedRequire:()=>kte,isAnyImportOrReExport:()=>VL,isAnyImportOrRequireStatement:()=>wte,isAnyImportSyntax:()=>iI,isAnySupportedFileExtension:()=>G0e,isApplicableVersionedTypesKey:()=>Nw,isArgumentExpressionOfElementAccess:()=>_q,isArray:()=>Mo,isArrayBindingElement:()=>c6,isArrayBindingOrAssignmentElement:()=>ML,isArrayBindingOrAssignmentPattern:()=>BB,isArrayBindingPattern:()=>cv,isArrayLiteralExpression:()=>Cd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>pv,isArrayTypeNode:()=>iw,isArrowFunction:()=>Xs,isAsExpression:()=>fD,isAssertClause:()=>Sie,isAssertEntry:()=>sTe,isAssertionExpression:()=>d1,isAssertsKeyword:()=>pie,isAssignmentDeclaration:()=>KN,isAssignmentExpression:()=>id,isAssignmentOperator:()=>sy,isAssignmentPattern:()=>ON,isAssignmentTarget:()=>yb,isAsteriskToken:()=>nw,isAsyncFunction:()=>nM,isAsyncModifier:()=>wM,isAutoAccessorPropertyDeclaration:()=>Ku,isAwaitExpression:()=>Cb,isAwaitKeyword:()=>oj,isBigIntLiteral:()=>cD,isBinaryExpression:()=>Nr,isBinaryLogicalOperator:()=>Ak,isBinaryOperatorToken:()=>Yie,isBindableObjectDefinePropertyCall:()=>YS,isBindableStaticAccessExpression:()=>_1,isBindableStaticElementAccessExpression:()=>J6,isBindableStaticNameExpression:()=>$S,isBindingElement:()=>Ha,isBindingElementOfBareOrAccessedRequire:()=>ine,isBindingName:()=>VS,isBindingOrAssignmentElement:()=>ite,isBindingOrAssignmentPattern:()=>CL,isBindingPattern:()=>Qo,isBlock:()=>ea,isBlockLike:()=>ox,isBlockOrCatchScoped:()=>nG,isBlockScope:()=>cG,isBlockScopedContainerTopLevel:()=>Lte,isBooleanLiteral:()=>wN,isBreakOrContinueStatement:()=>MN,isBreakStatement:()=>iTe,isBuildCommand:()=>rle,isBuildInfoFile:()=>Xae,isBuilderProgram:()=>CH,isBundle:()=>xie,isCallChain:()=>zS,isCallExpression:()=>Zo,isCallExpressionTarget:()=>dq,isCallLikeExpression:()=>c1,isCallLikeOrFunctionLikeExpression:()=>GB,isCallOrNewExpression:()=>Bh,isCallOrNewExpressionTarget:()=>uq,isCallSignatureDeclaration:()=>kI,isCallToHelper:()=>kM,isCaseBlock:()=>VM,isCaseClause:()=>gD,isCaseKeyword:()=>_ie,isCaseOrDefaultClause:()=>f6,isCatchClause:()=>O1,isCatchClauseVariableDeclaration:()=>Nre,isCatchClauseVariableDeclarationOrBindingElement:()=>rG,isCheckJsEnabledForFile:()=>SM,isCircularBuildOrder:()=>tx,isClassDeclaration:()=>Cc,isClassElement:()=>Tc,isClassExpression:()=>uc,isClassInstanceProperty:()=>nte,isClassLike:()=>ui,isClassMemberModifier:()=>WB,isClassNamedEvaluationHelperBlock:()=>QI,isClassOrTypeElement:()=>l6,isClassStaticBlockDeclaration:()=>$l,isClassThisAssignmentBlock:()=>cP,isColonToken:()=>die,isCommaExpression:()=>uw,isCommaListExpression:()=>BM,isCommaSequence:()=>JM,isCommaToken:()=>cie,isComment:()=>s7,isCommonJsExportPropertyAssignment:()=>L6,isCommonJsExportedExpression:()=>Jte,isCompoundAssignment:()=>aP,isComputedNonLiteralName:()=>jL,isComputedPropertyName:()=>va,isConciseBody:()=>u6,isConditionalExpression:()=>pE,isConditionalTypeNode:()=>M1,isConstAssertion:()=>FV,isConstTypeReference:()=>wm,isConstructSignatureDeclaration:()=>FM,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>dD,isContextualKeyword:()=>Q6,isContinueStatement:()=>rTe,isCustomPrologue:()=>KL,isDebuggerStatement:()=>oTe,isDeclaration:()=>rd,isDeclarationBindingElement:()=>DL,isDeclarationFileName:()=>ad,isDeclarationName:()=>P_,isDeclarationNameOfEnumOrNamespace:()=>lV,isDeclarationReadonly:()=>HL,isDeclarationStatement:()=>pte,isDeclarationWithTypeParameterChildren:()=>uG,isDeclarationWithTypeParameters:()=>dG,isDecorator:()=>zc,isDecoratorTarget:()=>Cle,isDefaultClause:()=>jM,isDefaultImport:()=>QS,isDefaultModifier:()=>o3,isDefaultedExpandoInitializer:()=>one,isDeleteExpression:()=>yie,isDeleteTarget:()=>DG,isDeprecatedDeclaration:()=>x7,isDestructuringAssignment:()=>ev,isDiskPathRoot:()=>pB,isDoStatement:()=>nTe,isDocumentRegistryEntry:()=>IO,isDotDotDotToken:()=>r3,isDottedName:()=>xk,isDynamicName:()=>eW,isEffectiveExternalModule:()=>OR,isEffectiveStrictModeSourceFile:()=>sG,isElementAccessChain:()=>MB,isElementAccessExpression:()=>Ws,isEmittedFileOfProgram:()=>nse,isEmptyArrayLiteral:()=>zne,isEmptyBindingElement:()=>wee,isEmptyBindingPattern:()=>kee,isEmptyObjectLiteral:()=>rV,isEmptyStatement:()=>cj,isEmptyStringLiteral:()=>yG,isEntityName:()=>Nu,isEntityNameExpression:()=>Ds,isEnumConst:()=>C0,isEnumDeclaration:()=>q0,isEnumMember:()=>py,isEqualityOperatorKind:()=>v7,isEqualsGreaterThanToken:()=>uie,isExclamationToken:()=>rw,isExcludedFile:()=>Ioe,isExclusivelyTypeOnlyImportOrExport:()=>sH,isExpandoPropertyDeclaration:()=>RI,isExportAssignment:()=>ll,isExportDeclaration:()=>fc,isExportModifier:()=>PI,isExportName:()=>v3,isExportNamespaceAsDefaultDeclaration:()=>I6,isExportOrDefaultModifier:()=>hw,isExportSpecifier:()=>iu,isExportsIdentifier:()=>XS,isExportsOrModuleExportsOrAlias:()=>z1,isExpression:()=>St,isExpressionNode:()=>M_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Ple,isExpressionOfOptionalChainRoot:()=>i6,isExpressionStatement:()=>od,isExpressionWithTypeArguments:()=>dy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>fW,isExternalModule:()=>Gc,isExternalModuleAugmentation:()=>f1,isExternalModuleImportEqualsDeclaration:()=>M0,isExternalModuleIndicator:()=>LL,isExternalModuleNameRelative:()=>td,isExternalModuleReference:()=>uy,isExternalModuleSymbol:()=>eI,isExternalOrCommonJsModule:()=>Np,isFileLevelReservedGeneratedIdentifier:()=>RL,isFileLevelUniqueName:()=>E6,isFileProbablyExternalModule:()=>yw,isFirstDeclarationOfSymbolParameter:()=>Hq,isFixablePromiseHandler:()=>SJ,isForInOrOfStatement:()=>jS,isForInStatement:()=>d3,isForInitializer:()=>kf,isForOfStatement:()=>aw,isForStatement:()=>H0,isFullSourceFile:()=>hg,isFunctionBlock:()=>m1,isFunctionBody:()=>jB,isFunctionDeclaration:()=>Ql,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>Ab,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Ms,isFunctionLikeKind:()=>YA,isFunctionLikeOrClassStaticBlockDeclaration:()=>MR,isFunctionOrConstructorTypeNode:()=>rte,isFunctionOrModuleBlock:()=>FB,isFunctionSymbol:()=>lne,isFunctionTypeNode:()=>k_,isGeneratedIdentifier:()=>pl,isGeneratedPrivateIdentifier:()=>GS,isGetAccessor:()=>dg,isGetAccessorDeclaration:()=>jf,isGetOrSetAccessorDeclaration:()=>xL,isGlobalScopeAugmentation:()=>N_,isGlobalSourceFile:()=>$y,isGrammarError:()=>xte,isHeritageClause:()=>Op,isHoistedFunction:()=>M6,isHoistedVariableStatement:()=>P6,isIdentifier:()=>He,isIdentifierANonContextualKeyword:()=>LG,isIdentifierName:()=>_ne,isIdentifierOrThisTypeNode:()=>qie,isIdentifierPart:()=>ey,isIdentifierStart:()=>x_,isIdentifierText:()=>pp,isIdentifierTypePredicate:()=>Yte,isIdentifierTypeReference:()=>Ire,isIfStatement:()=>U0,isIgnoredFileFromWildCardWatching:()=>Uw,isImplicitGlob:()=>SV,isImportAttribute:()=>Eie,isImportAttributeName:()=>tte,isImportAttributes:()=>hE,isImportCall:()=>Yu,isImportClause:()=>Gm,isImportDeclaration:()=>vl,isImportEqualsDeclaration:()=>Bc,isImportKeyword:()=>WM,isImportMeta:()=>zR,isImportOrExportSpecifier:()=>lb,isImportOrExportSpecifierName:()=>rce,isImportSpecifier:()=>Su,isImportTypeAssertionContainer:()=>aTe,isImportTypeNode:()=>Zh,isImportable:()=>dJ,isInComment:()=>uv,isInCompoundLikeAssignment:()=>RG,isInExpressionContext:()=>G6,isInJSDoc:()=>JN,isInJSFile:()=>Ir,isInJSXText:()=>zle,isInJsonFile:()=>j6,isInNonReferenceComment:()=>Hle,isInReferenceComment:()=>Ule,isInRightSideOfInternalImportEqualsDeclaration:()=>XF,isInString:()=>nx,isInTemplateString:()=>Eq,isInTopLevelContext:()=>F6,isInTypeQuery:()=>fI,isIncrementalBuildInfo:()=>Yw,isIncrementalBundleEmitBuildInfo:()=>Ese,isIncrementalCompilation:()=>x1,isIndexSignatureDeclaration:()=>Db,isIndexedAccessTypeNode:()=>P1,isInferTypeNode:()=>cE,isInfinityOrNaNString:()=>RM,isInitializedProperty:()=>kw,isInitializedVariable:()=>Mk,isInsideJsxElement:()=>o7,isInsideJsxElementOrAttribute:()=>Fle,isInsideNodeModules:()=>bO,isInsideTemplateLiteral:()=>dO,isInstanceOfExpression:()=>mW,isInstantiatedModule:()=>AU,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>yte,isInternalModuleImportEqualsDeclaration:()=>KS,isInternalName:()=>Ij,isIntersectionTypeNode:()=>WI,isIntrinsicJsxName:()=>YR,isIterationStatement:()=>ub,isJSDoc:()=>mh,isJSDocAllType:()=>Cie,isJSDocAugmentsTag:()=>VI,isJSDocAuthorTag:()=>uTe,isJSDocCallbackTag:()=>fj,isJSDocClassTag:()=>Mie,isJSDocCommentContainingNode:()=>m6,isJSDocConstructSignature:()=>dI,isJSDocDeprecatedTag:()=>yj,isJSDocEnumTag:()=>lw,isJSDocFunctionType:()=>vD,isJSDocImplementsTag:()=>_3,isJSDocImportTag:()=>i_,isJSDocIndexSignature:()=>H6,isJSDocLikeText:()=>kj,isJSDocLink:()=>Rie,isJSDocLinkCode:()=>Die,isJSDocLinkLike:()=>ZA,isJSDocLinkPlain:()=>cTe,isJSDocMemberName:()=>X0,isJSDocNameReference:()=>UM,isJSDocNamepathType:()=>dTe,isJSDocNamespaceBody:()=>r0e,isJSDocNode:()=>PR,isJSDocNonNullableType:()=>p3,isJSDocNullableType:()=>yD,isJSDocOptionalParameter:()=>jW,isJSDocOptionalType:()=>pj,isJSDocOverloadTag:()=>bD,isJSDocOverrideTag:()=>m3,isJSDocParameterTag:()=>ff,isJSDocPrivateTag:()=>hj,isJSDocPropertyLikeTag:()=>PN,isJSDocPropertyTag:()=>Pie,isJSDocProtectedTag:()=>_j,isJSDocPublicTag:()=>mj,isJSDocReadonlyTag:()=>gj,isJSDocReturnTag:()=>h3,isJSDocSatisfiesExpression:()=>wV,isJSDocSatisfiesTag:()=>g3,isJSDocSeeTag:()=>pTe,isJSDocSignature:()=>dv,isJSDocTag:()=>LR,isJSDocTemplateTag:()=>vm,isJSDocThisTag:()=>vj,isJSDocThrowsTag:()=>mTe,isJSDocTypeAlias:()=>mm,isJSDocTypeAssertion:()=>W1,isJSDocTypeExpression:()=>K0,isJSDocTypeLiteral:()=>gE,isJSDocTypeTag:()=>HM,isJSDocTypedefTag:()=>yE,isJSDocUnknownTag:()=>fTe,isJSDocUnknownType:()=>Nie,isJSDocVariadicType:()=>f3,isJSXTagName:()=>VR,isJsonEqual:()=>zW,isJsonSourceFile:()=>Of,isJsxAttribute:()=>r_,isJsxAttributeLike:()=>p6,isJsxAttributeName:()=>Lre,isJsxAttributes:()=>w1,isJsxCallLike:()=>_te,isJsxChild:()=>OL,isJsxClosingElement:()=>k1,isJsxClosingFragment:()=>Iie,isJsxElement:()=>n_,isJsxExpression:()=>_D,isJsxFragment:()=>J0,isJsxNamespacedName:()=>fh,isJsxOpeningElement:()=>ph,isJsxOpeningFragment:()=>Vm,isJsxOpeningLikeElement:()=>nu,isJsxOpeningLikeElementTagName:()=>Nle,isJsxSelfClosingElement:()=>_E,isJsxSpreadAttribute:()=>GI,isJsxTagNameExpression:()=>WN,isJsxText:()=>NI,isJumpStatementTarget:()=>aO,isKeyword:()=>Qu,isKeywordOrPunctuation:()=>$6,isKnownSymbol:()=>iM,isLabelName:()=>mq,isLabelOfLabeledStatement:()=>fq,isLabeledStatement:()=>Nb,isLateVisibilityPaintedStatement:()=>R6,isLeftHandSideExpression:()=>Xu,isLet:()=>N6,isLineBreak:()=>Zd,isLiteralComputedPropertyDeclarationName:()=>hk,isLiteralExpression:()=>BS,isLiteralExpressionOfObject:()=>wB,isLiteralImportTypeNode:()=>ry,isLiteralKind:()=>LN,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>QF,isLiteralTypeLiteral:()=>ste,isLiteralTypeNode:()=>lv,isLocalName:()=>fy,isLogicalOperator:()=>One,isLogicalOrCoalescingAssignmentExpression:()=>ZG,isLogicalOrCoalescingAssignmentOperator:()=>cM,isLogicalOrCoalescingBinaryExpression:()=>Ik,isLogicalOrCoalescingBinaryOperator:()=>pW,isMappedTypeNode:()=>uE,isMemberName:()=>cg,isMetaProperty:()=>fE,isMethodDeclaration:()=>Nl,isMethodOrAccessor:()=>$A,isMethodSignature:()=>Bm,isMinusToken:()=>ij,isMissingDeclaration:()=>lTe,isMissingPackageJsonInfo:()=>Ooe,isModifier:()=>Aa,isModifierKind:()=>cb,isModifierLike:()=>fl,isModuleAugmentationExternal:()=>oG,isModuleBlock:()=>e_,isModuleBody:()=>cte,isModuleDeclaration:()=>pc,isModuleExportName:()=>u3,isModuleExportsAccessExpression:()=>_g,isModuleIdentifier:()=>TG,isModuleName:()=>Xie,isModuleOrEnumDeclaration:()=>kL,isModuleReference:()=>mte,isModuleSpecifierLike:()=>f7,isModuleWithStringLiteralName:()=>x6,isNameOfFunctionDeclaration:()=>yq,isNameOfModuleDeclaration:()=>gq,isNamedDeclaration:()=>nd,isNamedEvaluation:()=>Mp,isNamedEvaluationSource:()=>kG,isNamedExportBindings:()=>LB,isNamedExports:()=>Hf,isNamedImportBindings:()=>UB,isNamedImports:()=>t_,isNamedImportsOrExports:()=>bW,isNamedTupleMember:()=>uD,isNamespaceBody:()=>n0e,isNamespaceExport:()=>w_,isNamespaceExportDeclaration:()=>sw,isNamespaceImport:()=>Ag,isNamespaceReexportDeclaration:()=>rne,isNewExpression:()=>L1,isNewExpressionTarget:()=>SP,isNewScopeNode:()=>Bre,isNoSubstitutionTemplateLiteral:()=>lE,isNodeArray:()=>s1,isNodeArrayMultiLine:()=>Hne,isNodeDescendantOf:()=>y1,isNodeKind:()=>a6,isNodeLikeSystem:()=>Gz,isNodeModulesDirectory:()=>q8,isNodeWithPossibleHoistedDeclaration:()=>mne,isNonContextualKeyword:()=>PG,isNonGlobalAmbientModule:()=>iG,isNonNullAccess:()=>Pre,isNonNullChain:()=>o6,isNonNullExpression:()=>zI,isNonStaticMethodOrAccessorWithPrivateName:()=>mae,isNotEmittedStatement:()=>Aie,isNullishCoalesce:()=>PB,isNumber:()=>$v,isNumericLiteral:()=>ep,isNumericLiteralName:()=>Sg,isObjectBindingElementWithoutPropertyName:()=>mO,isObjectBindingOrAssignmentElement:()=>NL,isObjectBindingOrAssignmentPattern:()=>zB,isObjectBindingPattern:()=>pf,isObjectLiteralElement:()=>HB,isObjectLiteralElementLike:()=>ny,isObjectLiteralExpression:()=>Wa,isObjectLiteralMethod:()=>fm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>k6,isObjectTypeDeclaration:()=>yI,isOmittedExpression:()=>Kc,isOptionalChain:()=>eu,isOptionalChainRoot:()=>CN,isOptionalDeclaration:()=>II,isOptionalJSDocPropertyLikeTag:()=>qk,isOptionalTypeNode:()=>a3,isOuterExpression:()=>b3,isOutermostOptionalChain:()=>NN,isOverrideModifier:()=>hie,isPackageJsonInfo:()=>H3,isPackedArrayLiteral:()=>LV,isParameter:()=>to,isParameterPropertyDeclaration:()=>Dp,isParameterPropertyModifier:()=>kN,isParenthesizedExpression:()=>wu,isParenthesizedTypeNode:()=>dE,isParseTreeNode:()=>DN,isPartOfParameterDeclaration:()=>O0,isPartOfTypeNode:()=>Uh,isPartOfTypeOnlyImportOrExportDeclaration:()=>ete,isPartOfTypeQuery:()=>V6,isPartiallyEmittedExpression:()=>vie,isPatternMatch:()=>M8,isPinnedComment:()=>A6,isPlainJsFile:()=>zN,isPlusToken:()=>rj,isPossiblyTypeArgumentPosition:()=>cO,isPostfixUnaryExpression:()=>lj,isPrefixUnaryExpression:()=>j0,isPrimitiveLiteralValue:()=>qW,isPrivateIdentifier:()=>eo,isPrivateIdentifierClassElementDeclaration:()=>tu,isPrivateIdentifierPropertyAccessExpression:()=>NR,isPrivateIdentifierSymbol:()=>vne,isProgramUptoDate:()=>uH,isPrologueDirective:()=>jh,isPropertyAccessChain:()=>r6,isPropertyAccessEntityNameExpression:()=>Rk,isPropertyAccessExpression:()=>qr,isPropertyAccessOrQualifiedName:()=>PL,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ote,isPropertyAssignment:()=>Nc,isPropertyDeclaration:()=>Po,isPropertyName:()=>bc,isPropertyNameLiteral:()=>Hh,isPropertySignature:()=>Tu,isPrototypeAccess:()=>Tb,isPrototypePropertyAssignment:()=>lk,isPunctuation:()=>MG,isPushOrUnshiftIdentifier:()=>wG,isQualifiedName:()=>Lu,isQuestionDotToken:()=>i3,isQuestionOrExclamationToken:()=>Hie,isQuestionOrPlusOrMinusToken:()=>Kie,isQuestionToken:()=>Rb,isReadonlyKeyword:()=>fie,isReadonlyKeywordOrPlusOrMinusToken:()=>Jie,isRecognizedTripleSlashComment:()=>ZB,isReferenceFileLocation:()=>WD,isReferencedFile:()=>rT,isRegularExpressionLiteral:()=>tj,isRequireCall:()=>$u,isRequireVariableStatement:()=>nk,isRestParameter:()=>D_,isRestTypeNode:()=>s3,isReturnStatement:()=>ef,isReturnStatementWithFixablePromiseHandler:()=>k7,isRightSideOfAccessExpression:()=>nV,isRightSideOfInstanceofExpression:()=>Fne,isRightSideOfPropertyAccess:()=>VD,isRightSideOfQualifiedName:()=>Mle,isRightSideOfQualifiedNameOrPropertyAccess:()=>dM,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Wne,isRootedDiskPath:()=>Rp,isSameEntityName:()=>jR,isSatisfiesExpression:()=>mD,isSemicolonClassElement:()=>bie,isSetAccessor:()=>Gh,isSetAccessorDeclaration:()=>_p,isShiftOperatorOrHigher:()=>Mj,isShorthandAmbientModuleSymbol:()=>GL,isShorthandPropertyAssignment:()=>Ud,isSideEffectImport:()=>BV,isSignedNumericLiteral:()=>Z6,isSimpleCopiableExpression:()=>B1,isSimpleInlineableExpression:()=>F_,isSimpleParameterList:()=>ww,isSingleOrDoubleQuote:()=>rk,isSolutionConfig:()=>eU,isSourceElement:()=>wre,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>QD,isSourceFileJS:()=>Mu,isSourceFileNotJson:()=>U6,isSourceMapping:()=>uae,isSpecialPropertyDeclaration:()=>sne,isSpreadAssignment:()=>Ig,isSpreadElement:()=>Uf,isStatement:()=>ji,isStatementButNotDeclaration:()=>wL,isStatementOrBlock:()=>fte,isStatementWithLocals:()=>Ite,isStatic:()=>ua,isStaticModifier:()=>LI,isString:()=>Bo,isStringANonContextualKeyword:()=>pI,isStringAndEmptyAnonymousObjectIntersection:()=>jle,isStringDoubleQuoted:()=>q6,isStringLiteral:()=>ka,isStringLiteralLike:()=>cs,isStringLiteralOrJsxExpression:()=>hte,isStringLiteralOrTemplate:()=>sce,isStringOrNumericLiteralLike:()=>df,isStringOrRegularExpressionOrTemplateLiteral:()=>xq,isStringTextContainingNode:()=>OB,isSuperCall:()=>JS,isSuperKeyword:()=>OM,isSuperProperty:()=>fp,isSupportedSourceFileName:()=>xV,isSwitchStatement:()=>GM,isSyntaxList:()=>TD,isSyntheticExpression:()=>tTe,isSyntheticReference:()=>BI,isTagName:()=>hq,isTaggedTemplateExpression:()=>V0,isTaggedTemplateTag:()=>Dle,isTemplateExpression:()=>c3,isTemplateHead:()=>MI,isTemplateLiteral:()=>QA,isTemplateLiteralKind:()=>sb,isTemplateLiteralToken:()=>Qee,isTemplateLiteralTypeNode:()=>gie,isTemplateLiteralTypeSpan:()=>sj,isTemplateMiddle:()=>nj,isTemplateMiddleOrTemplateTail:()=>s6,isTemplateSpan:()=>hD,isTemplateTail:()=>n3,isTextWhiteSpaceLike:()=>Xle,isThis:()=>jD,isThisContainerOrFunctionBlock:()=>ene,isThisIdentifier:()=>bb,isThisInTypeQuery:()=>S1,isThisInitializedDeclaration:()=>z6,isThisInitializedObjectBindingExpression:()=>nne,isThisProperty:()=>$L,isThisTypeNode:()=>zM,isThisTypeParameter:()=>DM,isThisTypePredicate:()=>$te,isThrowStatement:()=>uj,isToken:()=>XA,isTokenKind:()=>kB,isTraceEnabled:()=>Pb,isTransientSymbol:()=>ug,isTrivia:()=>KR,isTryStatement:()=>mE,isTupleTypeNode:()=>OI,isTypeAlias:()=>uk,isTypeAliasDeclaration:()=>ym,isTypeAssertionExpression:()=>l3,isTypeDeclaration:()=>AI,isTypeElement:()=>l1,isTypeKeyword:()=>xP,isTypeKeywordTokenOrIdentifier:()=>d7,isTypeLiteralNode:()=>ku,isTypeNode:()=>Ri,isTypeNodeKind:()=>pV,isTypeOfExpression:()=>pD,isTypeOnlyExportDeclaration:()=>Zee,isTypeOnlyImportDeclaration:()=>CR,isTypeOnlyImportOrExportDeclaration:()=>Xy,isTypeOperatorNode:()=>G0,isTypeParameterDeclaration:()=>sl,isTypePredicateNode:()=>wI,isTypeQueryNode:()=>N1,isTypeReferenceNode:()=>wp,isTypeReferenceType:()=>_6,isTypeUsableAsPropertyName:()=>Gf,isUMDExportSymbol:()=>vW,isUnaryExpression:()=>VB,isUnaryExpressionWithWrite:()=>ate,isUnicodeIdentifierStart:()=>K8,isUnionTypeNode:()=>sv,isUrl:()=>fee,isValidBigIntString:()=>BW,isValidESSymbolDeclaration:()=>Kte,isValidTypeOnlyAliasUseSite:()=>F0,isValueSignatureDeclaration:()=>ZS,isVarAwaitUsing:()=>qL,isVarConst:()=>FR,isVarConstLike:()=>Ute,isVarUsing:()=>JL,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>jN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>h1,isVariableDeclarationInitializedToRequire:()=>tk,isVariableDeclarationList:()=>_d,isVariableLike:()=>VN,isVariableStatement:()=>ac,isVoidExpression:()=>FI,isWatchSet:()=>cV,isWhileStatement:()=>dj,isWhiteSpaceLike:()=>ag,isWhiteSpaceSingleLine:()=>zh,isWithStatement:()=>Tie,isWriteAccess:()=>gI,isWriteOnlyAccess:()=>yW,isYieldExpression:()=>ow,jsxModeNeedsExplicitImport:()=>sJ,keywordPart:()=>Bp,last:()=>Ba,lastOrUndefined:()=>Zs,length:()=>et,libMap:()=>zj,libs:()=>R3,lineBreakPart:()=>XD,loadModuleFromGlobalCache:()=>Joe,loadWithModeAwareCache:()=>qw,makeIdentifierFromModuleName:()=>Pte,makeImport:()=>zb,makeStringLiteral:()=>RP,mangleScopedPackageName:()=>PD,map:()=>Vt,mapAllOrFail:()=>T0,mapDefined:()=>Ui,mapDefinedIterator:()=>nh,mapEntries:()=>OQ,mapIterator:()=>za,mapOneOrMany:()=>rJ,mapToDisplayParts:()=>Bb,matchFiles:()=>hre,matchPatternOrExact:()=>RV,matchedText:()=>YQ,matchesExclude:()=>B3,matchesExcludeWorker:()=>G3,maxBy:()=>Lz,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>ere,memoize:()=>Cu,memoizeOne:()=>Wh,min:()=>kz,minAndMax:()=>Sre,missingFileModifiedTime:()=>xp,modifierToFlag:()=>hI,modifiersToFlags:()=>Kh,moduleExportNameIsDefault:()=>C_,moduleExportNameTextEscaped:()=>p1,moduleExportNameTextUnescaped:()=>hb,moduleOptionDeclaration:()=>soe,moduleResolutionIsEqualTo:()=>Ete,moduleResolutionNameAndModeGetter:()=>yF,moduleResolutionOptionDeclarations:()=>Gj,moduleResolutionSupportsPackageJsonExportsAndImports:()=>rD,moduleResolutionUsesNodeModules:()=>u7,moduleSpecifierToValidIdentifier:()=>SO,moduleSpecifiers:()=>hy,moduleSupportsImportAttributes:()=>sre,moduleSymbolToValidIdentifier:()=>TO,moveEmitHelpers:()=>eie,moveRangeEnd:()=>_W,moveRangePastDecorators:()=>ly,moveRangePastModifiers:()=>Xh,moveRangePos:()=>W0,moveSyntheticComments:()=>$re,mutateMap:()=>hM,mutateMapSkippingNewValues:()=>yg,needsParentheses:()=>g7,needsScopeMarker:()=>d6,newCaseClauseTracker:()=>C7,newPrivateEnvironment:()=>_ae,noEmitNotification:()=>zw,noEmitSubstitution:()=>uP,noTransformers:()=>Jae,noTruncationMaximumTruncationLength:()=>KB,nodeCanBeDecorated:()=>ZL,nodeCoreModules:()=>sD,nodeHasName:()=>EL,nodeIsDecorated:()=>GR,nodeIsMissing:()=>Ol,nodeIsPresent:()=>pm,nodeIsSynthesized:()=>Os,nodeModuleNameResolver:()=>Boe,nodeModulesPathPart:()=>xg,nodeNextJsonConfigResolver:()=>Goe,nodeOrChildIsDecorated:()=>ek,nodeOverlapsWithStartEnd:()=>ZF,nodePosToString:()=>a0e,nodeSeenTracker:()=>qD,nodeStartsNewLexicalEnvironment:()=>OG,noop:()=>gs,noopFileWatcher:()=>BD,normalizePath:()=>ya,normalizeSlashes:()=>Bd,normalizeSpans:()=>EB,not:()=>L8,notImplemented:()=>ha,notImplementedResolver:()=>Qae,nullNodeConverters:()=>Kre,nullParenthesizerRules:()=>qre,nullTransformationContext:()=>Gw,objectAllocator:()=>Rd,operatorPart:()=>CP,optionDeclarations:()=>jm,optionMapToObject:()=>k3,optionsAffectingProgramStructure:()=>uoe,optionsForBuild:()=>jj,optionsForWatch:()=>JI,optionsHaveChanges:()=>tI,or:()=>Ip,orderedRemoveItem:()=>uN,orderedRemoveItemAt:()=>tb,packageIdToPackageName:()=>S6,packageIdToString:()=>D0,parameterIsThisKeyword:()=>vb,parameterNamePart:()=>$le,parseBaseNodeFactory:()=>toe,parseBigInt:()=>Are,parseBuildCommand:()=>voe,parseCommandLine:()=>goe,parseCommandLineWorker:()=>Uj,parseConfigFileTextToJson:()=>qj,parseConfigFileWithSystem:()=>Wse,parseConfigHostFromCompilerHostLike:()=>AF,parseCustomTypeOption:()=>M3,parseIsolatedEntityName:()=>qI,parseIsolatedJSDocComment:()=>roe,parseJSDocTypeExpressionForTests:()=>FTe,parseJsonConfigFileContent:()=>m1e,parseJsonSourceFileConfigFileContent:()=>Iw,parseJsonText:()=>vw,parseListTypeOption:()=>hoe,parseNodeFactory:()=>$0,parseNodeModuleFromPath:()=>Cw,parsePackageName:()=>K3,parsePseudoBigInt:()=>AM,parseValidBigInt:()=>MV,pasteEdits:()=>aX,patchWriteFileEnsuringDirectory:()=>Sbe,pathContainsNodeModules:()=>kb,pathIsAbsolute:()=>vN,pathIsBareSpecifier:()=>fB,pathIsRelative:()=>Qp,patternText:()=>XQ,performIncrementalCompilation:()=>Fse,performance:()=>iZ,positionBelongsToNode:()=>vq,positionIsASICandidate:()=>b7,positionIsSynthesized:()=>dh,positionsAreOnSameLine:()=>zf,preProcessFile:()=>AIe,probablyUsesSemicolons:()=>vO,processCommentPragmas:()=>Wj,processPragmasIntoFields:()=>Fj,processTaggedTemplateExpression:()=>zU,programContainsEsModules:()=>Jle,programContainsModules:()=>qle,projectReferenceIsEqualTo:()=>XB,propertyNamePart:()=>Qle,pseudoBigIntToString:()=>R1,punctuationPart:()=>su,pushIfUnique:()=>Pf,quote:()=>PP,quotePreferenceFromString:()=>Oq,rangeContainsPosition:()=>UD,rangeContainsPositionExclusive:()=>sO,rangeContainsRange:()=>Zu,rangeContainsRangeExclusive:()=>Lle,rangeContainsStartEnd:()=>lO,rangeEndIsOnSameLineAsRangeStart:()=>Nk,rangeEndPositionsAreOnSameLine:()=>jne,rangeEquals:()=>Iz,rangeIsOnSingleLine:()=>rE,rangeOfNode:()=>CV,rangeOfTypeParameters:()=>NV,rangeOverlapsWithStartEnd:()=>EP,rangeStartIsOnSameLineAsRangeEnd:()=>Une,rangeStartPositionsAreOnSameLine:()=>gW,readBuilderProgram:()=>wF,readConfigFile:()=>Ew,readJson:()=>ZR,readJsonConfigFile:()=>boe,readJsonOrUndefined:()=>iV,reduceEachLeadingCommentRange:()=>Tee,reduceEachTrailingCommentRange:()=>See,reduceLeft:()=>_u,reduceLeftIterator:()=>Gn,reducePathComponents:()=>JA,refactor:()=>sx,regExpEscape:()=>w0e,regularExpressionFlagToCharacterCode:()=>kbe,relativeComplement:()=>WQ,removeAllComments:()=>Qk,removeEmitHelper:()=>$0e,removeExtension:()=>Vk,removeFileExtension:()=>bu,removeIgnoredPath:()=>DF,removeMinAndVersionNumbers:()=>Wz,removePrefix:()=>pN,removeSuffix:()=>yR,removeTrailingDirectorySeparator:()=>Jy,repeatString:()=>pO,replaceElement:()=>Dz,replaceFirstStar:()=>oE,resolutionExtensionIsTSOrJson:()=>bM,resolveConfigFileProjectName:()=>jH,resolveJSModule:()=>q1e,resolveLibrary:()=>J3,resolveModuleName:()=>SE,resolveModuleNameFromCache:()=>U1e,resolvePackageNameToPackageJson:()=>iU,resolvePath:()=>rb,resolveProjectReferencePath:()=>ZI,resolveTripleslashReference:()=>nH,resolveTypeReferenceDirective:()=>koe,resolvingEmptyArray:()=>JB,returnFalse:()=>Qg,returnNoopFileWatcher:()=>vP,returnTrue:()=>n1,returnUndefined:()=>r1,returnsPromise:()=>TJ,rewriteModuleSpecifier:()=>YI,sameFlatMap:()=>km,sameMap:()=>Zi,sameMapping:()=>wSe,scanTokenAtPosition:()=>jte,scanner:()=>yd,semanticDiagnosticsOptionDeclarations:()=>loe,serializeCompilerOptions:()=>$j,server:()=>xwe,servicesVersion:()=>fRe,setCommentRange:()=>Dc,setConfigFileInOptions:()=>Qj,setConstantValue:()=>Zre,setEmitFlags:()=>Cr,setGetSourceFileAsHashVersioned:()=>kF,setIdentifierAutoGenerate:()=>tw,setIdentifierGeneratedImportReference:()=>rie,setIdentifierTypeArguments:()=>av,setInternalEmitFlags:()=>Zk,setLocalizedDiagnosticMessages:()=>Zne,setNodeChildren:()=>Lie,setNodeFlags:()=>Rre,setObjectAllocator:()=>Qne,setOriginalNode:()=>jr,setParent:()=>us,setParentRecursive:()=>z0,setPrivateIdentifier:()=>AE,setSnippetElement:()=>ZV,setSourceMapRange:()=>Ua,setStackTraceLimit:()=>hbe,setStartsOnNewLine:()=>QW,setSyntheticLeadingComments:()=>B0,setSyntheticTrailingComments:()=>DI,setSys:()=>Ebe,setSysLog:()=>uee,setTextRange:()=>bt,setTextRangeEnd:()=>aD,setTextRangePos:()=>IM,setTextRangePosEnd:()=>uh,setTextRangePosWidth:()=>PV,setTokenSourceMapRange:()=>Yre,setTypeNode:()=>tie,setUILocale:()=>qQ,setValueDeclaration:()=>YN,shouldAllowImportingTsExtension:()=>LD,shouldPreserveConstEnums:()=>Sb,shouldRewriteModuleSpecifier:()=>dk,shouldUseUriStyleNodeCoreModules:()=>R7,showModuleSpecifier:()=>Xne,signatureHasRestParameter:()=>au,signatureToDisplayParts:()=>Jq,single:()=>Rz,singleElementArray:()=>UA,singleIterator:()=>R8,singleOrMany:()=>A_,singleOrUndefined:()=>ig,skipAlias:()=>xd,skipConstraint:()=>Lq,skipOuterExpressions:()=>Ul,skipParentheses:()=>ds,skipPartiallyEmittedExpressions:()=>Om,skipTrivia:()=>La,skipTypeChecking:()=>oD,skipTypeCheckingIgnoringNoCheck:()=>Ere,skipTypeParentheses:()=>QN,skipWhile:()=>QQ,sliceAfter:()=>DV,some:()=>vt,sortAndDeduplicate:()=>dN,sortAndDeduplicateDiagnostics:()=>xR,sourceFileAffectingCompilerOptions:()=>Vj,sourceFileMayBeEmitted:()=>b1,sourceMapCommentRegExp:()=>RU,sourceMapCommentRegExpDontCareLineStart:()=>lae,spacePart:()=>zl,spanMap:()=>nL,startEndContainsRange:()=>sV,startEndOverlapsWithStartEnd:()=>e7,startOnNewLine:()=>ou,startTracing:()=>lZ,startsWith:()=>po,startsWithDirectory:()=>_B,startsWithUnderscore:()=>aJ,startsWithUseStrict:()=>Bie,stringContainsAt:()=>mce,stringToToken:()=>OS,stripQuotes:()=>hm,supportedDeclarationExtensions:()=>OW,supportedJSExtensionsFlat:()=>iD,supportedLocaleDirectories:()=>Wee,supportedTSExtensionsFlat:()=>AV,supportedTSImplementationExtensions:()=>zk,suppressLeadingAndTrailingTrivia:()=>kp,suppressLeadingTrivia:()=>JV,suppressTrailingTrivia:()=>Vre,symbolEscapedNameNoDefault:()=>p7,symbolName:()=>wl,symbolNameNoDefault:()=>Fq,symbolToDisplayParts:()=>NP,sys:()=>Uc,sysLog:()=>G8,tagNamesAreEquivalent:()=>Z0,takeWhile:()=>Bz,targetOptionDeclaration:()=>Bj,targetToLibMap:()=>Eee,testFormatSettings:()=>qAe,textChangeRangeIsUnchanged:()=>Pee,textChangeRangeNewSpan:()=>RN,textChanges:()=>Rr,textOrKeywordPart:()=>qq,textPart:()=>gf,textRangeContainsPositionInclusive:()=>vL,textRangeContainsTextSpan:()=>xee,textRangeIntersectsWithTextSpan:()=>Nee,textSpanContainsPosition:()=>TB,textSpanContainsTextRange:()=>SB,textSpanContainsTextSpan:()=>Iee,textSpanEnd:()=>Dl,textSpanIntersection:()=>Mee,textSpanIntersectsWith:()=>bL,textSpanIntersectsWithPosition:()=>Cee,textSpanIntersectsWithTextSpan:()=>Dee,textSpanIsEmpty:()=>Aee,textSpanOverlap:()=>Ree,textSpanOverlapsWith:()=>Vbe,textSpansEqual:()=>KD,textToKeywordObj:()=>J8,timestamp:()=>Ls,toArray:()=>VA,toBuilderFileEmit:()=>xse,toBuilderStateFileInfoForMultiEmit:()=>Ise,toEditorSettings:()=>NO,toFileNameLowerCase:()=>Qv,toPath:()=>ks,toProgramEmitPending:()=>Rse,toSorted:()=>Ap,tokenIsIdentifierOrKeyword:()=>Ju,tokenIsIdentifierOrKeywordOrGreaterThan:()=>hee,tokenToString:()=>_a,trace:()=>xo,tracing:()=>xr,tracingEnabled:()=>dL,transferSourceFileChildren:()=>kie,transform:()=>ERe,transformClassFields:()=>xae,transformDeclarations:()=>jU,transformECMAScriptModule:()=>VU,transformES2015:()=>Bae,transformES2016:()=>zae,transformES2017:()=>Nae,transformES2018:()=>Mae,transformES2019:()=>Pae,transformES2020:()=>Lae,transformES2021:()=>kae,transformESDecorators:()=>Cae,transformESNext:()=>wae,transformGenerators:()=>Gae,transformImpliedNodeFormatDependentModule:()=>jae,transformJsx:()=>Fae,transformLegacyDecorators:()=>Dae,transformModule:()=>GU,transformNamedEvaluation:()=>Wp,transformNodes:()=>Bw,transformSystemModule:()=>Vae,transformTypeScript:()=>Iae,transpile:()=>LIe,transpileDeclaration:()=>MIe,transpileModule:()=>Wce,transpileOptionValueCompilerOptions:()=>poe,tryAddToSet:()=>rh,tryAndIgnoreErrors:()=>E7,tryCast:()=>ni,tryDirectoryExists:()=>S7,tryExtractTSExtension:()=>hW,tryFileExists:()=>kP,tryGetClassExtendingExpressionWithTypeArguments:()=>eV,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>tV,tryGetDirectories:()=>T7,tryGetExtensionFromPath:()=>Tg,tryGetImportFromModuleSpecifier:()=>ck,tryGetJSDocSatisfiesTypeNode:()=>UW,tryGetModuleNameFromFile:()=>fw,tryGetModuleSpecifierFromDeclaration:()=>sI,tryGetNativePerformanceHooks:()=>rZ,tryGetPropertyAccessOrIdentifierToString:()=>Dk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>S3,tryGetSourceMappingURL:()=>cae,tryGetTextOfPropertyName:()=>GN,tryParseJson:()=>Ck,tryParsePattern:()=>EI,tryParsePatterns:()=>jk,tryParseRawSourceMap:()=>dae,tryReadDirectory:()=>Zq,tryReadFile:()=>YM,tryRemoveDirectoryPrefix:()=>TV,tryRemoveExtension:()=>bre,tryRemovePrefix:()=>zz,tryRemoveSuffix:()=>KQ,tscBuildOption:()=>bE,typeAcquisitionDeclarations:()=>C3,typeAliasNamePart:()=>Zle,typeDirectiveIsEqualTo:()=>Ate,typeKeywords:()=>Pq,typeParameterNamePart:()=>ece,typeToDisplayParts:()=>_O,unchangedPollThresholds:()=>z8,unchangedTextChangeRange:()=>$8,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Mw,unorderedRemoveItem:()=>jA,unprefixedNodeCoreModules:()=>zre,unreachableCodeIsError:()=>ore,unsetNodeChildren:()=>Tj,unusedLabelIsError:()=>are,unwrapInnermostStatementOfLabel:()=>_G,unwrapParenthesizedExpression:()=>Wre,updateErrorForNoInputFiles:()=>z3,updateLanguageServiceSourceFile:()=>KJ,updateMissingFilePathsWatch:()=>ZU,updateResolutionField:()=>DD,updateSharedExtendedConfigFileWatcher:()=>mF,updateSourceFile:()=>wj,updateWatchingWildcardDirectories:()=>jw,usingSingleLineStringWriter:()=>kR,utf16EncodeAsString:()=>xN,validateLocaleAndSetLanguage:()=>IB,version:()=>Me,versionMajorMinor:()=>he,visitArray:()=>iP,visitCommaListElements:()=>nF,visitEachChild:()=>kn,visitFunctionBody:()=>_f,visitIterationBody:()=>Ou,visitLexicalEnvironment:()=>xU,visitNode:()=>st,visitNodes:()=>Xn,visitParameterList:()=>Fl,walkUpBindingElementsAndPatterns:()=>WS,walkUpOuterExpressions:()=>Gie,walkUpParenthesizedExpressions:()=>Fm,walkUpParenthesizedTypes:()=>mk,walkUpParenthesizedTypesAndGetParentAndChild:()=>hne,whitespaceOrMapCommentRegExp:()=>DU,writeCommentRange:()=>QR,writeFile:()=>cW,writeFileEnsuringDirectories:()=>JG,zipWith:()=>ki}),m.exports=W(X);var he="5.9",Me="5.9.3",Ke=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Ke||{}),ae=[],yt=new Map;function et(e){return e!==void 0?e.length:0}function Je(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i)return i}}function Pn(e,t){if(e!==void 0)for(let r=e.length-1;r>=0;r--){let i=t(e[r],r);if(i)return i}}function Hn(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i!==void 0)return i}}function cr(e,t){for(let r of e){let i=t(r);if(i!==void 0)return i}}function Gn(e,t,r){let i=r;if(e){let o=0;for(let s of e)i=t(i,s,o),o++}return i}function ki(e,t,r){let i=[];C.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function bo(e,t){if(e.length<=1)return e;let r=[];for(let i=0,o=e.length;i<o;i++)i!==0&&r.push(t),r.push(e[i]);return r}function Vn(e,t){if(e!==void 0){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function hn(e,t,r){if(e!==void 0)for(let i=r??0;i<e.length;i++){let o=e[i];if(t(o,i))return o}}function ga(e,t,r){if(e!==void 0)for(let i=r??e.length-1;i>=0;i--){let o=e[i];if(t(o,i))return o}}function ho(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 gl(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 jn(e,t,r=Zv){if(e!==void 0){for(let i=0;i<e.length;i++)if(r(e[i],t))return!0}return!1}function Gi(e,t,r){for(let i=r??0;i<e.length;i++)if(jn(t,e.charCodeAt(i)))return i;return-1}function Io(e,t){let r=0;if(e!==void 0)for(let i=0;i<e.length;i++){let o=e[i];t(o,i)&&r++}return r}function Un(e,t){if(e!==void 0){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;if(i<r){let o=e.slice(0,i);for(i++;i<r;){let s=e[i];t(s)&&o.push(s),i++}return o}}return e}function ul(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 hi(e){e.length=0}function Vt(e,t){let r;if(e!==void 0){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*za(e,t){for(let r of e)yield t(r)}function Zi(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let i=e[r],o=t(i,r);if(i!==o){let 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 la(e){let t=[];for(let r=0;r<e.length;r++){let i=e[r];i&&(Mo(i)?Xr(t,i):t.push(i))}return t}function Ki(e,t){let r;if(e!==void 0)for(let i=0;i<e.length;i++){let o=t(e[i],i);o&&(Mo(o)?r=Xr(r,o):r=Bn(r,o))}return r??ae}function vc(e,t){let r=[];if(e!==void 0)for(let i=0;i<e.length;i++){let o=t(e[i],i);o&&(Mo(o)?Xr(r,o):r.push(o))}return r}function*sf(e,t){for(let r of e){let i=t(r);i&&(yield*i)}}function km(e,t){let r;if(e!==void 0)for(let i=0;i<e.length;i++){let o=e[i],s=t(o,i);(r||o!==s||Mo(s))&&(r||(r=e.slice(0,i)),Mo(s)?Xr(r,s):r.push(s))}return r??e}function T0(e,t){let r=[];for(let i=0;i<e.length;i++){let o=t(e[i],i);if(o===void 0)return;r.push(o)}return r}function Ui(e,t){let r=[];if(e!==void 0)for(let i=0;i<e.length;i++){let o=t(e[i],i);o!==void 0&&r.push(o)}return r}function*nh(e,t){for(let r of e){let i=t(r);i!==void 0&&(yield i)}}function FA(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function rh(e,t){return e.has(t)?!1:(e.add(t),!0)}function*R8(e){yield e}function nL(e,t,r){let i;if(e!==void 0){i=[];let o=e.length,s,l,u=0,d=0;for(;u<o;){for(;d<o;){let g=e[d];if(l=t(g,d),d===0)s=l;else if(l!==s)break;d++}if(u<d){let g=r(e.slice(u,d),s,u,d);g&&i.push(g),u=d}s=l,d++}}return i}function OQ(e,t){if(e===void 0)return;let r=new Map;return e.forEach((i,o)=>{let[s,l]=t(o,i);r.set(s,l)}),r}function vt(e,t){if(e!==void 0)if(t!==void 0){for(let r=0;r<e.length;r++)if(t(e[r]))return!0}else return e.length>0;return!1}function Sz(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 t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function f9e(e,t){return t}function D8(e){return e.map(f9e)}function m9e(e,t,r){let i=D8(e);g9e(e,i,r);let o=e[i[0]],s=[i[0]];for(let l=1;l<i.length;l++){let u=i[l],d=e[u];t(o,d)||(s.push(u),o=d)}return s.sort(),s.map(l=>e[l])}function h9e(e,t){let r=[];for(let i=0;i<e.length;i++)Pf(r,e[i],t);return r}function t1(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?m9e(e,t,r):h9e(e,t)}function _9e(e,t){if(e.length===0)return ae;let r=e[0],i=[r];for(let o=1;o<e.length;o++){let s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return C.fail("Array is unsorted.")}i.push(r=s)}return i}function Ez(){return[]}function Kv(e,t,r,i,o){if(e.length===0)return e.push(t),!0;let s=Yv(e,t,Vs,r);if(s<0){if(i&&!o){let l=~s;if(l>0&&i(t,e[l-1]))return!1;if(l<e.length&&i(t,e[l]))return e.splice(l,1,t),!0}return e.splice(~s,0,t),!0}return o?(e.splice(s,0,t),!0):!1}function dN(e,t,r){return _9e(Ap(e,t),r??t??Wd)}function $p(e,t,r=Zv){if(e===void 0||t===void 0)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 rL(e){let t;if(e!==void 0)for(let r=0;r<e.length;r++){let i=e[r];(t??!i)&&(t??(t=e.slice(0,r)),i&&t.push(i))}return t??e}function WQ(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;let i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&C.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;o<e.length;o++)switch(o>l&&C.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 Bn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function zA(e,t){return e===void 0?t:t===void 0?e:Mo(e)?Mo(t)?so(e,t):Bn(e,t):Mo(t)?Bn(t,e):[e,t]}function FQ(e,t){return t<0?e.length+t:t}function Xr(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:FQ(t,r),i=i===void 0?t.length:FQ(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function Pf(e,t,r){return jn(e,t,r)?!1:(e.push(t),!0)}function $g(e,t,r){return e!==void 0?(Pf(e,t,r),e):[t]}function g9e(e,t,r){t.sort((i,o)=>r(e[i],e[o])||js(i,o))}function Ap(e,t){return e.length===0?ae:e.slice().sort(t)}function*Az(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Iz(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}var Xv=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e!==void 0&&(t=FQ(e,t),t<e.length))return e[t]};function Ic(e){return e===void 0||e.length===0?void 0:e[0]}function C8(e){if(e!==void 0)for(let t of e)return t}function $a(e){return C.assert(e.length!==0),e[0]}function xz(e){for(let t of e)return t;C.fail("iterator is empty")}function Zs(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Ba(e){return C.assert(e.length!==0),e[e.length-1]}function ig(e){return e!==void 0&&e.length===1?e[0]:void 0}function Rz(e){return C.checkDefined(ig(e))}function A_(e){return e!==void 0&&e.length===1?e[0]:e}function Dz(e,t,r){let i=e.slice(0);return i[t]=r,i}function Yv(e,t,r,i,o){return BA(e,r(t),r,i,o)}function BA(e,t,r,i,o){if(!vt(e))return-1;let s=o??0,l=e.length-1;for(;s<=l;){let u=s+(l-s>>1),d=r(e[u],u);switch(i(d,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function _u(e,t,r,i,o){if(e&&e.length>0){let s=e.length;if(s>0){let l=i===void 0||i<0?0:i,u=o===void 0||l+o>s-1?s-1:l+o,d;for(arguments.length<=2?(d=e[l],l++):d=r;l<=u;)d=t(d,e[l],l),l++;return d}}return r}var S0=Object.prototype.hasOwnProperty;function Rs(e,t){return S0.call(e,t)}function iL(e,t){return S0.call(e,t)?e[t]:void 0}function Oh(e){let t=[];for(let r in e)S0.call(e,r)&&t.push(r);return t}function Zve(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)Pf(t,i)}while(e=Object.getPrototypeOf(e));return t}function GA(e){let t=[];for(let r in e)S0.call(e,r)&&t.push(e[r]);return t}function zQ(e,t){let r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function Co(e,t){let r=[];for(let i of e)r.push(t?t(i):i);return r}function PS(e,...t){for(let r of t)if(r!==void 0)for(let i in r)Rs(r,i)&&(e[i]=r[i]);return e}function BQ(e,t,r=Zv){if(e===t)return!0;if(!e||!t)return!1;for(let i in e)if(S0.call(e,i)&&(!S0.call(t,i)||!r(e[i],t[i])))return!1;for(let i in t)if(S0.call(t,i)&&!S0.call(e,i))return!1;return!0}function hR(e,t,r=Vs){let i=new Map;for(let o=0;o<e.length;o++){let s=e[o],l=t(s);l!==void 0&&i.set(l,r(s))}return i}function GQ(e,t,r=Vs){let i=[];for(let o=0;o<e.length;o++){let s=e[o];i[t(s)]=r(s)}return i}function oL(e,t,r=Vs){let i=lm();for(let o=0;o<e.length;o++){let s=e[o];i.add(t(s),r(s))}return i}function _R(e,t,r=Vs){return Co(oL(e,t).values(),r)}function Cz(e,t){let r={};if(e!==void 0)for(let i=0;i<e.length;i++){let o=e[i],s=`${t(o)}`;(r[s]??(r[s]=[])).push(o)}return r}function VQ(e){let t={};for(let r in e)S0.call(e,r)&&(t[r]=e[r]);return t}function Nz(e,t){let r={};for(let i in t)S0.call(t,i)&&(r[i]=t[i]);for(let i in e)S0.call(e,i)&&(r[i]=e[i]);return r}function Mz(e,t){for(let r in t)S0.call(t,r)&&(e[r]=t[r])}function ia(e,t){return t?.bind(e)}function lm(){let e=new Map;return e.add=y9e,e.remove=v9e,e}function y9e(e,t){let r=this.get(e);return r!==void 0?r.push(t):this.set(e,r=[t]),r}function v9e(e,t){let r=this.get(e);r!==void 0&&(jA(r,t),r.length||this.delete(e))}function aL(e){let t=e?.slice()??[],r=0;function i(){return r===t.length}function o(...l){t.push(...l)}function s(){if(i())throw new Error("Queue is empty");let l=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){let u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function Pz(e,t){let r=new Map,i=0;function*o(){for(let l of r.values())Mo(l)?yield*l:yield l}let s={has(l){let u=e(l);if(!r.has(u))return!1;let d=r.get(u);return Mo(d)?jn(d,l,t):t(d,l)},add(l){let u=e(l);if(r.has(u)){let d=r.get(u);if(Mo(d))jn(d,l,t)||(d.push(l),i++);else{let g=d;t(g,l)||(r.set(u,[g,l]),i++)}}else r.set(u,l),i++;return this},delete(l){let u=e(l);if(!r.has(u))return!1;let d=r.get(u);if(Mo(d)){for(let g=0;g<d.length;g++)if(t(d[g],l))return d.length===1?r.delete(u):d.length===2?r.set(u,d[1-g]):nbe(d,g),i--,!0}else if(t(d,l))return r.delete(u),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(l){for(let u of Co(r.values()))if(Mo(u))for(let d of u)l(d,d,s);else{let d=u;l(d,d,s)}},keys(){return o()},values(){return o()},*entries(){for(let l of o())yield[l,l]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Mo(e){return Array.isArray(e)}function VA(e){return Mo(e)?e:[e]}function Bo(e){return typeof e=="string"}function $v(e){return typeof e=="number"}function ni(e,t){return e!==void 0&&t(e)?e:void 0}function ma(e,t){return e!==void 0&&t(e)?e:C.fail(`Invalid cast. The supplied value ${e} did not pass the test '${C.getFunctionName(t)}'.`)}function gs(e){}function Qg(){return!1}function n1(){return!0}function r1(){}function Vs(e){return e}function b9e(e){return e.toLowerCase()}var ebe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function Qv(e){return ebe.test(e)?e.replace(ebe,b9e):e}function ha(){throw new Error("Not implemented")}function Cu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Wh(e){let t=new Map;return r=>{let i=`${typeof r}:${r}`,o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}var jQ=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(jQ||{});function Zv(e,t){return e===t}function eb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function i1(e,t){return Zv(e,t)}function tbe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function js(e,t){return tbe(e,t)}function N8(e,t){return js(e?.start,t?.start)||js(e?.length,t?.length)}function Lz(e,t,r){for(let i=0;i<e.length;i++)t=Math.max(t,r(e[i]));return t}function kz(e,t){return _u(e,(r,i)=>t(r,i)===-1?r:i)}function sL(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 UQ(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 Wd(e,t){return tbe(e,t)}function gR(e){return e?sL:Wd}var T9e=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;let s=o(r,i);return s<0?-1:s>0?1:0}function t(r){let i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(o,s)=>e(o,s,i)}})(),wz,Oz;function HQ(){return Oz}function qQ(e){Oz!==e&&(Oz=e,wz=void 0)}function lL(e,t){return wz??(wz=T9e(Oz)),wz(e,t)}function JQ(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function E0(e,t){return js(e?1:0,t?1:0)}function o1(e,t,r){let i=Math.max(2,Math.floor(e.length*.34)),o=Math.floor(e.length*.4)+1,s;for(let l of t){let 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;let d=S9e(e,u,o-.1);if(d===void 0)continue;C.assert(d<o),o=d,s=l}}return s}function S9e(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1),s=r+.01;for(let u=0;u<=t.length;u++)i[u]=u;for(let u=1;u<=e.length;u++){let d=e.charCodeAt(u-1),g=Math.ceil(u>r?u-r:1),_=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let v=u;for(let A=1;A<g;A++)o[A]=s;for(let A=g;A<=_;A++){let R=e[u-1].toLowerCase()===t[A-1].toLowerCase()?i[A-1]+.1:i[A-1]+2,N=d===t.charCodeAt(A-1)?i[A-1]:Math.min(i[A]+1,o[A-1]+1,R);o[A]=N,v=Math.min(v,N)}for(let A=_+1;A<=t.length;A++)o[A]=s;if(v>r)return;let E=i;i=o,o=E}let l=i[t.length];return l>r?void 0:l}function el(e,t,r){let i=e.length-t.length;return i>=0&&(r?eb(e.slice(i),t):e.indexOf(t,i)===i)}function yR(e,t){return el(e,t)?e.slice(0,e.length-t.length):e}function KQ(e,t){return el(e,t)?e.slice(0,e.length-t.length):void 0}function Wz(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 uN(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return tb(e,r),!0;return!1}function tb(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function nbe(e,t){e[t]=e[e.length-1],e.pop()}function jA(e,t){return E9e(e,r=>r===t)}function E9e(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return nbe(e,r),!0;return!1}function Fd(e){return e?Vs:Qv}function XQ({prefix:e,suffix:t}){return`${e}*${t}`}function YQ(e,t){return C.assert(M8(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function Fz(e,t,r){let i,o=-1;for(let s=0;s<e.length;s++){let l=e[s],u=t(l);u.prefix.length>o&&M8(u,r)&&(o=u.prefix.length,i=l)}return i}function po(e,t,r){return r?eb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function pN(e,t){return po(e,t)?e.substr(t.length):e}function zz(e,t,r=Vs){return po(r(e),r(t))?e.substring(t.length):void 0}function M8({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&po(r,e)&&el(r,t)}function P8(e,t){return r=>e(r)&&t(r)}function Ip(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function L8(e){return(...t)=>!e(...t)}function rbe(e){}function UA(e){return e===void 0?void 0:[e]}function k8(e,t,r,i,o,s){s??(s=gs);let l=0,u=0,d=e.length,g=t.length,_=!1;for(;l<d&&u<g;){let v=e[l],E=t[u],A=r(v,E);A===-1?(i(v),l++,_=!0):A===1?(o(E),u++,_=!0):(s(E,v),l++,u++)}for(;l<d;)i(e[l++]),_=!0;for(;u<g;)o(t[u++]),_=!0;return _}function $Q(e){let t=[];return ibe(e,t,void 0,0),t}function ibe(e,t,r,i){for(let o of e[i]){let s;r?(s=r.slice(),s.push(o)):s=[o],i===e.length-1?t.push(s):ibe(e,t,s,i+1)}}function Bz(e,t){if(e!==void 0){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function QQ(e,t){if(e!==void 0){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function Gz(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof i9e<"u"}var ZQ=(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))(ZQ||{}),C;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r($e){return e.currentLogLevel<=$e}e.shouldLog=r;function i($e,At){e.loggingHost&&r($e)&&e.loggingHost.log($e,At)}function o($e){i(3,$e)}e.log=o,($e=>{function At(ai){i(1,ai)}$e.error=At;function mn(ai){i(2,ai)}$e.warn=mn;function dr(ai){i(3,ai)}$e.log=dr;function ri(ai){i(4,ai)}$e.trace=ri})(o=e.log||(e.log={}));let s={};function l(){return t}e.getAssertionLevel=l;function u($e){let At=t;if(t=$e,$e>At)for(let mn of Oh(s)){let dr=s[mn];dr!==void 0&&e[mn]!==dr.assertion&&$e>=dr.level&&(e[mn]=dr,s[mn]=void 0)}}e.setAssertionLevel=u;function d($e){return t>=$e}e.shouldAssert=d;function g($e,At){return d($e)?!0:(s[At]={level:$e,assertion:e[At]},e[At]=gs,!1)}function _($e,At){debugger;let mn=new Error($e?`Debug Failure. ${$e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(mn,At||_),mn}e.fail=_;function v($e,At,mn){return _(`${At||"Unexpected node."}\r
Node ${Ce($e.kind)} was unexpected.`,mn||v)}e.failBadSyntaxKind=v;function E($e,At,mn,dr){$e||(At=At?`False expression: ${At}`:"False expression.",mn&&(At+=`\r
Verbose Debug Information: `+(typeof mn=="string"?mn:mn())),_(At,dr||E))}e.assert=E;function A($e,At,mn,dr,ri){if($e!==At){let ai=mn?dr?`${mn} ${dr}`:mn:"";_(`Expected ${$e} === ${At}. ${ai}`,ri||A)}}e.assertEqual=A;function R($e,At,mn,dr){$e>=At&&_(`Expected ${$e} < ${At}. ${mn||""}`,dr||R)}e.assertLessThan=R;function N($e,At,mn){$e>At&&_(`Expected ${$e} <= ${At}`,mn||N)}e.assertLessThanOrEqual=N;function P($e,At,mn){$e<At&&_(`Expected ${$e} >= ${At}`,mn||P)}e.assertGreaterThanOrEqual=P;function k($e,At,mn){$e==null&&_(At,mn||k)}e.assertIsDefined=k;function F($e,At,mn){return k($e,At,mn||F),$e}e.checkDefined=F;function O($e,At,mn){for(let dr of $e)k(dr,At,mn||O)}e.assertEachIsDefined=O;function G($e,At,mn){return O($e,At,mn||G),$e}e.checkEachDefined=G;function j($e,At="Illegal value:",mn){let dr=typeof $e=="object"&&Rs($e,"kind")&&Rs($e,"pos")?"SyntaxKind: "+Ce($e.kind):JSON.stringify($e);return _(`${At} ${dr}`,mn||j)}e.assertNever=j;function J($e,At,mn,dr){g(1,"assertEachNode")&&E(At===void 0||Vn($e,At),mn||"Unexpected node.",()=>`Node array did not pass test '${de(At)}'.`,dr||J)}e.assertEachNode=J;function Z($e,At,mn,dr){g(1,"assertNode")&&E($e!==void 0&&(At===void 0||At($e)),mn||"Unexpected node.",()=>`Node ${Ce($e?.kind)} did not pass test '${de(At)}'.`,dr||Z)}e.assertNode=Z;function q($e,At,mn,dr){g(1,"assertNotNode")&&E($e===void 0||At===void 0||!At($e),mn||"Unexpected node.",()=>`Node ${Ce($e.kind)} should not have passed test '${de(At)}'.`,dr||q)}e.assertNotNode=q;function ye($e,At,mn,dr){g(1,"assertOptionalNode")&&E(At===void 0||$e===void 0||At($e),mn||"Unexpected node.",()=>`Node ${Ce($e?.kind)} did not pass test '${de(At)}'.`,dr||ye)}e.assertOptionalNode=ye;function ie($e,At,mn,dr){g(1,"assertOptionalToken")&&E(At===void 0||$e===void 0||$e.kind===At,mn||"Unexpected node.",()=>`Node ${Ce($e?.kind)} was not a '${Ce(At)}' token.`,dr||ie)}e.assertOptionalToken=ie;function K($e,At,mn){g(1,"assertMissingNode")&&E($e===void 0,At||"Unexpected node.",()=>`Node ${Ce($e.kind)} was unexpected'.`,mn||K)}e.assertMissingNode=K;function pe($e){}e.type=pe;function de($e){if(typeof $e!="function")return"";if(Rs($e,"name"))return $e.name;{let At=Function.prototype.toString.call($e),mn=/^function\s+([\w$]+)\s*\(/.exec(At);return mn?mn[1]:""}}e.getFunctionName=de;function fe($e){return`{ name: ${Vi($e.escapedName)}; flags: ${ce($e.flags)}; declarations: ${Vt($e.declarations,At=>Ce(At.kind))} }`}e.formatSymbol=fe;function ve($e=0,At,mn){let dr=Y(At);if($e===0)return dr.length>0&&dr[0][0]===0?dr[0][1]:"0";if(mn){let ri=[],ai=$e;for(let[qi,$o]of dr){if(qi>$e)break;qi!==0&&qi&$e&&(ri.push($o),ai&=~qi)}if(ai===0)return ri.join("|")}else for(let[ri,ai]of dr)if(ri===$e)return ai;return $e.toString()}e.formatEnum=ve;let xe=new Map;function Y($e){let At=xe.get($e);if(At)return At;let mn=[];for(let ri in $e){let ai=$e[ri];typeof ai=="number"&&mn.push([ai,ri])}let dr=Ap(mn,(ri,ai)=>js(ri[0],ai[0]));return xe.set($e,dr),dr}function Ce($e){return ve($e,Hz,!1)}e.formatSyntaxKind=Ce;function Xe($e){return ve($e,oB,!1)}e.formatSnippetKind=Xe;function Se($e){return ve($e,rB,!1)}e.formatScriptKind=Se;function re($e){return ve($e,qz,!0)}e.formatNodeFlags=re;function be($e){return ve($e,Zz,!0)}e.formatNodeCheckFlags=be;function Ne($e){return ve($e,Jz,!0)}e.formatModifierFlags=Ne;function Be($e){return ve($e,iB,!0)}e.formatTransformFlags=Be;function lt($e){return ve($e,aB,!0)}e.formatEmitFlags=lt;function ce($e){return ve($e,Qz,!0)}e.formatSymbolFlags=ce;function De($e){return ve($e,eB,!0)}e.formatTypeFlags=De;function ge($e){return ve($e,nB,!0)}e.formatSignatureFlags=ge;function je($e){return ve($e,tB,!0)}e.formatObjectFlags=je;function Ge($e){return ve($e,O8,!0)}e.formatFlowFlags=Ge;function We($e){return ve($e,Kz,!0)}e.formatRelationComparisonResult=We;function at($e){return ve($e,TU,!0)}e.formatCheckMode=at;function Wt($e){return ve($e,SU,!0)}e.formatSignatureCheckMode=Wt;function cn($e){return ve($e,bU,!0)}e.formatTypeFacts=cn;let gn=!1,Kn;function _t($e){"__debugFlowFlags"in $e||Object.defineProperties($e,{__tsDebuggerDisplay:{value(){let At=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",mn=this.flags&-2048;return`${At}${mn?` (${Ge(mn)})`:""}`}},__debugFlowFlags:{get(){return ve(this.flags,O8,!0)}},__debugToString:{value(){return Ci(this)}}})}function en($e){return gn&&(typeof Object.setPrototypeOf=="function"?(Kn||(Kn=Object.create(Object.prototype),_t(Kn)),Object.setPrototypeOf($e,Kn)):_t($e)),$e}e.attachFlowNodeDebugInfo=en;let ir;function Di($e){"__tsDebuggerDisplay"in $e||Object.defineProperties($e,{__tsDebuggerDisplay:{value(At){return At=String(At).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${At}`}}})}function lo($e){gn&&(typeof Object.setPrototypeOf=="function"?(ir||(ir=Object.create(Array.prototype),Di(ir)),Object.setPrototypeOf($e,ir)):Di($e))}e.attachNodeArrayDebugInfo=lo;function zt(){if(gn)return;let $e=new WeakMap,At=new WeakMap;Object.defineProperties(Rd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let dr=this.flags&33554432?"TransientSymbol":"Symbol",ri=this.flags&-33554433;return`${dr} '${wl(this)}'${ri?` (${ce(ri)})`:""}`}},__debugFlags:{get(){return ce(this.flags)}}}),Object.defineProperties(Rd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let dr=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",ri=this.flags&524288?this.objectFlags&-1344:0;return`${dr}${this.symbol?` '${wl(this.symbol)}'`:""}${ri?` (${je(ri)})`:""}`}},__debugFlags:{get(){return De(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?je(this.objectFlags):""}},__debugTypeToString:{value(){let dr=$e.get(this);return dr===void 0&&(dr=this.checker.typeToString(this),$e.set(this,dr)),dr}}}),Object.defineProperties(Rd.getSignatureConstructor().prototype,{__debugFlags:{get(){return ge(this.flags)}},__debugSignatureToString:{value(){var dr;return(dr=this.checker)==null?void 0:dr.signatureToString(this)}}});let mn=[Rd.getNodeConstructor(),Rd.getIdentifierConstructor(),Rd.getTokenConstructor(),Rd.getSourceFileConstructor()];for(let dr of mn)Rs(dr.prototype,"__debugKind")||Object.defineProperties(dr.prototype,{__tsDebuggerDisplay:{value(){return`${pl(this)?"GeneratedIdentifier":He(this)?`Identifier '${Kr(this)}'`:eo(this)?`PrivateIdentifier '${Kr(this)}'`:ka(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:ep(this)?`NumericLiteral ${this.text}`:cD(this)?`BigIntLiteral ${this.text}n`:sl(this)?"TypeParameterDeclaration":to(this)?"ParameterDeclaration":Ml(this)?"ConstructorDeclaration":jf(this)?"GetAccessorDeclaration":_p(this)?"SetAccessorDeclaration":kI(this)?"CallSignatureDeclaration":FM(this)?"ConstructSignatureDeclaration":Db(this)?"IndexSignatureDeclaration":wI(this)?"TypePredicateNode":wp(this)?"TypeReferenceNode":k_(this)?"FunctionTypeNode":dD(this)?"ConstructorTypeNode":N1(this)?"TypeQueryNode":ku(this)?"TypeLiteralNode":iw(this)?"ArrayTypeNode":OI(this)?"TupleTypeNode":a3(this)?"OptionalTypeNode":s3(this)?"RestTypeNode":sv(this)?"UnionTypeNode":WI(this)?"IntersectionTypeNode":M1(this)?"ConditionalTypeNode":cE(this)?"InferTypeNode":dE(this)?"ParenthesizedTypeNode":zM(this)?"ThisTypeNode":G0(this)?"TypeOperatorNode":P1(this)?"IndexedAccessTypeNode":uE(this)?"MappedTypeNode":lv(this)?"LiteralTypeNode":uD(this)?"NamedTupleMember":Zh(this)?"ImportTypeNode":Ce(this.kind)}${this.flags?` (${re(this.flags)})`:""}`}},__debugKind:{get(){return Ce(this.kind)}},__debugNodeFlags:{get(){return re(this.flags)}},__debugModifierFlags:{get(){return Ne(wne(this))}},__debugTransformFlags:{get(){return Be(this.transformFlags)}},__debugIsParseTreeNode:{get(){return DN(this)}},__debugEmitFlags:{get(){return lt(Qa(this))}},__debugGetText:{value(ri){if(Os(this))return"";let ai=At.get(this);if(ai===void 0){let qi=jo(this),$o=qi&&Wn(qi);ai=$o?u1($o,qi,ri):"",At.set(this,ai)}return ai}}});gn=!0}e.enableDebugInfo=zt;function Zr($e){let At=$e&7,mn=At===0?"in out":At===3?"[bivariant]":At===2?"in":At===1?"out":At===4?"[independent]":"";return $e&8?mn+=" (unmeasurable)":$e&16&&(mn+=" (unreliable)"),mn}e.formatVariance=Zr;class Ai{__debugToString(){var At;switch(this.kind){case 3:return((At=this.debugInfo)==null?void 0:At.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ki(this.sources,this.targets||Vt(this.sources,()=>"any"),(mn,dr)=>`${mn.__debugTypeToString()} -> ${typeof dr=="string"?dr:dr.__debugTypeToString()}`).join(", ");case 2:return ki(this.sources,this.targets,(mn,dr)=>`${mn.__debugTypeToString()} -> ${dr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return j(this)}}}e.DebugTypeMapper=Ai;function Ni($e){return e.isDebugging?Object.setPrototypeOf($e,Ai.prototype):$e}e.attachDebugPrototypeIfDebug=Ni;function Pr($e){return console.log(Ci($e))}e.printControlFlowGraph=Pr;function Ci($e){let At=-1;function mn(Ae){return Ae.id||(Ae.id=At,At--),Ae.id}let dr;(Ae=>{Ae.lr="\u2500",Ae.ud="\u2502",Ae.dr="\u256D",Ae.dl="\u256E",Ae.ul="\u256F",Ae.ur="\u2570",Ae.udr="\u251C",Ae.udl="\u2524",Ae.dlr="\u252C",Ae.ulr="\u2534",Ae.udlr="\u256B"})(dr||(dr={}));let ri;(Ae=>{Ae[Ae.None=0]="None",Ae[Ae.Up=1]="Up",Ae[Ae.Down=2]="Down",Ae[Ae.Left=4]="Left",Ae[Ae.Right=8]="Right",Ae[Ae.UpDown=3]="UpDown",Ae[Ae.LeftRight=12]="LeftRight",Ae[Ae.UpLeft=5]="UpLeft",Ae[Ae.UpRight=9]="UpRight",Ae[Ae.DownLeft=6]="DownLeft",Ae[Ae.DownRight=10]="DownRight",Ae[Ae.UpDownLeft=7]="UpDownLeft",Ae[Ae.UpDownRight=11]="UpDownRight",Ae[Ae.UpLeftRight=13]="UpLeftRight",Ae[Ae.DownLeftRight=14]="DownLeftRight",Ae[Ae.UpDownLeftRight=15]="UpDownLeftRight",Ae[Ae.NoChildren=16]="NoChildren"})(ri||(ri={}));let ai=2032,qi=882,$o=Object.create(null),Ia=[],Mn=dt($e,new Set);for(let Ae of Ia)Ae.text=Sr(Ae.flowNode,Ae.circular),Ue(Ae);let Uo=Rt(Mn),ot=It(Uo);return Ot(Mn,0),Oe();function Ft(Ae){return!!(Ae.flags&128)}function le(Ae){return!!(Ae.flags&12)&&!!Ae.antecedent}function ht(Ae){return!!(Ae.flags&ai)}function ne(Ae){return!!(Ae.flags&qi)}function Fe(Ae){let te=[];for(let xt of Ae.edges)xt.source===Ae&&te.push(xt.target);return te}function it(Ae){let te=[];for(let xt of Ae.edges)xt.target===Ae&&te.push(xt.source);return te}function dt(Ae,te){let xt=mn(Ae),Xt=$o[xt];if(Xt&&te.has(Ae))return Xt.circular=!0,Xt={id:-1,flowNode:Ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Ia.push(Xt),Xt;if(te.add(Ae),!Xt)if($o[xt]=Xt={id:xt,flowNode:Ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Ia.push(Xt),le(Ae))for(let Le of Ae.antecedent)Lt(Xt,Le,te);else ht(Ae)&&Lt(Xt,Ae.antecedent,te);return te.delete(Ae),Xt}function Lt(Ae,te,xt){let Xt=dt(te,xt),Le={source:Ae,target:Xt};Ae.edges.push(Le),Xt.edges.push(Le)}function Ue(Ae){if(Ae.level!==-1)return Ae.level;let te=0;for(let xt of it(Ae))te=Math.max(te,Ue(xt)+1);return Ae.level=te}function Rt(Ae){let te=0;for(let xt of Fe(Ae))te=Math.max(te,Rt(xt));return te+1}function It(Ae){let te=_e(Array(Ae),0);for(let xt of Ia)te[xt.level]=Math.max(te[xt.level],xt.text.length);return te}function Ot(Ae,te){if(Ae.lane===-1){Ae.lane=te,Ae.endLane=te;let xt=Fe(Ae);for(let Xt=0;Xt<xt.length;Xt++){Xt>0&&te++;let Le=xt[Xt];Ot(Le,te),Le.endLane>Ae.endLane&&(te=Le.endLane)}Ae.endLane=te}}function nt(Ae){if(Ae&2)return"Start";if(Ae&4)return"Branch";if(Ae&8)return"Loop";if(Ae&16)return"Assignment";if(Ae&32)return"True";if(Ae&64)return"False";if(Ae&128)return"SwitchClause";if(Ae&256)return"ArrayMutation";if(Ae&512)return"Call";if(Ae&1024)return"ReduceLabel";if(Ae&1)return"Unreachable";throw new Error}function Kt(Ae){let te=Wn(Ae);return u1(te,Ae,!1)}function Sr(Ae,te){let xt=nt(Ae.flags);if(te&&(xt=`${xt}#${mn(Ae)}`),Ft(Ae)){let Xt=[],{switchStatement:Le,clauseStart:gt,clauseEnd:Bt}=Ae.node;for(let gr=gt;gr<Bt;gr++){let tr=Le.caseBlock.clauses[gr];jM(tr)?Xt.push("default"):Xt.push(Kt(tr.expression))}xt+=` (${Xt.join(", ")})`}else ne(Ae)&&Ae.node&&(xt+=` (${Kt(Ae.node)})`);return te==="circularity"?`Circular(${xt})`:xt}function Oe(){let Ae=ot.length,te=Lz(Ia,0,Bt=>Bt.lane)+1,xt=_e(Array(te),""),Xt=ot.map(()=>Array(te)),Le=ot.map(()=>_e(Array(te),0));for(let Bt of Ia){Xt[Bt.level][Bt.lane]=Bt;let gr=Fe(Bt);for(let Jn=0;Jn<gr.length;Jn++){let ft=gr[Jn],Mt=8;ft.lane===Bt.lane&&(Mt|=4),Jn>0&&(Mt|=1),Jn<gr.length-1&&(Mt|=2),Le[Bt.level][ft.lane]|=Mt}gr.length===0&&(Le[Bt.level][Bt.lane]|=16);let tr=it(Bt);for(let Jn=0;Jn<tr.length;Jn++){let ft=tr[Jn],Mt=4;Jn>0&&(Mt|=1),Jn<tr.length-1&&(Mt|=2),Le[Bt.level-1][ft.lane]|=Mt}}for(let Bt=0;Bt<Ae;Bt++)for(let gr=0;gr<te;gr++){let tr=Bt>0?Le[Bt-1][gr]:0,Jn=gr>0?Le[Bt][gr-1]:0,ft=Le[Bt][gr];ft||(tr&8&&(ft|=12),Jn&2&&(ft|=3),Le[Bt][gr]=ft)}for(let Bt=0;Bt<Ae;Bt++)for(let gr=0;gr<xt.length;gr++){let tr=Le[Bt][gr],Jn=tr&4?"\u2500":" ",ft=Xt[Bt][gr];ft?(gt(gr,ft.text),Bt<Ae-1&&(gt(gr," "),gt(gr,B(Jn,ot[Bt]-ft.text.length)))):Bt<Ae-1&&gt(gr,B(Jn,ot[Bt]+1)),gt(gr,Nt(tr)),gt(gr,tr&8&&Bt<Ae-1&&!Xt[Bt+1][gr]?"\u2500":" ")}return`
${xt.join(`
`)}
`;function gt(Bt,gr){xt[Bt]+=gr}}function Nt(Ae){switch(Ae){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function _e(Ae,te){if(Ae.fill)Ae.fill(te);else for(let xt=0;xt<Ae.length;xt++)Ae[xt]=te;return Ae}function B(Ae,te){if(Ae.repeat)return te>0?Ae.repeat(te):"";let xt="";for(;xt.length<te;)xt+=Ae;return xt}}e.formatControlFlowGraph=Ci})(C||(C={}));var A9e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,I9e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,x9e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,R9e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,D9e=/^[a-z0-9-]+$/i,obe=/^(?:0|[1-9]\d*)$/,eZ=class x8{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=C.checkDefined(abe(t),"Invalid version")),C.assert(t>=0,"Invalid argument: major"),C.assert(r>=0,"Invalid argument: minor"),C.assert(i>=0,"Invalid argument: patch");let l=o?Mo(o)?o:o.split("."):ae,u=s?Mo(s)?s:s.split("."):ae;C.assert(Vn(l,d=>x9e.test(d)),"Invalid argument: prerelease"),C.assert(Vn(u,d=>D9e.test(d)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){let r=abe(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new x8(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:js(this.major,t.major)||js(this.minor,t.minor)||js(this.patch,t.patch)||C9e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new x8(this.major+1,0,0);case"minor":return new x8(this.major,this.minor+1,0);case"patch":return new x8(this.major,this.minor,this.patch+1);default:return C.assertNever(t)}}with(t){let{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new x8(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return vt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),vt(this.build)&&(t+=`+${this.build.join(".")}`),t}};eZ.zero=new eZ(0,0,0,["0"]);var ih=eZ;function abe(e){let t=A9e.exec(e);if(!t)return;let[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!I9e.test(s))&&!(l&&!R9e.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function C9e(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;let r=Math.min(e.length,t.length);for(let i=0;i<r;i++){let o=e[i],s=t[i];if(o===s)continue;let l=obe.test(o),u=obe.test(s);if(l||u){if(l!==u)return l?-1:1;let d=js(+o,+s);if(d)return d}else{let d=Wd(o,s);if(d)return d}}return js(e.length,t.length)}var w8=class o9e{constructor(t){this._alternatives=t?C.checkDefined(sbe(t),"Invalid range spec."):ae}static tryParse(t){let r=sbe(t);if(r){let i=new o9e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new ih(t)),W9e(t,this._alternatives)}toString(){return B9e(this._alternatives)}},N9e=/\|\|/,M9e=/\s+/,P9e=/^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,L9e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,k9e=/^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function sbe(e){let t=[];for(let r of e.trim().split(N9e)){if(!r)continue;let i=[];r=r.trim();let o=L9e.exec(r);if(o){if(!w9e(o[1],o[2],i))return}else for(let s of r.split(M9e)){let l=k9e.exec(s.trim());if(!l||!O9e(l[1],l[2],i))return}t.push(i)}return t}function tZ(e){let t=P9e.exec(e);if(!t)return;let[,r,i="*",o="*",s,l]=t;return{version:new ih(cm(r)?0:parseInt(r,10),cm(r)||cm(i)?0:parseInt(i,10),cm(r)||cm(i)||cm(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function w9e(e,t,r){let i=tZ(e);if(!i)return!1;let o=tZ(t);return o?(cm(i.major)||r.push(I_(">=",i.version)),cm(o.major)||r.push(cm(o.minor)?I_("<",o.version.increment("major")):cm(o.patch)?I_("<",o.version.increment("minor")):I_("<=",o.version)),!0):!1}function O9e(e,t,r){let i=tZ(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:u}=i;if(cm(s))(e==="<"||e===">")&&r.push(I_("<",ih.zero));else switch(e){case"~":r.push(I_(">=",o)),r.push(I_("<",o.increment(cm(l)?"major":"minor")));break;case"^":r.push(I_(">=",o)),r.push(I_("<",o.increment(o.major>0||cm(l)?"major":o.minor>0||cm(u)?"minor":"patch")));break;case"<":case">=":r.push(cm(l)||cm(u)?I_(e,o.with({prerelease:"0"})):I_(e,o));break;case"<=":case">":r.push(cm(l)?I_(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):cm(u)?I_(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):I_(e,o));break;case"=":case void 0:cm(l)||cm(u)?(r.push(I_(">=",o.with({prerelease:"0"}))),r.push(I_("<",o.increment(cm(l)?"major":"minor").with({prerelease:"0"})))):r.push(I_("=",o));break;default:return!1}return!0}function cm(e){return e==="*"||e==="x"||e==="X"}function I_(e,t){return{operator:e,operand:t}}function W9e(e,t){if(t.length===0)return!0;for(let r of t)if(F9e(e,r))return!0;return!1}function F9e(e,t){for(let r of t)if(!z9e(e,r.operator,r.operand))return!1;return!0}function z9e(e,t,r){let 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 C.assertNever(t)}}function B9e(e){return Vt(e,G9e).join(" || ")||"*"}function G9e(e){return Vt(e,V9e).join(" ")}function V9e(e){return`${e.operator}${e.operand}`}function j9e(){if(Gz(),typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function U9e(){let e=j9e();if(!e)return;let{shouldWriteNativeEvents:t,performance:r}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return typeof r.timeOrigin=="number"&&typeof r.now=="function"&&(i.performanceTime=r),i.performanceTime&&typeof r.mark=="function"&&typeof r.measure=="function"&&typeof r.clearMarks=="function"&&typeof r.clearMeasures=="function"&&(i.performance=r),i}var nZ=U9e(),lbe=nZ?.performanceTime;function rZ(){return nZ}var Ls=lbe?()=>lbe.now():Date.now,iZ={};x(iZ,{clearMarks:()=>mbe,clearMeasures:()=>fbe,createTimer:()=>Vz,createTimerIf:()=>cbe,disable:()=>sZ,enable:()=>Uz,forEachMark:()=>pbe,forEachMeasure:()=>jz,getCount:()=>ube,getDuration:()=>gN,isEnabled:()=>aZ,mark:()=>Rl,measure:()=>Lf,nullTimer:()=>oZ});var fN,LS;function cbe(e,t,r,i){return e?Vz(t,r,i):oZ}function Vz(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&Rl(t)}function s(){--i===0?(Rl(r),Lf(e,t,r)):i<0&&C.fail("enter/exit count does not match.")}}var oZ={enter:gs,exit:gs},mN=!1,dbe=Ls(),hN=new Map,cL=new Map,_N=new Map;function Rl(e){if(mN){let t=cL.get(e)??0;cL.set(e,t+1),hN.set(e,Ls()),LS?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Lf(e,t,r){if(mN){let i=(r!==void 0?hN.get(r):void 0)??Ls(),o=(t!==void 0?hN.get(t):void 0)??dbe,s=_N.get(e)||0;_N.set(e,s+(i-o)),LS?.measure(e,t,r)}}function ube(e){return cL.get(e)||0}function gN(e){return _N.get(e)||0}function jz(e){_N.forEach((t,r)=>e(r,t))}function pbe(e){hN.forEach((t,r)=>e(r))}function fbe(e){e!==void 0?_N.delete(e):_N.clear(),LS?.clearMeasures(e)}function mbe(e){e!==void 0?(cL.delete(e),hN.delete(e)):(cL.clear(),hN.clear()),LS?.clearMarks(e)}function aZ(){return mN}function Uz(e=Uc){var t;return mN||(mN=!0,fN||(fN=rZ()),fN?.performance&&(dbe=fN.performance.timeOrigin,(fN.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(LS=fN.performance))),!0}function sZ(){mN&&(hN.clear(),cL.clear(),_N.clear(),LS=void 0,mN=!1)}var xr,dL;(e=>{let t,r=0,i=0,o,s=[],l,u=[];function d(J,Z,q){if(C.assert(!xr,"Tracing already started"),t===void 0)try{t=i9e("fs")}catch(de){throw new Error(`tracing requires having fs
(original error: ${de.message||de})`)}o=J,s.length=0,l===void 0&&(l=Qr(Z,"legend.json")),t.existsSync(Z)||t.mkdirSync(Z,{recursive:!0});let ye=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ie=Qr(Z,`trace${ye}.json`),K=Qr(Z,`types${ye}.json`);u.push({configFilePath:q,tracePath:ie,typesPath:K}),i=t.openSync(ie,"w"),xr=e;let pe={cat:"__metadata",ph:"M",ts:1e3*Ls(),pid:1,tid:1};t.writeSync(i,`[
`+[{name:"process_name",args:{name:"tsc"},...pe},{name:"thread_name",args:{name:"Main"},...pe},{name:"TracingStartedInBrowser",...pe,cat:"disabled-by-default-devtools.timeline"}].map(de=>JSON.stringify(de)).join(`,
`))}e.startTracing=d;function g(){C.assert(xr,"Tracing is not in progress"),C.assert(!!s.length==(o!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),xr=void 0,s.length?G(s):u[u.length-1].typesPath=void 0}e.stopTracing=g;function _(J){o!=="server"&&s.push(J)}e.recordType=_,(J=>{J.Parse="parse",J.Program="program",J.Bind="bind",J.Check="check",J.CheckTypes="checkTypes",J.Emit="emit",J.Session="session"})(e.Phase||(e.Phase={}));function v(J,Z,q){F("I",J,Z,q,'"s":"g"')}e.instant=v;let E=[];function A(J,Z,q,ye=!1){ye&&F("B",J,Z,q),E.push({phase:J,name:Z,args:q,time:1e3*Ls(),separateBeginAndEnd:ye})}e.push=A;function R(J){C.assert(E.length>0),k(E.length-1,1e3*Ls(),J),E.length--}e.pop=R;function N(){let J=1e3*Ls();for(let Z=E.length-1;Z>=0;Z--)k(Z,J);E.length=0}e.popAll=N;let P=1e3*10;function k(J,Z,q){let{phase:ye,name:ie,args:K,time:pe,separateBeginAndEnd:de}=E[J];de?(C.assert(!q,"`results` are not supported for events with `separateBeginAndEnd`"),F("E",ye,ie,K,void 0,Z)):P-pe%P<=Z-pe&&F("X",ye,ie,{...K,results:q},`"dur":${Z-pe}`,pe)}function F(J,Z,q,ye,ie,K=1e3*Ls()){o==="server"&&Z==="checkTypes"||(Rl("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${J}","cat":"${Z}","ts":${K},"name":"${q}"`),ie&&t.writeSync(i,`,${ie}`),ye&&t.writeSync(i,`,"args":${JSON.stringify(ye)}`),t.writeSync(i,"}"),Rl("endTracing"),Lf("Tracing","beginTracing","endTracing"))}function O(J){let Z=Wn(J);return Z?{path:Z.path,start:q(ca(Z,J.pos)),end:q(ca(Z,J.end))}:void 0;function q(ye){return{line:ye.line+1,character:ye.character+1}}}function G(J){var Z,q,ye,ie,K,pe,de,fe,ve,xe,Y,Ce,Xe,Se,re,be,Ne,Be,lt;Rl("beginDumpTypes");let ce=u[u.length-1].typesPath,De=t.openSync(ce,"w"),ge=new Map;t.writeSync(De,"[");let je=J.length;for(let Ge=0;Ge<je;Ge++){let We=J[Ge],at=We.objectFlags,Wt=We.aliasSymbol??We.symbol,cn;if(at&16|We.flags&2944)try{cn=(Z=We.checker)==null?void 0:Z.typeToString(We)}catch{cn=void 0}let gn={};if(We.flags&8388608){let Ai=We;gn={indexedAccessObjectType:(q=Ai.objectType)==null?void 0:q.id,indexedAccessIndexType:(ye=Ai.indexType)==null?void 0:ye.id}}let Kn={};if(at&4){let Ai=We;Kn={instantiatedType:(ie=Ai.target)==null?void 0:ie.id,typeArguments:(K=Ai.resolvedTypeArguments)==null?void 0:K.map(Ni=>Ni.id),referenceLocation:O(Ai.node)}}let _t={};if(We.flags&16777216){let Ai=We;_t={conditionalCheckType:(pe=Ai.checkType)==null?void 0:pe.id,conditionalExtendsType:(de=Ai.extendsType)==null?void 0:de.id,conditionalTrueType:((fe=Ai.resolvedTrueType)==null?void 0:fe.id)??-1,conditionalFalseType:((ve=Ai.resolvedFalseType)==null?void 0:ve.id)??-1}}let en={};if(We.flags&33554432){let Ai=We;en={substitutionBaseType:(xe=Ai.baseType)==null?void 0:xe.id,constraintType:(Y=Ai.constraint)==null?void 0:Y.id}}let ir={};if(at&1024){let Ai=We;ir={reverseMappedSourceType:(Ce=Ai.source)==null?void 0:Ce.id,reverseMappedMappedType:(Xe=Ai.mappedType)==null?void 0:Xe.id,reverseMappedConstraintType:(Se=Ai.constraintType)==null?void 0:Se.id}}let Di={};if(at&256){let Ai=We;Di={evolvingArrayElementType:Ai.elementType.id,evolvingArrayFinalType:(re=Ai.finalArrayType)==null?void 0:re.id}}let lo,zt=We.checker.getRecursionIdentity(We);zt&&(lo=ge.get(zt),lo||(lo=ge.size,ge.set(zt,lo)));let Zr={id:We.id,intrinsicName:We.intrinsicName,symbolName:Wt?.escapedName&&Vi(Wt.escapedName),recursionId:lo,isTuple:at&8?!0:void 0,unionTypes:We.flags&1048576?(be=We.types)==null?void 0:be.map(Ai=>Ai.id):void 0,intersectionTypes:We.flags&2097152?We.types.map(Ai=>Ai.id):void 0,aliasTypeArguments:(Ne=We.aliasTypeArguments)==null?void 0:Ne.map(Ai=>Ai.id),keyofType:We.flags&4194304?(Be=We.type)==null?void 0:Be.id:void 0,...gn,...Kn,..._t,...en,...ir,...Di,destructuringPattern:O(We.pattern),firstDeclaration:O((lt=Wt?.declarations)==null?void 0:lt[0]),flags:C.formatTypeFlags(We.flags).split("|"),display:cn};t.writeSync(De,JSON.stringify(Zr)),Ge<je-1&&t.writeSync(De,`,
`)}t.writeSync(De,`]
`),t.closeSync(De),Rl("endDumpTypes"),Lf("Dump types","beginDumpTypes","endDumpTypes")}function j(){l&&t.writeFileSync(l,JSON.stringify(u))}e.dumpLegend=j})(dL||(dL={}));var lZ=dL.startTracing,cZ=dL.dumpLegend,Hz=(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.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="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=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="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=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(Hz||{}),qz=(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))(qz||{}),Jz=(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))(Jz||{}),dZ=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(dZ||{}),Kz=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(Kz||{}),uZ=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(uZ||{}),Xz=(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))(Xz||{}),pZ=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(pZ||{}),fZ=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.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))(fZ||{}),O8=(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))(O8||{}),mZ=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(mZ||{}),yN=class{},Yz=(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))(Yz||{}),hZ=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(hZ||{}),_Z=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(_Z||{}),$z=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))($z||{}),gZ=(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))(gZ||{}),yZ=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(yZ||{}),vZ=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(vZ||{}),bZ=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(bZ||{}),TZ=(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))(TZ||{}),SZ=(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.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(SZ||{}),EZ=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(EZ||{}),AZ=(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))(AZ||{}),IZ=(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))(IZ||{}),xZ=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(xZ||{}),RZ=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(RZ||{}),DZ=(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))(DZ||{}),Qz=(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))(Qz||{}),CZ=(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))(CZ||{}),NZ=(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))(NZ||{}),Zz=(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[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Zz||{}),eB=(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.Reserved2=1073741824]="Reserved2",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.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(eB||{}),tB=(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.SingleSignatureType=134217728]="SingleSignatureType",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))(tB||{}),MZ=(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))(MZ||{}),PZ=(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))(PZ||{}),LZ=(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.AllowMissing=16]="AllowMissing",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))(LZ||{}),kZ=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(kZ||{}),wZ=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(wZ||{}),OZ=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(OZ||{}),nB=(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))(nB||{}),WZ=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(WZ||{}),FZ=(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))(FZ||{}),zZ=(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))(zZ||{}),BZ=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(BZ||{}),GZ=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(GZ||{}),VZ=(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))(VZ||{}),W8=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(W8||{});function kS(e,t=!0){let r=W8[e.category];return t?r.toLowerCase():r}var vR=(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))(vR||{}),jZ=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(jZ||{}),UZ=(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))(UZ||{}),HZ=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(HZ||{}),qZ=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(qZ||{}),bR=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(bR||{}),JZ=(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))(JZ||{}),KZ=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(KZ||{}),XZ=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(XZ||{}),rB=(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))(rB||{}),YZ=(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.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(YZ||{}),$Z=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))($Z||{}),QZ=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(QZ||{}),ZZ=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(ZZ||{}),eee=(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))(eee||{}),iB=(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))(iB||{}),oB=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(oB||{}),aB=(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))(aB||{}),tee=(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))(tee||{}),ed={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},nee=(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.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(nee||{}),ree=(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))(ree||{}),iee=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(iee||{}),oee=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(oee||{}),aee=(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))(aee||{}),see=(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))(see||{}),F8={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},{name:"preserve",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}},lee=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(lee||{});function uL(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function hbe(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}var cee=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(cee||{}),sB=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(sB||{}),xp=new Date(0);function HA(e,t){return e.getModifiedTime(t)||xp}function dee(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var lB={Low:32,Medium:64,High:256},cB=dee(lB),z8=dee(lB);function H9e(e){if(!e.getEnvironmentVariable)return;let t=o("TSC_WATCH_POLLINGINTERVAL",sB);cB=s("TSC_WATCH_POLLINGCHUNKSIZE",lB)||cB,z8=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",lB)||z8;function r(l,u){return e.getEnvironmentVariable(`${l}_${u.toUpperCase()}`)}function i(l){let u;return d("Low"),d("Medium"),d("High"),u;function d(g){let _=r(l,g);_&&((u||(u={}))[g]=Number(_))}}function o(l,u){let d=i(l);if(d)return g("Low"),g("Medium"),g("High"),!0;return!1;function g(_){u[_]=d[_]||u[_]}}function s(l,u){let d=i(l);return(t||d)&&dee(d?{...u,...d}:u)}}function _be(e,t,r,i,o){let s=r;for(let u=t.length;i&&u;l(),u--){let d=t[r];if(d){if(d.isClosed){t[r]=void 0;continue}}else continue;i--;let g=X9e(d,HA(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}o?.(d,r,g),t[r]&&(s<r&&(t[s]=d,t[r]=void 0),s++)}return r;function l(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function q9e(e){let t=[],r=[],i=u(250),o=u(500),s=u(2e3);return l;function l(P,k,F){let O={fileName:P,callback:k,unchangedPolls:0,mtime:HA(e,P)};return t.push(O),E(O,F),{close:()=>{O.isClosed=!0,jA(t,O)}}}function u(P){let k=[];return k.pollingInterval=P,k.pollIndex=0,k.pollScheduled=!1,k}function d(P,k){k.pollIndex=_(k,k.pollingInterval,k.pollIndex,cB[k.pollingInterval]),k.length?N(k.pollingInterval):(C.assert(k.pollIndex===0),k.pollScheduled=!1)}function g(P,k){_(r,250,0,r.length),d(P,k),!k.pollScheduled&&r.length&&N(250)}function _(P,k,F,O){return _be(e,P,F,O,G);function G(j,J,Z){Z?(j.unchangedPolls=0,P!==r&&(P[J]=void 0,A(j))):j.unchangedPolls!==z8[k]?j.unchangedPolls++:P===r?(j.unchangedPolls=1,P[J]=void 0,E(j,250)):k!==2e3&&(j.unchangedPolls++,P[J]=void 0,E(j,k===250?500:2e3))}}function v(P){switch(P){case 250:return i;case 500:return o;case 2e3:return s}}function E(P,k){v(k).push(P),R(k)}function A(P){r.push(P),R(250)}function R(P){v(P).pollScheduled||N(P)}function N(P){v(P).pollScheduled=e.setTimeout(P===250?g:d,P,P===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",v(P))}}function J9e(e,t,r,i){let o=lm(),s=i?new Map:void 0,l=new Map,u=Fd(t);return d;function d(_,v,E,A){let R=u(_);o.add(R,v).length===1&&s&&s.set(R,r(_)||xp);let N=ci(R)||".",P=l.get(N)||g(ci(_)||".",N,A);return P.referenceCount++,{close:()=>{P.referenceCount===1?(P.close(),l.delete(N)):P.referenceCount--,o.remove(R,v)}}}function g(_,v,E){let A=e(_,1,(R,N)=>{if(!Bo(N))return;let P=To(N,_),k=u(P),F=P&&o.get(k);if(F){let O,G=1;if(s){let j=s.get(k);if(R==="change"&&(O=r(P)||xp,O.getTime()===j.getTime()))return;O||(O=r(P)||xp),s.set(k,O),j===xp?G=0:O===xp&&(G=2)}for(let j of F)j(P,G,O)}},!1,500,E);return A.referenceCount=0,l.set(v,A),A}}function K9e(e){let t=[],r=0,i;return o;function o(u,d){let g={fileName:u,callback:d,mtime:HA(e,u)};return t.push(g),l(),{close:()=>{g.isClosed=!0,jA(t,g)}}}function s(){i=void 0,r=_be(e,t,r,cB[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function gbe(e,t,r,i,o){let l=Fd(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((d,g,_)=>{var v;return(v=e.get(l))==null?void 0:v.callbacks.slice().forEach(E=>E(d,g,_))}),callbacks:[i]}),{close:()=>{let d=e.get(l);d&&(!uN(d.callbacks,i)||d.callbacks.length||(e.delete(l),qf(d)))}}}function X9e(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,dB(r,i),t),!0):!1}function dB(e,t){return e===0?0:t===0?2:1}var B8=["/node_modules/.","/.git","/.#"],ybe=gs;function G8(e){return ybe(e)}function uee(e){ybe=e}function Y9e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){let d=new Map,g=lm(),_=new Map,v,E=gR(!t),A=Fd(t);return(q,ye,ie,K)=>ie?R(q,K,ye):e(q,ye,ie,K);function R(q,ye,ie,K){let pe=A(q),de=d.get(pe);de?de.refCount++:(de={watcher:e(q,ve=>{var xe;J(ve,ye)||(ye?.synchronousWatchDirectory?((xe=d.get(pe))!=null&&xe.targetWatcher||N(q,pe,ve),j(q,pe,ye)):P(q,pe,ve,ye))},!1,ye),refCount:1,childWatches:ae,targetWatcher:void 0,links:void 0},d.set(pe,de),j(q,pe,ye)),K&&(de.links??(de.links=new Set)).add(K);let fe=ie&&{dirName:q,callback:ie};return fe&&g.add(pe,fe),{dirName:q,close:()=>{var ve;let xe=C.checkDefined(d.get(pe));fe&&g.remove(pe,fe),K&&((ve=xe.links)==null||ve.delete(K)),xe.refCount--,!xe.refCount&&(d.delete(pe),xe.links=void 0,qf(xe),G(xe),xe.childWatches.forEach(zm))}}}function N(q,ye,ie,K){var pe,de;let fe,ve;Bo(ie)?fe=ie:ve=ie,g.forEach((xe,Y)=>{if(!(ve&&ve.get(Y)===!0)&&(Y===ye||po(ye,Y)&&ye[Y.length]===Js))if(ve)if(K){let Ce=ve.get(Y);Ce?Ce.push(...K):ve.set(Y,K.slice())}else ve.set(Y,!0);else xe.forEach(({callback:Ce})=>Ce(fe))}),(de=(pe=d.get(ye))==null?void 0:pe.links)==null||de.forEach(xe=>{let Y=Ce=>Qr(xe,lf(q,Ce,A));ve?N(xe,A(xe),ve,K?.map(Y)):N(xe,A(xe),Y(fe))})}function P(q,ye,ie,K){let pe=d.get(ye);if(pe&&o(q,1)){k(q,ye,ie,K);return}N(q,ye,ie),G(pe),O(pe)}function k(q,ye,ie,K){let pe=_.get(ye);pe?pe.fileNames.push(ie):_.set(ye,{dirName:q,options:K,fileNames:[ie]}),v&&(u(v),v=void 0),v=l(F,1e3,"timerToUpdateChildWatches")}function F(){var q;v=void 0,G8(`sysLog:: onTimerToUpdateChildWatches:: ${_.size}`);let ye=Ls(),ie=new Map;for(;!v&&_.size;){let pe=_.entries().next();C.assert(!pe.done);let{value:[de,{dirName:fe,options:ve,fileNames:xe}]}=pe;_.delete(de);let Y=j(fe,de,ve);(q=d.get(de))!=null&&q.targetWatcher||N(fe,de,ie,Y?void 0:xe)}G8(`sysLog:: invokingWatchers:: Elapsed:: ${Ls()-ye}ms:: ${_.size}`),g.forEach((pe,de)=>{let fe=ie.get(de);fe&&pe.forEach(({callback:ve,dirName:xe})=>{Mo(fe)?fe.forEach(ve):ve(xe)})});let K=Ls()-ye;G8(`sysLog:: Elapsed:: ${K}ms:: onTimerToUpdateChildWatches:: ${_.size} ${v}`)}function O(q){if(!q)return;let ye=q.childWatches;q.childWatches=ae;for(let ie of ye)ie.close(),O(d.get(A(ie.dirName)))}function G(q){q?.targetWatcher&&(q.targetWatcher.close(),q.targetWatcher=void 0)}function j(q,ye,ie){let K=d.get(ye);if(!K)return!1;let pe=ya(s(q)),de,fe;return E(pe,q)===0?de=k8(o(q,1)?Ui(i(q),Y=>{let Ce=To(Y,q);return!J(Ce,ie)&&E(Ce,ya(s(Ce)))===0?Ce:void 0}):ae,K.childWatches,(Y,Ce)=>E(Y,Ce.dirName),ve,zm,xe):K.targetWatcher&&E(pe,K.targetWatcher.dirName)===0?(de=!1,C.assert(K.childWatches===ae)):(G(K),K.targetWatcher=R(pe,ie,void 0,q),K.childWatches.forEach(zm),de=!0),K.childWatches=fe||ae,de;function ve(Y){let Ce=R(Y,ie);xe(Ce)}function xe(Y){(fe||(fe=[])).push(Y)}}function J(q,ye){return vt(B8,ie=>Z(q,ie))||vbe(q,ye,t,r)}function Z(q,ye){return q.includes(ye)?!0:t?!1:A(q).includes(ye)}}var pee=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(pee||{});function $9e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function Q9e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||xp),t(e,s!==xp?0:2,s)):t(e,1,s)}}function vbe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(B3(e,t?.excludeFiles,r,i())||B3(e,t?.excludeDirectories,r,i()))}function bbe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let u=l?ya(Qr(e,l)):e;(!l||!vbe(u,r,i,o))&&t(u)}}}function Tbe({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:g,realpath:_,tscWatchFile:v,useNonPollingWatchers:E,tscWatchDirectory:A,inodeWatching:R,fsWatchWithTimestamp:N,sysLog:P}){let k=new Map,F=new Map,O=new Map,G,j,J,Z,q=!1;return{watchFile:ye,watchDirectory:fe};function ye(re,be,Ne,Be){Be=pe(Be,E);let lt=C.checkDefined(Be.watchFile);switch(lt){case 0:return Y(re,be,250,void 0);case 1:return Y(re,be,Ne,void 0);case 2:return ie()(re,be,Ne,void 0);case 3:return K()(re,be,void 0,void 0);case 4:return Ce(re,0,Q9e(re,be,t),!1,Ne,Hw(Be));case 5:return J||(J=J9e(Ce,l,t,N)),J(re,be,Ne,Hw(Be));default:C.assertNever(lt)}}function ie(){return G||(G=q9e({getModifiedTime:t,setTimeout:r}))}function K(){return j||(j=K9e({getModifiedTime:t,setTimeout:r}))}function pe(re,be){if(re&&re.watchFile!==void 0)return re;switch(v){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return de(4,1,re);case"UseFsEventsWithFallbackDynamicPolling":return de(4,2,re);case"UseFsEventsOnParentDirectory":be=!0;default:return be?de(5,1,re):{watchFile:4}}}function de(re,be,Ne){let Be=Ne?.fallbackPolling;return{watchFile:re,fallbackPolling:Be===void 0?be:Be}}function fe(re,be,Ne,Be){return d?Ce(re,1,bbe(re,be,Be,l,u),Ne,500,Hw(Be)):(Z||(Z=Y9e({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:g,watchDirectory:ve,realpath:_,setTimeout:r,clearTimeout:i})),Z(re,be,Ne,Be))}function ve(re,be,Ne,Be){C.assert(!Ne);let lt=xe(Be),ce=C.checkDefined(lt.watchDirectory);switch(ce){case 1:return Y(re,()=>be(re),500,void 0);case 2:return ie()(re,()=>be(re),500,void 0);case 3:return K()(re,()=>be(re),void 0,void 0);case 0:return Ce(re,1,bbe(re,be,Be,l,u),Ne,500,Hw(lt));default:C.assertNever(ce)}}function xe(re){if(re&&re.watchDirectory!==void 0)return re;switch(A){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let be=re?.fallbackPolling;return{watchDirectory:0,fallbackPolling:be!==void 0?be:void 0}}}function Y(re,be,Ne,Be){return gbe(k,l,re,be,lt=>e(re,lt,Ne,Be))}function Ce(re,be,Ne,Be,lt,ce){return gbe(Be?O:F,l,re,Ne,De=>Xe(re,be,De,Be,lt,ce))}function Xe(re,be,Ne,Be,lt,ce){let De,ge;R&&(De=re.substring(re.lastIndexOf(Js)),ge=De.slice(Js.length));let je=s(re,be)?We():cn();return{close:()=>{je&&(je.close(),je=void 0)}};function Ge(gn){je&&(P(`sysLog:: ${re}:: Changing watcher to ${gn===We?"Present":"Missing"}FileSystemEntryWatcher`),je.close(),je=gn())}function We(){if(q)return P(`sysLog:: ${re}:: Defaulting to watchFile`),Wt();try{let gn=(be===1||!N?o:Se)(re,Be,R?at:Ne);return gn.on("error",()=>{Ne("rename",""),Ge(cn)}),gn}catch(gn){return q||(q=gn.code==="ENOSPC"),P(`sysLog:: ${re}:: Changing to watchFile`),Wt()}}function at(gn,Kn){let _t;if(Kn&&el(Kn,"~")&&(_t=Kn,Kn=Kn.slice(0,Kn.length-1)),gn==="rename"&&(!Kn||Kn===ge||el(Kn,De))){let en=t(re)||xp;_t&&Ne(gn,_t,en),Ne(gn,Kn,en),R?Ge(en===xp?cn:We):en===xp&&Ge(cn)}else _t&&Ne(gn,_t),Ne(gn,Kn)}function Wt(){return ye(re,$9e(Ne),lt,ce)}function cn(){return ye(re,(gn,Kn,_t)=>{Kn===0&&(_t||(_t=t(re)||xp),_t!==xp&&(Ne("rename","",_t),Ge(We)))},lt,ce)}}function Se(re,be,Ne){let Be=t(re)||xp;return o(re,be,(lt,ce,De)=>{lt==="change"&&(De||(De=t(re)||xp),De.getTime()===Be.getTime())||(Be=De||t(re)||xp,Ne(lt,ce,Be))})}}function Sbe(e){let t=e.writeFile;e.writeFile=(r,i,o)=>JG(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}var Uc=(()=>{let e;return Gz(),e})();function Ebe(e){Uc=e}Uc&&Uc.getEnvironmentVariable&&(H9e(Uc),C.setAssertionLevel(/^development$/i.test(Uc.getEnvironmentVariable("NODE_ENV"))?1:0)),Uc&&Uc.debugMode&&(C.isDebugging=!0);var Js="/",V8="\\",Abe="://",Z9e=/\\/g;function uB(e){return e===47||e===92}function fee(e){return j8(e)<0}function Rp(e){return j8(e)>0}function pB(e){let t=j8(e);return t>0&&t===e.length}function vN(e){return j8(e)!==0}function Qp(e){return/^\.\.?(?:$|[\\/])/.test(e)}function fB(e){return!vN(e)&&!Qp(e)}function TR(e){return xc(e).includes(".")}function El(e,t){return e.length>t.length&&el(e,t)}function Yl(e,t){for(let r of t)if(El(e,r))return!0;return!1}function nb(e){return e.length>0&&uB(e.charCodeAt(e.length-1))}function Ibe(e){return e>=97&&e<=122||e>=65&&e<=90}function eze(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function j8(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?Js:V8,2);return i<0?e.length:i+1}if(Ibe(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Abe);if(r!==-1){let i=r+Abe.length,o=e.indexOf(Js,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&Ibe(e.charCodeAt(o+1))){let u=eze(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 Fh(e){let t=j8(e);return t<0?~t:t}function ci(e){e=Bd(e);let t=Fh(e);return t===e.length?e:(e=Jy(e),e.slice(0,Math.max(t,e.lastIndexOf(Js))))}function xc(e,t,r){if(e=Bd(e),Fh(e)===e.length)return"";e=Jy(e);let o=e.slice(Math.max(Fh(e),e.lastIndexOf(Js)+1)),s=t!==void 0&&r!==void 0?qA(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function xbe(e,t,r){if(po(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(r(i,t))return i}}function tze(e,t,r){if(typeof t=="string")return xbe(e,t,r)||"";for(let i of t){let o=xbe(e,i,r);if(o)return o}return""}function qA(e,t,r){if(t)return tze(Jy(e),t,r?eb:i1);let i=xc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function nze(e,t){let r=e.substring(0,t),i=e.substring(t).split(Js);return i.length&&!Zs(i)&&i.pop(),[r,...i]}function zd(e,t=""){return e=Qr(t,e),nze(e,Fh(e))}function A0(e,t){return e.length===0?"":(e[0]&&Hc(e[0]))+e.slice(1,t).join(Js)}function Bd(e){return e.includes("\\")?e.replace(Z9e,Js):e}function JA(e){if(!vt(e))return[];let t=[e[0]];for(let r=1;r<e.length;r++){let 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 Qr(e,...t){e&&(e=Bd(e));for(let r of t)r&&(r=Bd(r),!e||Fh(r)!==0?e=r:e=Hc(e)+r);return e}function rb(e,...t){return ya(vt(t)?Qr(e,...t):Bd(e))}function U8(e,t){return JA(zd(e,t))}function To(e,t){let r=Fh(e);r===0&&t?(e=Qr(t,e),r=Fh(e)):e=Bd(e);let i=Rbe(e);if(i!==void 0)return i.length>r?Jy(i):i;let o=e.length,s=e.substring(0,r),l,u=r,d=u,g=u,_=r!==0;for(;u<o;){d=u;let v=e.charCodeAt(u);for(;v===47&&u+1<o;)u++,v=e.charCodeAt(u);u>d&&(l??(l=e.substring(0,d-1)),d=u);let E=e.indexOf(Js,u+1);E===-1&&(E=o);let A=E-d;if(A===1&&e.charCodeAt(u)===46)l??(l=e.substring(0,g));else if(A===2&&e.charCodeAt(u)===46&&e.charCodeAt(u+1)===46)if(!_)l!==void 0?l+=l.length===r?"..":"/..":g=u+2;else if(l===void 0)g-2>=0?l=e.substring(0,Math.max(r,e.lastIndexOf(Js,g-2))):l=e.substring(0,g);else{let R=l.lastIndexOf(Js);R!==-1?l=l.substring(0,Math.max(r,R)):l=s,l.length===r&&(_=r!==0)}else l!==void 0?(l.length!==r&&(l+=Js),_=!0,l+=e.substring(d,E)):(_=!0,g=E);u=E+1}return l??(o>r?Jy(e):e)}function ya(e){e=Bd(e);let t=Rbe(e);return t!==void 0?t:(t=To(e,""),t&&nb(e)?Hc(t):t)}function Rbe(e){if(!hB.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!hB.test(e)))return e}function rze(e){return e.length===0?"":e.slice(1).join(Js)}function mB(e,t){return rze(U8(e,t))}function ks(e,t,r){let i=Rp(e)?ya(e):To(e,t);return r(i)}function Jy(e){return nb(e)?e.substr(0,e.length-1):e}function Hc(e){return nb(e)?e:e+Js}function wS(e){return!vN(e)&&!Qp(e)?"./"+e:e}function pL(e,t,r,i){let o=r!==void 0&&i!==void 0?qA(e,r,i):qA(e);return o?e.slice(0,e.length-o.length)+(po(t,".")?t:"."+t):e}function H8(e,t){let r=x3(e);return r?e.slice(0,e.length-r.length)+(po(t,".")?t:"."+t):pL(e,t)}var hB=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function mee(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,Fh(e)),o=t.substring(0,Fh(t)),s=sL(i,o);if(s!==0)return s;let l=e.substring(i.length),u=t.substring(o.length);if(!hB.test(l)&&!hB.test(u))return r(l,u);let d=JA(zd(e)),g=JA(zd(t)),_=Math.min(d.length,g.length);for(let v=1;v<_;v++){let E=r(d[v],g[v]);if(E!==0)return E}return js(d.length,g.length)}function Dbe(e,t){return mee(e,t,Wd)}function Cbe(e,t){return mee(e,t,sL)}function Zg(e,t,r,i){return typeof r=="string"?(e=Qr(r,e),t=Qr(r,t)):typeof r=="boolean"&&(i=r),mee(e,t,gR(i))}function dm(e,t,r,i){if(typeof r=="string"?(e=Qr(r,e),t=Qr(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;let o=JA(zd(e)),s=JA(zd(t));if(s.length<o.length)return!1;let l=i?eb:i1;for(let u=0;u<o.length;u++)if(!(u===0?eb:l)(o[u],s[u]))return!1;return!0}function _B(e,t,r){let i=r(e),o=r(t);return po(i,o+"/")||po(i,o+"\\")}function Nbe(e,t,r,i){let o=JA(zd(e)),s=JA(zd(t)),l;for(l=0;l<o.length&&l<s.length;l++){let g=i(o[l]),_=i(s[l]);if(!(l===0?eb:r)(g,_))break}if(l===0)return s;let u=s.slice(l),d=[];for(;l<o.length;l++)d.push("..");return["",...d,...u]}function lf(e,t,r){C.assert(Fh(e)>0==Fh(t)>0,"Paths must either both be absolute or both be relative");let s=Nbe(e,t,(typeof r=="boolean"?r:!1)?eb:i1,typeof r=="function"?r:Vs);return A0(s)}function bN(e,t,r){return Rp(e)?ER(t,e,t,r,!1):e}function SR(e,t,r){return wS(lf(ci(e),t,r))}function ER(e,t,r,i,o){let s=Nbe(rb(r,e),rb(r,t),i1,i),l=s[0];if(o&&Rp(l)){let u=l.charAt(0)===Js?"file://":"file:///";s[0]=u+l}return A0(s)}function TN(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=ci(e);if(i===e)return;e=i}}function q8(e){return el(e,"/node_modules")}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={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_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_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 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_ES5:S(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:S(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:S(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting '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."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:S(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),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 }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:S(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:S(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:S(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),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_node18_node20_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', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:S(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),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_node18_node20_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', 'node18', 'node20', 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}'?"),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_node18_node20_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', 'node18', 'node20', '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_node18_node20_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', 'node18', 'node20', '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_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."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:S(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:S(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:S(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:S(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:S(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:S(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:S(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:S(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:S(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:S(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:S(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:S(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:S(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:S(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:S(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:S(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:S(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:S(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:S(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:S(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:S(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:S(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:S(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:S(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:S(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:S(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:S(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:S(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:S(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:S(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:S(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:S(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:S(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:S(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:S(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:S(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:S(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:S(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:S(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:S(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:S(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:S(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:S(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:S(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:S(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:S(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:S(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:S(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:S(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:S(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),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_a_static_property_initializer:S(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:S(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:S(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:S(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:S(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:S(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:S(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:S(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:S(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:S(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:S(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:S(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:S(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:S(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:S(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:S(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:S(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:S(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:S(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:S(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_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_ES5_Consider_using_a_standard_function_expression:S(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in 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_ES5_Consider_using_a_standard_function_or_method:S(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in 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."),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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:S(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:S(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:S(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:S(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {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_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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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_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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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_and_above_with_module_0:S(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above 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_or_class_static_initialization_blocks:S(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),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_node18_node20_nodenext_or_preserve:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', '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_node18_node20_nodenext_or_preserve:S(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', '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_node18_node20_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', 'node18', 'node20', '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."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:S(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:S(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:S(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:S(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:S(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:S(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:S(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:S(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:S(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:S(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:S(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:S(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:S(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),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}'."),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_anonymous_class_type_may_not_be_private_or_protected:S(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type 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."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:S(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:S(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),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}."),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_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}'."),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:S(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),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'."),package_json_has_a_peerDependencies_field:S(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:S(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:S(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:S(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:S(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:S(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:S(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:S(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:S(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:S(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:S(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:S(6294,3,"Recommended_Options_6294","Recommended Options"),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."),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}'..."),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}'"),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}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:S(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:S(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:S(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),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."),Skip_building_downstream_projects_on_error_in_upstream_project:S(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),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."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:S(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:S(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:S(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),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."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:S(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:S(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:S(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:S(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),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_Consider_supplying_a_return_type_annotation:S(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. 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."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:S(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:S(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:S(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:S(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:S(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:S(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:S(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:S(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:S(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:S(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:S(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:S(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:S(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:S(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:S(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:S(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:S(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:S(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:S(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:S(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:S(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:S(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:S(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:S(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:S(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:S(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:S(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:S(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),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"),Update_modifiers_of_0:S(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:S(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:S(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:S(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:S(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:S(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:S(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:S(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:S(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:S(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:S(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),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"),Wrap_in_parentheses:S(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:S(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:S(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:S(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),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."),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."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:S(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:S(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:S(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:S(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:S(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:S(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:S(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function Ju(e){return e>=80}function hee(e){return e===32||Ju(e)}var J8={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,defer:166,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},ize=new Map(Object.entries(J8)),Mbe=new Map(Object.entries({...J8,"{":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})),Pbe=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),oze=new Map([[1,ed.RegularExpressionFlagsHasIndices],[16,ed.RegularExpressionFlagsDotAll],[32,ed.RegularExpressionFlagsUnicode],[64,ed.RegularExpressionFlagsUnicodeSets],[128,ed.RegularExpressionFlagsSticky]]),aze=[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],sze=[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],lze=[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,2160,2183,2185,2190,2208,2249,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,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,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,5905,5919,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,6988,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,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,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,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,43881,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,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,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,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,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,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,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,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,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,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,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,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,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,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],cze=[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,2160,2183,2185,2190,2200,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,2901,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,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,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,3790,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,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,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,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,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,43881,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,65381,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,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,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,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,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,70753,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,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,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,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,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,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,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,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,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,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],dze=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,uze=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,pze=/@(?:see|link)/i;function gB(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 K8(e,t){return t>=2?gB(e,lze):gB(e,aze)}function fze(e,t){return t>=2?gB(e,cze):gB(e,sze)}function Lbe(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}var mze=Lbe(Mbe);function _a(e){return mze[e]}function OS(e){return Mbe.get(e)}var hze=Lbe(Pbe);function kbe(e){return hze[e]}function yB(e){return Pbe.get(e)}function KA(e){let t=[],r=0,i=0;for(;r<e.length;){let 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&&Zd(o)&&(t.push(i),i=r);break}}return t.push(i),t}function fL(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):X8(og(e),t,r,e.text,i)}function X8(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:C.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?$p(e,KA(i)):"unknown"}`));let 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?C.assert(s<e[t+1]):i!==void 0&&C.assert(s<=i.length),s)}function og(e){return e.lineMap||(e.lineMap=KA(e.text))}function AR(e,t){let r=SN(e,t);return{line:r,character:t-e[r]}}function SN(e,t,r){let i=Yv(e,t,Vs,js,r);return i<0&&(i=~i-1,C.assert(i!==-1,"position cannot precede the beginning of the file")),i}function EN(e,t,r){if(t===r)return 0;let i=og(e),o=Math.min(t,r),s=o===r,l=s?t:r,u=SN(i,o),d=SN(i,l,u);return s?u-d:d-u}function ca(e,t){return AR(og(e),t)}function ag(e){return zh(e)||Zd(e)}function zh(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 Zd(e){return e===10||e===13||e===8232||e===8233}function IR(e){return e>=48&&e<=57}function _ee(e){return IR(e)||e>=65&&e<=70||e>=97&&e<=102}function gee(e){return e>=65&&e<=90||e>=97&&e<=122}function wbe(e){return gee(e)||IR(e)||e===95}function yee(e){return e>=48&&e<=55}function vee(e,t){let 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 La(e,t,r,i,o){if(dh(t))return t;let s=!1;for(;;){let 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&&!Zd(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(AN(e,t)){t=mL(e,t),s=!1;continue}break;case 35:if(t===0&&Obe(e,t)){t=Wbe(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(l>127&&ag(l)){t++;continue}break}return t}}var vB=7;function AN(e,t){if(C.assert(t>=0),t===0||Zd(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+vB<e.length){for(let i=0;i<vB;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+vB)===32}}return!1}function mL(e,t,r){r&&r(f.Merge_conflict_marker_encountered,t,vB);let i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!Zd(e.charCodeAt(t));)t++;else for(C.assert(i===124||i===61);t<o;){let s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&AN(e,t))break;t++}return t}var bee=/^#!.*/;function Obe(e,t){return C.assert(t===0),bee.test(e)}function Wbe(e,t){let r=bee.exec(e)[0];return t=t+r.length,t}function bB(e,t,r,i,o,s,l){let u,d,g,_,v=!1,E=i,A=l;if(r===0){E=!0;let R=Y8(t);R&&(r=R.length)}e:for(;r>=0&&r<t.length;){let R=t.charCodeAt(r);switch(R){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;E=!0,v&&(_=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:let N=t.charCodeAt(r+1),P=!1;if(N===47||N===42){let k=N===47?2:3,F=r;if(r+=2,N===47)for(;r<t.length;){if(Zd(t.charCodeAt(r))){P=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(E){if(v&&(A=o(u,d,g,_,s,A),!e&&A))return A;u=F,d=r,g=k,_=P,v=!0}continue}break e;default:if(R>127&&ag(R)){v&&Zd(R)&&(_=!0),r++;continue}break e}}return v&&(A=o(u,d,g,_,s,A)),A}function hL(e,t,r,i){return bB(!1,e,t,!1,r,i)}function _L(e,t,r,i){return bB(!1,e,t,!0,r,i)}function Tee(e,t,r,i,o){return bB(!0,e,t,!1,r,i,o)}function See(e,t,r,i,o){return bB(!0,e,t,!0,r,i,o)}function Fbe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function sg(e,t){return Tee(e,t,Fbe,void 0,void 0)}function ib(e,t){return See(e,t,Fbe,void 0,void 0)}function Y8(e){let t=bee.exec(e);if(t)return t[0]}function x_(e,t){return gee(e)||e===36||e===95||e>127&&K8(e,t)}function ey(e,t,r){return wbe(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&fze(e,t)}function pp(e,t,r){let i=IN(e,0);if(!x_(i,t))return!1;for(let o=oh(i);o<e.length;o+=oh(i))if(!ey(i=IN(e,o),t,r))return!1;return!0}function lg(e,t,r=0,i,o,s,l){var u=i,d,g,_,v,E,A,R,N,P=0,k=0,F=0;$o(u,s,l);var O={getTokenFullStart:()=>_,getStartPos:()=>_,getTokenEnd:()=>d,getTextPos:()=>d,getToken:()=>E,getTokenStart:()=>v,getTokenPos:()=>v,getTokenText:()=>u.substring(v,d),getTokenValue:()=>A,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(R&32768)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Ge,reScanAsteriskEqualsToken:We,reScanSlashToken:at,reScanTemplateToken:_t,reScanTemplateHeadOrNoSubstitutionTemplate:en,scanJsxIdentifier:Ai,scanJsxAttributeValue:Ni,reScanJsxAttributeValue:Pr,reScanJsxToken:ir,reScanLessThanToken:Di,reScanHashToken:lo,reScanQuestionToken:zt,reScanInvalidIdentifier:ge,scanJsxToken:Zr,scanJsDocToken:$e,scanJSDocCommentTextToken:Ci,scan:ce,getText:ai,clearCommentDirectives:qi,setText:$o,setScriptTarget:Mn,setLanguageVariant:Uo,setScriptKind:ot,setJSDocParsingMode:Ft,setOnError:Ia,resetTokenState:le,setTextPos:le,setSkipJsDocLeadingAsterisks:ht,tryScan:ri,lookAhead:dr,scanRange:mn};return C.isDebugging&&Object.defineProperty(O,"__debugShowCurrentPositionInText",{get:()=>{let ne=O.getText();return ne.slice(0,O.getTokenFullStart())+"\u2551"+ne.slice(O.getTokenFullStart())}}),O;function G(ne){return IN(u,ne)}function j(ne){return ne>=0&&ne<g?G(ne):-1}function J(ne){return u.charCodeAt(ne)}function Z(ne){return ne>=0&&ne<g?J(ne):-1}function q(ne,Fe=d,it,dt){if(o){let Lt=d;d=Fe,o(ne,it||0,dt),d=Lt}}function ye(){let ne=d,Fe=!1,it=!1,dt="";for(;;){let Lt=J(d);if(Lt===95){R|=512,Fe?(Fe=!1,it=!0,dt+=u.substring(ne,d)):(R|=16384,q(it?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,d,1)),d++,ne=d;continue}if(IR(Lt)){Fe=!0,it=!1,d++;continue}break}return J(d-1)===95&&(R|=16384,q(f.Numeric_separators_are_not_allowed_here,d-1,1)),dt+u.substring(ne,d)}function ie(){let ne=d,Fe;if(J(d)===48)if(d++,J(d)===95)R|=16896,q(f.Numeric_separators_are_not_allowed_here,d,1),d--,Fe=ye();else if(!pe())R|=8192,Fe=""+ +A;else if(!A)Fe="0";else{A=""+parseInt(A,8),R|=32;let Rt=E===41,It=(Rt?"-":"")+"0o"+(+A).toString(8);return Rt&&ne--,q(f.Octal_literals_are_not_allowed_Use_the_syntax_0,ne,d-ne,It),9}else Fe=ye();let it,dt;J(d)===46&&(d++,it=ye());let Lt=d;if(J(d)===69||J(d)===101){d++,R|=16,(J(d)===43||J(d)===45)&&d++;let Rt=d,It=ye();It?(dt=u.substring(Lt,Rt)+It,Lt=d):q(f.Digit_expected)}let Ue;if(R&512?(Ue=Fe,it&&(Ue+="."+it),dt&&(Ue+=dt)):Ue=u.substring(ne,Lt),R&8192)return q(f.Decimals_with_leading_zeros_are_not_allowed,ne,Lt-ne),A=""+ +Ue,9;if(it!==void 0||R&16)return K(ne,it===void 0&&!!(R&16)),A=""+ +Ue,9;{A=Ue;let Rt=lt();return K(ne),Rt}}function K(ne,Fe){if(!x_(G(d),e))return;let it=d,{length:dt}=be();dt===1&&u[it]==="n"?q(Fe?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,ne,it-ne+1):(q(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,it,dt),d=it)}function pe(){let ne=d,Fe=!0;for(;IR(Z(d));)yee(J(d))||(Fe=!1),d++;return A=u.substring(ne,d),Fe}function de(ne,Fe){let it=ve(ne,!1,Fe);return it?parseInt(it,16):-1}function fe(ne,Fe){return ve(ne,!0,Fe)}function ve(ne,Fe,it){let dt=[],Lt=!1,Ue=!1;for(;dt.length<ne||Fe;){let Rt=J(d);if(it&&Rt===95){R|=512,Lt?(Lt=!1,Ue=!0):q(Ue?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(Lt=it,Rt>=65&&Rt<=70)Rt+=32;else if(!(Rt>=48&&Rt<=57||Rt>=97&&Rt<=102))break;dt.push(Rt),d++,Ue=!1}return dt.length<ne&&(dt=[]),J(d-1)===95&&q(f.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode(...dt)}function xe(ne=!1){let Fe=J(d);d++;let it="",dt=d;for(;;){if(d>=g){it+=u.substring(dt,d),R|=4,q(f.Unterminated_string_literal);break}let Lt=J(d);if(Lt===Fe){it+=u.substring(dt,d),d++;break}if(Lt===92&&!ne){it+=u.substring(dt,d),it+=Ce(3),dt=d;continue}if((Lt===10||Lt===13)&&!ne){it+=u.substring(dt,d),R|=4,q(f.Unterminated_string_literal);break}d++}return it}function Y(ne){let Fe=J(d)===96;d++;let it=d,dt="",Lt;for(;;){if(d>=g){dt+=u.substring(it,d),R|=4,q(f.Unterminated_template_literal),Lt=Fe?15:18;break}let Ue=J(d);if(Ue===96){dt+=u.substring(it,d),d++,Lt=Fe?15:18;break}if(Ue===36&&d+1<g&&J(d+1)===123){dt+=u.substring(it,d),d+=2,Lt=Fe?16:17;break}if(Ue===92){dt+=u.substring(it,d),dt+=Ce(1|(ne?2:0)),it=d;continue}if(Ue===13){dt+=u.substring(it,d),d++,d<g&&J(d)===10&&d++,dt+=`
`,it=d;continue}d++}return C.assert(Lt!==void 0),A=dt,Lt}function Ce(ne){let Fe=d;if(d++,d>=g)return q(f.Unexpected_end_of_text),"";let it=J(d);switch(d++,it){case 48:if(d>=g||!IR(J(d)))return"\0";case 49:case 50:case 51:d<g&&yee(J(d))&&d++;case 52:case 53:case 54:case 55:if(d<g&&yee(J(d))&&d++,R|=2048,ne&6){let Ue=parseInt(u.substring(Fe+1,d),8);return ne&4&&!(ne&32)&&it!==48?q(f.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,Fe,d-Fe,"\\x"+Ue.toString(16).padStart(2,"0")):q(f.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Fe,d-Fe,"\\x"+Ue.toString(16).padStart(2,"0")),String.fromCharCode(Ue)}return u.substring(Fe,d);case 56:case 57:return R|=2048,ne&6?(ne&4&&!(ne&32)?q(f.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,Fe,d-Fe):q(f.Escape_sequence_0_is_not_allowed,Fe,d-Fe,u.substring(Fe,d)),String.fromCharCode(it)):u.substring(Fe,d);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(d<g&&J(d)===123){d-=2;let Ue=Xe(!!(ne&6));return ne&17||(R|=2048,ne&6&&q(f.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Fe,d-Fe)),Ue}for(;d<Fe+6;d++)if(!(d<g&&_ee(J(d))))return R|=2048,ne&6&&q(f.Hexadecimal_digit_expected),u.substring(Fe,d);R|=1024;let dt=parseInt(u.substring(Fe+2,d),16),Lt=String.fromCharCode(dt);if(ne&16&&dt>=55296&&dt<=56319&&d+6<g&&u.substring(d,d+2)==="\\u"&&J(d+2)!==123){let Ue=d,Rt=d+2;for(;Rt<Ue+6;Rt++)if(!_ee(J(Rt)))return Lt;let It=parseInt(u.substring(Ue+2,Rt),16);if(It>=56320&&It<=57343)return d=Rt,Lt+String.fromCharCode(It)}return Lt;case 120:for(;d<Fe+4;d++)if(!(d<g&&_ee(J(d))))return R|=2048,ne&6&&q(f.Hexadecimal_digit_expected),u.substring(Fe,d);return R|=4096,String.fromCharCode(parseInt(u.substring(Fe+2,d),16));case 13:d<g&&J(d)===10&&d++;case 10:case 8232:case 8233:return"";default:return(ne&16||ne&4&&!(ne&8)&&ey(it,e))&&q(f.This_character_cannot_be_escaped_in_a_regular_expression,d-2,2),String.fromCharCode(it)}}function Xe(ne){let Fe=d;d+=3;let it=d,dt=fe(1,!1),Lt=dt?parseInt(dt,16):-1,Ue=!1;return Lt<0?(ne&&q(f.Hexadecimal_digit_expected),Ue=!0):Lt>1114111&&(ne&&q(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,it,d-it),Ue=!0),d>=g?(ne&&q(f.Unexpected_end_of_text),Ue=!0):J(d)===125?d++:(ne&&q(f.Unterminated_Unicode_escape_sequence),Ue=!0),Ue?(R|=2048,u.substring(Fe,d)):(R|=8,xN(Lt))}function Se(){if(d+5<g&&J(d+1)===117){let ne=d;d+=2;let Fe=de(4,!1);return d=ne,Fe}return-1}function re(){if(G(d+1)===117&&G(d+2)===123){let ne=d;d+=3;let Fe=fe(1,!1),it=Fe?parseInt(Fe,16):-1;return d=ne,it}return-1}function be(){let ne="",Fe=d;for(;d<g;){let it=G(d);if(ey(it,e))d+=oh(it);else if(it===92){if(it=re(),it>=0&&ey(it,e)){ne+=Xe(!0),Fe=d;continue}if(it=Se(),!(it>=0&&ey(it,e)))break;R|=1024,ne+=u.substring(Fe,d),ne+=xN(it),d+=6,Fe=d}else break}return ne+=u.substring(Fe,d),ne}function Ne(){let ne=A.length;if(ne>=2&&ne<=12){let Fe=A.charCodeAt(0);if(Fe>=97&&Fe<=122){let it=ize.get(A);if(it!==void 0)return E=it}}return E=80}function Be(ne){let Fe="",it=!1,dt=!1;for(;;){let Lt=J(d);if(Lt===95){R|=512,it?(it=!1,dt=!0):q(dt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(it=!0,!IR(Lt)||Lt-48>=ne)break;Fe+=u[d],d++,dt=!1}return J(d-1)===95&&q(f.Numeric_separators_are_not_allowed_here,d-1,1),Fe}function lt(){return J(d)===110?(A+="n",R&384&&(A=AM(A)+"n"),d++,10):(A=""+(R&128?parseInt(A.slice(2),2):R&256?parseInt(A.slice(2),8):+A),9)}function ce(){for(_=d,R=0;;){if(v=d,d>=g)return E=1;let ne=G(d);if(d===0&&ne===35&&Obe(u,d)){if(d=Wbe(u,d),t)continue;return E=6}switch(ne){case 10:case 13:if(R|=1,t){d++;continue}else return ne===13&&d+1<g&&J(d+1)===10?d+=2:d++,E=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){d++;continue}else{for(;d<g&&zh(J(d));)d++;return E=5}case 33:return J(d+1)===61?J(d+2)===61?(d+=3,E=38):(d+=2,E=36):(d++,E=54);case 34:case 39:return A=xe(),E=11;case 96:return E=Y(!1);case 37:return J(d+1)===61?(d+=2,E=70):(d++,E=45);case 38:return J(d+1)===38?J(d+2)===61?(d+=3,E=77):(d+=2,E=56):J(d+1)===61?(d+=2,E=74):(d++,E=51);case 40:return d++,E=21;case 41:return d++,E=22;case 42:if(J(d+1)===61)return d+=2,E=67;if(J(d+1)===42)return J(d+2)===61?(d+=3,E=68):(d+=2,E=43);if(d++,P&&(R&32768)===0&&R&1){R|=32768;continue}return E=42;case 43:return J(d+1)===43?(d+=2,E=46):J(d+1)===61?(d+=2,E=65):(d++,E=40);case 44:return d++,E=28;case 45:return J(d+1)===45?(d+=2,E=47):J(d+1)===61?(d+=2,E=66):(d++,E=41);case 46:return IR(J(d+1))?(ie(),E=9):J(d+1)===46&&J(d+2)===46?(d+=3,E=26):(d++,E=25);case 47:if(J(d+1)===47){for(d+=2;d<g&&!Zd(J(d));)d++;if(N=gn(N,u.slice(v,d),dze,v),t)continue;return E=2}if(J(d+1)===42){d+=2;let Rt=J(d)===42&&J(d+1)!==47,It=!1,Ot=v;for(;d<g;){let nt=J(d);if(nt===42&&J(d+1)===47){d+=2,It=!0;break}d++,Zd(nt)&&(Ot=d,R|=1)}if(Rt&&De()&&(R|=2),N=gn(N,u.slice(Ot,d),uze,Ot),It||q(f.Asterisk_Slash_expected),t)continue;return It||(R|=4),E=3}return J(d+1)===61?(d+=2,E=69):(d++,E=44);case 48:if(d+2<g&&(J(d+1)===88||J(d+1)===120))return d+=2,A=fe(1,!0),A||(q(f.Hexadecimal_digit_expected),A="0"),A="0x"+A,R|=64,E=lt();if(d+2<g&&(J(d+1)===66||J(d+1)===98))return d+=2,A=Be(2),A||(q(f.Binary_digit_expected),A="0"),A="0b"+A,R|=128,E=lt();if(d+2<g&&(J(d+1)===79||J(d+1)===111))return d+=2,A=Be(8),A||(q(f.Octal_digit_expected),A="0"),A="0o"+A,R|=256,E=lt();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E=ie();case 58:return d++,E=59;case 59:return d++,E=27;case 60:if(AN(u,d)){if(d=mL(u,d,q),t)continue;return E=7}return J(d+1)===60?J(d+2)===61?(d+=3,E=71):(d+=2,E=48):J(d+1)===61?(d+=2,E=33):r===1&&J(d+1)===47&&J(d+2)!==42?(d+=2,E=31):(d++,E=30);case 61:if(AN(u,d)){if(d=mL(u,d,q),t)continue;return E=7}return J(d+1)===61?J(d+2)===61?(d+=3,E=37):(d+=2,E=35):J(d+1)===62?(d+=2,E=39):(d++,E=64);case 62:if(AN(u,d)){if(d=mL(u,d,q),t)continue;return E=7}return d++,E=32;case 63:return J(d+1)===46&&!IR(J(d+2))?(d+=2,E=29):J(d+1)===63?J(d+2)===61?(d+=3,E=78):(d+=2,E=61):(d++,E=58);case 91:return d++,E=23;case 93:return d++,E=24;case 94:return J(d+1)===61?(d+=2,E=79):(d++,E=53);case 123:return d++,E=19;case 124:if(AN(u,d)){if(d=mL(u,d,q),t)continue;return E=7}return J(d+1)===124?J(d+2)===61?(d+=3,E=76):(d+=2,E=57):J(d+1)===61?(d+=2,E=75):(d++,E=52);case 125:return d++,E=20;case 126:return d++,E=55;case 64:return d++,E=60;case 92:let Fe=re();if(Fe>=0&&x_(Fe,e))return A=Xe(!0)+be(),E=Ne();let it=Se();return it>=0&&x_(it,e)?(d+=6,R|=1024,A=String.fromCharCode(it)+be(),E=Ne()):(q(f.Invalid_character),d++,E=0);case 35:if(d!==0&&u[d+1]==="!")return q(f.can_only_be_used_at_the_start_of_a_file,d,2),d++,E=0;let dt=G(d+1);if(dt===92){d++;let Rt=re();if(Rt>=0&&x_(Rt,e))return A="#"+Xe(!0)+be(),E=81;let It=Se();if(It>=0&&x_(It,e))return d+=6,R|=1024,A="#"+String.fromCharCode(It)+be(),E=81;d--}return x_(dt,e)?(d++,je(dt,e)):(A="#",q(f.Invalid_character,d++,oh(ne))),E=81;case 65533:return q(f.File_appears_to_be_binary,0,0),d=g,E=8;default:let Lt=je(ne,e);if(Lt)return E=Lt;if(zh(ne)){d+=oh(ne);continue}else if(Zd(ne)){R|=1,d+=oh(ne);continue}let Ue=oh(ne);return q(f.Invalid_character,d,Ue),d+=Ue,E=0}}}function De(){switch(F){case 0:return!0;case 1:return!1}return k!==3&&k!==4?!0:F===3?!1:pze.test(u.slice(_,d))}function ge(){C.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=v=_,R=0;let ne=G(d),Fe=je(ne,99);return Fe?E=Fe:(d+=oh(ne),E)}function je(ne,Fe){let it=ne;if(x_(it,Fe)){for(d+=oh(it);d<g&&ey(it=G(d),Fe);)d+=oh(it);return A=u.substring(v,d),it===92&&(A+=be()),Ne()}}function Ge(){if(E===32){if(J(d)===62)return J(d+1)===62?J(d+2)===61?(d+=3,E=73):(d+=2,E=50):J(d+1)===61?(d+=2,E=72):(d++,E=49);if(J(d)===61)return d++,E=34}return E}function We(){return C.assert(E===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),d=v+1,E=64}function at(ne){if(E===44||E===69){let Fe=v+1;d=Fe;let it=!1,dt=!1,Lt=!1;for(;;){let Rt=Z(d);if(Rt===-1||Zd(Rt)){R|=4;break}if(it)it=!1;else{if(Rt===47&&!Lt)break;Rt===91?Lt=!0:Rt===92?it=!0:Rt===93?Lt=!1:!Lt&&Rt===40&&Z(d+1)===63&&Z(d+2)===60&&Z(d+3)!==61&&Z(d+3)!==33&&(dt=!0)}d++}let Ue=d;if(R&4){d=Fe,it=!1;let Rt=0,It=!1,Ot=0;for(;d<Ue;){let nt=J(d);if(it)it=!1;else if(nt===92)it=!0;else if(nt===91)Rt++;else if(nt===93&&Rt)Rt--;else if(!Rt){if(nt===123)It=!0;else if(nt===125&&It)It=!1;else if(!It){if(nt===40)Ot++;else if(nt===41&&Ot)Ot--;else if(nt===41||nt===93||nt===125)break}}d++}for(;ag(Z(d-1))||Z(d-1)===59;)d--;q(f.Unterminated_regular_expression_literal,v,d-v)}else{d++;let Rt=0;for(;;){let It=j(d);if(It===-1||!ey(It,e))break;let Ot=oh(It);if(ne){let nt=yB(It);nt===void 0?q(f.Unknown_regular_expression_flag,d,Ot):Rt&nt?q(f.Duplicate_regular_expression_flag,d,Ot):((Rt|nt)&96)===96?q(f.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,d,Ot):(Rt|=nt,cn(nt,Ot))}d+=Ot}ne&&mn(Fe,Ue-Fe,()=>{Wt(Rt,!0,dt)})}A=u.substring(v,d),E=14}return E}function Wt(ne,Fe,it){var dt=!!(ne&64),Lt=!!(ne&96),Ue=Lt||!1,Rt=!1,It=0,Ot,nt,Kt,Sr=[],Oe;function Nt(wt){for(;;){if(Sr.push(Oe),Oe=void 0,_e(wt),Oe=Sr.pop(),Z(d)!==124)return;d++}}function _e(wt){let En=!1;for(;;){let xn=d,Ln=Z(d);switch(Ln){case-1:return;case 94:case 36:d++,En=!1;break;case 92:switch(d++,Z(d)){case 98:case 66:d++,En=!1;break;default:Ae(),En=!0;break}break;case 40:if(d++,Z(d)===63)switch(d++,Z(d)){case 61:case 33:d++,En=!Ue;break;case 60:let ra=d;switch(d++,Z(d)){case 61:case 33:d++,En=!1;break;default:Xt(!1),yn(62),e<5&&q(f.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,ra,d-ra),It++,En=!0;break}break;default:let sa=d,zo=B(0);Z(d)===45&&(d++,B(zo),d===sa+1&&q(f.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,sa,d-sa)),yn(58),En=!0;break}else It++,En=!0;Nt(!0),yn(41);break;case 123:d++;let ln=d;pe();let Ii=A;if(!Ue&&!Ii){En=!0;break}if(Z(d)===44){d++,pe();let ra=A;if(Ii)ra&&Number.parseInt(Ii)>Number.parseInt(ra)&&(Ue||Z(d)===125)&&q(f.Numbers_out_of_order_in_quantifier,ln,d-ln);else if(ra||Z(d)===125)q(f.Incomplete_quantifier_Digit_expected,ln,0);else{q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,xn,1,String.fromCharCode(Ln)),En=!0;break}}else if(!Ii){Ue&&q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,xn,1,String.fromCharCode(Ln)),En=!0;break}if(Z(d)!==125)if(Ue)q(f._0_expected,d,0,"}"),d--;else{En=!0;break}case 42:case 43:case 63:d++,Z(d)===63&&d++,En||q(f.There_is_nothing_available_for_repetition,xn,d-xn),En=!1;break;case 46:d++,En=!0;break;case 91:d++,dt?Bt():gt(),yn(93),En=!0;break;case 41:if(wt)return;case 93:case 125:(Ue||Ln===41)&&q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(Ln)),d++,En=!0;break;case 47:case 124:return;default:In(),En=!0;break}}}function B(wt){for(;;){let En=j(d);if(En===-1||!ey(En,e))break;let xn=oh(En),Ln=yB(En);Ln===void 0?q(f.Unknown_regular_expression_flag,d,xn):wt&Ln?q(f.Duplicate_regular_expression_flag,d,xn):Ln&28?(wt|=Ln,cn(Ln,xn)):q(f.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,d,xn),d+=xn}return wt}function Ae(){switch(C.assertEqual(J(d-1),92),Z(d)){case 107:d++,Z(d)===60?(d++,Xt(!0),yn(62)):(Ue||it)&&q(f.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,d-2,2);break;case 113:if(dt){d++,q(f.q_is_only_available_inside_character_class,d-2,2);break}default:C.assert(jt()||te()||xt(!0));break}}function te(){C.assertEqual(J(d-1),92);let wt=Z(d);if(wt>=49&&wt<=57){let En=d;return pe(),Kt=Bn(Kt,{pos:En,end:d,value:+A}),!0}return!1}function xt(wt){C.assertEqual(J(d-1),92);let En=Z(d);switch(En){case-1:return q(f.Undetermined_character_escape,d-1,1),"\\";case 99:if(d++,En=Z(d),gee(En))return d++,String.fromCharCode(En&31);if(Ue)q(f.c_must_be_followed_by_an_ASCII_letter,d-2,2);else if(wt)return d--,"\\";return String.fromCharCode(En);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return d++,String.fromCharCode(En);default:return d--,Ce(12|(Lt?16:0)|(wt?32:0))}}function Xt(wt){C.assertEqual(J(d-1),60),v=d,je(j(d),e),d===v?q(f.Expected_a_capturing_group_name):wt?nt=Bn(nt,{pos:v,end:d,name:A}):Oe?.has(A)||Sr.some(En=>En?.has(A))?q(f.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,v,d-v):(Oe??(Oe=new Set),Oe.add(A),Ot??(Ot=new Set),Ot.add(A))}function Le(wt){return wt===93||wt===-1||d>=g}function gt(){for(C.assertEqual(J(d-1),91),Z(d)===94&&d++;;){let wt=Z(d);if(Le(wt))return;let En=d,xn=Mt();if(Z(d)===45){d++;let Ln=Z(d);if(Le(Ln))return;!xn&&Ue&&q(f.A_character_class_range_must_not_be_bounded_by_another_character_class,En,d-1-En);let ln=d,Ii=Mt();if(!Ii&&Ue){q(f.A_character_class_range_must_not_be_bounded_by_another_character_class,ln,d-ln);continue}if(!xn)continue;let ra=IN(xn,0),sa=IN(Ii,0);xn.length===oh(ra)&&Ii.length===oh(sa)&&ra>sa&&q(f.Range_out_of_order_in_character_class,En,d-En)}}}function Bt(){C.assertEqual(J(d-1),91);let wt=!1;Z(d)===94&&(d++,wt=!0);let En=!1,xn=Z(d);if(Le(xn))return;let Ln=d,ln;switch(u.slice(d,d+2)){case"--":case"&&":q(f.Expected_a_class_set_operand),Rt=!1;break;default:ln=tr();break}switch(Z(d)){case 45:if(Z(d+1)===45){wt&&Rt&&q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Ln,d-Ln),En=Rt,gr(3),Rt=!wt&&En;return}break;case 38:if(Z(d+1)===38){gr(2),wt&&Rt&&q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Ln,d-Ln),En=Rt,Rt=!wt&&En;return}else q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(xn));break;default:wt&&Rt&&q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Ln,d-Ln),En=Rt;break}for(;xn=Z(d),xn!==-1;){switch(xn){case 45:if(d++,xn=Z(d),Le(xn)){Rt=!wt&&En;return}if(xn===45){d++,q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-2,2),Ln=d-2,ln=u.slice(Ln,d);continue}else{ln||q(f.A_character_class_range_must_not_be_bounded_by_another_character_class,Ln,d-1-Ln);let Ii=d,ra=tr();if(wt&&Rt&&q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Ii,d-Ii),En||(En=Rt),!ra){q(f.A_character_class_range_must_not_be_bounded_by_another_character_class,Ii,d-Ii);break}if(!ln)break;let sa=IN(ln,0),zo=IN(ra,0);ln.length===oh(sa)&&ra.length===oh(zo)&&sa>zo&&q(f.Range_out_of_order_in_character_class,Ln,d-Ln)}break;case 38:Ln=d,d++,Z(d)===38?(d++,q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-2,2),Z(d)===38&&(q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(xn)),d++)):q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d-1,1,String.fromCharCode(xn)),ln=u.slice(Ln,d);continue}if(Le(Z(d)))break;switch(Ln=d,u.slice(d,d+2)){case"--":case"&&":q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d,2),d+=2,ln=u.slice(Ln,d);break;default:ln=tr();break}}Rt=!wt&&En}function gr(wt){let En=Rt;for(;;){let xn=Z(d);if(Le(xn))break;switch(xn){case 45:d++,Z(d)===45?(d++,wt!==3&&q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-2,2)):q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-1,1);break;case 38:d++,Z(d)===38?(d++,wt!==2&&q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-2,2),Z(d)===38&&(q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(xn)),d++)):q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d-1,1,String.fromCharCode(xn));break;default:switch(wt){case 3:q(f._0_expected,d,0,"--");break;case 2:q(f._0_expected,d,0,"&&");break}break}if(xn=Z(d),Le(xn)){q(f.Expected_a_class_set_operand);break}tr(),En&&(En=Rt)}Rt=En}function tr(){switch(Rt=!1,Z(d)){case-1:return"";case 91:return d++,Bt(),yn(93),"";case 92:if(d++,jt())return"";if(Z(d)===113)return d++,Z(d)===123?(d++,Jn(),yn(125),""):(q(f.q_must_be_followed_by_string_alternatives_enclosed_in_braces,d-2,2),"q");d--;default:return ft()}}function Jn(){C.assertEqual(J(d-1),123);let wt=0;for(;;)switch(Z(d)){case-1:return;case 125:wt!==1&&(Rt=!0);return;case 124:wt!==1&&(Rt=!0),d++,s=d,wt=0;break;default:ft(),wt++;break}}function ft(){let wt=Z(d);if(wt===-1)return"";if(wt===92){d++;let En=Z(d);switch(En){case 98:return d++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return d++,String.fromCharCode(En);default:return xt(!1)}}else if(wt===Z(d+1))switch(wt){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return q(f.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,d,2),d+=2,u.substring(d-2,d)}switch(wt){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(wt)),d++,String.fromCharCode(wt)}return In()}function Mt(){if(Z(d)===92){d++;let wt=Z(d);switch(wt){case 98:return d++,"\b";case 45:return d++,String.fromCharCode(wt);default:return jt()?"":xt(!1)}}else return In()}function jt(){C.assertEqual(J(d-1),92);let wt=!1,En=d-1,xn=Z(d);switch(xn){case 100:case 68:case 115:case 83:case 119:case 87:return d++,!0;case 80:wt=!0;case 112:if(d++,Z(d)===123){d++;let Ln=d,ln=Qt();if(Z(d)===61){let Ii=zbe.get(ln);if(d===Ln)q(f.Expected_a_Unicode_property_name);else if(Ii===void 0){q(f.Unknown_Unicode_property_name,Ln,d-Ln);let zo=o1(ln,zbe.keys(),Vs);zo&&q(f.Did_you_mean_0,Ln,d-Ln,zo)}d++;let ra=d,sa=Qt();if(d===ra)q(f.Expected_a_Unicode_property_value);else if(Ii!==void 0&&!gL[Ii].has(sa)){q(f.Unknown_Unicode_property_value,ra,d-ra);let zo=o1(sa,gL[Ii],Vs);zo&&q(f.Did_you_mean_0,ra,d-ra,zo)}}else if(d===Ln)q(f.Expected_a_Unicode_property_name_or_value);else if(Gbe.has(ln))dt?wt?q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Ln,d-Ln):Rt=!0:q(f.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,Ln,d-Ln);else if(!gL.General_Category.has(ln)&&!Bbe.has(ln)){q(f.Unknown_Unicode_property_name_or_value,Ln,d-Ln);let Ii=o1(ln,[...gL.General_Category,...Bbe,...Gbe],Vs);Ii&&q(f.Did_you_mean_0,Ln,d-Ln,Ii)}yn(125),Lt||q(f.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,En,d-En)}else if(Ue)q(f._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,d-2,2,String.fromCharCode(xn));else return d--,!1;return!0}return!1}function Qt(){let wt="";for(;;){let En=Z(d);if(En===-1||!wbe(En))break;wt+=String.fromCharCode(En),d++}return wt}function In(){let wt=Lt?oh(j(d)):1;return d+=wt,wt>0?u.substring(d-wt,d):""}function yn(wt){Z(d)===wt?d++:q(f._0_expected,d,0,String.fromCharCode(wt))}Nt(!1),Je(nt,wt=>{if(!Ot?.has(wt.name)&&(q(f.There_is_no_capturing_group_named_0_in_this_regular_expression,wt.pos,wt.end-wt.pos,wt.name),Ot)){let En=o1(wt.name,Ot,Vs);En&&q(f.Did_you_mean_0,wt.pos,wt.end-wt.pos,En)}}),Je(Kt,wt=>{wt.value>It&&(It?q(f.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,wt.pos,wt.end-wt.pos,It):q(f.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,wt.pos,wt.end-wt.pos))})}function cn(ne,Fe){let it=oze.get(ne);it&&e<it&&q(f.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,d,Fe,xW(it))}function gn(ne,Fe,it,dt){let Lt=Kn(Fe.trimStart(),it);return Lt===void 0?ne:Bn(ne,{range:{pos:dt,end:d},type:Lt})}function Kn(ne,Fe){let it=Fe.exec(ne);if(it)switch(it[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function _t(ne){return d=v,E=Y(!ne)}function en(){return d=v,E=Y(!0)}function ir(ne=!0){return d=v=_,E=Zr(ne)}function Di(){return E===48?(d=v+1,E=30):E}function lo(){return E===81?(d=v+1,E=63):E}function zt(){return C.assert(E===61,"'reScanQuestionToken' should only be called on a '??'"),d=v+1,E=58}function Zr(ne=!0){if(_=v=d,d>=g)return E=1;let Fe=J(d);if(Fe===60)return J(d+1)===47?(d+=2,E=31):(d++,E=30);if(Fe===123)return d++,E=19;let it=0;for(;d<g&&(Fe=J(d),Fe!==123);){if(Fe===60){if(AN(u,d))return d=mL(u,d,q),E=7;break}if(Fe===62&&q(f.Unexpected_token_Did_you_mean_or_gt,d,1),Fe===125&&q(f.Unexpected_token_Did_you_mean_or_rbrace,d,1),Zd(Fe)&&it===0)it=-1;else{if(!ne&&Zd(Fe)&&it>0)break;ag(Fe)||(it=d)}d++}return A=u.substring(_,d),it===-1?13:12}function Ai(){if(Ju(E)){for(;d<g;){if(J(d)===45){A+="-",d++;continue}let Fe=d;if(A+=be(),d===Fe)break}return Ne()}return E}function Ni(){switch(_=d,J(d)){case 34:case 39:return A=xe(!0),E=11;default:return ce()}}function Pr(){return d=v=_,Ni()}function Ci(ne){if(_=v=d,R=0,d>=g)return E=1;for(let Fe=J(d);d<g&&!Zd(Fe)&&Fe!==96;Fe=G(++d))if(!ne){if(Fe===123)break;if(Fe===64&&d-1>=0&&zh(J(d-1))&&!(d+1<g&&ag(J(d+1))))break}return d===v?$e():(A=u.substring(v,d),E=82)}function $e(){if(_=v=d,R=0,d>=g)return E=1;let ne=G(d);switch(d+=oh(ne),ne){case 9:case 11:case 12:case 32:for(;d<g&&zh(J(d));)d++;return E=5;case 64:return E=60;case 13:J(d)===10&&d++;case 10:return R|=1,E=4;case 42:return E=42;case 123:return E=19;case 125:return E=20;case 91:return E=23;case 93:return E=24;case 40:return E=21;case 41:return E=22;case 60:return E=30;case 62:return E=32;case 61:return E=64;case 44:return E=28;case 46:return E=25;case 96:return E=62;case 35:return E=63;case 92:d--;let Fe=re();if(Fe>=0&&x_(Fe,e))return A=Xe(!0)+be(),E=Ne();let it=Se();return it>=0&&x_(it,e)?(d+=6,R|=1024,A=String.fromCharCode(it)+be(),E=Ne()):(d++,E=0)}if(x_(ne,e)){let Fe=ne;for(;d<g&&ey(Fe=G(d),e)||Fe===45;)d+=oh(Fe);return A=u.substring(v,d),Fe===92&&(A+=be()),E=Ne()}else return E=0}function At(ne,Fe){let it=d,dt=_,Lt=v,Ue=E,Rt=A,It=R,Ot=ne();return(!Ot||Fe)&&(d=it,_=dt,v=Lt,E=Ue,A=Rt,R=It),Ot}function mn(ne,Fe,it){let dt=g,Lt=d,Ue=_,Rt=v,It=E,Ot=A,nt=R,Kt=N;$o(u,ne,Fe);let Sr=it();return g=dt,d=Lt,_=Ue,v=Rt,E=It,A=Ot,R=nt,N=Kt,Sr}function dr(ne){return At(ne,!0)}function ri(ne){return At(ne,!1)}function ai(){return u}function qi(){N=void 0}function $o(ne,Fe,it){u=ne||"",g=it===void 0?u.length:Fe+it,le(Fe||0)}function Ia(ne){o=ne}function Mn(ne){e=ne}function Uo(ne){r=ne}function ot(ne){k=ne}function Ft(ne){F=ne}function le(ne){C.assert(ne>=0),d=ne,_=ne,v=ne,E=0,A=void 0,R=0}function ht(ne){P+=ne?1:-1}}function IN(e,t){return e.codePointAt(t)}function oh(e){return e>=65536?2:e===-1?0:1}function _ze(e){if(C.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}var gze=String.fromCodePoint?e=>String.fromCodePoint(e):_ze;function xN(e){return gze(e)}var zbe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Bbe=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Gbe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),gL={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};gL.Script_Extensions=gL.Script;function td(e){return Qp(e)||Rp(e)}function xR(e){return dN(e,_M,EW)}var Eee=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function yL(e){let t=Ga(e);switch(t){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Eee.get(t);default:return"lib.d.ts"}}function Dl(e){return e.start+e.length}function Aee(e){return e.length===0}function TB(e,t){return t>=e.start&&t<Dl(e)}function vL(e,t){return t>=e.pos&&t<=e.end}function Iee(e,t){return t.start>=e.start&&Dl(t)<=Dl(e)}function SB(e,t){return t.pos>=e.start&&t.end<=Dl(e)}function xee(e,t){return t.start>=e.pos&&Dl(t)<=e.end}function Vbe(e,t){return Ree(e,t)!==void 0}function Ree(e,t){let r=Mee(e,t);return r&&r.length===0?void 0:r}function Dee(e,t){return TL(e.start,e.length,t.start,t.length)}function bL(e,t,r){return TL(e.start,e.length,t,r)}function TL(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function Cee(e,t){return t<=Dl(e)&&t>=e.start}function Nee(e,t){return bL(t,e.pos,e.end-e.pos)}function Mee(e,t){let r=Math.max(e.start,t.start),i=Math.min(Dl(e),Dl(t));return r<=i?ic(r,i):void 0}function EB(e){e=e.filter(i=>i.length>0).sort((i,o)=>i.start!==o.start?i.start-o.start:i.length-o.length);let t=[],r=0;for(;r<e.length;){let i=e[r],o=r+1;for(;o<e.length&&Dee(i,e[o]);){let s=Math.min(i.start,e[o].start),l=Math.max(Dl(i),Dl(e[o]));i=ic(s,l),o++}r=o,t.push(i)}return t}function Id(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function ic(e,t){return Id(e,t-e)}function RN(e){return Id(e.span.start,e.newLength)}function Pee(e){return Aee(e.span)&&e.newLength===0}function SL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var $8=SL(Id(0,0),0);function Lee(e){if(e.length===0)return $8;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=Dl(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){let l=e[s],u=r,d=i,g=o,_=l.span.start,v=Dl(l.span),E=_+l.newLength;r=Math.min(u,_),i=Math.max(d,d+(v-g)),o=Math.max(E,E+(g-v))}return SL(ic(r,i),o-r)}function jbe(e){if(e&&e.kind===169){for(let t=e;t;t=t.parent)if(Yo(t)||ui(t)||t.kind===265)return t}}function Dp(e,t){return to(e)&&di(e,31)&&t.kind===177}function kee(e){return Qo(e)?Vn(e.elements,wee):!1}function wee(e){return Kc(e)?!0:kee(e.name)}function WS(e){let t=e.parent;for(;Ha(t.parent);)t=t.parent.parent;return t.parent}function Oee(e,t){Ha(e)&&(e=WS(e));let r=t(e);return e.kind===261&&(e=e.parent),e&&e.kind===262&&(r|=t(e),e=e.parent),e&&e.kind===244&&(r|=t(e)),r}function I0(e){return Oee(e,Gd)}function AB(e){return Oee(e,kne)}function ty(e){return Oee(e,yze)}function yze(e){return e.flags}var Wee=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function IB(e,t,r){let i=e.toLowerCase(),o=/^([a-z]+)(?:[_-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(Il(f.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}let s=o[1],l=o[2];jn(Wee,i)&&!u(s,l,r)&&u(s,void 0,r),qQ(e);function u(d,g,_){let v=ya(t.getExecutingFilePath()),E=ci(v),A=Qr(E,d);if(g&&(A=A+"-"+g),A=t.resolvePath(Qr(A,"diagnosticMessages.generated.json")),!t.fileExists(A))return!1;let R="";try{R=t.readFile(A)}catch{return _&&_.push(Il(f.Unable_to_open_file_0,A)),!1}try{Zne(JSON.parse(R))}catch{return _&&_.push(Il(f.Corrupted_locale_file_0,A)),!1}return!0}}function yl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function Dn(e,t){for(;e;){let r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function DN(e){return(e.flags&16)===0}function jo(e,t){if(e===void 0||DN(e))return e;for(e=e.original;e;){if(DN(e))return!t||t(e)?e:void 0;e=e.original}}function Cl(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vi(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Kr(e){return Vi(e.escapedText)}function FS(e){let t=OS(e.escapedText);return t?ni(t,Qu):void 0}function wl(e){return e.valueDeclaration&&tu(e.valueDeclaration)?Kr(e.valueDeclaration.name):Vi(e.escapedName)}function Ube(e){let t=e.parent.parent;if(t){if(rd(t))return xB(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return xB(t.declarationList.declarations[0]);break;case 245:let r=t.expression;switch(r.kind===227&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 212:return r.name;case 213:let i=r.argumentExpression;if(He(i))return i}break;case 218:return xB(t.expression);case 257:{if(rd(t.statement)||St(t.statement))return xB(t.statement);break}}}}function xB(e){let t=Oo(e);return t&&He(t)?t:void 0}function EL(e,t){return!!(nd(e)&&He(e.name)&&Kr(e.name)===Kr(t)||ac(e)&&vt(e.declarationList.declarations,r=>EL(r,t)))}function Fee(e){return e.name||Ube(e)}function nd(e){return!!e.name}function Q8(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:r}=e;if(r.kind===167)return r.right;break}case 214:case 227:{let r=e;switch(oc(r)){case 1:case 4:case 5:case 3:return K6(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 347:return Fee(e);case 341:return Ube(e);case 278:{let{expression:r}=e;return He(r)?r:void 0}case 213:let t=e;if(J6(t))return t.argumentExpression}return e.name}function Oo(e){if(e!==void 0)return Q8(e)||(Us(e)||Xs(e)||uc(e)?Z8(e):void 0)}function Z8(e){if(e.parent){if(Nc(e.parent)||Ha(e.parent))return e.parent.name;if(Nr(e.parent)&&e===e.parent.right){if(He(e.parent.left))return e.parent.left;if(Ks(e.parent.left))return K6(e.parent.left)}else if(yi(e.parent)&&He(e.parent.name))return e.parent.name}else return}function ob(e){if(uf(e))return Un(e.modifiers,zc)}function a1(e){if(di(e,98303))return Un(e.modifiers,Aa)}function Hbe(e,t){if(e.name)if(He(e.name)){let r=e.name.escapedText;return t6(e.parent,t).filter(i=>ff(i)&&He(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);C.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=t6(e.parent,t).filter(ff);if(r<i.length)return[i[r]]}return ae}function RR(e){return Hbe(e,!1)}function zee(e){return Hbe(e,!0)}function qbe(e,t){let r=e.name.escapedText;return t6(e.parent,t).filter(i=>vm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Bee(e){return qbe(e,!1)}function Gee(e){return qbe(e,!0)}function Vee(e){return!!um(e,ff)}function jee(e){return um(e,VI)}function Uee(e){return n6(e,_3)}function RB(e){return um(e,Mie)}function Jbe(e){return um(e,mj)}function Hee(e){return um(e,mj,!0)}function Kbe(e){return um(e,hj)}function qee(e){return um(e,hj,!0)}function Xbe(e){return um(e,_j)}function Jee(e){return um(e,_j,!0)}function Ybe(e){return um(e,gj)}function Kee(e){return um(e,gj,!0)}function Xee(e){return um(e,m3,!0)}function DB(e){return um(e,yj)}function Yee(e){return um(e,yj,!0)}function CB(e){return um(e,lw)}function e6(e){return um(e,vj)}function $ee(e){return um(e,h3)}function $be(e){return um(e,vm)}function NB(e){return um(e,g3)}function x0(e){let t=um(e,HM);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Ky(e){let t=um(e,HM);return!t&&to(e)&&(t=hn(RR(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function AL(e){let t=$ee(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=x0(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(ku(i)){let o=hn(i.members,kI);return o&&o.type}if(k_(i)||vD(i))return i.type}}function t6(e,t){var r;if(!pk(e))return ae;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=AG(e,t);C.assert(o.length<2||o[0]!==o[1]),i=Ki(o,s=>mh(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function R0(e){return t6(e,!1)}function um(e,t,r){return hn(t6(e,r),t)}function n6(e,t){return R0(e).filter(t)}function Qbe(e,t){return R0(e).filter(r=>r.kind===t)}function IL(e){return typeof e=="string"?e:e?.map(t=>t.kind===322?t.text:vze(t)).join("")}function vze(e){let t=e.kind===325?"link":e.kind===326?"linkcode":"linkplain",r=e.name?Cp(e.name):"",i=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${r}${i}${e.text}}`}function ab(e){if(dv(e)){if(bD(e.parent)){let t=qR(e.parent);if(t&&et(t.tags))return Ki(t.tags,r=>vm(r)?r.typeParameters:void 0)}return ae}if(mm(e))return C.assert(e.parent.kind===321),Ki(e.parent.tags,t=>vm(t)?t.typeParameters:void 0);if(e.typeParameters||jie(e)&&e.typeParameters)return e.typeParameters;if(Ir(e)){let t=dW(e);if(t.length)return t;let r=Ky(e);if(r&&k_(r)&&r.typeParameters)return r.typeParameters}return ae}function DR(e){return e.constraint?e.constraint:vm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function cg(e){return e.kind===80||e.kind===81}function xL(e){return e.kind===179||e.kind===178}function r6(e){return qr(e)&&!!(e.flags&64)}function MB(e){return Ws(e)&&!!(e.flags&64)}function zS(e){return Zo(e)&&!!(e.flags&64)}function eu(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function CN(e){return eu(e)&&!zI(e)&&!!e.questionDotToken}function i6(e){return CN(e.parent)&&e.parent.expression===e}function NN(e){return!eu(e.parent)||CN(e.parent)||e!==e.parent.expression}function PB(e){return e.kind===227&&e.operatorToken.kind===61}function wm(e){return wp(e)&&He(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Om(e){return Ul(e,8)}function o6(e){return zI(e)&&!!(e.flags&64)}function MN(e){return e.kind===253||e.kind===252}function LB(e){return e.kind===281||e.kind===280}function PN(e){return e.kind===349||e.kind===342}function a6(e){return e>=167}function kB(e){return e>=0&&e<=166}function XA(e){return kB(e.kind)}function s1(e){return Rs(e,"pos")&&Rs(e,"end")}function LN(e){return 9<=e&&e<=15}function BS(e){return LN(e.kind)}function wB(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function sb(e){return 15<=e&&e<=18}function Qee(e){return sb(e.kind)}function s6(e){let t=e.kind;return t===17||t===18}function lb(e){return Su(e)||iu(e)}function CR(e){switch(e.kind){case 277:return e.isTypeOnly||e.parent.parent.phaseModifier===156;case 275:return e.parent.phaseModifier===156;case 274:return e.phaseModifier===156;case 272:return e.isTypeOnly}return!1}function Zee(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function Xy(e){return CR(e)||Zee(e)}function ete(e){return Dn(e,Xy)!==void 0}function OB(e){return e.kind===11||sb(e.kind)}function tte(e){return ka(e)||He(e)}function pl(e){var t;return He(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function GS(e){var t;return eo(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function RL(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function tu(e){return(Po(e)||$A(e))&&eo(e.name)}function NR(e){return qr(e)&&eo(e.name)}function cb(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 kN(e){return!!(hI(e)&31)}function WB(e){return kN(e)||e===126||e===164||e===129}function Aa(e){return cb(e.kind)}function Nu(e){let t=e.kind;return t===167||t===80}function bc(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function VS(e){let t=e.kind;return t===80||t===207||t===208}function Yo(e){return!!e&&YA(e.kind)}function MR(e){return!!e&&(YA(e.kind)||$l(e))}function Ms(e){return e&&Zbe(e.kind)}function wN(e){return e.kind===112||e.kind===97}function Zbe(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function YA(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return Zbe(e)}}function FB(e){return Yi(e)||e_(e)||ea(e)&&Yo(e.parent)}function Tc(e){let t=e.kind;return t===177||t===173||t===175||t===178||t===179||t===182||t===176||t===241}function ui(e){return e&&(e.kind===264||e.kind===232)}function db(e){return e&&(e.kind===178||e.kind===179)}function Ku(e){return Po(e)&&Jh(e)}function nte(e){return Ir(e)&&RI(e)?(!_1(e)||!Tb(e.expression))&&!$S(e,!0):e.parent&&ui(e.parent)&&Po(e)&&!Jh(e)}function $A(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function fl(e){return Aa(e)||zc(e)}function l1(e){let t=e.kind;return t===181||t===180||t===172||t===174||t===182||t===178||t===179||t===355}function l6(e){return l1(e)||Tc(e)}function ny(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function Ri(e){return pV(e.kind)}function rte(e){switch(e.kind){case 185:case 186:return!0}return!1}function Qo(e){if(e){let t=e.kind;return t===208||t===207}return!1}function ON(e){let t=e.kind;return t===210||t===211}function c6(e){let t=e.kind;return t===209||t===233}function DL(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function ite(e){return yi(e)||to(e)||NL(e)||ML(e)}function CL(e){return zB(e)||BB(e)}function zB(e){switch(e.kind){case 207:case 211:return!0}return!1}function NL(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function BB(e){switch(e.kind){case 208:case 210:return!0}return!1}function ML(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return id(e,!0)}function ote(e){let t=e.kind;return t===212||t===167||t===206}function PL(e){let t=e.kind;return t===212||t===167}function GB(e){return c1(e)||Ab(e)}function c1(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return e.operatorToken.kind===104;default:return!1}}function Bh(e){return e.kind===214||e.kind===215}function QA(e){let t=e.kind;return t===229||t===15}function Xu(e){return e0e(Om(e).kind)}function e0e(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function VB(e){return t0e(Om(e).kind)}function t0e(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return e0e(e)}}function ate(e){switch(e.kind){case 226:return!0;case 225:return e.operator===46||e.operator===47;default:return!1}}function ste(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return BS(e)}}function St(e){return bze(Om(e).kind)}function bze(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return t0e(e)}}function d1(e){let t=e.kind;return t===217||t===235}function ub(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&ub(e.statement,t)}return!1}function Tze(e){return ll(e)||fc(e)}function lte(e){return vt(e,Tze)}function d6(e){return!VL(e)&&!ll(e)&&!di(e,32)&&!gu(e)}function LL(e){return VL(e)||ll(e)||di(e,32)}function jS(e){return e.kind===250||e.kind===251}function u6(e){return ea(e)||St(e)}function jB(e){return ea(e)}function kf(e){return _d(e)||St(e)}function cte(e){let t=e.kind;return t===269||t===268||t===80}function n0e(e){let t=e.kind;return t===269||t===268}function r0e(e){let t=e.kind;return t===80||t===268}function UB(e){let t=e.kind;return t===276||t===275}function kL(e){return e.kind===268||e.kind===267}function ah(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function R_(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function Sze(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function dte(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function ute(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function rd(e){return e.kind===169?e.parent&&e.parent.kind!==346||Ir(e):Sze(e.kind)}function pte(e){return dte(e.kind)}function wL(e){return ute(e.kind)}function ji(e){let t=e.kind;return ute(t)||dte(t)||Eze(e)}function Eze(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!m1(e)}function fte(e){let t=e.kind;return ute(t)||dte(t)||t===242}function mte(e){let t=e.kind;return t===284||t===167||t===80}function WN(e){let t=e.kind;return t===110||t===80||t===212||t===296}function OL(e){let t=e.kind;return t===285||t===295||t===286||t===12||t===289}function p6(e){let t=e.kind;return t===292||t===294}function hte(e){let t=e.kind;return t===11||t===295}function nu(e){let t=e.kind;return t===287||t===286}function _te(e){let t=e.kind;return t===287||t===286||t===290}function f6(e){let t=e.kind;return t===297||t===298}function PR(e){return e.kind>=310&&e.kind<=352}function m6(e){return e.kind===321||e.kind===320||e.kind===322||ZA(e)||LR(e)||gE(e)||dv(e)}function LR(e){return e.kind>=328&&e.kind<=352}function Gh(e){return e.kind===179}function dg(e){return e.kind===178}function Zp(e){if(!pk(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function h6(e){return!!e.type}function Yy(e){return!!e.initializer}function US(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function HB(e){return e.kind===292||e.kind===294||ny(e)}function _6(e){return e.kind===184||e.kind===234}var i0e=1073741823;function gte(e){let t=i0e;for(let r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&ag(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===i0e?void 0:t}function cs(e){return e.kind===11||e.kind===15}function ZA(e){return e.kind===325||e.kind===326||e.kind===327}function qB(e){let t=Zs(e.parameters);return!!t&&D_(t)}function D_(e){let t=ff(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===319}function o0e(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function yte(e,t){t??(t=Wn(e));let r=jo(e);if(r&&r.kind===170){let o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?so(ib(l,La(l,s.end+1,!1,!0)),sg(l,e.pos)):ib(l,La(l,e.pos,!1,!0));return vt(u)&&o0e(Ba(u),t)}let i=r&&fG(r,t);return!!Je(i,o=>o0e(o,t))}var JB=[],pb="tslib",FN=160,KB=1e6,vte=500;function al(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function bte(e,t){return Un(e.declarations||ae,r=>r.kind===t)}function da(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function ug(e){return(e.flags&33554432)!==0}function eI(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var g6=Aze();function Aze(){var e="";let 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&&ag(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:gs,decreaseIndent:gs,clear:()=>e=""}}function y6(e,t){return e.configFilePath!==t.configFilePath||Ize(e,t)}function Ize(e,t){return tI(e,t,Gj)}function Tte(e,t){return tI(e,t,uoe)}function tI(e,t,r){return e!==t&&r.some(i=>!zW(RW(e,i),RW(t,i)))}function Ste(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Yi(e))return;e=e.parent}}function qc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function pg(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function v6(e,t){e.forEach((r,i)=>{t.set(i,r)})}function kR(e){let t=g6.getText();try{return e(g6),g6.getText()}finally{g6.clear(),g6.writeKeyword(t)}}function WL(e){return e.end-e.pos}function XB(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Ete(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&&xze(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function nI(e){return e.resolvedModule}function b6(e){return e.resolvedTypeReferenceDirective}function T6(e,t,r,i,o){var s;let l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(ru(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(xg+"@types/")?`@types/${PD(o)}`:o]]),d=u?qo(void 0,u[0],...u[1]):t.typesPackageExists(o)?qo(void 0,f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,PD(o)):t.packageBundlesTypes(o)?qo(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):qo(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,PD(o));return d&&(d.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),d}function YB(e){let t=Tg(e.fileName),r=e.packageJsonScope,i=t===".ts"?".mts":t===".js"?".mjs":void 0,o=r&&!r.contents.packageJsonContent.type?i?qo(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,i,Qr(r.packageDirectory,"package.json")):qo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Qr(r.packageDirectory,"package.json")):i?qo(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,i):qo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return o.repopulateInfo=()=>!0,o}function xze(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function S6({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function D0(e){return`${S6(e)}@${e.version}${e.peerDependencies??""}`}function Ate(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 $B(e,t,r,i){C.assert(e.length===t.length);for(let o=0;o<e.length;o++){let s=t[o],l=e[o],u=r(l);if(u?!s||!i(u,s):s)return!0}return!1}function rI(e){return Rze(e),(e.flags&1048576)!==0}function Rze(e){e.flags&2097152||(((e.flags&262144)!==0||Jo(e,rI))&&(e.flags|=1048576),e.flags|=2097152)}function Wn(e){for(;e&&e.kind!==308;)e=e.parent;return e}function FL(e){return Wn(e.valueDeclaration||aG(e))}function zN(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function Ite(e){switch(e.kind){case 242:case 270:case 249:case 250:case 251:return!0}return!1}function fb(e,t){return C.assert(e>=0),og(t)[e]}function a0e(e){let t=Wn(e),r=ca(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function zL(e,t){C.assert(e>=0);let r=og(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{let s=r[i],l=r[i+1]-1;for(C.assert(Zd(o.charCodeAt(l)));s<=l&&Zd(o.charCodeAt(l));)l--;return l}}function E6(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Ol(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function pm(e){return!Ol(e)}function xte(e,t){return sl(e)?t===e.expression:$l(e)?t===e.modifiers:Tu(e)?t===e.initializer:Po(e)?t===e.questionToken&&Ku(e):Nc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||BL(e.modifiers,t,fl):Ud(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||BL(e.modifiers,t,fl):Nl(e)?t===e.exclamationToken:Ml(e)?t===e.typeParameters||t===e.type||BL(e.typeParameters,t,sl):jf(e)?t===e.typeParameters||BL(e.typeParameters,t,sl):_p(e)?t===e.typeParameters||t===e.type||BL(e.typeParameters,t,sl):sw(e)?t===e.modifiers||BL(e.modifiers,t,fl):!1}function BL(e,t,r){return!e||Mo(t)||!r(t)?!1:jn(e,t)}function s0e(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 l0e(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 c0e(e){return jh(e)||!!(Qa(e)&2097152)}function fg(e,t){return s0e(e,t,jh)}function QB(e,t){return s0e(e,t,c0e)}function d0e(e,t){return l0e(e,t,jh)}function HS(e,t){return l0e(e,t,c0e)}function ZB(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){let i=e.substring(t,r);return!!(Oze.test(i)||zze.test(i)||Bze.test(i)||Wze.test(i)||Fze.test(i)||Gze.test(i))}return!1}function A6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function Rte(e,t){let r=new Map(t.map(l=>[`${ca(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Co(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 mb(e,t,r){if(Ol(e))return e.pos;if(PR(e)||e.kind===12)return La((t??Wn(e)).text,e.pos,!1,!0);if(r&&Zp(e))return mb(e.jsDoc[0],t);if(e.kind===353){t??(t=Wn(e));let i=Ic(bj(e,t));if(i)return mb(i,t,r)}return La((t??Wn(e)).text,e.pos,!1,!1,JN(e))}function eG(e,t){let r=!Ol(e)&&bm(e)?ga(e.modifiers,zc):void 0;return r?La((t||Wn(e)).text,r.end):mb(e,t)}function Dte(e,t){let r=!Ol(e)&&bm(e)&&e.modifiers?Ba(e.modifiers):void 0;return r?La((t||Wn(e)).text,r.end):mb(e,t)}function u1(e,t,r=!1){return BN(e.text,t,r)}function Dze(e){return!!Dn(e,K0)}function I6(e){return!!(fc(e)&&e.exportClause&&w_(e.exportClause)&&C_(e.exportClause.name))}function hb(e){return e.kind===11?e.text:Vi(e.escapedText)}function p1(e){return e.kind===11?Cl(e.text):e.escapedText}function C_(e){return(e.kind===11?e.text:e.escapedText)==="default"}function BN(e,t,r=!1){if(Ol(t))return"";let i=e.substring(r?t.pos:La(e,t.pos),t.end);return Dze(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(`
`)),i}function Al(e,t=!1){return u1(Wn(e),e,t)}function Cze(e){return e.pos}function wR(e,t){return Yv(e,t,Cze,js)}function Qa(e){let t=e.emitNode;return t&&t.flags||0}function Wm(e){let t=e.emitNode;return t&&t.internalFlags||0}var tG=Cu(()=>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","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:ae})),AsyncIterator:new Map(Object.entries({es2015:ae})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:ae})),AsyncIterableIterator:new Map(Object.entries({es2018:ae})),AsyncGenerator:new Map(Object.entries({es2018:ae})),AsyncGeneratorFunction:new Map(Object.entries({es2018:ae})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),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"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),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"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),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"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:ae,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"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:ae})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:ae})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:ae,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:ae,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),Cte=(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))(Cte||{});function Nte(e,t,r){if(t&&Nze(e,r))return u1(t,e);switch(e.kind){case 11:{let i=r&2?GG:r&1||Qa(e)&16777216?L_:nW;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=r&1||Qa(e)&16777216?L_:nW,o=e.rawText??zG(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 C.fail(`Literal kind '${e.kind}' not accounted for.`)}function Nze(e,t){if(Os(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(ep(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!cD(e)}function Mte(e){return Bo(e)?`"${L_(e)}"`:""+e}function Pte(e){return xc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function nG(e){return(ty(e)&7)!==0||rG(e)}function rG(e){let t=qh(e);return t.kind===261&&t.parent.kind===300}function gu(e){return pc(e)&&(e.name.kind===11||N_(e))}function x6(e){return pc(e)&&e.name.kind===11}function iG(e){return pc(e)&&ka(e.name)}function Mze(e){return pc(e)||He(e)}function GL(e){return Pze(e.valueDeclaration)}function Pze(e){return!!e&&e.kind===268&&!e.body}function Lte(e){return e.kind===308||e.kind===268||MR(e)}function N_(e){return!!(e.flags&2048)}function f1(e){return gu(e)&&oG(e)}function oG(e){switch(e.parent.kind){case 308:return Gc(e.parent);case 269:return gu(e.parent.parent)&&Yi(e.parent.parent.parent)&&!Gc(e.parent.parent.parent)}return!1}function aG(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!f1(r)&&!(pc(r)&&N_(r)))}function Lze(e){return e===1||100<=e&&e<=199}function OR(e,t){return Gc(e)||Lze(vu(t))&&!!e.commonJsModuleIndicator}function sG(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(Vd(t,"alwaysStrict")||Bie(e.statements)||Gc(e)||gm(t))}function lG(e){return!!(e.flags&33554432)||di(e,128)}function cG(e,t){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!MR(t)}return!1}function dG(e){switch(C.type(e),e.kind){case 339:case 347:case 324:return!0;default:return uG(e)}}function uG(e){switch(C.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function iI(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function kte(e){return iI(e)||h1(e)}function wte(e){return iI(e)||nk(e)}function R6(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function Ote(e){return VL(e)||pc(e)||Zh(e)||Yu(e)}function VL(e){return iI(e)||fc(e)}function D6(e){return Dn(e.parent,t=>!!(hU(t)&1))}function sh(e){return Dn(e.parent,t=>cG(t,t.parent))}function Wte(e,t){let r=sh(e);for(;r;)t(r),r=sh(r)}function ws(e){return!e||WL(e)===0?"(Missing)":Al(e)}function Fte(e){return e.declaration?ws(e.declaration.parameters[0].name):void 0}function jL(e){return e.kind===168&&!df(e.expression)}function GN(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 10:case 15:return Cl(e.text);case 168:return df(e.expression)?Cl(e.expression.text):void 0;case 296:return xI(e);default:return C.assertNever(e)}}function oI(e){return C.checkDefined(GN(e))}function Cp(e){switch(e.kind){case 110:return"this";case 81:case 80:return WL(e)===0?Kr(e):Al(e);case 167:return Cp(e.left)+"."+Cp(e.right);case 212:return He(e.name)||eo(e.name)?Cp(e.expression)+"."+Cp(e.name):C.assertNever(e.name);case 312:return Cp(e.left)+"#"+Cp(e.right);case 296:return Cp(e.namespace)+":"+Cp(e.name);default:return C.assertNever(e)}}function Ar(e,t,...r){let i=Wn(e);return wf(i,e,t,...r)}function WR(e,t,r,...i){let o=La(e.text,t.pos);return Fc(e,o,t.end-o,r,...i)}function wf(e,t,r,...i){let o=qS(e,t);return Fc(e,o.start,o.length,r,...i)}function mg(e,t,r,i){let o=qS(e,t);return C6(e,o.start,o.length,r,i)}function UL(e,t,r,i){let o=La(e.text,t.pos);return C6(e,o,t.end-o,r,i)}function zte(e,t,r){C.assertGreaterThanOrEqual(t,0),C.assertGreaterThanOrEqual(r,0),C.assertLessThanOrEqual(t,e.length),C.assertLessThanOrEqual(t+r,e.length)}function C6(e,t,r,i,o){return zte(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o,canonicalHead:i.canonicalHead}}function pG(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 Bte(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Gte(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Vte(e,...t){return{code:e.code,messageText:TI(e,...t)}}function Vh(e,t){let r=lg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return ic(i,r.getTokenEnd())}function jte(e,t){let r=lg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function kze(e,t){let r=La(e.text,t.pos);if(t.body&&t.body.kind===242){let{line:i}=ca(e,t.body.pos),{line:o}=ca(e,t.body.end);if(i<o)return Id(r,zL(i,e)-r+1)}return ic(r,t.end)}function qS(e,t){let r=t;switch(t.kind){case 308:{let s=La(e.text,0,!1);return s===e.text.length?Id(0,0):Vh(e,s)}case 261:case 209:case 264:case 232:case 265:case 268:case 267:case 307:case 263:case 219:case 175:case 178:case 179:case 266:case 173:case 172:case 275:r=t.name;break;case 220:return kze(e,t);case 297:case 298:{let s=La(e.text,t.pos),l=t.statements.length>0?t.statements[0].pos:t.end;return ic(s,l)}case 254:case 230:{let s=La(e.text,t.pos);return Vh(e,s)}case 239:{let s=La(e.text,t.expression.end);return Vh(e,s)}case 351:{let s=La(e.text,t.tagName.pos);return Vh(e,s)}case 177:{let s=t,l=La(e.text,s.pos),u=lg(e.languageVersion,!0,e.languageVariant,e.text,void 0,l),d=u.scan();for(;d!==137&&d!==1;)d=u.scan();let g=u.getTokenEnd();return ic(l,g)}}if(r===void 0)return Vh(e,t.pos);C.assert(!mh(r));let i=Ol(r),o=i||NI(t)?r.pos:La(e.text,r.pos);return i?(C.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(C.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),ic(o,r.end)}function $y(e){return e.kind===308&&!Np(e)}function Np(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Of(e){return e.scriptKind===6}function C0(e){return!!(I0(e)&4096)}function HL(e){return!!(I0(e)&8&&!Dp(e,e.parent))}function qL(e){return(ty(e)&7)===6}function JL(e){return(ty(e)&7)===4}function FR(e){return(ty(e)&7)===2}function Ute(e){let t=ty(e)&7;return t===2||t===4||t===6}function N6(e){return(ty(e)&7)===1}function JS(e){return e.kind===214&&e.expression.kind===108}function Yu(e){if(e.kind!==214)return!1;let t=e.expression;return t.kind===102||fE(t)&&t.keywordToken===102&&t.name.escapedText==="defer"}function zR(e){return fE(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function ry(e){return Zh(e)&&lv(e.argument)&&ka(e.argument.literal)}function jh(e){return e.kind===245&&e.expression.kind===11}function KL(e){return!!(Qa(e)&2097152)}function M6(e){return KL(e)&&Ql(e)}function wze(e){return He(e.name)&&!e.initializer}function P6(e){return KL(e)&&ac(e)&&Vn(e.declarationList.declarations,wze)}function fG(e,t){return e.kind!==12?sg(t.text,e.pos):void 0}function mG(e,t){let r=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?so(ib(t,e.pos),sg(t,e.pos)):sg(t,e.pos);return Un(r,i=>i.end<=e.end&&t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}var Oze=/^\/\/\/\s*<reference\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,Wze=/^\/\/\/\s*<reference\s+types\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,Fze=/^\/\/\/\s*<reference\s+lib\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,zze=/^\/\/\/\s*<amd-dependency\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,Bze=/^\/\/\/\s*<amd-module\s+(?:\S.*?)??\/>/,Gze=/^\/\/\/\s*<reference\s+no-default-lib\s*=\s*(?:'[^']*'|"[^"]*")\s*\/>/;function Uh(e){if(183<=e.kind&&e.kind<=206)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!==223;case 234:return u0e(e);case 169:return e.parent.kind===201||e.parent.kind===196;case 80:(e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e)&&(e=e.parent),C.assert(e.kind===80||e.kind===167||e.kind===212,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{let{parent:t}=e;if(t.kind===187)return!1;if(t.kind===206)return!t.isTypeOf;if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 234:return u0e(t);case 169:return e===t.constraint;case 346:return e===t.constraint;case 173:case 172:case 170:case 261:return e===t.type;case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:return e===t.type;case 180:case 181:case 182:return e===t.type;case 217:return e===t.type;case 214:case 215:case 216:return jn(t.typeArguments,e)}}}return!1}function u0e(e){return _3(e.parent)||VI(e.parent)||Op(e.parent)&&!fW(e)}function _b(e,t){return r(e);function r(i){switch(i.kind){case 254:return t(i);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return Jo(i,r)}}}function Hte(e,t){return r(e);function r(i){switch(i.kind){case 230:t(i);let o=i.expression;o&&r(o);return;case 267:case 265:case 268:case 266:return;default:if(Yo(i)){if(i.name&&i.name.kind===168){r(i.name.expression);return}}else Uh(i)||Jo(i,r)}}}function hG(e){return e&&e.kind===189?e.elementType:e&&e.kind===184?ig(e.typeArguments):void 0}function qte(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function VN(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function jN(e){return e.parent.kind===262&&e.parent.parent.kind===244}function Jte(e){return Ir(e)?Wa(e.parent)&&Nr(e.parent.parent)&&oc(e.parent.parent)===2||L6(e.parent):!1}function L6(e){return Ir(e)?Nr(e)&&oc(e)===1:!1}function Kte(e){return(yi(e)?FR(e)&&He(e.name)&&jN(e):Po(e)?nE(e)&&Wc(e):Tu(e)&&nE(e))||L6(e)}function Xte(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function _G(e,t){for(;;){if(t&&t(e),e.statement.kind!==257)return e.statement;e=e.statement}}function m1(e){return e&&e.kind===242&&Yo(e.parent)}function fm(e){return e&&e.kind===175&&e.parent.kind===211}function k6(e){return(e.kind===175||e.kind===178||e.kind===179)&&(e.parent.kind===211||e.parent.kind===232)}function Yte(e){return e&&e.kind===1}function $te(e){return e&&e.kind===0}function BR(e,t,r,i){return Je(e?.properties,o=>{if(!Nc(o))return;let s=GN(o.name);return t===s||i&&i===s?r(o):void 0})}function UN(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ni(t,Wa)}}function w6(e,t,r){return XL(e,t,i=>Cd(i.initializer)?hn(i.initializer.elements,o=>ka(o)&&o.text===r):void 0)}function XL(e,t,r){return BR(UN(e),t,r)}function cf(e){return Dn(e.parent,Yo)}function Qte(e){return Dn(e.parent,Ms)}function hd(e){return Dn(e.parent,ui)}function Zte(e){return Dn(e.parent,t=>ui(t)||Yo(t)?"quit":$l(t))}function O6(e){return Dn(e.parent,MR)}function W6(e){let t=Dn(e.parent,r=>ui(r)?"quit":zc(r));return t&&ui(t.parent)?hd(t.parent):hd(t??e)}function yu(e,t,r){for(C.assert(e.kind!==308);;){if(e=e.parent,!e)return C.fail();switch(e.kind){case 168:if(r&&ui(e.parent.parent))return e;e=e.parent.parent;break;case 171:e.parent.kind===170&&Tc(e.parent.parent)?e=e.parent.parent:Tc(e.parent)&&(e=e.parent);break;case 220:if(!t)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function ene(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function F6(e){He(e)&&(Cc(e.parent)||Ql(e.parent))&&e.parent.name===e&&(e=e.parent);let t=yu(e,!0,!1);return Yi(t)}function tne(e){let t=yu(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function YL(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!t)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:e.parent.kind===170&&Tc(e.parent.parent)?e=e.parent.parent:Tc(e.parent)&&(e=e.parent);break}}}function N0(e){if(e.kind===219||e.kind===220){let t=e,r=e.parent;for(;r.kind===218;)t=r,r=r.parent;if(r.kind===214&&r.expression===t)return r}}function fp(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function $L(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===110}function z6(e){var t;return!!e&&yi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function nne(e){return!!e&&(Ud(e)||Nc(e))&&Nr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function QL(e){switch(e.kind){case 184:return e.typeName;case 234:return Ds(e.expression)?e.expression:void 0;case 80:case 167:return e}}function B6(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function ZL(e,t,r,i){if(e&&nd(t)&&eo(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return r!==void 0&&(e?Cc(r):ui(r)&&!A1(t)&&!$G(t));case 178:case 179:case 175:return t.body!==void 0&&r!==void 0&&(e?Cc(r):ui(r));case 170:return e?r!==void 0&&r.body!==void 0&&(r.kind===177||r.kind===175||r.kind===179)&&T1(r)!==t&&i!==void 0&&i.kind===264:!1}return!1}function GR(e,t,r,i){return uf(t)&&ZL(e,t,r,i)}function ek(e,t,r,i){return GR(e,t,r,i)||HN(e,t,r)}function HN(e,t,r){switch(t.kind){case 264:return vt(t.members,i=>ek(e,i,t,r));case 232:return!e&&vt(t.members,i=>ek(e,i,t,r));case 175:case 179:case 177:return vt(t.parameters,i=>GR(e,i,t,r));default:return!1}}function Qy(e,t){if(GR(e,t))return!0;let r=gg(t);return!!r&&HN(e,r,t)}function gG(e,t,r){let i;if(db(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=E1(r.members,t),u=uf(o)?o:s&&uf(s)?s:void 0;if(!u||t!==u)return!1;i=l?.parameters}else Nl(t)&&(i=t.parameters);if(GR(e,t,r))return!0;if(i){for(let o of i)if(!vb(o)&&GR(e,o,t,r))return!0}return!1}function yG(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return yG(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function VR(e){let{parent:t}=e;return t.kind===287||t.kind===286||t.kind===288?t.tagName===e:!1}function M_(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!Yu(e.parent)||e.parent.expression!==e;case 234:return!Op(e.parent)&&!VI(e.parent);case 167:for(;e.parent.kind===167;)e=e.parent;return e.parent.kind===187||ZA(e.parent)||UM(e.parent)||X0(e.parent)||VR(e);case 312:for(;X0(e.parent);)e=e.parent;return e.parent.kind===187||ZA(e.parent)||UM(e.parent)||X0(e.parent)||VR(e);case 81:return Nr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===187||ZA(e.parent)||UM(e.parent)||X0(e.parent)||VR(e))return!0;case 9:case 10:case 11:case 15:case 110:return G6(e);default:return!1}}function G6(e){let{parent:t}=e;switch(t.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return t.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return t.expression===e;case 249:let r=t;return r.initializer===e&&r.initializer.kind!==262||r.condition===e||r.incrementor===e;case 250:case 251:let i=t;return i.initializer===e&&i.initializer.kind!==262||i.expression===e;case 217:case 235:return e===t.expression;case 240:return e===t.expression;case 168:return e===t.expression;case 171:case 295:case 294:case 306:return!0;case 234:return t.expression===e&&!Uh(t);case 305:return t.objectAssignmentInitializer===e;case 239:return e===t.expression;default:return M_(t)}}function V6(e){for(;e.kind===167||e.kind===80;)e=e.parent;return e.kind===187}function rne(e){return w_(e)&&!!e.parent.moduleSpecifier}function M0(e){return e.kind===272&&e.moduleReference.kind===284}function qN(e){return C.assert(M0(e)),e.moduleReference.expression}function vG(e){return h1(e)&&tD(e.initializer).arguments[0]}function KS(e){return e.kind===272&&e.moduleReference.kind!==284}function hg(e){return e?.kind===308}function Mu(e){return Ir(e)}function Ir(e){return!!e&&!!(e.flags&524288)}function j6(e){return!!e&&!!(e.flags&134217728)}function U6(e){return!Of(e)}function JN(e){return!!e&&!!(e.flags&16777216)}function H6(e){return wp(e)&&He(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function $u(e,t){if(e.kind!==214)return!1;let{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;let o=i[0];return!t||cs(o)}function tk(e){return p0e(e,!1)}function h1(e){return p0e(e,!0)}function ine(e){return Ha(e)&&h1(e.parent.parent)}function p0e(e,t){return yi(e)&&!!e.initializer&&$u(t?tD(e.initializer):e.initializer,!0)}function nk(e){return ac(e)&&e.declarationList.declarations.length>0&&Vn(e.declarationList.declarations,t=>tk(t))}function rk(e){return e===39||e===34}function q6(e,t){return u1(t,e).charCodeAt(0)===34}function KN(e){return Nr(e)||Ks(e)||He(e)||Zo(e)}function ik(e){return Ir(e)&&e.initializer&&Nr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Ds(e.name)&&jR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function XN(e){let t=ik(e);return t&&P0(t,Tb(e.name))}function Vze(e,t){return Je(e.properties,r=>Nc(r)&&He(r.name)&&r.name.escapedText==="value"&&r.initializer&&P0(r.initializer,t))}function aI(e){if(e&&e.parent&&Nr(e.parent)&&e.parent.operatorToken.kind===64){let t=Tb(e.parent.left);return P0(e.parent.right,t)||jze(e.parent.left,e.parent.right,t)}if(e&&Zo(e)&&YS(e)){let t=Vze(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function P0(e,t){if(Zo(e)){let r=ds(e.expression);return r.kind===219||r.kind===220?e:void 0}if(e.kind===219||e.kind===232||e.kind===220||Wa(e)&&(e.properties.length===0||t))return e}function jze(e,t,r){let i=Nr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&P0(t.right,r);if(i&&jR(e,t.left))return i}function one(e){let t=yi(e.parent)?e.parent.name:Nr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&P0(e.right,Tb(t))&&Ds(t)&&jR(t,e.left)}function bG(e){if(Nr(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Nr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&He(t.left))return t.left}else if(yi(e.parent))return e.parent.name}function jR(e,t){return Hh(e)&&Hh(t)?Wf(e)===Wf(t):cg(e)&&ane(t)&&(t.expression.kind===110||He(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?jR(e,ak(t)):ane(e)&&ane(t)?iy(e)===iy(t)&&jR(e.expression,t.expression):!1}function ok(e){for(;id(e,!0);)e=e.right;return e}function XS(e){return He(e)&&e.escapedText==="exports"}function TG(e){return He(e)&&e.escapedText==="module"}function _g(e){return(qr(e)||SG(e))&&TG(e.expression)&&iy(e)==="exports"}function oc(e){let t=Uze(e);return t===5||Ir(e)?t:0}function YS(e){return et(e.arguments)===3&&qr(e.expression)&&He(e.expression.expression)&&Kr(e.expression.expression)==="Object"&&Kr(e.expression.name)==="defineProperty"&&df(e.arguments[1])&&$S(e.arguments[0],!0)}function ane(e){return qr(e)||SG(e)}function SG(e){return Ws(e)&&df(e.argumentExpression)}function _1(e,t){return qr(e)&&(!t&&e.expression.kind===110||He(e.name)&&$S(e.expression,!0))||J6(e,t)}function J6(e,t){return SG(e)&&(!t&&e.expression.kind===110||Ds(e.expression)||_1(e.expression,!0))}function $S(e,t){return Ds(e)||_1(e,t)}function ak(e){return qr(e)?e.name:e.argumentExpression}function Uze(e){if(Zo(e)){if(!YS(e))return 0;let t=e.arguments[0];return XS(t)||_g(t)?8:_1(t)&&iy(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ks(e.left)||Hze(ok(e))?0:$S(e.left.expression,!0)&&iy(e.left)==="prototype"&&Wa(EG(e))?6:sk(e.left)}function Hze(e){return FI(e)&&ep(e.expression)&&e.expression.text==="0"}function K6(e){if(qr(e))return e.name;let t=ds(e.argumentExpression);return ep(t)||cs(t)?t:e}function iy(e){let t=K6(e);if(t){if(He(t))return t.escapedText;if(cs(t)||ep(t))return Cl(t.text)}}function sk(e){if(e.expression.kind===110)return 4;if(_g(e))return 2;if($S(e.expression,!0)){if(Tb(e.expression))return 3;let t=e;for(;!He(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&iy(t)==="exports")&&_1(e))return 1;if($S(e,!0)||Ws(e)&&eW(e))return 5}return 0}function EG(e){for(;Nr(e.right);)e=e.right;return e.right}function lk(e){return Nr(e)&&oc(e)===3}function sne(e){return Ir(e)&&e.parent&&e.parent.kind===245&&(!Ws(e)||SG(e))&&!!x0(e.parent)}function YN(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Ir(t)&&!(r.flags&33554432))&&KN(r)&&!KN(t)||r.kind!==t.kind&&Mze(r))&&(e.valueDeclaration=t)}function lne(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===263||yi(t)&&t.initializer&&Yo(t.initializer)}function cne(e){switch(e?.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function sI(e){var t,r;switch(e.kind){case 261:case 209:return(t=Dn(e.initializer,i=>$u(i,!0)))==null?void 0:t.arguments[0];case 273:case 279:case 352:return ni(e.moduleSpecifier,cs);case 272:return ni((r=ni(e.moduleReference,uy))==null?void 0:r.expression,cs);case 274:case 281:return ni(e.parent.moduleSpecifier,cs);case 275:case 282:return ni(e.parent.parent.moduleSpecifier,cs);case 277:return ni(e.parent.parent.parent.moduleSpecifier,cs);case 206:return ry(e)?e.argument.literal:void 0;default:C.assertNever(e)}}function $N(e){return ck(e)||C.failBadSyntaxKind(e.parent)}function ck(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return Yu(e.parent)||$u(e.parent,!1)?e.parent:void 0;case 202:if(!ka(e))break;return ni(e.parent.parent,Zh);default:return}}function dk(e,t){return!!t.rewriteRelativeImportExtensions&&Qp(e)&&!ad(e)&&iE(e)}function lI(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return e.moduleReference.kind===284?e.moduleReference.expression:void 0;case 206:return ry(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return e.name.kind===11?e.name:void 0;default:return C.assertNever(e)}}function UR(e){switch(e.kind){case 273:return e.importClause&&ni(e.importClause.namedBindings,Ag);case 272:return e;case 279:return e.exportClause&&ni(e.exportClause,w_);default:return C.assertNever(e)}}function QS(e){return(e.kind===273||e.kind===352)&&!!e.importClause&&!!e.importClause.name}function dne(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=Ag(e.namedBindings)?t(e.namedBindings):Je(e.namedBindings.elements,t);if(r)return r}}function cI(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return e.questionToken!==void 0}return!1}function dI(e){let t=vD(e)?Ic(e.parameters):void 0,r=ni(t&&t.name,He);return!!r&&r.escapedText==="new"}function mm(e){return e.kind===347||e.kind===339||e.kind===341}function uk(e){return mm(e)||ym(e)}function qze(e){return od(e)&&Nr(e.expression)&&e.expression.operatorToken.kind===64?ok(e.expression):void 0}function f0e(e){return od(e)&&Nr(e.expression)&&oc(e.expression)!==0&&Nr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function m0e(e){switch(e.kind){case 244:let t=uI(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function uI(e){return ac(e)?Ic(e.declarationList.declarations):void 0}function h0e(e){return pc(e)&&e.body&&e.body.kind===268?e.body:void 0}function HR(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function pk(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function AG(e,t){let r;VN(e)&&Yy(e)&&Zp(e.initializer)&&(r=Xr(r,_0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Zp(i)&&(r=Xr(r,_0e(e,i.jsDoc))),i.kind===170){r=Xr(r,(t?zee:RR)(i));break}if(i.kind===169){r=Xr(r,(t?Gee:Bee)(i));break}i=IG(i)}return r||ae}function _0e(e,t){let r=Ba(t);return Ki(t,i=>{if(i===r){let o=Un(i.tags,s=>Jze(e,s));return i.tags===o?[i]:o}else return Un(i.tags,bD)})}function Jze(e,t){return!(HM(t)||g3(t))||!t.parent||!mh(t.parent)||!wu(t.parent.parent)||t.parent.parent===e}function IG(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||h0e(t)||id(e))return t;if(t.parent&&(uI(t.parent)===e||id(t)))return t.parent;if(t.parent&&t.parent.parent&&(uI(t.parent.parent)||m0e(t.parent.parent)===e||f0e(t.parent.parent)))return t.parent.parent}function fk(e){if(e.symbol)return e.symbol;if(!He(e.name))return;let t=e.name.escapedText,r=L0(e);if(!r)return;let i=hn(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function X6(e){if(mh(e.parent)&&e.parent.tags){let t=hn(e.parent.tags,mm);if(t)return t}return L0(e)}function xG(e){return n6(e,bD)}function L0(e){let t=k0(e);if(t)return Tu(t)&&t.type&&Yo(t.type)?t.type:Yo(t)?t:void 0}function k0(e){let t=g1(e);if(t)return f0e(t)||qze(t)||m0e(t)||uI(t)||h0e(t)||t}function g1(e){let t=qR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Zs(r.jsDoc))return r}function qR(e){return Dn(e.parent,mh)}function une(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&hn(r,i=>i.name.escapedText===t)}function g0e(e){return!!e.typeArguments}var pne=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(pne||{});function fne(e){let t=e.parent;for(;;){switch(t.kind){case 227:let r=t,i=r.operatorToken.kind;return sy(i)&&r.left===e?r:void 0;case 225:case 226:let o=t,s=o.operator;return s===46||s===47?o:void 0;case 250:case 251:let l=t;return l.initializer===e?l:void 0;case 218:case 210:case 231:case 236:e=t;break;case 306:e=t.parent;break;case 305:if(t.name!==e)return;e=t.parent;break;case 304:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function gb(e){let t=fne(e);if(!t)return 0;switch(t.kind){case 227:let r=t.operatorToken.kind;return r===64||cM(r)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function yb(e){return!!fne(e)}function Kze(e){let t=ds(e.right);return t.kind===227&&Mj(t.operatorToken.kind)}function RG(e){let t=fne(e);return!!t&&id(t,!0)&&Kze(t)}function mne(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function ZS(e){return Us(e)||Xs(e)||$A(e)||Ql(e)||Ml(e)}function y0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function mk(e){return y0e(e,197)}function Fm(e){return y0e(e,218)}function hne(e){let t;for(;e&&e.kind===197;)t=e,e=e.parent;return[t,e]}function QN(e){for(;dE(e);)e=e.type;return e}function ds(e,t){return Ul(e,t?-2147483647:1)}function DG(e){return e.kind!==212&&e.kind!==213?!1:(e=Fm(e.parent),e&&e.kind===221)}function y1(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function P_(e){return!Yi(e)&&!Qo(e)&&rd(e.parent)&&e.parent.name===e}function ZN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(va(t))return t.parent;case 80:if(rd(t))return t.name===e?t:void 0;if(Lu(t)){let r=t.parent;return ff(r)&&r.name===t?r:void 0}else{let r=t.parent;return Nr(r)&&oc(r)!==0&&(r.left.symbol||r.symbol)&&Oo(r)===e?r:void 0}case 81:return rd(t)&&t.name===e?t:void 0;default:return}}function hk(e){return df(e)&&e.parent.kind===168&&rd(e.parent.parent)}function _ne(e){let t=e.parent;switch(t.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return t.name===e;case 167:return t.right===e;case 209:case 277:return t.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function CG(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do e=e.parent;while(e.parent.kind===167);return CG(e)}}function Y6(e){return Ds(e)||uc(e)}function _k(e){let t=NG(e);return Y6(t)}function NG(e){return ll(e)?e.expression:e.right}function gne(e){return e.kind===305?e.name:e.kind===304?e.initializer:e.parent.right}function lh(e){let t=v1(e);if(t&&Ir(e)){let r=jee(e);if(r)return r.class}return t}function v1(e){let t=gk(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function JR(e){if(Ir(e))return Uee(e).map(t=>t.class);{let t=gk(e.heritageClauses,119);return t?.types}}function eM(e){return gd(e)?tM(e)||ae:ui(e)&&so(UA(lh(e)),JR(e))||ae}function tM(e){let t=gk(e.heritageClauses,96);return t?t.types:void 0}function gk(e,t){if(e){for(let r of e)if(r.token===t)return r}}function w0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Qu(e){return 83<=e&&e<=166}function MG(e){return 19<=e&&e<=79}function $6(e){return Qu(e)||MG(e)}function Q6(e){return 128<=e&&e<=166}function PG(e){return Qu(e)&&!Q6(e)}function pI(e){let t=OS(e);return t!==void 0&&PG(t)}function LG(e){let t=FS(e);return!!t&&!Q6(t)}function KR(e){return 2<=e&&e<=7}var yne=(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))(yne||{});function dc(e){if(!e)return 4;let t=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(t|=1);case 220:di(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function nM(e){switch(e.kind){case 263:case 219:case 220:case 175:return e.body!==void 0&&e.asteriskToken===void 0&&di(e,1024)}return!1}function df(e){return cs(e)||ep(e)}function Z6(e){return j0(e)&&(e.operator===40||e.operator===41)&&ep(e.operand)}function oy(e){let t=Oo(e);return!!t&&eW(t)}function eW(e){if(!(e.kind===168||e.kind===213))return!1;let t=Ws(e)?ds(e.argumentExpression):e.expression;return!df(t)&&!Z6(t)}function eE(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return Cl(e.text);case 168:let t=e.expression;return df(t)?Cl(t.text):Z6(t)?t.operator===41?_a(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return xI(e);default:return C.assertNever(e)}}function Hh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Wf(e){return cg(e)?Kr(e):fh(e)?NM(e):e.text}function rM(e){return cg(e)?e.escapedText:fh(e)?xI(e):Cl(e.text)}function yk(e,t){return`__#${Ta(e)}@${t}`}function iM(e){return po(e.escapedName,"__@")}function vne(e){return po(e.escapedName,"__#")}function Xze(e){return He(e)?Kr(e)==="__proto__":ka(e)&&e.text==="__proto__"}function tW(e,t){switch(e=Ul(e),e.kind){case 232:if(FU(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return typeof t=="function"?t(e):!0}function kG(e){switch(e.kind){case 304:return!Xze(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return He(e.name)&&!!e.initializer;case 170:return He(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 209:return He(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return He(e.left)}break;case 278:return!0}return!1}function Mp(e,t){if(!kG(e))return!1;switch(e.kind){case 304:return tW(e.initializer,t);case 305:return tW(e.objectAssignmentInitializer,t);case 261:case 170:case 209:case 173:return tW(e.initializer,t);case 227:return tW(e.right,t);case 278:return tW(e.expression,t)}}function wG(e){return e.escapedText==="push"||e.escapedText==="unshift"}function O0(e){return qh(e).kind===170}function qh(e){for(;e.kind===209;)e=e.parent.parent;return e}function OG(e){let t=e.kind;return t===177||t===219||t===263||t===220||t===175||t===178||t===179||t===268||t===308}function Os(e){return dh(e.pos)||dh(e.end)}var bne=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(bne||{});function WG(e){let t=v0e(e),r=e.kind===215&&e.arguments!==void 0;return FG(e.kind,t,r)}function FG(e,t,r){switch(e){case 215:return r?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227: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 oM(e){let t=v0e(e),r=e.kind===215&&e.arguments!==void 0;return vk(e.kind,t,r)}function v0e(e){return e.kind===227?e.operatorToken.kind:e.kind===225||e.kind===226?e.operator:e.kind}var Tne=(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.LogicalOR=5]="LogicalOR",e[e.Coalesce=5]="Coalesce",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))(Tne||{});function vk(e,t,r){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227: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 bk(t)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return r?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function bk(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function XR(e){return Un(e,t=>{switch(t.kind){case 295:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function aM(){let e=[],t=[],r=new Map,i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(d){let g;if(d.file?g=r.get(d.file.fileName):g=e,!g)return;let _=Yv(g,d,Vs,nre);if(_>=0)return g[_];if(~_>0&&EW(d,g[~_-1]))return g[~_-1]}function s(d){let g;d.file?(g=r.get(d.file.fileName),g||(g=[],r.set(d.file.fileName,g),Kv(t,d.file.fileName,Wd))):(i&&(i=!1,e=e.slice()),g=e),Kv(g,d,nre,EW)}function l(){return i=!0,e}function u(d){if(d)return r.get(d)||[];let g=vc(t,_=>r.get(_));return e.length&&g.unshift(...e),g}}var Yze=/\$\{/g;function zG(e){return e.replace(Yze,"\\${")}function Sne(e){return!!((e.templateFlags||0)&2048)}function BG(e){return e&&!!(lE(e)?Sne(e):Sne(e.head)||vt(e.templateSpans,t=>Sne(t.literal)))}var $ze=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,Qze=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,Zze=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,eBe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function b0e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function tBe(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return eBe.get(e)||b0e(e.charCodeAt(0))}function L_(e,t){let r=t===96?Zze:t===39?Qze:$ze;return e.replace(r,tBe)}var T0e=/[^\u0000-\u007F]/g;function nW(e,t){return e=L_(e,t),T0e.test(e)?e.replace(T0e,r=>b0e(r.charCodeAt(0))):e}var nBe=/["\u0000-\u001f\u2028\u2029\u0085]/g,rBe=/['\u0000-\u001f\u2028\u2029\u0085]/g,iBe=new Map(Object.entries({'"':"&quot;","'":"&apos;"}));function oBe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function aBe(e){return e.charCodeAt(0)===0?"&#0;":iBe.get(e)||oBe(e.charCodeAt(0))}function GG(e,t){let r=t===39?rBe:nBe;return e.replace(r,aBe)}function hm(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&sBe(e.charCodeAt(0))?e.substring(1,t-1):e}function sBe(e){return e===39||e===34||e===96}function YR(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Tk=[""," "];function rW(e){let t=Tk[1];for(let r=Tk.length;r<=e;r++)Tk.push(Tk[r-1]+t);return Tk[e]}function Sk(){return Tk[1].length}function Ek(e){var t,r,i,o,s,l=!1;function u(N){let P=KA(N);P.length>1?(o=o+P.length-1,s=t.length-N.length+Ba(P),i=s-t.length===0):i=!1}function d(N){N&&N.length&&(i&&(N=rW(r)+N,i=!1),t+=N,u(N))}function g(N){N&&(l=!1),d(N)}function _(N){N&&(l=!0),d(N)}function v(){t="",r=0,i=!0,o=0,s=0,l=!1}function E(N){N!==void 0&&(t+=N,u(N),l=!1)}function A(N){N&&N.length&&g(N)}function R(N){(!i||N)&&(t+=e,o++,s=t.length,i=!0,l=!1)}return v(),{write:g,rawWrite:E,writeLiteral:A,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*Sk():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&ag(t.charCodeAt(t.length-1)),clear:v,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(N,P)=>g(N),writeTrailingSemicolon:g,writeComment:_}}function VG(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 tE(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function ay(e){return Fd(tE(e))}function jG(e,t,r){return t.moduleName||UG(e,t.fileName,r&&r.fileName)}function S0e(e,t){return e.getCanonicalFileName(To(t,e.getCurrentDirectory()))}function Ene(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=lI(r);if(!(o&&cs(o)&&!Qp(o.text)&&!S0e(e,i.path).includes(S0e(e,Hc(e.getCommonSourceDirectory())))))return jG(e,i)}function UG(e,t,r){let i=d=>e.getCanonicalFileName(d),o=ks(r?ci(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=To(t,e.getCurrentDirectory()),l=ER(o,s,o,i,!1),u=bu(l);return r?wS(u):u}function Ane(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=bu(lW(e,t,i.outDir)):o=bu(e),o+r}function Ine(e,t){return iW(e,t.getCompilerOptions(),t)}function iW(e,t,r){let i=t.declarationDir||t.outDir,o=i?xne(e,i,r.getCurrentDirectory(),r.getCommonSourceDirectory(),l=>r.getCanonicalFileName(l)):e,s=oW(o);return bu(o)+s}function oW(e){return Yl(e,[".mjs",".mts"])?".d.mts":Yl(e,[".cjs",".cts"])?".d.cts":Yl(e,[".json"])?".d.json.ts":".d.ts"}function HG(e){return Yl(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Yl(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Yl(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function qG(e,t,r,i){return r?rb(i(),lf(r,e,t)):e}function aW(e,t){var r;if(e.paths)return e.baseUrl??C.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function sW(e,t,r){let i=e.getCompilerOptions();if(i.outFile){let o=vu(i),s=i.emitDeclarationOnly||o===2||o===4;return Un(e.getSourceFiles(),l=>(s||!Gc(l))&&b1(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return Un(o,s=>b1(s,e,r))}}function b1(e,t,r){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Mu(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Of(e))return!0;if(t.getRedirectFromSourceFile(e.fileName))return!1;if(i.outFile)return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=To(mP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=xne(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Zg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function lW(e,t,r){return xne(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function xne(e,t,r,i,o){let s=To(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Qr(t,s)}function cW(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Il(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function E0e(e,t,r){if(e.length>Fh(e)&&!r(e)){let i=ci(e);E0e(i,t,r),t(e)}}function JG(e,t,r,i,o,s){try{i(e,t,r)}catch{E0e(ci(ya(e)),o,s),i(e,t,r)}}function sM(e,t){let r=og(e);return SN(r,t)}function $R(e,t){return SN(e,t)}function gg(e){return hn(e.members,t=>Ml(t)&&pm(t.body))}function lM(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&vb(e.parameters[0]);return e.parameters[t?1:0]}}function Rne(e){let t=lM(e);return t&&t.type}function T1(e){if(e.parameters.length&&!dv(e)){let t=e.parameters[0];if(vb(t))return t}}function vb(e){return bb(e.name)}function bb(e){return!!e&&e.kind===80&&KG(e)}function fI(e){return!!Dn(e,t=>t.kind===187?!0:t.kind===80||t.kind===167?!1:"quit")}function S1(e){if(!bb(e))return!1;for(;Lu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===187}function KG(e){return e.escapedText==="this"}function E1(e,t){let r,i,o,s;return oy(t)?(r=t,t.kind===178?o=t:t.kind===179?s=t:C.fail("Accessor has wrong kind")):Je(e,l=>{if(db(l)&&ua(l)===ua(t)){let u=eE(l.name),d=eE(t.name);u===d&&(r?i||(i=l):r=l,l.kind===178&&!o&&(o=l),l.kind===179&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function Rc(e){if(!Ir(e)&&Ql(e)||ym(e))return;let t=e.type;return t||!Ir(e)?t:PN(e)?e.typeExpression&&e.typeExpression.type:Ky(e)}function Dne(e){return e.type}function Pp(e){return dv(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Ir(e)?AL(e):void 0)}function dW(e){return Ki(R0(e),t=>lBe(t)?t.typeParameters:void 0)}function lBe(e){return vm(e)&&!(e.parent.kind===321&&(e.parent.tags.some(mm)||e.parent.tags.some(bD)))}function XG(e){let t=lM(e);return t&&Rc(t)}function cBe(e,t,r,i){dBe(e,t,r.pos,i)}function dBe(e,t,r,i){i&&i.length&&r!==i[0].pos&&$R(e,r)!==$R(e,i[0].pos)&&t.writeLine()}function Cne(e,t,r,i){r!==i&&$R(e,r)!==$R(e,i)&&t.writeLine()}function uBe(e,t,r,i,o,s,l,u){if(i&&i.length>0){let d=!1;for(let g of i)d&&(r.writeSpace(" "),d=!1),u(e,t,r,g.pos,g.end,l),g.hasTrailingNewLine?r.writeLine():d=!0;d&&s&&r.writeSpace(" ")}}function Nne(e,t,r,i,o,s,l){let u,d;if(l?o.pos===0&&(u=Un(sg(e,o.pos),g)):u=sg(e,o.pos),u){let _=[],v;for(let E of u){if(v){let A=$R(t,v.end);if($R(t,E.pos)>=A+2)break}_.push(E),v=E}if(_.length){let E=$R(t,Ba(_).end);$R(t,La(e,o.pos))>=E+2&&(cBe(t,r,o,u),uBe(e,t,r,_,!1,!0,s,i),d={nodePos:o.pos,detachedCommentEndPos:Ba(_).end})}}return d;function g(_){return A6(e,_.pos)}}function QR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=AR(t,i),u=t.length,d;for(let g=i,_=l.line;g<o;_++){let v=_+1===u?e.length+1:t[_+1];if(g!==i){d===void 0&&(d=A0e(e,t[l.line],i));let A=r.getIndent()*Sk()-d+A0e(e,g,v);if(A>0){let R=A%Sk(),N=rW((A-R)/Sk());for(r.rawWrite(N);R;)r.rawWrite(" "),R--}else r.rawWrite("")}pBe(e,o,r,s,g,v),g=v}}else r.writeComment(e.substring(i,o))}function pBe(e,t,r,i,o,s){let l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function A0e(e,t,r){let i=0;for(;t<r&&zh(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=Sk()-i%Sk():i++;return i}function YG(e){return Gd(e)!==0}function Mne(e){return Zy(e)!==0}function Lp(e,t){return!!mI(e,t)}function di(e,t){return!!Pne(e,t)}function ua(e){return Tc(e)&&Wc(e)||$l(e)}function Wc(e){return di(e,256)}function uW(e){return Lp(e,16)}function A1(e){return di(e,64)}function $G(e){return di(e,128)}function Jh(e){return di(e,512)}function nE(e){return Lp(e,8)}function uf(e){return di(e,32768)}function mI(e,t){return Gd(e)&t}function Pne(e,t){return Zy(e)&t}function Lne(e,t,r){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=QG(e)|536870912),r||t&&Ir(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=I0e(e)|268435456),x0e(e.modifierFlagsCache)):fBe(e.modifierFlagsCache))}function Gd(e){return Lne(e,!0)}function kne(e){return Lne(e,!0,!0)}function Zy(e){return Lne(e,!1)}function I0e(e){let t=0;return e.parent&&!to(e)&&(Ir(e)&&(Hee(e)&&(t|=8388608),qee(e)&&(t|=16777216),Jee(e)&&(t|=33554432),Kee(e)&&(t|=67108864),Xee(e)&&(t|=134217728)),Yee(e)&&(t|=65536)),t}function fBe(e){return e&65535}function x0e(e){return e&131071|(e&260046848)>>>23}function mBe(e){return x0e(I0e(e))}function wne(e){return QG(e)|mBe(e)}function QG(e){let t=bm(e)?Kh(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Kh(e){let t=0;if(e)for(let r of e)t|=hI(r.kind);return t}function hI(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 171:return 32768}return 0}function Ak(e){return e===57||e===56}function One(e){return Ak(e)||e===54}function cM(e){return e===76||e===77||e===78}function ZG(e){return Nr(e)&&cM(e.operatorToken.kind)}function pW(e){return Ak(e)||e===61}function Ik(e){return Nr(e)&&pW(e.operatorToken.kind)}function sy(e){return e>=64&&e<=79}function eV(e){let t=tV(e);return t&&!t.isImplements?t.class:void 0}function tV(e){if(dy(e)){if(Op(e.parent)&&ui(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(VI(e.parent)){let t=k0(e.parent);if(t&&ui(t))return{class:t,isImplements:!1}}}}function id(e,t){return Nr(e)&&(t?e.operatorToken.kind===64:sy(e.operatorToken.kind))&&Xu(e.left)}function ev(e){if(id(e,!0)){let t=e.left.kind;return t===211||t===210}return!1}function fW(e){return eV(e)!==void 0}function Ds(e){return e.kind===80||Rk(e)}function Pu(e){switch(e.kind){case 80:return e;case 167:do e=e.left;while(e.kind!==80);return e;case 212:do e=e.expression;while(e.kind!==80);return e}}function xk(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===237||e.kind===212&&xk(e.expression)||e.kind===218&&xk(e.expression)}function Rk(e){return qr(e)&&He(e.name)&&Ds(e.expression)}function Dk(e){if(qr(e)){let t=Dk(e.expression);if(t!==void 0)return t+"."+Cp(e.name)}else if(Ws(e)){let t=Dk(e.expression);if(t!==void 0&&bc(e.argumentExpression))return t+"."+eE(e.argumentExpression)}else{if(He(e))return Vi(e.escapedText);if(fh(e))return NM(e)}}function Tb(e){return _1(e)&&iy(e)==="prototype"}function dM(e){return e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e||e.parent.kind===237&&e.parent.name===e}function nV(e){return!!e.parent&&(qr(e.parent)&&e.parent.name===e||Ws(e.parent)&&e.parent.argumentExpression===e)}function Wne(e){return Lu(e.parent)&&e.parent.right===e||qr(e.parent)&&e.parent.name===e||X0(e.parent)&&e.parent.right===e}function mW(e){return Nr(e)&&e.operatorToken.kind===104}function Fne(e){return mW(e.parent)&&e===e.parent.right}function rV(e){return e.kind===211&&e.properties.length===0}function zne(e){return e.kind===210&&e.elements.length===0}function uM(e){if(!(!hBe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function hBe(e){return e&&et(e.declarations)>0&&di(e.declarations[0],2048)}function hW(e){return hn(jBe,t=>El(e,t))}function _Be(e){let t=[],r=e.length;for(let i=0;i<r;i++){let 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)):C.assert(!1,"Unexpected code point")}return t}var _I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Bne(e){let t="",r=_Be(e),i=0,o=r.length,s,l,u,d;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,d=r[i+2]&63,i+1>=o?u=d=64:i+2>=o&&(d=64),t+=_I.charAt(s)+_I.charAt(l)+_I.charAt(u)+_I.charAt(d),i+=3;return t}function gBe(e){let t="",r=0,i=e.length;for(;r<i;){let 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 Gne(e,t){return e&&e.base64encode?e.base64encode(t):Bne(t)}function Vne(e,t){if(e&&e.base64decode)return e.base64decode(t);let r=t.length,i=[],o=0;for(;o<r&&t.charCodeAt(o)!==_I.charCodeAt(64);){let s=_I.indexOf(t[o]),l=_I.indexOf(t[o+1]),u=_I.indexOf(t[o+2]),d=_I.indexOf(t[o+3]),g=(s&63)<<2|l>>4&3,_=(l&15)<<4|u>>2&15,v=(u&3)<<6|d&63;_===0&&u!==0?i.push(g):v===0&&d!==0?i.push(g,_):i.push(g,_,v),o+=4}return gBe(i)}function iV(e,t){let r=Bo(t)?t:t.readFile(e);if(!r)return;let i=Ck(r);if(i===void 0){let o=qj(e,r);o.error||(i=o.config)}return i}function ZR(e,t){return iV(e,t)||{}}function Ck(e){try{return JSON.parse(e)}catch{return}}function ch(e,t){return!t.directoryExists||t.directoryExists(e)}var yBe=`\r
`,vBe=`
`;function tv(e){switch(e.newLine){case 0:return yBe;case 1:case void 0:return vBe}}function Ff(e,t=e){return C.assert(t>=e||t===-1),{pos:e,end:t}}function _W(e,t){return Ff(e.pos,t)}function W0(e,t){return Ff(t,e.end)}function ly(e){let t=bm(e)?ga(e.modifiers,zc):void 0;return t&&!dh(t.end)?W0(e,t.end):e}function Xh(e){if(Po(e)||Nl(e))return W0(e,e.name.pos);let t=bm(e)?Zs(e.modifiers):void 0;return t&&!dh(t.end)?W0(e,t.end):ly(e)}function oV(e,t){return Ff(e,e+_a(t).length)}function rE(e,t){return Une(e,e,t)}function gW(e,t,r){return zf(pM(e,r,!1),pM(t,r,!1),r)}function jne(e,t,r){return zf(e.end,t.end,r)}function Une(e,t,r){return zf(pM(e,r,!1),t.end,r)}function Nk(e,t,r){return zf(e.end,pM(t,r,!1),r)}function aV(e,t,r,i){let o=pM(t,r,i);return EN(r,e.end,o)}function R0e(e,t,r){return EN(r,e.end,t.end)}function Hne(e,t){return!zf(e.pos,e.end,t)}function zf(e,t,r){return EN(r,e,t)===0}function pM(e,t,r){return dh(e.pos)?-1:La(t.text,e.pos,!1,r)}function qne(e,t,r,i){let o=La(r.text,e,!1,i),s=bBe(o,t,r);return EN(r,s??t,o)}function Jne(e,t,r,i){let o=La(r.text,e,!1,i);return EN(r,e,Math.min(t,o))}function Zu(e,t){return sV(e.pos,e.end,t)}function sV(e,t,r){return e<=r.pos&&t>=r.end}function bBe(e,t=0,r){for(;e-- >t;)if(!ag(r.text.charCodeAt(e)))return e}function lV(e){let t=jo(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function fM(e){return Un(e.declarations,Mk)}function Mk(e){return yi(e)&&e.initializer!==void 0}function cV(e){return e.watch&&Rs(e,"watch")}function zm(e){e.close()}function Wl(e){return e.flags&33554432?e.links.checkFlags:0}function Bf(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&hn(e.declarations,_p)||e.flags&32768&&hn(e.declarations,jf)||e.valueDeclaration,i=I0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Wl(e)&6){let 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 xd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function eD(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function yW(e){return mM(e)===1}function gI(e){return mM(e)!==0}function mM(e){let{parent:t}=e;switch(t?.kind){case 218:return mM(t);case 226:case 225:let{operator:r}=t;return r===46||r===47?2:0;case 227:let{left:i,operatorToken:o}=t;return i===e&&sy(o.kind)?o.kind===64?1:2:0;case 212:return t.name!==e?0:mM(t);case 304:{let s=mM(t.parent);return e===t.name?TBe(s):s}case 305:return e===t.objectAssignmentInitializer?0:mM(t.parent);case 210:return mM(t);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function TBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return C.assertNever(e)}}function dV(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!dV(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function mp(e,t){e.forEach(t),e.clear()}function yg(e,t,r){let{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t?.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function hM(e,t,r){yg(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Kne(e){if(e.flags&32){let t=cy(e);return!!t&&di(t,64)}return!1}function cy(e){var t;return(t=e.declarations)==null?void 0:t.find(ui)}function Hr(e){return e.flags&3899393?e.objectFlags:0}function vW(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&sw(e.declarations[0])}function Xne({moduleSpecifier:e}){return ka(e)?e.text:Al(e)}function uV(e){let t;return Jo(e,r=>{pm(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(pm(r[i])){t=r[i];break}}),t}function _m(e,t){return e.has(t)?!1:(e.add(t),!0)}function yI(e){return ui(e)||gd(e)||ku(e)}function pV(e){return e>=183&&e<=206||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===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function Ks(e){return e.kind===212||e.kind===213}function fV(e){return e.kind===212?e.name:(C.assert(e.kind===213),e.argumentExpression)}function bW(e){return e.kind===276||e.kind===280}function tD(e){for(;Ks(e);)e=e.expression;return e}function Yne(e,t){if(Ks(e.parent)&&nV(e))return r(e.parent);function r(i){if(i.kind===212){let o=t(i.name);if(o!==void 0)return o}else if(i.kind===213)if(He(i.argumentExpression)||cs(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Ks(i.expression))return r(i.expression);if(He(i.expression))return t(i.expression)}}function nD(e,t){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(t)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function SBe(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 EBe(e,t){this.flags=t,(C.isDebugging||xr)&&(this.checker=e)}function ABe(e,t){this.flags=t,C.isDebugging&&(this.checker=e)}function $ne(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 IBe(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 xBe(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 RBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}var Rd={getNodeConstructor:()=>$ne,getTokenConstructor:()=>IBe,getIdentifierConstructor:()=>xBe,getPrivateIdentifierConstructor:()=>$ne,getSourceFileConstructor:()=>$ne,getSymbolConstructor:()=>SBe,getTypeConstructor:()=>EBe,getSignatureConstructor:()=>ABe,getSourceMapSourceConstructor:()=>RBe},D0e=[];function C0e(e){D0e.push(e),e(Rd)}function Qne(e){Object.assign(Rd,e),Je(D0e,t=>t(Rd))}function vg(e,t){return e.replace(/\{(\d+)\}/g,(r,i)=>""+C.checkDefined(t[+i]))}var TW;function Zne(e){TW=e}function ere(e){!TW&&e&&(TW=e())}function Ho(e){return TW&&TW[e.key]||e.message}function vI(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),zte(t,r,i);let l=Ho(o);return vt(s)&&(l=vg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function DBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function N0e(e,t){let r=t.fileName||"",i=t.text.length;C.assertEqual(e.fileName,r),C.assertLessThanOrEqual(e.start,i),C.assertLessThanOrEqual(e.start+e.length,i);let 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(let s of e.relatedInformation)DBe(s)&&s.fileName===r?(C.assertLessThanOrEqual(s.start,i),C.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(N0e(s,t))):o.relatedInformation.push(s)}return o}function bI(e,t){let r=[];for(let i of e)r.push(N0e(i,t));return r}function Fc(e,t,r,i,...o){zte(e.text,t,r);let s=Ho(i);return vt(o)&&(s=vg(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function TI(e,...t){let r=Ho(e);return vt(t)&&(r=vg(r,t)),r}function Il(e,...t){let r=Ho(e);return vt(t)&&(r=vg(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 SW(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 qo(e,t,...r){let i=Ho(t);return vt(r)&&(i=vg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function tre(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function mV(e){return e.file?e.file.path:void 0}function _M(e,t){return nre(e,t)||CBe(e,t)||0}function nre(e,t){let r=hV(e),i=hV(t);return Wd(mV(e),mV(t))||js(e.start,t.start)||js(e.length,t.length)||js(r,i)||NBe(e,t)||0}function CBe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?js(t.relatedInformation.length,e.relatedInformation.length)||Je(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return _M(r,o)})||0:e.relatedInformation?-1:1}function NBe(e,t){let r=_V(e),i=_V(t);typeof r!="string"&&(r=r.messageText),typeof i!="string"&&(i=i.messageText);let o=typeof e.messageText!="string"?e.messageText.next:void 0,s=typeof t.messageText!="string"?t.messageText.next:void 0,l=Wd(r,i);return l||(l=MBe(o,s),l)?l:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function MBe(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:M0e(e,t)||P0e(e,t)}function M0e(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;let r=js(t.length,e.length);if(r)return r;for(let i=0;i<t.length;i++)if(r=M0e(e[i].next,t[i].next),r)return r;return 0}function P0e(e,t){let r;for(let i=0;i<t.length;i++){if(r=Wd(e[i].messageText,t[i].messageText),r)return r;if(e[i].next!==void 0&&(r=P0e(e[i].next,t[i].next),r))return r}return 0}function EW(e,t){let r=hV(e),i=hV(t),o=_V(e),s=_V(t);return Wd(mV(e),mV(t))===0&&js(e.start,t.start)===0&&js(e.length,t.length)===0&&js(r,i)===0&&PBe(o,s)}function hV(e){var t;return((t=e.canonicalHead)==null?void 0:t.code)||e.code}function _V(e){var t;return((t=e.canonicalHead)==null?void 0:t.messageText)||e.messageText}function PBe(e,t){let r=typeof e=="string"?e:e.messageText,i=typeof t=="string"?t:t.messageText;return Wd(r,i)===0}function Pk(e){return e===4||e===2||e===1||e===6?1:0}function L0e(e){if(e.transformFlags&2)return nu(e)||J0(e)?e:Jo(e,L0e)}function LBe(e){return e.isDeclarationFile?void 0:L0e(e)}function kBe(e,t){return(RE(e,t)===99||Yl(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function Lk(e){switch(ire(e)){case 3:return o=>{o.externalModuleIndicator=yw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=yw(o)};case 2:let t=[yw];(e.jsx===4||e.jsx===5)&&t.push(LBe),t.push(kBe);let r=Ip(...t);return o=>void(o.externalModuleIndicator=r(o,e))}}function gV(e){let t=ru(e);return 3<=t&&t<=99||kk(e)||wk(e)}function qbt(e){return e}var Dd={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Dd.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Dd.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102: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=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=Dd.module.computeValue(e);return 100<=t&&t<=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(Dd.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Dd.esModuleInterop.computeValue(e)||Dd.module.computeValue(e)===4||Dd.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Dd.moduleResolution.computeValue(e);if(!rD(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=>{let t=Dd.moduleResolution.computeValue(e);if(!rD(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(Dd.module.computeValue(e)){case 102:case 199:return!0}return Dd.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Dd.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Dd.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?Dd.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Vd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Vd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Vd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Vd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Vd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Vd(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Vd(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Vd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Vd(e,"useUnknownInCatchVariables")}},gM=Dd,rre=Dd.allowImportingTsExtensions.computeValue,Ga=Dd.target.computeValue,vu=Dd.module.computeValue,ru=Dd.moduleResolution.computeValue,ire=Dd.moduleDetection.computeValue,gm=Dd.isolatedModules.computeValue,Yh=Dd.esModuleInterop.computeValue,SI=Dd.allowSyntheticDefaultImports.computeValue,kk=Dd.resolvePackageJsonExports.computeValue,wk=Dd.resolvePackageJsonImports.computeValue,I1=Dd.resolveJsonModule.computeValue,hp=Dd.declaration.computeValue,Sb=Dd.preserveConstEnums.computeValue,x1=Dd.incremental.computeValue,AW=Dd.declarationMap.computeValue,Eb=Dd.allowJs.computeValue,Ok=Dd.useDefineForClassFields.computeValue;function Wk(e){return e>=5&&e<=99}function IW(e){switch(vu(e)){case 0:case 4:case 3:return!1}return!0}function ore(e){return e.allowUnreachableCode===!1}function are(e){return e.allowUnusedLabels===!1}function rD(e){return e>=3&&e<=99||e===100}function sre(e){return 101<=e&&e<=199||e===200||e===99}function Vd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function xW(e){return qc(Bj.type,(t,r)=>t===e?r:void 0)}function yV(e){return e.useDefineForClassFields!==!1&&Ga(e)>=9}function lre(e,t){return tI(t,e,loe)}function cre(e,t){return tI(t,e,coe)}function dre(e,t){return tI(t,e,doe)}function RW(e,t){return t.strictFlag?Vd(e,t.name):t.allowJsFlag?Eb(e):e[t.name]}function DW(e){let t=e.jsx;return t===2||t===4||t===5}function Fk(e,t){let r=t?.pragmas.get("jsximportsource"),i=Mo(r)?r[r.length-1]:r,o=t?.pragmas.get("jsxruntime"),s=Mo(o)?o[o.length-1]:o;if(s?.arguments.factory!=="classic")return e.jsx===4||e.jsx===5||e.jsxImportSource||i||s?.arguments.factory==="automatic"?i?.arguments.factory||e.jsxImportSource||"react":void 0}function CW(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function vV(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 bV(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,g)=>(o||(o=new Map)).set(d,g),setSymlinkedDirectory:(d,g)=>{let _=ks(d,e,t);xM(_)||(_=Hc(_),g!==!1&&!r?.has(_)&&(i||(i=lm())).add(g.realPath,d),(r||(r=new Map)).set(_,g))},setSymlinksFromResolutions(d,g,_){C.assert(!s),s=!0,d(v=>u(this,v.resolvedModule)),g(v=>u(this,v.resolvedTypeReferenceDirective)),_.forEach(v=>u(this,v.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s,setSymlinksFromResolution(d){u(this,d)},hasAnySymlinks:l};function l(){return!!o?.size||!!r&&!!qc(r,d=>!!d)}function u(d,g){if(!g||!g.originalPath||!g.resolvedFileName)return;let{resolvedFileName:_,originalPath:v}=g;d.setSymlinkedFile(ks(v,e,t),_);let[E,A]=wBe(_,v,e,t)||ae;E&&A&&d.setSymlinkedDirectory(A,{real:Hc(E),realPath:Hc(ks(E,e,t))})}}function wBe(e,t,r,i){let o=zd(To(e,r)),s=zd(To(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!k0e(o[o.length-2],i)&&!k0e(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[A0(o),A0(s)]:void 0}function k0e(e,t){return e!==void 0&&(t(e)==="node_modules"||po(e,"@"))}function OBe(e){return uB(e.charCodeAt(0))?e.slice(1):void 0}function TV(e,t,r){let i=zz(e,t,r);return i===void 0?void 0:OBe(i)}var ure=/[^\w\s/]/g;function w0e(e){return e.replace(ure,WBe)}function WBe(e){return"\\"+e}var FBe=[42,63],zBe=["node_modules","bower_components","jspm_packages"],pre=`(?!(?:${zBe.join("|")})(?:/|$))`,O0e={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${pre}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>mre(e,O0e.singleAsteriskRegexFragment)},W0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${pre}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>mre(e,W0e.singleAsteriskRegexFragment)},F0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>mre(e,F0e.singleAsteriskRegexFragment)},fre={files:O0e,directories:W0e,exclude:F0e};function yM(e,t,r){let i=NW(e,t,r);return!i||!i.length?void 0:`^(?:${i.map(l=>`(?:${l})`).join("|")})${r==="exclude"?"(?:$|/)":"$"}`}function NW(e,t,r){if(!(e===void 0||e.length===0))return Ki(e,i=>i&&MW(i,t,r,fre[r]))}function SV(e){return!/[.*?]/.test(e)}function EV(e,t,r){let i=e&&MW(e,t,r,fre[r]);return i&&`^(?:${i})${r==="exclude"?"(?:$|/)":"$"}`}function MW(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=fre[r]){let l="",u=!1,d=U8(e,t),g=Ba(d);if(r!=="exclude"&&g==="**")return;d[0]=Jy(d[0]),SV(g)&&d.push("**","*");let _=0;for(let v of d){if(v==="**")l+=o;else if(r==="directories"&&(l+="(?:",_++),u&&(l+=Js),r!=="exclude"){let E="";v.charCodeAt(0)===42?(E+="(?:[^./]"+i+")?",v=v.substr(1)):v.charCodeAt(0)===63&&(E+="[^./]",v=v.substr(1)),E+=v.replace(ure,s),E!==v&&(l+=pre),l+=E}else l+=v.replace(ure,s);u=!0}for(;_>0;)l+=")?",_--;return l}function mre(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function PW(e,t,r,i,o){e=ya(e),o=ya(o);let s=Qr(o,e);return{includeFilePatterns:Vt(NW(r,s,"files"),l=>`^${l}$`),includeFilePattern:yM(r,s,"files"),includeDirectoryPattern:yM(r,s,"directories"),excludePattern:yM(t,s,"exclude"),basePaths:BBe(e,r,i)}}function nv(e,t){return new RegExp(e,t?"":"i")}function hre(e,t,r,i,o,s,l,u,d){e=ya(e),s=ya(s);let g=PW(e,r,i,o,s),_=g.includeFilePatterns&&g.includeFilePatterns.map(k=>nv(k,o)),v=g.includeDirectoryPattern&&nv(g.includeDirectoryPattern,o),E=g.excludePattern&&nv(g.excludePattern,o),A=_?_.map(()=>[]):[[]],R=new Map,N=Fd(o);for(let k of g.basePaths)P(k,Qr(s,k),l);return la(A);function P(k,F,O){let G=N(d(F));if(R.has(G))return;R.set(G,!0);let{files:j,directories:J}=u(k);for(let Z of Ap(j,Wd)){let q=Qr(k,Z),ye=Qr(F,Z);if(!(t&&!Yl(q,t))&&!(E&&E.test(ye)))if(!_)A[0].push(q);else{let ie=ho(_,K=>K.test(ye));ie!==-1&&A[ie].push(q)}}if(!(O!==void 0&&(O--,O===0)))for(let Z of Ap(J,Wd)){let q=Qr(k,Z),ye=Qr(F,Z);(!v||v.test(ye))&&(!E||!E.test(ye))&&P(q,ye,O)}}}function BBe(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=Rp(s)?s:ya(Qr(e,s));o.push(GBe(l))}o.sort(gR(!r));for(let s of o)Vn(i,l=>!dm(l,s,e,!r))&&i.push(s)}return i}function GBe(e){let t=Gi(e,FBe);return t<0?TR(e)?Jy(ci(e)):e:e.substring(0,e.lastIndexOf(Js,t))}function LW(e,t){return t||kW(e)||3}function kW(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}}var wW=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],AV=la(wW),VBe=[...wW,[".json"]],jBe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],UBe=[[".js",".jsx"],[".mjs"],[".cjs"]],iD=la(UBe),IV=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],HBe=[...IV,[".json"]],OW=[".d.ts",".d.cts",".d.mts"],zk=[".ts",".cts",".mts",".tsx"],WW=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function vM(e,t){let r=e&&Eb(e);if(!t||t.length===0)return r?IV:wW;let i=r?IV:wW,o=la(i);return[...i,...Ui(t,l=>l.scriptKind===7||r&&qBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function Bk(e,t){return!e||!I1(e)?t:t===IV?HBe:t===wW?VBe:[...t,[".json"]]}function qBe(e){return e===1||e===2}function bg(e){return vt(iD,t=>El(e,t))}function iE(e){return vt(AV,t=>El(e,t))}function _re(e){return vt(zk,t=>El(e,t))&&!ad(e)}var gre=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(gre||{});function JBe({imports:e},t=Ip(bg,iE)){return Hn(e,({text:r})=>Qp(r)&&!Yl(r,WW)?t(r):void 0)||!1}function yre(e,t,r,i){let o=ru(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return LD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!LD(r))return i&&JBe(i)?2:0;return l();function l(){let u=!1,d=i?.imports.length?i.imports:i&&Mu(i)?KBe(i).map(g=>g.arguments[0]):ae;for(let g of d)if(Qp(g.text)){if(s&&t===1&&lH(i,g,r)===99||Yl(g.text,WW))continue;if(iE(g.text))return 3;bg(g.text)&&(u=!0)}return u?2:0}}function KBe(e){let t=0,r;for(let i of e.statements){if(t>3)break;nk(i)?r=so(r,i.declarationList.declarations.map(o=>o.initializer)):od(i)&&$u(i.expression,!0)?r=Bn(r,i.expression):t++}return r||ae}function xV(e,t,r){if(!e)return!1;let i=vM(t,r);for(let o of la(Bk(t,i)))if(El(e,o))return!0;return!1}function z0e(e){let t=e.match(/\//g);return t?t.length:0}function Gk(e,t){return js(z0e(e),z0e(t))}var vre=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function bu(e){for(let t of vre){let r=bre(e,t);if(r!==void 0)return r}return e}function bre(e,t){return El(e,t)?Vk(e,t):void 0}function Vk(e,t){return e.substring(0,e.length-t.length)}function rv(e,t){return pL(e,t,vre,!1)}function EI(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var B0e=new WeakMap;function jk(e){let t=B0e.get(e);if(t!==void 0)return t;let r,i,o=Oh(e);for(let s of o){let l=EI(s);l!==void 0&&(typeof l=="string"?(r??(r=new Set)).add(l):(i??(i=[])).push(l))}return B0e.set(e,t={matchableStringSet:r,patterns:i}),t}function dh(e){return!(e>=0)}function FW(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||po(e,".d.")&&el(e,".ts")}function bM(e){return FW(e)||e===".json"}function TM(e){let t=Tg(e);return t!==void 0?t:C.fail(`File ${e} has unknown extension.`)}function G0e(e){return Tg(e)!==void 0}function Tg(e){return hn(vre,t=>El(e,t))}function SM(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var Tre={files:ae,directories:ae};function RV(e,t){let{matchableStringSet:r,patterns:i}=e;if(r?.has(t))return t;if(!(i===void 0||i.length===0))return Fz(i,o=>o,t)}function DV(e,t){let r=e.indexOf(t);return C.assert(r!==-1),e.slice(r)}function pa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),C.assert(e.relatedInformation!==ae,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Sre(e,t){C.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){let s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function CV(e){return{pos:mb(e),end:e.end}}function NV(e,t){let r=t.pos-1,i=Math.min(e.text.length,La(e.text,t.end)+1);return{pos:r,end:i}}function oD(e,t,r){return V0e(e,t,r,!1)}function Ere(e,t,r){return V0e(e,t,r,!0)}function V0e(e,t,r,i){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!i&&t.noCheck||r.isSourceOfProjectReferenceRedirect(e.fileName)||!EM(e,t)}function EM(e,t){if(e.checkJsDirective&&e.checkJsDirective.enabled===!1)return!1;if(e.scriptKind===3||e.scriptKind===4||e.scriptKind===5)return!0;let i=(e.scriptKind===1||e.scriptKind===2)&&SM(e,t);return zN(e,t.checkJs)||i||e.scriptKind===7}function zW(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&BQ(e,t,zW)}function AM(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:let g=e.length-1,_=0;for(;e.charCodeAt(_)===48;)_++;return e.slice(_,g)||"0"}let r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let g=i-1,_=0;g>=r;g--,_+=t){let v=_>>>4,E=e.charCodeAt(g),R=(E<=57?E-48:10+E-(E<=70?65:97))<<(_&15);s[v]|=R;let N=R>>>16;N&&(s[v+1]|=N)}let l="",u=s.length-1,d=!0;for(;d;){let g=0;d=!1;for(let _=u;_>=0;_--){let v=g<<16|s[_],E=v/10|0;s[_]=E,g=v-E*10,E&&!d&&(u=_,d=!0)}l=g+l}return l}function R1({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Are(e){if(BW(e,!1))return MV(e)}function MV(e){let t=e.startsWith("-"),r=AM(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function BW(e,t){if(e==="")return!1;let r=lg(99,!1),i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan(),s=o===41;s&&(o=r.scan());let l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===R1({negative:s,base10Value:AM(r.getTokenValue())}))}function F0(e){return!!(e.flags&33554432)||JN(e)||V6(e)||$Be(e)||YBe(e)||!(M_(e)||XBe(e))}function XBe(e){return He(e)&&Ud(e.parent)&&e.parent.name===e}function YBe(e){for(;e.kind===80||e.kind===212;)e=e.parent;if(e.kind!==168)return!1;if(di(e.parent,64))return!0;let t=e.parent.parent.kind;return t===265||t===188}function $Be(e){if(e.kind!==80)return!1;let t=Dn(e.parent,r=>{switch(r.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===265}function Ire(e){return wp(e)&&He(e.typeName)}function xre(e,t=Zv){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;i<o;i++){let s=e[i];if(!t(r,s))return!1}return!0}function IM(e,t){return e.pos=t,e}function aD(e,t){return e.end=t,e}function uh(e,t,r){return aD(IM(e,t),r)}function PV(e,t,r){return uh(e,t,t+r)}function Rre(e,t){return e&&(e.flags=t),e}function us(e,t){return e&&t&&(e.parent=t),e}function z0(e,t){if(!e)return e;return UI(e,PR(e)?r:o),e;function r(s,l){if(t&&s.parent===l)return"skip";us(s,l)}function i(s){if(Zp(s))for(let l of s.jsDoc)r(l,s),UI(l,r)}function o(s,l){return r(s,l)||i(s)}}function QBe(e){return!Kc(e)}function LV(e){return Cd(e)&&Vn(e.elements,QBe)}function Dre(e){for(C.assertIsDefined(e.parent);;){let t=e.parent;if(wu(t)){e=t;continue}if(od(t)||FI(t)||H0(t)&&(t.initializer===e||t.incrementor===e))return!0;if(BM(t)){if(e!==Ba(t.elements))return!0;e=t;continue}if(Nr(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function xM(e){return vt(B8,t=>e.includes(t))}function Cre(e){if(!e.parent)return;switch(e.kind){case 169:let{parent:r}=e;return r.kind===196?void 0:r.typeParameters;case 170:return e.parent.parameters;case 205:return e.parent.templateSpans;case 240:return e.parent.templateSpans;case 171:{let{parent:i}=e;return F1(i)?i.modifiers:void 0}case 299:return e.parent.heritageClauses}let{parent:t}=e;if(LR(e))return gE(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return l1(e)?t.members:void 0;case 193:case 194:return t.types;case 190:case 210:case 357:case 276:case 280:return t.elements;case 211:case 293:return t.properties;case 214:case 215:return Ri(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return OL(e)?t.children:void 0;case 287:case 286:return Ri(e)?t.typeArguments:void 0;case 242:case 297:case 298:case 269:return t.statements;case 270:return t.clauses;case 264:case 232:return Tc(e)?t.members:void 0;case 267:return py(e)?t.members:void 0;case 308:return t.statements}}function GW(e){if(!e.typeParameters){if(vt(e.parameters,t=>!Rc(t)))return!0;if(e.kind!==220){let t=Ic(e.parameters);if(!(t&&vb(t)))return!0}}return!1}function RM(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Nre(e){return e.kind===261&&e.parent.kind===300}function Ab(e){return e.kind===219||e.kind===220}function D1(e){return e.replace(/\$/g,()=>"\\$")}function Sg(e){return(+e).toString()===e}function Uk(e,t,r,i,o){let s=o&&e==="new";return!s&&pp(e,t)?L.createIdentifier(e):!i&&!s&&Sg(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function DM(e){return!!(e.flags&262144&&e.isThisType)}function VW(e){let t=0,r=0,i=0,o=0,s;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,d=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),d){case 0:e.indexOf(xg,l)===l&&(t=l,r=u,d=1);break;case 1:case 2:d===1&&e.charAt(l+1)==="@"?d=2:(i=u,d=3);break;case 3:e.indexOf(xg,l)===l?d=1:d=3;break}return o=l,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function AI(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return e.phaseModifier===156;case 277:return e.parent.parent.phaseModifier===156;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function Hk(e){return q0(e)||ac(e)||Ql(e)||Cc(e)||gd(e)||AI(e)||pc(e)&&!f1(e)&&!N_(e)}function qk(e){if(!PN(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===317}function kV(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&x_(e.charCodeAt(1),t):x_(r,t)}function Mre(e){var t;return((t=QV(e))==null?void 0:t.kind)===0}function jW(e){return Ir(e)&&(e.type&&e.type.kind===317||RR(e).some(qk))}function II(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||jW(e);case 349:case 342:return qk(e);default:return!1}}function Pre(e){let t=e.kind;return(t===212||t===213)&&zI(e.expression)}function wV(e){return Ir(e)&&wu(e)&&Zp(e)&&!!NB(e)}function OV(e){return C.checkDefined(UW(e))}function UW(e){let t=NB(e);return t&&t.typeExpression&&t.typeExpression.type}function CM(e){return He(e)?e.escapedText:xI(e)}function Jk(e){return He(e)?Kr(e):NM(e)}function Lre(e){let t=e.kind;return t===80||t===296}function xI(e){return`${e.namespace.escapedText}:${Kr(e.name)}`}function NM(e){return`${Kr(e.namespace)}:${Kr(e.name)}`}function WV(e){return He(e)?Kr(e):NM(e)}function Gf(e){return!!(e.flags&8576)}function Vf(e){return e.flags&8192?e.escapedName:e.flags&384?Cl(""+e.value):C.fail()}function RI(e){return!!e&&(qr(e)||Ws(e)||Nr(e))}function kre(e){return e===void 0?!1:!!OD(e.attributes)}var ZBe=String.prototype.replace;function oE(e,t){return ZBe.call(e,"*",t)}function HW(e){return He(e.name)?e.name.escapedText:Cl(e.name.text)}function wre(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function Jc(e,t=!1,r=!1,i=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:r,hasExternalReferences:i}}function Ore({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function r(o,s){let l=!1,u=!1,d=!1;switch(o=ds(o),o.kind){case 225:let g=r(o.operand,s);if(u=g.resolvedOtherFiles,d=g.hasExternalReferences,typeof g.value=="number")switch(o.operator){case 40:return Jc(g.value,l,u,d);case 41:return Jc(-g.value,l,u,d);case 55:return Jc(~g.value,l,u,d)}break;case 227:{let _=r(o.left,s),v=r(o.right,s);if(l=(_.isSyntacticallyString||v.isSyntacticallyString)&&o.operatorToken.kind===40,u=_.resolvedOtherFiles||v.resolvedOtherFiles,d=_.hasExternalReferences||v.hasExternalReferences,typeof _.value=="number"&&typeof v.value=="number")switch(o.operatorToken.kind){case 52:return Jc(_.value|v.value,l,u,d);case 51:return Jc(_.value&v.value,l,u,d);case 49:return Jc(_.value>>v.value,l,u,d);case 50:return Jc(_.value>>>v.value,l,u,d);case 48:return Jc(_.value<<v.value,l,u,d);case 53:return Jc(_.value^v.value,l,u,d);case 42:return Jc(_.value*v.value,l,u,d);case 44:return Jc(_.value/v.value,l,u,d);case 40:return Jc(_.value+v.value,l,u,d);case 41:return Jc(_.value-v.value,l,u,d);case 45:return Jc(_.value%v.value,l,u,d);case 43:return Jc(_.value**v.value,l,u,d)}else if((typeof _.value=="string"||typeof _.value=="number")&&(typeof v.value=="string"||typeof v.value=="number")&&o.operatorToken.kind===40)return Jc(""+_.value+v.value,l,u,d);break}case 11:case 15:return Jc(o.text,!0);case 229:return i(o,s);case 9:return Jc(+o.text);case 80:return t(o,s);case 212:if(Ds(o))return t(o,s);break;case 213:return e(o,s)}return Jc(void 0,l,u,d)}function i(o,s){let l=o.head.text,u=!1,d=!1;for(let g of o.templateSpans){let _=r(g.expression,s);if(_.value===void 0)return Jc(void 0,!0);l+=_.value,l+=g.literal.text,u||(u=_.resolvedOtherFiles),d||(d=_.hasExternalReferences)}return Jc(l,!0,u,d)}return r}function FV(e){return d1(e)&&wm(e.type)||HM(e)&&wm(e.typeExpression)}function Kk(e){let t=e.members;for(let r of t)if(r.kind===177&&pm(r.body))return r}function zV({compilerOptions:e,requireSymbol:t,argumentsSymbol:r,error:i,getSymbolOfDeclaration:o,globals:s,lookup:l,setRequiresScopeChangeCache:u=r1,getRequiresScopeChangeCache:d=r1,onPropertyWithInvalidInitializer:g=Qg,onFailedToResolveSymbol:_=r1,onSuccessfullyResolvedSymbol:v=r1}){var E=e.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",A=yV(e),R=da();return N;function N(G,j,J,Z,q,ye){var ie,K,pe;let de=G,fe,ve,xe,Y,Ce,Xe=!1,Se,re=Bo(j)?j:j.escapedText;e:for(;G;){if(re==="const"&&FV(G))return;if(kL(G)&&ve&&G.name===ve&&(ve=G,G=G.parent),R_(G)&&G.locals&&!$y(G)&&(fe=l(G.locals,re,J))){let be=!0;if(Yo(G)&&ve&&ve!==G.body?(J&fe.flags&788968&&ve.kind!==321&&(be=fe.flags&262144?!!(ve.flags&16)||ve===G.type||ve.kind===170||ve.kind===342||ve.kind===343||ve.kind===169:!1),J&fe.flags&3&&(P(fe,G,ve)?be=!1:fe.flags&1&&(be=ve.kind===170||!!(ve.flags&16)||ve===G.type&&!!Dn(fe.valueDeclaration,to)))):G.kind===195&&(be=ve===G.trueType),be)break e;fe=void 0}switch(Xe=Xe||k(G,ve),G.kind){case 308:if(!Np(G))break;case 268:let be=((ie=o(G))==null?void 0:ie.exports)||R;if(G.kind===308||pc(G)&&G.flags&33554432&&!N_(G)){if(fe=be.get("default")){let lt=uM(fe);if(lt&&fe.flags&J&&lt.escapedName===re)break e;fe=void 0}let Be=be.get(re);if(Be&&Be.flags===2097152&&(al(Be,282)||al(Be,281)))break}if(re!=="default"&&(fe=l(be,re,J&2623475)))if(Yi(G)&&G.commonJsModuleIndicator&&!((K=fe.declarations)!=null&&K.some(mm)))fe=void 0;else break e;break;case 267:if(fe=l(((pe=o(G))==null?void 0:pe.exports)||R,re,J&8)){Z&&gm(e)&&!(G.flags&33554432)&&Wn(G)!==Wn(fe.valueDeclaration)&&i(de,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Vi(re),E,`${Vi(o(G).escapedName)}.${Vi(re)}`);break e}break;case 173:if(!ua(G)){let Be=Kk(G.parent);Be&&Be.locals&&l(Be.locals,re,J&111551)&&(C.assertNode(G,Po),Y=G)}break;case 264:case 232:case 265:if(fe=l(o(G).members||R,re,J&788968)){if(!O(fe,G)){fe=void 0;break}if(ve&&ua(ve)){Z&&i(de,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(uc(G)&&J&32){let Be=G.name;if(Be&&re===Be.escapedText){fe=G.symbol;break e}}break;case 234:if(ve===G.expression&&G.parent.token===96){let Be=G.parent.parent;if(ui(Be)&&(fe=l(o(Be).members,re,J&788968))){Z&&i(de,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 168:if(Se=G.parent.parent,(ui(Se)||Se.kind===265)&&(fe=l(o(Se).members,re,J&788968))){Z&&i(de,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 220:if(Ga(e)>=2)break;case 175:case 177:case 178:case 179:case 263:if(J&3&&re==="arguments"){fe=r;break e}break;case 219:if(J&3&&re==="arguments"){fe=r;break e}if(J&16){let Be=G.name;if(Be&&re===Be.escapedText){fe=G.symbol;break e}}break;case 171:G.parent&&G.parent.kind===170&&(G=G.parent),G.parent&&(Tc(G.parent)||G.parent.kind===264)&&(G=G.parent);break;case 347:case 339:case 341:case 352:let Ne=qR(G);Ne&&(G=Ne.parent);break;case 170:ve&&(ve===G.initializer||ve===G.name&&Qo(ve))&&(Ce||(Ce=G));break;case 209:ve&&(ve===G.initializer||ve===G.name&&Qo(ve))&&O0(G)&&!Ce&&(Ce=G);break;case 196:if(J&262144){let Be=G.typeParameter.name;if(Be&&re===Be.escapedText){fe=G.typeParameter.symbol;break e}}break;case 282:ve&&ve===G.propertyName&&G.parent.parent.moduleSpecifier&&(G=G.parent.parent.parent);break}F(G,ve)&&(xe=G),ve=G,G=vm(G)?X6(G)||G.parent:(ff(G)||h3(G))&&L0(G)||G.parent}if(q&&fe&&(!xe||fe!==xe.symbol)&&(fe.isReferenced|=J),!fe){if(ve&&(C.assertNode(ve,Yi),ve.commonJsModuleIndicator&&re==="exports"&&J&ve.symbol.flags))return ve.symbol;ye||(fe=l(s,re,J))}if(!fe&&de&&Ir(de)&&de.parent&&$u(de.parent,!1))return t;if(Z){if(Y&&g(de,re,Y,fe))return;fe?v(de,fe,J,ve,Ce,Xe):_(de,j,J,Z)}return fe}function P(G,j,J){let Z=Ga(e),q=j;if(to(J)&&q.body&&G.valueDeclaration&&G.valueDeclaration.pos>=q.body.pos&&G.valueDeclaration.end<=q.body.end&&Z>=2){let K=d(q);return K===void 0&&(K=Je(q.parameters,ye)||!1,u(q,K)),!K}return!1;function ye(K){return ie(K.name)||!!K.initializer&&ie(K.initializer)}function ie(K){switch(K.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return ie(K.name);case 173:return Wc(K)?!A:ie(K.name);default:return PB(K)||eu(K)?Z<7:Ha(K)&&K.dotDotDotToken&&pf(K.parent)?Z<4:Ri(K)?!1:Jo(K,ie)||!1}}}function k(G,j){return G.kind!==220&&G.kind!==219?N1(G)||(Ms(G)||G.kind===173&&!ua(G))&&(!j||j!==G.name):j&&j===G.name?!1:G.asteriskToken||di(G,1024)?!0:!N0(G)}function F(G,j){switch(G.kind){case 170:return!!j&&j===G.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function O(G,j){if(G.declarations){for(let J of G.declarations)if(J.kind===169&&(vm(J.parent)?g1(J.parent):J.parent)===j)return!(vm(J.parent)&&hn(J.parent.parent.tags,mm))}return!1}}function qW(e,t=!0){switch(C.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 225:return e.operator===41?ep(e.operand)||t&&cD(e.operand):e.operator===40?ep(e.operand):!1;default:return!1}}function Wre(e){for(;e.kind===218;)e=e.expression;return e}function JW(e){switch(C.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function BV(e){let t=Dn(e,vl);return!!t&&!t.importClause}var Fre=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],zre=new Set(Fre),KW=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),sD=new Set([...Fre,...Fre.map(e=>`node:${e}`),...KW]);function XW(e,t,r,i){let o=Ir(e),s=/import|require/g;for(;s.exec(e.text)!==null;){let l=eGe(e,s.lastIndex,t);if(o&&$u(l,r))i(l,l.arguments[0]);else if(Yu(l)&&l.arguments.length>=1&&(!r||cs(l.arguments[0])))i(l,l.arguments[0]);else if(t&&ry(l))i(l,l.argument.literal);else if(t&&i_(l)){let u=lI(l);u&&ka(u)&&u.text&&i(l,u)}}}function eGe(e,t,r){let i=Ir(e),o=e,s=l=>{if(l.pos<=t&&(t<l.end||t===l.end&&l.kind===1))return l};for(;;){let l=i&&r&&Zp(o)&&Je(o.jsDoc,s)||Jo(o,s);if(!l||fE(l))return o;o=l}}function Bre(e){return Yo(e)||dv(e)||uE(e)}function GV(e){return Qv(e.fileName)}function VV(e){let t=GV(e);return zj.get(t)}function jV(e,t){return MM(void 0,e,r=>r&&t(r))}function MM(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,d){if(i){let _=i(l,d);if(_)return _}let g;return Je(u,(_,v)=>{if(_&&o?.has(_.sourceFile.path)){(g??(g=new Set)).add(_);return}let E=r(_,d,v);if(E||!_)return E;(o||(o=new Set)).add(_.sourceFile.path)})||Je(u,_=>_&&!g?.has(_)?s(_.commandLine.projectReferences,_.references,_):void 0)}}function UV(e,t,r){return e&&tGe(e,t,r)}function tGe(e,t,r){return BR(e,t,i=>Cd(i.initializer)?hn(i.initializer.elements,o=>ka(o)&&o.text===r):void 0)}function Gre(e,t,r){return HV(e,t,i=>ka(i.initializer)&&i.initializer.text===r?i.initializer:void 0)}function HV(e,t,r){return BR(e,t,r)}function _s(e,t=!0){let r=e&&j0e(e);return r&&!t&&kp(r),z0(r,!1)}function Xk(e,t,r){let i=r(e);return i?jr(i,e):i=j0e(e,r),i&&!t&&kp(i),i}function j0e(e,t){let r=t?s=>Xk(s,!0,t):_s,o=kn(e,r,void 0,t?s=>s&&qV(s,!0,t):s=>s&&C1(s),r);if(o===e){let s=ka(e)?jr(L.createStringLiteralFromNode(e),e):ep(e)?jr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return bt(s,e)}return o.parent=void 0,o}function C1(e,t=!0){if(e){let r=L.createNodeArray(e.map(i=>_s(i,t)),e.hasTrailingComma);return bt(r,e),r}return e}function qV(e,t,r){return L.createNodeArray(e.map(i=>Xk(i,t,r)),e.hasTrailingComma)}function kp(e){JV(e),Vre(e)}function JV(e){jre(e,1024,nGe)}function Vre(e){jre(e,2048,uV)}function jre(e,t,r){$h(e,t);let i=r(e);i&&jre(i,t,r)}function nGe(e){return Jo(e,t=>t)}function Ure(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:d,createBaseNode:g};function s(_){return new(o||(o=Rd.getSourceFileConstructor()))(_,-1,-1)}function l(_){return new(r||(r=Rd.getIdentifierConstructor()))(_,-1,-1)}function u(_){return new(i||(i=Rd.getPrivateIdentifierConstructor()))(_,-1,-1)}function d(_){return new(t||(t=Rd.getTokenConstructor()))(_,-1,-1)}function g(_){return new(e||(e=Rd.getNodeConstructor()))(_,-1,-1)}}function Hre(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:_,parenthesizeRightSideOfBinary:v,parenthesizeExpressionOfComputedPropertyName:E,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:R,parenthesizeExpressionOfExportDefault:N,parenthesizeExpressionOfNew:P,parenthesizeLeftSideOfAccess:k,parenthesizeOperandOfPostfixUnary:F,parenthesizeOperandOfPrefixUnary:O,parenthesizeExpressionsOfCommaDelimitedList:G,parenthesizeExpressionForDisallowedComma:j,parenthesizeExpressionOfExpressionStatement:J,parenthesizeConciseBodyOfArrowFunction:Z,parenthesizeCheckTypeOfConditionalType:q,parenthesizeExtendsTypeOfConditionalType:ye,parenthesizeConstituentTypesOfUnionType:K,parenthesizeConstituentTypeOfUnionType:ie,parenthesizeConstituentTypesOfIntersectionType:de,parenthesizeConstituentTypeOfIntersectionType:pe,parenthesizeOperandOfTypeOperator:fe,parenthesizeOperandOfReadonlyTypeOperator:ve,parenthesizeNonArrayTypeOfPostfixType:xe,parenthesizeElementTypesOfTupleType:Y,parenthesizeElementTypeOfTupleType:Ce,parenthesizeTypeOfOptionalType:Se,parenthesizeTypeArguments:Ne,parenthesizeLeadingTypeArgument:re};function i(Be){t||(t=new Map);let lt=t.get(Be);return lt||(lt=ce=>_(Be,ce),t.set(Be,lt)),lt}function o(Be){r||(r=new Map);let lt=r.get(Be);return lt||(lt=ce=>v(Be,void 0,ce),r.set(Be,lt)),lt}function s(Be,lt){return Be===61?lt===56||lt===57:lt===61?Be===56||Be===57:!1}function l(Be,lt,ce,De){let ge=Om(lt);if(Nr(ge)&&s(Be,ge.operatorToken.kind))return!0;let je=vk(227,Be),Ge=FG(227,Be);if(!ce&&lt.kind===220&&je>3)return!0;let We=oM(ge);switch(js(We,je)){case-1:return!(!ce&&Ge===1&&lt.kind===230);case 1:return!1;case 0:if(ce)return Ge===1;if(Nr(ge)&&ge.operatorToken.kind===Be){if(u(Be))return!1;if(Be===40){let Wt=De?d(De):0;if(LN(Wt)&&Wt===d(ge))return!1}}return WG(ge)===0}}function u(Be){return Be===42||Be===52||Be===51||Be===53||Be===28}function d(Be){if(Be=Om(Be),LN(Be.kind))return Be.kind;if(Be.kind===227&&Be.operatorToken.kind===40){if(Be.cachedLiteralKind!==void 0)return Be.cachedLiteralKind;let lt=d(Be.left),ce=LN(lt)&&lt===d(Be.right)?lt:0;return Be.cachedLiteralKind=ce,ce}return 0}function g(Be,lt,ce,De){return Om(lt).kind===218?lt:l(Be,lt,ce,De)?e.createParenthesizedExpression(lt):lt}function _(Be,lt){return g(Be,lt,!0)}function v(Be,lt,ce){return g(Be,ce,!1,lt)}function E(Be){return JM(Be)?e.createParenthesizedExpression(Be):Be}function A(Be){let lt=vk(228,58),ce=Om(Be),De=oM(ce);return js(De,lt)!==1?e.createParenthesizedExpression(Be):Be}function R(Be){let lt=Om(Be);return JM(lt)?e.createParenthesizedExpression(Be):Be}function N(Be){let lt=Om(Be),ce=JM(lt);if(!ce)switch(nD(lt,!1).kind){case 232:case 219:ce=!0}return ce?e.createParenthesizedExpression(Be):Be}function P(Be){let lt=nD(Be,!0);switch(lt.kind){case 214:return e.createParenthesizedExpression(Be);case 215:return lt.arguments?Be:e.createParenthesizedExpression(Be)}return k(Be)}function k(Be,lt){let ce=Om(Be);return Xu(ce)&&(ce.kind!==215||ce.arguments)&&(lt||!eu(ce))?Be:bt(e.createParenthesizedExpression(Be),Be)}function F(Be){return Xu(Be)?Be:bt(e.createParenthesizedExpression(Be),Be)}function O(Be){return VB(Be)?Be:bt(e.createParenthesizedExpression(Be),Be)}function G(Be){let lt=Zi(Be,j);return bt(e.createNodeArray(lt,Be.hasTrailingComma),Be)}function j(Be){let lt=Om(Be),ce=oM(lt),De=vk(227,28);return ce>De?Be:bt(e.createParenthesizedExpression(Be),Be)}function J(Be){let lt=Om(Be);if(Zo(lt)){let De=lt.expression,ge=Om(De).kind;if(ge===219||ge===220){let je=e.updateCallExpression(lt,bt(e.createParenthesizedExpression(De),De),lt.typeArguments,lt.arguments);return e.restoreOuterExpressions(Be,je,8)}}let ce=nD(lt,!1).kind;return ce===211||ce===219?bt(e.createParenthesizedExpression(Be),Be):Be}function Z(Be){return!ea(Be)&&(JM(Be)||nD(Be,!1).kind===211)?bt(e.createParenthesizedExpression(Be),Be):Be}function q(Be){switch(Be.kind){case 185:case 186:case 195:return e.createParenthesizedType(Be)}return Be}function ye(Be){switch(Be.kind){case 195:return e.createParenthesizedType(Be)}return Be}function ie(Be){switch(Be.kind){case 193:case 194:return e.createParenthesizedType(Be)}return q(Be)}function K(Be){return e.createNodeArray(Zi(Be,ie))}function pe(Be){switch(Be.kind){case 193:case 194:return e.createParenthesizedType(Be)}return ie(Be)}function de(Be){return e.createNodeArray(Zi(Be,pe))}function fe(Be){switch(Be.kind){case 194:return e.createParenthesizedType(Be)}return pe(Be)}function ve(Be){switch(Be.kind){case 199:return e.createParenthesizedType(Be)}return fe(Be)}function xe(Be){switch(Be.kind){case 196:case 199:case 187:return e.createParenthesizedType(Be)}return fe(Be)}function Y(Be){return e.createNodeArray(Zi(Be,Ce))}function Ce(Be){return Xe(Be)?e.createParenthesizedType(Be):Be}function Xe(Be){return yD(Be)?Be.postfix:uD(Be)||k_(Be)||dD(Be)||G0(Be)?Xe(Be.type):M1(Be)?Xe(Be.falseType):sv(Be)||WI(Be)?Xe(Ba(Be.types)):cE(Be)?!!Be.typeParameter.constraint&&Xe(Be.typeParameter.constraint):!1}function Se(Be){return Xe(Be)?e.createParenthesizedType(Be):xe(Be)}function re(Be){return rte(Be)&&Be.typeParameters?e.createParenthesizedType(Be):Be}function be(Be,lt){return lt===0?re(Be):Be}function Ne(Be){if(vt(Be))return e.createNodeArray(Zi(Be,be))}}var qre={getParenthesizeLeftSideOfBinaryForOperator:e=>Vs,getParenthesizeRightSideOfBinaryForOperator:e=>Vs,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Vs,parenthesizeConditionOfConditionalExpression:Vs,parenthesizeBranchOfConditionalExpression:Vs,parenthesizeExpressionOfExportDefault:Vs,parenthesizeExpressionOfNew:e=>ma(e,Xu),parenthesizeLeftSideOfAccess:e=>ma(e,Xu),parenthesizeOperandOfPostfixUnary:e=>ma(e,Xu),parenthesizeOperandOfPrefixUnary:e=>ma(e,VB),parenthesizeExpressionsOfCommaDelimitedList:e=>ma(e,s1),parenthesizeExpressionForDisallowedComma:Vs,parenthesizeExpressionOfExpressionStatement:Vs,parenthesizeConciseBodyOfArrowFunction:Vs,parenthesizeCheckTypeOfConditionalType:Vs,parenthesizeExtendsTypeOfConditionalType:Vs,parenthesizeConstituentTypesOfUnionType:e=>ma(e,s1),parenthesizeConstituentTypeOfUnionType:Vs,parenthesizeConstituentTypesOfIntersectionType:e=>ma(e,s1),parenthesizeConstituentTypeOfIntersectionType:Vs,parenthesizeOperandOfTypeOperator:Vs,parenthesizeOperandOfReadonlyTypeOperator:Vs,parenthesizeNonArrayTypeOfPostfixType:Vs,parenthesizeElementTypesOfTupleType:e=>ma(e,s1),parenthesizeElementTypeOfTupleType:Vs,parenthesizeTypeOfOptionalType:Vs,parenthesizeTypeArguments:e=>e&&ma(e,s1),parenthesizeLeadingTypeArgument:Vs};function Jre(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:d,convertToAssignmentElementTarget:g};function t(_,v){if(ea(_))return _;let E=e.createReturnStatement(_);bt(E,_);let A=e.createBlock([E],v);return bt(A,_),A}function r(_){var v;if(!_.body)return C.fail("Cannot convert a FunctionDeclaration without a body");let E=e.createFunctionExpression((v=a1(_))==null?void 0:v.filter(A=>!PI(A)&&!o3(A)),_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body);return jr(E,_),bt(E,_),PM(_)&&QW(E,!0),E}function i(_){var v;let E=e.createClassExpression((v=_.modifiers)==null?void 0:v.filter(A=>!PI(A)&&!o3(A)),_.name,_.typeParameters,_.heritageClauses,_.members);return jr(E,_),bt(E,_),PM(_)&&QW(E,!0),E}function o(_){if(Ha(_)){if(_.dotDotDotToken)return C.assertNode(_.name,He),jr(bt(e.createSpreadElement(_.name),_),_);let v=g(_.name);return _.initializer?jr(bt(e.createAssignment(v,_.initializer),_),_):v}return ma(_,St)}function s(_){if(Ha(_)){if(_.dotDotDotToken)return C.assertNode(_.name,He),jr(bt(e.createSpreadAssignment(_.name),_),_);if(_.propertyName){let v=g(_.name);return jr(bt(e.createPropertyAssignment(_.propertyName,_.initializer?e.createAssignment(v,_.initializer):v),_),_)}return C.assertNode(_.name,He),jr(bt(e.createShorthandPropertyAssignment(_.name,_.initializer),_),_)}return ma(_,ny)}function l(_){switch(_.kind){case 208:case 210:return d(_);case 207:case 211:return u(_)}}function u(_){return pf(_)?jr(bt(e.createObjectLiteralExpression(Vt(_.elements,s)),_),_):ma(_,Wa)}function d(_){return cv(_)?jr(bt(e.createArrayLiteralExpression(Vt(_.elements,o)),_),_):ma(_,Cd)}function g(_){return Qo(_)?l(_):ma(_,St)}}var Kre={convertToFunctionBlock:ha,convertToFunctionExpression:ha,convertToClassExpression:ha,convertToArrayAssignmentElement:ha,convertToObjectAssignmentElement:ha,convertToAssignmentPattern:ha,convertToObjectAssignmentPattern:ha,convertToArrayAssignmentPattern:ha,convertToAssignmentElementTarget:ha},KV=0,Xre=(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))(Xre||{}),U0e=[];function H0e(e){U0e.push(e)}function Yk(e,t){let r=e&8?Vs:jr,i=Cu(()=>e&1?qre:Hre(k)),o=Cu(()=>e&2?Kre:Jre(k)),s=Wh(T=>(M,V)=>or(M,T,V)),l=Wh(T=>M=>ut(T,M)),u=Wh(T=>M=>an(M,T)),d=Wh(T=>()=>Wo(T)),g=Wh(T=>M=>qE(T,M)),_=Wh(T=>(M,V)=>Mr(T,M,V)),v=Wh(T=>(M,V)=>yp(T,M,V)),E=Wh(T=>(M,V)=>Jb(T,M,V)),A=Wh(T=>(M,V)=>CT(T,M,V)),R=Wh(T=>(M,V,ue)=>My(T,M,V,ue)),N=Wh(T=>(M,V,ue)=>bC(T,M,V,ue)),P=Wh(T=>(M,V,ue,tt)=>NT(T,M,V,ue,tt)),k={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:F,createNumericLiteral:J,createBigIntLiteral:Z,createStringLiteral:ye,createStringLiteralFromNode:ie,createRegularExpressionLiteral:K,createLiteralLikeNode:pe,createIdentifier:ve,createTempVariable:xe,createLoopVariable:Y,createUniqueName:Ce,getGeneratedNameForNode:Xe,createPrivateIdentifier:re,createUniquePrivateName:Ne,getGeneratedPrivateNameForNode:Be,createToken:ce,createSuper:De,createThis:ge,createNull:je,createTrue:Ge,createFalse:We,createModifier:at,createModifiersFromModifierFlags:Wt,createQualifiedName:cn,updateQualifiedName:gn,createComputedPropertyName:Kn,updateComputedPropertyName:_t,createTypeParameterDeclaration:en,updateTypeParameterDeclaration:ir,createParameterDeclaration:Di,updateParameterDeclaration:lo,createDecorator:zt,updateDecorator:Zr,createPropertySignature:Ai,updatePropertySignature:Ni,createPropertyDeclaration:Ci,updatePropertyDeclaration:$e,createMethodSignature:At,updateMethodSignature:mn,createMethodDeclaration:dr,updateMethodDeclaration:ri,createConstructorDeclaration:Mn,updateConstructorDeclaration:Uo,createGetAccessorDeclaration:Ft,updateGetAccessorDeclaration:le,createSetAccessorDeclaration:ne,updateSetAccessorDeclaration:Fe,createCallSignature:dt,updateCallSignature:Lt,createConstructSignature:Ue,updateConstructSignature:Rt,createIndexSignature:It,updateIndexSignature:Ot,createClassStaticBlockDeclaration:qi,updateClassStaticBlockDeclaration:$o,createTemplateLiteralTypeSpan:nt,updateTemplateLiteralTypeSpan:Kt,createKeywordTypeNode:Sr,createTypePredicateNode:Oe,updateTypePredicateNode:Nt,createTypeReferenceNode:_e,updateTypeReferenceNode:B,createFunctionTypeNode:Ae,updateFunctionTypeNode:te,createConstructorTypeNode:Xt,updateConstructorTypeNode:Bt,createTypeQueryNode:Jn,updateTypeQueryNode:ft,createTypeLiteralNode:Mt,updateTypeLiteralNode:jt,createArrayTypeNode:Qt,updateArrayTypeNode:In,createTupleTypeNode:yn,updateTupleTypeNode:wt,createNamedTupleMember:En,updateNamedTupleMember:xn,createOptionalTypeNode:Ln,updateOptionalTypeNode:ln,createRestTypeNode:Ii,updateRestTypeNode:ra,createUnionTypeNode:Bl,updateUnionTypeNode:xl,createIntersectionTypeNode:Ps,updateIntersectionTypeNode:co,createConditionalTypeNode:Go,updateConditionalTypeNode:Sc,createInferTypeNode:$s,updateInferTypeNode:Ra,createImportTypeNode:Lo,updateImportTypeNode:fa,createParenthesizedType:is,updateParenthesizedType:qa,createThisTypeNode:Zt,createTypeOperatorNode:As,updateTypeOperatorNode:Hl,createIndexedAccessTypeNode:sc,updateIndexedAccessTypeNode:vd,createMappedTypeNode:Fs,updateMappedTypeNode:Ee,createLiteralTypeNode:$,updateLiteralTypeNode:pt,createTemplateLiteralType:Zl,updateTemplateLiteralType:vf,createObjectBindingPattern:qt,updateObjectBindingPattern:fn,createArrayBindingPattern:ur,updateArrayBindingPattern:si,createBindingElement:Dr,updateBindingElement:Fn,createArrayLiteralExpression:ro,updateArrayLiteralExpression:So,createObjectLiteralExpression:Ns,updateObjectLiteralExpression:Da,createPropertyAccessExpression:e&4?(T,M)=>Cr(Ec(T,M),262144):Ec,updatePropertyAccessExpression:mc,createPropertyAccessChain:e&4?(T,M,V)=>Cr(Hs(T,M,V),262144):Hs,updatePropertyAccessChain:Pl,createElementAccessExpression:Pd,updateElementAccessExpression:tf,createElementAccessChain:rp,updateElementAccessChain:ze,createCallExpression:er,updateCallExpression:go,createCallChain:Za,updateCallChain:es,createNewExpression:Va,updateNewExpression:Pc,createTaggedTemplateExpression:tl,updateTaggedTemplateExpression:Ll,createTypeAssertion:ql,updateTypeAssertion:nf,createParenthesizedExpression:bd,updateParenthesizedExpression:ld,createFunctionExpression:Gp,updateFunctionExpression:Eu,createArrowFunction:Jf,updateArrowFunction:B_,createDeleteExpression:Dg,updateDeleteExpression:Cg,createTypeOfExpression:ip,updateTypeOfExpression:Yc,createVoidExpression:bh,updateVoidExpression:bf,createAwaitExpression:u_,updateAwaitExpression:oe,createPrefixUnaryExpression:ut,updatePrefixUnaryExpression:tn,createPostfixUnaryExpression:an,updatePostfixUnaryExpression:wn,createBinaryExpression:or,updateBinaryExpression:Ti,createConditionalExpression:$i,updateConditionalExpression:z,createTemplateExpression:Ve,updateTemplateExpression:kt,createTemplateHead:ml,createTemplateMiddle:Ca,createTemplateTail:cd,createNoSubstitutionTemplateLiteral:Vp,createTemplateLiteralLikeNode:Vo,createYieldExpression:Tf,updateYieldExpression:Kf,createSpreadElement:Ty,updateSpreadElement:yv,createClassExpression:zu,updateClassExpression:G_,createOmittedExpression:Th,createExpressionWithTypeArguments:Am,updateExpressionWithTypeArguments:Vb,createAsExpression:Ye,updateAsExpression:mt,createNonNullExpression:Yt,updateNonNullExpression:Rn,createSatisfiesExpression:Qn,updateSatisfiesExpression:Lr,createNonNullChain:Yn,updateNonNullChain:lr,createMetaProperty:Oi,updateMetaProperty:Ro,createTemplateSpan:_i,updateTemplateSpan:Do,createSemicolonClassElement:Qi,createBlock:hl,updateBlock:op,createVariableStatement:Im,updateVariableStatement:Td,createEmptyStatement:xm,createExpressionStatement:jp,updateExpressionStatement:fT,createIfStatement:p_,updateIfStatement:V_,createDoStatement:mT,updateDoStatement:j_,createWhileStatement:pC,updateWhileStatement:QP,createForStatement:fC,updateForStatement:Ng,createForInStatement:hT,updateForInStatement:WE,createForOfStatement:vv,updateForOfStatement:FE,createContinueStatement:yx,updateContinueStatement:ZP,createBreakStatement:zE,updateBreakStatement:vx,createReturnStatement:_T,updateReturnStatement:mC,createWithStatement:BE,updateWithStatement:bx,createSwitchStatement:eS,updateSwitchStatement:jb,createLabeledStatement:Tx,updateLabeledStatement:Sx,createThrowStatement:tS,updateThrowStatement:Ub,createTryStatement:bv,updateTryStatement:Sy,createDebuggerStatement:Ey,createVariableDeclaration:Ay,updateVariableDeclaration:Hb,createVariableDeclarationList:gT,updateVariableDeclarationList:GE,createFunctionDeclaration:yT,updateFunctionDeclaration:ns,createClassDeclaration:hC,updateClassDeclaration:Iy,createInterfaceDeclaration:xy,updateInterfaceDeclaration:U_,createTypeAliasDeclaration:cl,updateTypeAliasDeclaration:qd,createEnumDeclaration:ap,updateEnumDeclaration:Jd,createModuleDeclaration:vT,updateModuleDeclaration:Au,createModuleBlock:H_,updateModuleBlock:Bu,createCaseBlock:Rm,updateCaseBlock:Hm,createNamespaceExportDeclaration:bT,updateNamespaceExportDeclaration:TT,createImportEqualsDeclaration:_C,updateImportEqualsDeclaration:Tv,createImportDeclaration:nS,updateImportDeclaration:Qe,createImportClause:jE,updateImportClause:Mg,createAssertClause:qm,updateAssertClause:Sv,createAssertEntry:qb,updateAssertEntry:Iu,createImportTypeAssertionContainer:Sh,updateImportTypeAssertionContainer:Dm,createImportAttributes:ST,updateImportAttributes:ja,createImportAttribute:Sf,updateImportAttribute:Ev,createNamespaceImport:UE,updateNamespaceImport:Ry,createNamespaceExport:rS,updateNamespaceExport:Xf,createNamedImports:Pg,updateNamedImports:ET,createImportSpecifier:Av,updateImportSpecifier:f_,createExportAssignment:iS,updateExportAssignment:AT,createExportDeclaration:Jr,updateExportDeclaration:Vr,createNamedExports:HE,updateNamedExports:Dy,createExportSpecifier:oS,updateExportSpecifier:gC,createMissingDeclaration:t2,createExternalModuleReference:zr,updateExternalModuleReference:xu,get createJSDocAllType(){return d(313)},get createJSDocUnknownType(){return d(314)},get createJSDocNonNullableType(){return v(316)},get updateJSDocNonNullableType(){return E(316)},get createJSDocNullableType(){return v(315)},get updateJSDocNullableType(){return E(315)},get createJSDocOptionalType(){return g(317)},get updateJSDocOptionalType(){return _(317)},get createJSDocVariadicType(){return g(319)},get updateJSDocVariadicType(){return _(319)},get createJSDocNamepathType(){return g(320)},get updateJSDocNamepathType(){return _(320)},createJSDocFunctionType:yC,updateJSDocFunctionType:Ex,createJSDocTypeLiteral:cu,updateJSDocTypeLiteral:q_,createJSDocTypeExpression:Eh,updateJSDocTypeExpression:Kb,createJSDocSignature:JE,updateJSDocSignature:Xb,createJSDocTemplateTag:sp,updateJSDocTemplateTag:Iv,createJSDocTypedefTag:IT,updateJSDocTypedefTag:Ax,createJSDocParameterTag:xT,updateJSDocParameterTag:Yb,createJSDocPropertyTag:Ix,updateJSDocPropertyTag:Cy,createJSDocCallbackTag:m_,updateJSDocCallbackTag:$b,createJSDocOverloadTag:RT,updateJSDocOverloadTag:xv,createJSDocAugmentsTag:Qb,updateJSDocAugmentsTag:Km,createJSDocImplementsTag:Ny,updateJSDocImplementsTag:Dx,createJSDocSeeTag:Lg,updateJSDocSeeTag:Zb,createJSDocImportTag:lp,updateJSDocImportTag:$f,createJSDocNameReference:dd,updateJSDocNameReference:aS,createJSDocMemberName:kg,updateJSDocMemberName:DT,createJSDocLink:KE,updateJSDocLink:wg,createJSDocLinkCode:vC,updateJSDocLinkCode:xx,createJSDocLinkPlain:Rx,updateJSDocLinkPlain:n2,get createJSDocTypeTag(){return N(345)},get updateJSDocTypeTag(){return P(345)},get createJSDocReturnTag(){return N(343)},get updateJSDocReturnTag(){return P(343)},get createJSDocThisTag(){return N(344)},get updateJSDocThisTag(){return P(344)},get createJSDocAuthorTag(){return A(331)},get updateJSDocAuthorTag(){return R(331)},get createJSDocClassTag(){return A(333)},get updateJSDocClassTag(){return R(333)},get createJSDocPublicTag(){return A(334)},get updateJSDocPublicTag(){return R(334)},get createJSDocPrivateTag(){return A(335)},get updateJSDocPrivateTag(){return R(335)},get createJSDocProtectedTag(){return A(336)},get updateJSDocProtectedTag(){return R(336)},get createJSDocReadonlyTag(){return A(337)},get updateJSDocReadonlyTag(){return R(337)},get createJSDocOverrideTag(){return A(338)},get updateJSDocOverrideTag(){return R(338)},get createJSDocDeprecatedTag(){return A(332)},get updateJSDocDeprecatedTag(){return R(332)},get createJSDocThrowsTag(){return N(350)},get updateJSDocThrowsTag(){return P(350)},get createJSDocSatisfiesTag(){return N(351)},get updateJSDocSatisfiesTag(){return P(351)},createJSDocEnumTag:ud,updateJSDocEnumTag:Cx,createJSDocUnknownTag:XE,updateJSDocUnknownTag:hc,createJSDocText:sS,updateJSDocText:Ah,createJSDocComment:e0,updateJSDocComment:Rv,createJsxElement:Nx,updateJsxElement:r2,createJsxSelfClosingElement:Gl,updateJsxSelfClosingElement:TC,createJsxOpeningElement:YE,updateJsxOpeningElement:lS,createJsxClosingElement:Mx,updateJsxClosingElement:du,createJsxFragment:vp,createJsxText:MT,updateJsxText:bp,createJsxOpeningFragment:QE,createJsxJsxClosingFragment:Og,updateJsxFragment:$E,createJsxAttribute:Px,updateJsxAttribute:ZE,createJsxAttributes:Xm,updateJsxAttributes:Lx,createJsxSpreadAttribute:SC,updateJsxSpreadAttribute:kx,createJsxExpression:eA,updateJsxExpression:wx,createJsxNamespacedName:Dv,updateJsxNamespacedName:Up,createCaseClause:h_,updateCaseClause:tA,createDefaultClause:nA,updateDefaultClause:os,createHeritageClause:Wr,updateHeritageClause:Af,createCatchClause:$c,updateCatchClause:PT,createPropertyAssignment:rA,updatePropertyAssignment:cS,createShorthandPropertyAssignment:iA,updateShorthandPropertyAssignment:D,createSpreadAssignment:Et,updateSpreadAssignment:An,createEnumMember:vi,updateEnumMember:wi,createSourceFile:Ao,updateSourceFile:kT,createRedirectedSourceFile:Li,createBundle:Vu,updateBundle:t0,createSyntheticExpression:Ox,createSyntaxList:Cm,createNotEmittedStatement:bl,createNotEmittedTypeElement:Ym,createPartiallyEmittedExpression:oA,updatePartiallyEmittedExpression:Cv,createCommaListExpression:dS,updateCommaListExpression:x5,createSyntheticReferenceExpression:i2,updateSyntheticReferenceExpression:Wx,cloneNode:aA,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:R5,createImmediatelyInvokedArrowFunction:uS,createVoidZero:sA,createExportDefault:a2,createExternalModuleExport:zx,createTypeCheck:uo,createIsNotTypeCheck:r0,createMethodCall:ar,createGlobalMethodCall:pS,createFunctionBindCall:s2,createFunctionCallCall:EC,createFunctionApplyCall:AC,createArraySliceCall:d4,createArrayConcatCall:lA,createObjectDefinePropertyCall:D5,createObjectGetOwnPropertyDescriptorCall:IC,createReflectGetCall:J_,createReflectSetCall:u4,createPropertyDescriptor:C5,createCallBinding:xC,createAssignmentTargetWrapper:__,inlineExpressions:ee,getInternalName:rt,getLocalName:Pt,getExportName:nn,getDeclarationName:_n,getNamespaceMemberName:ei,getExternalModuleOrNamespaceExportName:wr,restoreOuterExpressions:c2,restoreEnclosingLabel:OT,createUseStrictPrologue:ao,copyPrologue:pr,copyStandardPrologue:zs,copyCustomPrologue:Is,ensureUseStrict:as,liftToBlock:Qf,mergeLexicalEnvironment:Mv,replaceModifiers:Pv,replaceDecoratorsAndModifiers:Wg,replacePropertyName:i0};return Je(U0e,T=>T(k)),k;function F(T,M){if(T===void 0||T===ae)T=[];else if(s1(T)){if(M===void 0||T.hasTrailingComma===M)return T.transformFlags===void 0&&J0e(T),C.attachNodeArrayDebugInfo(T),T;let tt=T.slice();return tt.pos=T.pos,tt.end=T.end,tt.hasTrailingComma=M,tt.transformFlags=T.transformFlags,C.attachNodeArrayDebugInfo(tt),tt}let V=T.length,ue=V>=1&&V<=4?T.slice():T;return ue.pos=-1,ue.end=-1,ue.hasTrailingComma=!!M,ue.transformFlags=0,J0e(ue),C.attachNodeArrayDebugInfo(ue),ue}function O(T){return t.createBaseNode(T)}function G(T){let M=O(T);return M.symbol=void 0,M.localSymbol=void 0,M}function j(T,M){return T!==M&&(T.typeArguments=M.typeArguments),br(T,M)}function J(T,M=0){let V=typeof T=="number"?T+"":T;C.assert(V.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let ue=G(9);return ue.text=V,ue.numericLiteralFlags=M,M&384&&(ue.transformFlags|=1024),ue}function Z(T){let M=lt(10);return M.text=typeof T=="string"?T:R1(T)+"n",M.transformFlags|=32,M}function q(T,M){let V=G(11);return V.text=T,V.singleQuote=M,V}function ye(T,M,V){let ue=q(T,M);return ue.hasExtendedUnicodeEscape=V,V&&(ue.transformFlags|=1024),ue}function ie(T){let M=q(Wf(T),void 0);return M.textSourceNode=T,M}function K(T){let M=lt(14);return M.text=T,M}function pe(T,M){switch(T){case 9:return J(M,0);case 10:return Z(M);case 11:return ye(M,void 0);case 12:return MT(M,!1);case 13:return MT(M,!0);case 14:return K(M);case 15:return Vo(T,M,void 0,0)}}function de(T){let M=t.createBaseIdentifierNode(80);return M.escapedText=T,M.jsDoc=void 0,M.flowNode=void 0,M.symbol=void 0,M}function fe(T,M,V,ue){let tt=de(Cl(T));return tw(tt,{flags:M,id:KV,prefix:V,suffix:ue}),KV++,tt}function ve(T,M,V){M===void 0&&T&&(M=OS(T)),M===80&&(M=void 0);let ue=de(Cl(T));return V&&(ue.flags|=256),ue.escapedText==="await"&&(ue.transformFlags|=67108864),ue.flags&256&&(ue.transformFlags|=1024),ue}function xe(T,M,V,ue){let tt=1;M&&(tt|=8);let rn=fe("",tt,V,ue);return T&&T(rn),rn}function Y(T){let M=2;return T&&(M|=8),fe("",M,void 0,void 0)}function Ce(T,M=0,V,ue){return C.assert(!(M&7),"Argument out of range: flags"),C.assert((M&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),fe(T,3|M,V,ue)}function Xe(T,M=0,V,ue){C.assert(!(M&7),"Argument out of range: flags");let tt=T?cg(T)?Y0(!1,V,T,ue,Kr):`generated@${ss(T)}`:"";(V||ue)&&(M|=16);let rn=fe(tt,4|M,V,ue);return rn.original=T,rn}function Se(T){let M=t.createBasePrivateIdentifierNode(81);return M.escapedText=T,M.transformFlags|=16777216,M}function re(T){return po(T,"#")||C.fail("First character of private identifier must be #: "+T),Se(Cl(T))}function be(T,M,V,ue){let tt=Se(Cl(T));return tw(tt,{flags:M,id:KV,prefix:V,suffix:ue}),KV++,tt}function Ne(T,M,V){T&&!po(T,"#")&&C.fail("First character of private identifier must be #: "+T);let ue=8|(T?3:1);return be(T??"",ue,M,V)}function Be(T,M,V){let ue=cg(T)?Y0(!0,M,T,V,Kr):`#generated@${ss(T)}`,rn=be(ue,4|(M||V?16:0),M,V);return rn.original=T,rn}function lt(T){return t.createBaseTokenNode(T)}function ce(T){C.assert(T>=0&&T<=166,"Invalid token"),C.assert(T<=15||T>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),C.assert(T<=9||T>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),C.assert(T!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let M=lt(T),V=0;switch(T){case 134:V=384;break;case 160:V=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:V=1;break;case 108:V=134218752,M.flowNode=void 0;break;case 126:V=1024;break;case 129:V=16777216;break;case 110:V=16384,M.flowNode=void 0;break}return V&&(M.transformFlags|=V),M}function De(){return ce(108)}function ge(){return ce(110)}function je(){return ce(106)}function Ge(){return ce(112)}function We(){return ce(97)}function at(T){return ce(T)}function Wt(T){let M=[];return T&32&&M.push(at(95)),T&128&&M.push(at(138)),T&2048&&M.push(at(90)),T&4096&&M.push(at(87)),T&1&&M.push(at(125)),T&2&&M.push(at(123)),T&4&&M.push(at(124)),T&64&&M.push(at(128)),T&256&&M.push(at(126)),T&16&&M.push(at(164)),T&8&&M.push(at(148)),T&512&&M.push(at(129)),T&1024&&M.push(at(134)),T&8192&&M.push(at(103)),T&16384&&M.push(at(147)),M.length?M:void 0}function cn(T,M){let V=O(167);return V.left=T,V.right=jc(M),V.transformFlags|=Fr(V.left)|$k(V.right),V.flowNode=void 0,V}function gn(T,M,V){return T.left!==M||T.right!==V?br(cn(M,V),T):T}function Kn(T){let M=O(168);return M.expression=i().parenthesizeExpressionOfComputedPropertyName(T),M.transformFlags|=Fr(M.expression)|1024|131072,M}function _t(T,M){return T.expression!==M?br(Kn(M),T):T}function en(T,M,V,ue){let tt=G(169);return tt.modifiers=ls(T),tt.name=jc(M),tt.constraint=V,tt.default=ue,tt.transformFlags=1,tt.expression=void 0,tt.jsDoc=void 0,tt}function ir(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.constraint!==ue||T.default!==tt?br(en(M,V,ue,tt),T):T}function Di(T,M,V,ue,tt,rn){let Or=G(170);return Or.modifiers=ls(T),Or.dotDotDotToken=M,Or.name=jc(V),Or.questionToken=ue,Or.type=tt,Or.initializer=uu(rn),bb(Or.name)?Or.transformFlags=1:Or.transformFlags=rs(Or.modifiers)|Fr(Or.dotDotDotToken)|Ib(Or.name)|Fr(Or.questionToken)|Fr(Or.initializer)|(Or.questionToken??Or.type?1:0)|(Or.dotDotDotToken??Or.initializer?1024:0)|(Kh(Or.modifiers)&31?8192:0),Or.jsDoc=void 0,Or}function lo(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.dotDotDotToken!==V||T.name!==ue||T.questionToken!==tt||T.type!==rn||T.initializer!==Or?br(Di(M,V,ue,tt,rn,Or),T):T}function zt(T){let M=O(171);return M.expression=i().parenthesizeLeftSideOfAccess(T,!1),M.transformFlags|=Fr(M.expression)|1|8192|33554432,M}function Zr(T,M){return T.expression!==M?br(zt(M),T):T}function Ai(T,M,V,ue){let tt=G(172);return tt.modifiers=ls(T),tt.name=jc(M),tt.type=ue,tt.questionToken=V,tt.transformFlags=1,tt.initializer=void 0,tt.jsDoc=void 0,tt}function Ni(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.questionToken!==ue||T.type!==tt?Pr(Ai(M,V,ue,tt),T):T}function Pr(T,M){return T!==M&&(T.initializer=M.initializer),br(T,M)}function Ci(T,M,V,ue,tt){let rn=G(173);rn.modifiers=ls(T),rn.name=jc(M),rn.questionToken=V&&Rb(V)?V:void 0,rn.exclamationToken=V&&rw(V)?V:void 0,rn.type=ue,rn.initializer=uu(tt);let Or=rn.flags&33554432||Kh(rn.modifiers)&128;return rn.transformFlags=rs(rn.modifiers)|Ib(rn.name)|Fr(rn.initializer)|(Or||rn.questionToken||rn.exclamationToken||rn.type?1:0)|(va(rn.name)||Kh(rn.modifiers)&256&&rn.initializer?8192:0)|16777216,rn.jsDoc=void 0,rn}function $e(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.questionToken!==(ue!==void 0&&Rb(ue)?ue:void 0)||T.exclamationToken!==(ue!==void 0&&rw(ue)?ue:void 0)||T.type!==tt||T.initializer!==rn?br(Ci(M,V,ue,tt,rn),T):T}function At(T,M,V,ue,tt,rn){let Or=G(174);return Or.modifiers=ls(T),Or.name=jc(M),Or.questionToken=V,Or.typeParameters=ls(ue),Or.parameters=ls(tt),Or.type=rn,Or.transformFlags=1,Or.jsDoc=void 0,Or.locals=void 0,Or.nextContainer=void 0,Or.typeArguments=void 0,Or}function mn(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.name!==V||T.questionToken!==ue||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or?j(At(M,V,ue,tt,rn,Or),T):T}function dr(T,M,V,ue,tt,rn,Or,ko){let nl=G(175);if(nl.modifiers=ls(T),nl.asteriskToken=M,nl.name=jc(V),nl.questionToken=ue,nl.exclamationToken=void 0,nl.typeParameters=ls(tt),nl.parameters=F(rn),nl.type=Or,nl.body=ko,!nl.body)nl.transformFlags=1;else{let rf=Kh(nl.modifiers)&1024,o0=!!nl.asteriskToken,Ih=rf&&o0;nl.transformFlags=rs(nl.modifiers)|Fr(nl.asteriskToken)|Ib(nl.name)|Fr(nl.questionToken)|rs(nl.typeParameters)|rs(nl.parameters)|Fr(nl.type)|Fr(nl.body)&-67108865|(Ih?128:rf?256:o0?2048:0)|(nl.questionToken||nl.typeParameters||nl.type?1:0)|1024}return nl.typeArguments=void 0,nl.jsDoc=void 0,nl.locals=void 0,nl.nextContainer=void 0,nl.flowNode=void 0,nl.endFlowNode=void 0,nl.returnFlowNode=void 0,nl}function ri(T,M,V,ue,tt,rn,Or,ko,nl){return T.modifiers!==M||T.asteriskToken!==V||T.name!==ue||T.questionToken!==tt||T.typeParameters!==rn||T.parameters!==Or||T.type!==ko||T.body!==nl?ai(dr(M,V,ue,tt,rn,Or,ko,nl),T):T}function ai(T,M){return T!==M&&(T.exclamationToken=M.exclamationToken),br(T,M)}function qi(T){let M=G(176);return M.body=T,M.transformFlags=Fr(T)|16777216,M.modifiers=void 0,M.jsDoc=void 0,M.locals=void 0,M.nextContainer=void 0,M.endFlowNode=void 0,M.returnFlowNode=void 0,M}function $o(T,M){return T.body!==M?Ia(qi(M),T):T}function Ia(T,M){return T!==M&&(T.modifiers=M.modifiers),br(T,M)}function Mn(T,M,V){let ue=G(177);return ue.modifiers=ls(T),ue.parameters=F(M),ue.body=V,ue.body?ue.transformFlags=rs(ue.modifiers)|rs(ue.parameters)|Fr(ue.body)&-67108865|1024:ue.transformFlags=1,ue.typeParameters=void 0,ue.type=void 0,ue.typeArguments=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.returnFlowNode=void 0,ue}function Uo(T,M,V,ue){return T.modifiers!==M||T.parameters!==V||T.body!==ue?ot(Mn(M,V,ue),T):T}function ot(T,M){return T!==M&&(T.typeParameters=M.typeParameters,T.type=M.type),j(T,M)}function Ft(T,M,V,ue,tt){let rn=G(178);return rn.modifiers=ls(T),rn.name=jc(M),rn.parameters=F(V),rn.type=ue,rn.body=tt,rn.body?rn.transformFlags=rs(rn.modifiers)|Ib(rn.name)|rs(rn.parameters)|Fr(rn.type)|Fr(rn.body)&-67108865|(rn.type?1:0):rn.transformFlags=1,rn.typeArguments=void 0,rn.typeParameters=void 0,rn.jsDoc=void 0,rn.locals=void 0,rn.nextContainer=void 0,rn.flowNode=void 0,rn.endFlowNode=void 0,rn.returnFlowNode=void 0,rn}function le(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.parameters!==ue||T.type!==tt||T.body!==rn?ht(Ft(M,V,ue,tt,rn),T):T}function ht(T,M){return T!==M&&(T.typeParameters=M.typeParameters),j(T,M)}function ne(T,M,V,ue){let tt=G(179);return tt.modifiers=ls(T),tt.name=jc(M),tt.parameters=F(V),tt.body=ue,tt.body?tt.transformFlags=rs(tt.modifiers)|Ib(tt.name)|rs(tt.parameters)|Fr(tt.body)&-67108865|(tt.type?1:0):tt.transformFlags=1,tt.typeArguments=void 0,tt.typeParameters=void 0,tt.type=void 0,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt.endFlowNode=void 0,tt.returnFlowNode=void 0,tt}function Fe(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.parameters!==ue||T.body!==tt?it(ne(M,V,ue,tt),T):T}function it(T,M){return T!==M&&(T.typeParameters=M.typeParameters,T.type=M.type),j(T,M)}function dt(T,M,V){let ue=G(180);return ue.typeParameters=ls(T),ue.parameters=ls(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Lt(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?j(dt(M,V,ue),T):T}function Ue(T,M,V){let ue=G(181);return ue.typeParameters=ls(T),ue.parameters=ls(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Rt(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?j(Ue(M,V,ue),T):T}function It(T,M,V){let ue=G(182);return ue.modifiers=ls(T),ue.parameters=ls(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Ot(T,M,V,ue){return T.parameters!==V||T.type!==ue||T.modifiers!==M?j(It(M,V,ue),T):T}function nt(T,M){let V=O(205);return V.type=T,V.literal=M,V.transformFlags=1,V}function Kt(T,M,V){return T.type!==M||T.literal!==V?br(nt(M,V),T):T}function Sr(T){return ce(T)}function Oe(T,M,V){let ue=O(183);return ue.assertsModifier=T,ue.parameterName=jc(M),ue.type=V,ue.transformFlags=1,ue}function Nt(T,M,V,ue){return T.assertsModifier!==M||T.parameterName!==V||T.type!==ue?br(Oe(M,V,ue),T):T}function _e(T,M){let V=O(184);return V.typeName=jc(T),V.typeArguments=M&&i().parenthesizeTypeArguments(F(M)),V.transformFlags=1,V}function B(T,M,V){return T.typeName!==M||T.typeArguments!==V?br(_e(M,V),T):T}function Ae(T,M,V){let ue=G(185);return ue.typeParameters=ls(T),ue.parameters=ls(M),ue.type=V,ue.transformFlags=1,ue.modifiers=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function te(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?xt(Ae(M,V,ue),T):T}function xt(T,M){return T!==M&&(T.modifiers=M.modifiers),j(T,M)}function Xt(...T){return T.length===4?Le(...T):T.length===3?gt(...T):C.fail("Incorrect number of arguments specified.")}function Le(T,M,V,ue){let tt=G(186);return tt.modifiers=ls(T),tt.typeParameters=ls(M),tt.parameters=ls(V),tt.type=ue,tt.transformFlags=1,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.typeArguments=void 0,tt}function gt(T,M,V){return Le(void 0,T,M,V)}function Bt(...T){return T.length===5?gr(...T):T.length===4?tr(...T):C.fail("Incorrect number of arguments specified.")}function gr(T,M,V,ue,tt){return T.modifiers!==M||T.typeParameters!==V||T.parameters!==ue||T.type!==tt?j(Xt(M,V,ue,tt),T):T}function tr(T,M,V,ue){return gr(T,T.modifiers,M,V,ue)}function Jn(T,M){let V=O(187);return V.exprName=T,V.typeArguments=M&&i().parenthesizeTypeArguments(M),V.transformFlags=1,V}function ft(T,M,V){return T.exprName!==M||T.typeArguments!==V?br(Jn(M,V),T):T}function Mt(T){let M=G(188);return M.members=F(T),M.transformFlags=1,M}function jt(T,M){return T.members!==M?br(Mt(M),T):T}function Qt(T){let M=O(189);return M.elementType=i().parenthesizeNonArrayTypeOfPostfixType(T),M.transformFlags=1,M}function In(T,M){return T.elementType!==M?br(Qt(M),T):T}function yn(T){let M=O(190);return M.elements=F(i().parenthesizeElementTypesOfTupleType(T)),M.transformFlags=1,M}function wt(T,M){return T.elements!==M?br(yn(M),T):T}function En(T,M,V,ue){let tt=G(203);return tt.dotDotDotToken=T,tt.name=M,tt.questionToken=V,tt.type=ue,tt.transformFlags=1,tt.jsDoc=void 0,tt}function xn(T,M,V,ue,tt){return T.dotDotDotToken!==M||T.name!==V||T.questionToken!==ue||T.type!==tt?br(En(M,V,ue,tt),T):T}function Ln(T){let M=O(191);return M.type=i().parenthesizeTypeOfOptionalType(T),M.transformFlags=1,M}function ln(T,M){return T.type!==M?br(Ln(M),T):T}function Ii(T){let M=O(192);return M.type=T,M.transformFlags=1,M}function ra(T,M){return T.type!==M?br(Ii(M),T):T}function sa(T,M,V){let ue=O(T);return ue.types=k.createNodeArray(V(M)),ue.transformFlags=1,ue}function zo(T,M,V){return T.types!==M?br(sa(T.kind,M,V),T):T}function Bl(T){return sa(193,T,i().parenthesizeConstituentTypesOfUnionType)}function xl(T,M){return zo(T,M,i().parenthesizeConstituentTypesOfUnionType)}function Ps(T){return sa(194,T,i().parenthesizeConstituentTypesOfIntersectionType)}function co(T,M){return zo(T,M,i().parenthesizeConstituentTypesOfIntersectionType)}function Go(T,M,V,ue){let tt=O(195);return tt.checkType=i().parenthesizeCheckTypeOfConditionalType(T),tt.extendsType=i().parenthesizeExtendsTypeOfConditionalType(M),tt.trueType=V,tt.falseType=ue,tt.transformFlags=1,tt.locals=void 0,tt.nextContainer=void 0,tt}function Sc(T,M,V,ue,tt){return T.checkType!==M||T.extendsType!==V||T.trueType!==ue||T.falseType!==tt?br(Go(M,V,ue,tt),T):T}function $s(T){let M=O(196);return M.typeParameter=T,M.transformFlags=1,M}function Ra(T,M){return T.typeParameter!==M?br($s(M),T):T}function Zl(T,M){let V=O(204);return V.head=T,V.templateSpans=F(M),V.transformFlags=1,V}function vf(T,M,V){return T.head!==M||T.templateSpans!==V?br(Zl(M,V),T):T}function Lo(T,M,V,ue,tt=!1){let rn=O(206);return rn.argument=T,rn.attributes=M,rn.assertions&&rn.assertions.assertClause&&rn.attributes&&(rn.assertions.assertClause=rn.attributes),rn.qualifier=V,rn.typeArguments=ue&&i().parenthesizeTypeArguments(ue),rn.isTypeOf=tt,rn.transformFlags=1,rn}function fa(T,M,V,ue,tt,rn=T.isTypeOf){return T.argument!==M||T.attributes!==V||T.qualifier!==ue||T.typeArguments!==tt||T.isTypeOf!==rn?br(Lo(M,V,ue,tt,rn),T):T}function is(T){let M=O(197);return M.type=T,M.transformFlags=1,M}function qa(T,M){return T.type!==M?br(is(M),T):T}function Zt(){let T=O(198);return T.transformFlags=1,T}function As(T,M){let V=O(199);return V.operator=T,V.type=T===148?i().parenthesizeOperandOfReadonlyTypeOperator(M):i().parenthesizeOperandOfTypeOperator(M),V.transformFlags=1,V}function Hl(T,M){return T.type!==M?br(As(T.operator,M),T):T}function sc(T,M){let V=O(200);return V.objectType=i().parenthesizeNonArrayTypeOfPostfixType(T),V.indexType=M,V.transformFlags=1,V}function vd(T,M,V){return T.objectType!==M||T.indexType!==V?br(sc(M,V),T):T}function Fs(T,M,V,ue,tt,rn){let Or=G(201);return Or.readonlyToken=T,Or.typeParameter=M,Or.nameType=V,Or.questionToken=ue,Or.type=tt,Or.members=rn&&F(rn),Or.transformFlags=1,Or.locals=void 0,Or.nextContainer=void 0,Or}function Ee(T,M,V,ue,tt,rn,Or){return T.readonlyToken!==M||T.typeParameter!==V||T.nameType!==ue||T.questionToken!==tt||T.type!==rn||T.members!==Or?br(Fs(M,V,ue,tt,rn,Or),T):T}function $(T){let M=O(202);return M.literal=T,M.transformFlags=1,M}function pt(T,M){return T.literal!==M?br($(M),T):T}function qt(T){let M=O(207);return M.elements=F(T),M.transformFlags|=rs(M.elements)|1024|524288,M.transformFlags&32768&&(M.transformFlags|=65664),M}function fn(T,M){return T.elements!==M?br(qt(M),T):T}function ur(T){let M=O(208);return M.elements=F(T),M.transformFlags|=rs(M.elements)|1024|524288,M}function si(T,M){return T.elements!==M?br(ur(M),T):T}function Dr(T,M,V,ue){let tt=G(209);return tt.dotDotDotToken=T,tt.propertyName=jc(M),tt.name=jc(V),tt.initializer=uu(ue),tt.transformFlags|=Fr(tt.dotDotDotToken)|Ib(tt.propertyName)|Ib(tt.name)|Fr(tt.initializer)|(tt.dotDotDotToken?32768:0)|1024,tt.flowNode=void 0,tt}function Fn(T,M,V,ue,tt){return T.propertyName!==V||T.dotDotDotToken!==M||T.name!==ue||T.initializer!==tt?br(Dr(M,V,ue,tt),T):T}function ro(T,M){let V=O(210),ue=T&&Zs(T),tt=F(T,ue&&Kc(ue)?!0:void 0);return V.elements=i().parenthesizeExpressionsOfCommaDelimitedList(tt),V.multiLine=M,V.transformFlags|=rs(V.elements),V}function So(T,M){return T.elements!==M?br(ro(M,T.multiLine),T):T}function Ns(T,M){let V=G(211);return V.properties=F(T),V.multiLine=M,V.transformFlags|=rs(V.properties),V.jsDoc=void 0,V}function Da(T,M){return T.properties!==M?br(Ns(M,T.multiLine),T):T}function Qs(T,M,V){let ue=G(212);return ue.expression=T,ue.questionDotToken=M,ue.name=V,ue.transformFlags=Fr(ue.expression)|Fr(ue.questionDotToken)|(He(ue.name)?$k(ue.name):Fr(ue.name)|536870912),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Ec(T,M){let V=Qs(i().parenthesizeLeftSideOfAccess(T,!1),void 0,jc(M));return OM(T)&&(V.transformFlags|=384),V}function mc(T,M,V){return r6(T)?Pl(T,M,T.questionDotToken,ma(V,He)):T.expression!==M||T.name!==V?br(Ec(M,V),T):T}function Hs(T,M,V){let ue=Qs(i().parenthesizeLeftSideOfAccess(T,!0),M,jc(V));return ue.flags|=64,ue.transformFlags|=32,ue}function Pl(T,M,V,ue){return C.assert(!!(T.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),T.expression!==M||T.questionDotToken!==V||T.name!==ue?br(Hs(M,V,ue),T):T}function vh(T,M,V){let ue=G(213);return ue.expression=T,ue.questionDotToken=M,ue.argumentExpression=V,ue.transformFlags|=Fr(ue.expression)|Fr(ue.questionDotToken)|Fr(ue.argumentExpression),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Pd(T,M){let V=vh(i().parenthesizeLeftSideOfAccess(T,!1),void 0,Lv(M));return OM(T)&&(V.transformFlags|=384),V}function tf(T,M,V){return MB(T)?ze(T,M,T.questionDotToken,V):T.expression!==M||T.argumentExpression!==V?br(Pd(M,V),T):T}function rp(T,M,V){let ue=vh(i().parenthesizeLeftSideOfAccess(T,!0),M,Lv(V));return ue.flags|=64,ue.transformFlags|=32,ue}function ze(T,M,V,ue){return C.assert(!!(T.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),T.expression!==M||T.questionDotToken!==V||T.argumentExpression!==ue?br(rp(M,V,ue),T):T}function Jt(T,M,V,ue){let tt=G(214);return tt.expression=T,tt.questionDotToken=M,tt.typeArguments=V,tt.arguments=ue,tt.transformFlags|=Fr(tt.expression)|Fr(tt.questionDotToken)|rs(tt.typeArguments)|rs(tt.arguments),tt.typeArguments&&(tt.transformFlags|=1),fp(tt.expression)&&(tt.transformFlags|=16384),tt}function er(T,M,V){let ue=Jt(i().parenthesizeLeftSideOfAccess(T,!1),void 0,ls(M),i().parenthesizeExpressionsOfCommaDelimitedList(F(V)));return WM(ue.expression)&&(ue.transformFlags|=8388608),ue}function go(T,M,V,ue){return zS(T)?es(T,M,T.questionDotToken,V,ue):T.expression!==M||T.typeArguments!==V||T.arguments!==ue?br(er(M,V,ue),T):T}function Za(T,M,V,ue){let tt=Jt(i().parenthesizeLeftSideOfAccess(T,!0),M,ls(V),i().parenthesizeExpressionsOfCommaDelimitedList(F(ue)));return tt.flags|=64,tt.transformFlags|=32,tt}function es(T,M,V,ue,tt){return C.assert(!!(T.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),T.expression!==M||T.questionDotToken!==V||T.typeArguments!==ue||T.arguments!==tt?br(Za(M,V,ue,tt),T):T}function Va(T,M,V){let ue=G(215);return ue.expression=i().parenthesizeExpressionOfNew(T),ue.typeArguments=ls(M),ue.arguments=V?i().parenthesizeExpressionsOfCommaDelimitedList(V):void 0,ue.transformFlags|=Fr(ue.expression)|rs(ue.typeArguments)|rs(ue.arguments)|32,ue.typeArguments&&(ue.transformFlags|=1),ue}function Pc(T,M,V,ue){return T.expression!==M||T.typeArguments!==V||T.arguments!==ue?br(Va(M,V,ue),T):T}function tl(T,M,V){let ue=O(216);return ue.tag=i().parenthesizeLeftSideOfAccess(T,!1),ue.typeArguments=ls(M),ue.template=V,ue.transformFlags|=Fr(ue.tag)|rs(ue.typeArguments)|Fr(ue.template)|1024,ue.typeArguments&&(ue.transformFlags|=1),BG(ue.template)&&(ue.transformFlags|=128),ue}function Ll(T,M,V,ue){return T.tag!==M||T.typeArguments!==V||T.template!==ue?br(tl(M,V,ue),T):T}function ql(T,M){let V=O(217);return V.expression=i().parenthesizeOperandOfPrefixUnary(M),V.type=T,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function nf(T,M,V){return T.type!==M||T.expression!==V?br(ql(M,V),T):T}function bd(T){let M=O(218);return M.expression=T,M.transformFlags=Fr(M.expression),M.jsDoc=void 0,M}function ld(T,M){return T.expression!==M?br(bd(M),T):T}function Gp(T,M,V,ue,tt,rn,Or){let ko=G(219);ko.modifiers=ls(T),ko.asteriskToken=M,ko.name=jc(V),ko.typeParameters=ls(ue),ko.parameters=F(tt),ko.type=rn,ko.body=Or;let nl=Kh(ko.modifiers)&1024,rf=!!ko.asteriskToken,o0=nl&&rf;return ko.transformFlags=rs(ko.modifiers)|Fr(ko.asteriskToken)|Ib(ko.name)|rs(ko.typeParameters)|rs(ko.parameters)|Fr(ko.type)|Fr(ko.body)&-67108865|(o0?128:nl?256:rf?2048:0)|(ko.typeParameters||ko.type?1:0)|4194304,ko.typeArguments=void 0,ko.jsDoc=void 0,ko.locals=void 0,ko.nextContainer=void 0,ko.flowNode=void 0,ko.endFlowNode=void 0,ko.returnFlowNode=void 0,ko}function Eu(T,M,V,ue,tt,rn,Or,ko){return T.name!==ue||T.modifiers!==M||T.asteriskToken!==V||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or||T.body!==ko?j(Gp(M,V,ue,tt,rn,Or,ko),T):T}function Jf(T,M,V,ue,tt,rn){let Or=G(220);Or.modifiers=ls(T),Or.typeParameters=ls(M),Or.parameters=F(V),Or.type=ue,Or.equalsGreaterThanToken=tt??ce(39),Or.body=i().parenthesizeConciseBodyOfArrowFunction(rn);let ko=Kh(Or.modifiers)&1024;return Or.transformFlags=rs(Or.modifiers)|rs(Or.typeParameters)|rs(Or.parameters)|Fr(Or.type)|Fr(Or.equalsGreaterThanToken)|Fr(Or.body)&-67108865|(Or.typeParameters||Or.type?1:0)|(ko?16640:0)|1024,Or.typeArguments=void 0,Or.jsDoc=void 0,Or.locals=void 0,Or.nextContainer=void 0,Or.flowNode=void 0,Or.endFlowNode=void 0,Or.returnFlowNode=void 0,Or}function B_(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.typeParameters!==V||T.parameters!==ue||T.type!==tt||T.equalsGreaterThanToken!==rn||T.body!==Or?j(Jf(M,V,ue,tt,rn,Or),T):T}function Dg(T){let M=O(221);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Cg(T,M){return T.expression!==M?br(Dg(M),T):T}function ip(T){let M=O(222);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Yc(T,M){return T.expression!==M?br(ip(M),T):T}function bh(T){let M=O(223);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function bf(T,M){return T.expression!==M?br(bh(M),T):T}function u_(T){let M=O(224);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression)|256|128|2097152,M}function oe(T,M){return T.expression!==M?br(u_(M),T):T}function ut(T,M){let V=O(225);return V.operator=T,V.operand=i().parenthesizeOperandOfPrefixUnary(M),V.transformFlags|=Fr(V.operand),(T===46||T===47)&&He(V.operand)&&!pl(V.operand)&&!fy(V.operand)&&(V.transformFlags|=268435456),V}function tn(T,M){return T.operand!==M?br(ut(T.operator,M),T):T}function an(T,M){let V=O(226);return V.operator=M,V.operand=i().parenthesizeOperandOfPostfixUnary(T),V.transformFlags|=Fr(V.operand),He(V.operand)&&!pl(V.operand)&&!fy(V.operand)&&(V.transformFlags|=268435456),V}function wn(T,M){return T.operand!==M?br(an(M,T.operator),T):T}function or(T,M,V){let ue=G(227),tt=Bx(M),rn=tt.kind;return ue.left=i().parenthesizeLeftSideOfBinary(rn,T),ue.operatorToken=tt,ue.right=i().parenthesizeRightSideOfBinary(rn,ue.left,V),ue.transformFlags|=Fr(ue.left)|Fr(ue.operatorToken)|Fr(ue.right),rn===61?ue.transformFlags|=32:rn===64?Wa(ue.left)?ue.transformFlags|=5248|ti(ue.left):Cd(ue.left)&&(ue.transformFlags|=5120|ti(ue.left)):rn===43||rn===68?ue.transformFlags|=512:cM(rn)&&(ue.transformFlags|=16),rn===103&&eo(ue.left)&&(ue.transformFlags|=536870912),ue.jsDoc=void 0,ue}function ti(T){return gw(T)?65536:0}function Ti(T,M,V,ue){return T.left!==M||T.operatorToken!==V||T.right!==ue?br(or(M,V,ue),T):T}function $i(T,M,V,ue,tt){let rn=O(228);return rn.condition=i().parenthesizeConditionOfConditionalExpression(T),rn.questionToken=M??ce(58),rn.whenTrue=i().parenthesizeBranchOfConditionalExpression(V),rn.colonToken=ue??ce(59),rn.whenFalse=i().parenthesizeBranchOfConditionalExpression(tt),rn.transformFlags|=Fr(rn.condition)|Fr(rn.questionToken)|Fr(rn.whenTrue)|Fr(rn.colonToken)|Fr(rn.whenFalse),rn.flowNodeWhenFalse=void 0,rn.flowNodeWhenTrue=void 0,rn}function z(T,M,V,ue,tt,rn){return T.condition!==M||T.questionToken!==V||T.whenTrue!==ue||T.colonToken!==tt||T.whenFalse!==rn?br($i(M,V,ue,tt,rn),T):T}function Ve(T,M){let V=O(229);return V.head=T,V.templateSpans=F(M),V.transformFlags|=Fr(V.head)|rs(V.templateSpans)|1024,V}function kt(T,M,V){return T.head!==M||T.templateSpans!==V?br(Ve(M,V),T):T}function On(T,M,V,ue=0){C.assert(!(ue&-7177),"Unsupported template flags.");let tt;if(V!==void 0&&V!==M&&(tt=rGe(T,V),typeof tt=="object"))return C.fail("Invalid raw text");if(M===void 0){if(tt===void 0)return C.fail("Arguments 'text' and 'rawText' may not both be undefined.");M=tt}else tt!==void 0&&C.assert(M===tt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return M}function yo(T){let M=1024;return T&&(M|=128),M}function ta(T,M,V,ue){let tt=lt(T);return tt.text=M,tt.rawText=V,tt.templateFlags=ue&7176,tt.transformFlags=yo(tt.templateFlags),tt}function Eo(T,M,V,ue){let tt=G(T);return tt.text=M,tt.rawText=V,tt.templateFlags=ue&7176,tt.transformFlags=yo(tt.templateFlags),tt}function Vo(T,M,V,ue){return T===15?Eo(T,M,V,ue):ta(T,M,V,ue)}function ml(T,M,V){return T=On(16,T,M,V),Vo(16,T,M,V)}function Ca(T,M,V){return T=On(16,T,M,V),Vo(17,T,M,V)}function cd(T,M,V){return T=On(16,T,M,V),Vo(18,T,M,V)}function Vp(T,M,V){return T=On(16,T,M,V),Eo(15,T,M,V)}function Tf(T,M){C.assert(!T||!!M,"A `YieldExpression` with an asteriskToken must have an expression.");let V=O(230);return V.expression=M&&i().parenthesizeExpressionForDisallowedComma(M),V.asteriskToken=T,V.transformFlags|=Fr(V.expression)|Fr(V.asteriskToken)|1024|128|1048576,V}function Kf(T,M,V){return T.expression!==V||T.asteriskToken!==M?br(Tf(M,V),T):T}function Ty(T){let M=O(231);return M.expression=i().parenthesizeExpressionForDisallowedComma(T),M.transformFlags|=Fr(M.expression)|1024|32768,M}function yv(T,M){return T.expression!==M?br(Ty(M),T):T}function zu(T,M,V,ue,tt){let rn=G(232);return rn.modifiers=ls(T),rn.name=jc(M),rn.typeParameters=ls(V),rn.heritageClauses=ls(ue),rn.members=F(tt),rn.transformFlags|=rs(rn.modifiers)|Ib(rn.name)|rs(rn.typeParameters)|rs(rn.heritageClauses)|rs(rn.members)|(rn.typeParameters?1:0)|1024,rn.jsDoc=void 0,rn}function G_(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(zu(M,V,ue,tt,rn),T):T}function Th(){return O(233)}function Am(T,M){let V=O(234);return V.expression=i().parenthesizeLeftSideOfAccess(T,!1),V.typeArguments=M&&i().parenthesizeTypeArguments(M),V.transformFlags|=Fr(V.expression)|rs(V.typeArguments)|1024,V}function Vb(T,M,V){return T.expression!==M||T.typeArguments!==V?br(Am(M,V),T):T}function Ye(T,M){let V=O(235);return V.expression=T,V.type=M,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function mt(T,M,V){return T.expression!==M||T.type!==V?br(Ye(M,V),T):T}function Yt(T){let M=O(236);return M.expression=i().parenthesizeLeftSideOfAccess(T,!1),M.transformFlags|=Fr(M.expression)|1,M}function Rn(T,M){return o6(T)?lr(T,M):T.expression!==M?br(Yt(M),T):T}function Qn(T,M){let V=O(239);return V.expression=T,V.type=M,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function Lr(T,M,V){return T.expression!==M||T.type!==V?br(Qn(M,V),T):T}function Yn(T){let M=O(236);return M.flags|=64,M.expression=i().parenthesizeLeftSideOfAccess(T,!0),M.transformFlags|=Fr(M.expression)|1,M}function lr(T,M){return C.assert(!!(T.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),T.expression!==M?br(Yn(M),T):T}function Oi(T,M){let V=O(237);switch(V.keywordToken=T,V.name=M,V.transformFlags|=Fr(V.name),T){case 105:V.transformFlags|=1024;break;case 102:V.transformFlags|=32;break;default:return C.assertNever(T)}return V.flowNode=void 0,V}function Ro(T,M){return T.name!==M?br(Oi(T.keywordToken,M),T):T}function _i(T,M){let V=O(240);return V.expression=T,V.literal=M,V.transformFlags|=Fr(V.expression)|Fr(V.literal)|1024,V}function Do(T,M,V){return T.expression!==M||T.literal!==V?br(_i(M,V),T):T}function Qi(){let T=O(241);return T.transformFlags|=1024,T}function hl(T,M){let V=O(242);return V.statements=F(T),V.multiLine=M,V.transformFlags|=rs(V.statements),V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V}function op(T,M){return T.statements!==M?br(hl(M,T.multiLine),T):T}function Im(T,M){let V=O(244);return V.modifiers=ls(T),V.declarationList=Mo(M)?gT(M):M,V.transformFlags|=rs(V.modifiers)|Fr(V.declarationList),Kh(V.modifiers)&128&&(V.transformFlags=1),V.jsDoc=void 0,V.flowNode=void 0,V}function Td(T,M,V){return T.modifiers!==M||T.declarationList!==V?br(Im(M,V),T):T}function xm(){let T=O(243);return T.jsDoc=void 0,T}function jp(T){let M=O(245);return M.expression=i().parenthesizeExpressionOfExpressionStatement(T),M.transformFlags|=Fr(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function fT(T,M){return T.expression!==M?br(jp(M),T):T}function p_(T,M,V){let ue=O(246);return ue.expression=T,ue.thenStatement=Fg(M),ue.elseStatement=Fg(V),ue.transformFlags|=Fr(ue.expression)|Fr(ue.thenStatement)|Fr(ue.elseStatement),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function V_(T,M,V,ue){return T.expression!==M||T.thenStatement!==V||T.elseStatement!==ue?br(p_(M,V,ue),T):T}function mT(T,M){let V=O(247);return V.statement=Fg(T),V.expression=M,V.transformFlags|=Fr(V.statement)|Fr(V.expression),V.jsDoc=void 0,V.flowNode=void 0,V}function j_(T,M,V){return T.statement!==M||T.expression!==V?br(mT(M,V),T):T}function pC(T,M){let V=O(248);return V.expression=T,V.statement=Fg(M),V.transformFlags|=Fr(V.expression)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function QP(T,M,V){return T.expression!==M||T.statement!==V?br(pC(M,V),T):T}function fC(T,M,V,ue){let tt=O(249);return tt.initializer=T,tt.condition=M,tt.incrementor=V,tt.statement=Fg(ue),tt.transformFlags|=Fr(tt.initializer)|Fr(tt.condition)|Fr(tt.incrementor)|Fr(tt.statement),tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt}function Ng(T,M,V,ue,tt){return T.initializer!==M||T.condition!==V||T.incrementor!==ue||T.statement!==tt?br(fC(M,V,ue,tt),T):T}function hT(T,M,V){let ue=O(250);return ue.initializer=T,ue.expression=M,ue.statement=Fg(V),ue.transformFlags|=Fr(ue.initializer)|Fr(ue.expression)|Fr(ue.statement),ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.flowNode=void 0,ue}function WE(T,M,V,ue){return T.initializer!==M||T.expression!==V||T.statement!==ue?br(hT(M,V,ue),T):T}function vv(T,M,V,ue){let tt=O(251);return tt.awaitModifier=T,tt.initializer=M,tt.expression=i().parenthesizeExpressionForDisallowedComma(V),tt.statement=Fg(ue),tt.transformFlags|=Fr(tt.awaitModifier)|Fr(tt.initializer)|Fr(tt.expression)|Fr(tt.statement)|1024,T&&(tt.transformFlags|=128),tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt}function FE(T,M,V,ue,tt){return T.awaitModifier!==M||T.initializer!==V||T.expression!==ue||T.statement!==tt?br(vv(M,V,ue,tt),T):T}function yx(T){let M=O(252);return M.label=jc(T),M.transformFlags|=Fr(M.label)|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function ZP(T,M){return T.label!==M?br(yx(M),T):T}function zE(T){let M=O(253);return M.label=jc(T),M.transformFlags|=Fr(M.label)|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function vx(T,M){return T.label!==M?br(zE(M),T):T}function _T(T){let M=O(254);return M.expression=T,M.transformFlags|=Fr(M.expression)|128|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function mC(T,M){return T.expression!==M?br(_T(M),T):T}function BE(T,M){let V=O(255);return V.expression=T,V.statement=Fg(M),V.transformFlags|=Fr(V.expression)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function bx(T,M,V){return T.expression!==M||T.statement!==V?br(BE(M,V),T):T}function eS(T,M){let V=O(256);return V.expression=i().parenthesizeExpressionForDisallowedComma(T),V.caseBlock=M,V.transformFlags|=Fr(V.expression)|Fr(V.caseBlock),V.jsDoc=void 0,V.flowNode=void 0,V.possiblyExhaustive=!1,V}function jb(T,M,V){return T.expression!==M||T.caseBlock!==V?br(eS(M,V),T):T}function Tx(T,M){let V=O(257);return V.label=jc(T),V.statement=Fg(M),V.transformFlags|=Fr(V.label)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function Sx(T,M,V){return T.label!==M||T.statement!==V?br(Tx(M,V),T):T}function tS(T){let M=O(258);return M.expression=T,M.transformFlags|=Fr(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function Ub(T,M){return T.expression!==M?br(tS(M),T):T}function bv(T,M,V){let ue=O(259);return ue.tryBlock=T,ue.catchClause=M,ue.finallyBlock=V,ue.transformFlags|=Fr(ue.tryBlock)|Fr(ue.catchClause)|Fr(ue.finallyBlock),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Sy(T,M,V,ue){return T.tryBlock!==M||T.catchClause!==V||T.finallyBlock!==ue?br(bv(M,V,ue),T):T}function Ey(){let T=O(260);return T.jsDoc=void 0,T.flowNode=void 0,T}function Ay(T,M,V,ue){let tt=G(261);return tt.name=jc(T),tt.exclamationToken=M,tt.type=V,tt.initializer=uu(ue),tt.transformFlags|=Ib(tt.name)|Fr(tt.initializer)|(tt.exclamationToken??tt.type?1:0),tt.jsDoc=void 0,tt}function Hb(T,M,V,ue,tt){return T.name!==M||T.type!==ue||T.exclamationToken!==V||T.initializer!==tt?br(Ay(M,V,ue,tt),T):T}function gT(T,M=0){let V=O(262);return V.flags|=M&7,V.declarations=F(T),V.transformFlags|=rs(V.declarations)|4194304,M&7&&(V.transformFlags|=263168),M&4&&(V.transformFlags|=4),V}function GE(T,M){return T.declarations!==M?br(gT(M,T.flags),T):T}function yT(T,M,V,ue,tt,rn,Or){let ko=G(263);if(ko.modifiers=ls(T),ko.asteriskToken=M,ko.name=jc(V),ko.typeParameters=ls(ue),ko.parameters=F(tt),ko.type=rn,ko.body=Or,!ko.body||Kh(ko.modifiers)&128)ko.transformFlags=1;else{let nl=Kh(ko.modifiers)&1024,rf=!!ko.asteriskToken,o0=nl&&rf;ko.transformFlags=rs(ko.modifiers)|Fr(ko.asteriskToken)|Ib(ko.name)|rs(ko.typeParameters)|rs(ko.parameters)|Fr(ko.type)|Fr(ko.body)&-67108865|(o0?128:nl?256:rf?2048:0)|(ko.typeParameters||ko.type?1:0)|4194304}return ko.typeArguments=void 0,ko.jsDoc=void 0,ko.locals=void 0,ko.nextContainer=void 0,ko.endFlowNode=void 0,ko.returnFlowNode=void 0,ko}function ns(T,M,V,ue,tt,rn,Or,ko){return T.modifiers!==M||T.asteriskToken!==V||T.name!==ue||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or||T.body!==ko?VE(yT(M,V,ue,tt,rn,Or,ko),T):T}function VE(T,M){return T!==M&&T.modifiers===M.modifiers&&(T.modifiers=M.modifiers),j(T,M)}function hC(T,M,V,ue,tt){let rn=G(264);return rn.modifiers=ls(T),rn.name=jc(M),rn.typeParameters=ls(V),rn.heritageClauses=ls(ue),rn.members=F(tt),Kh(rn.modifiers)&128?rn.transformFlags=1:(rn.transformFlags|=rs(rn.modifiers)|Ib(rn.name)|rs(rn.typeParameters)|rs(rn.heritageClauses)|rs(rn.members)|(rn.typeParameters?1:0)|1024,rn.transformFlags&8192&&(rn.transformFlags|=1)),rn.jsDoc=void 0,rn}function Iy(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(hC(M,V,ue,tt,rn),T):T}function xy(T,M,V,ue,tt){let rn=G(265);return rn.modifiers=ls(T),rn.name=jc(M),rn.typeParameters=ls(V),rn.heritageClauses=ls(ue),rn.members=F(tt),rn.transformFlags=1,rn.jsDoc=void 0,rn}function U_(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(xy(M,V,ue,tt,rn),T):T}function cl(T,M,V,ue){let tt=G(266);return tt.modifiers=ls(T),tt.name=jc(M),tt.typeParameters=ls(V),tt.type=ue,tt.transformFlags=1,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt}function qd(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.type!==tt?br(cl(M,V,ue,tt),T):T}function ap(T,M,V){let ue=G(267);return ue.modifiers=ls(T),ue.name=jc(M),ue.members=F(V),ue.transformFlags|=rs(ue.modifiers)|Fr(ue.name)|rs(ue.members)|1,ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function Jd(T,M,V,ue){return T.modifiers!==M||T.name!==V||T.members!==ue?br(ap(M,V,ue),T):T}function vT(T,M,V,ue=0){let tt=G(268);return tt.modifiers=ls(T),tt.flags|=ue&2088,tt.name=M,tt.body=V,Kh(tt.modifiers)&128?tt.transformFlags=1:tt.transformFlags|=rs(tt.modifiers)|Fr(tt.name)|Fr(tt.body)|1,tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt}function Au(T,M,V,ue){return T.modifiers!==M||T.name!==V||T.body!==ue?br(vT(M,V,ue,T.flags),T):T}function H_(T){let M=O(269);return M.statements=F(T),M.transformFlags|=rs(M.statements),M.jsDoc=void 0,M}function Bu(T,M){return T.statements!==M?br(H_(M),T):T}function Rm(T){let M=O(270);return M.clauses=F(T),M.transformFlags|=rs(M.clauses),M.locals=void 0,M.nextContainer=void 0,M}function Hm(T,M){return T.clauses!==M?br(Rm(M),T):T}function bT(T){let M=G(271);return M.name=jc(T),M.transformFlags|=$k(M.name)|1,M.modifiers=void 0,M.jsDoc=void 0,M}function TT(T,M){return T.name!==M?e2(bT(M),T):T}function e2(T,M){return T!==M&&(T.modifiers=M.modifiers),br(T,M)}function _C(T,M,V,ue){let tt=G(272);return tt.modifiers=ls(T),tt.name=jc(V),tt.isTypeOnly=M,tt.moduleReference=ue,tt.transformFlags|=rs(tt.modifiers)|$k(tt.name)|Fr(tt.moduleReference),uy(tt.moduleReference)||(tt.transformFlags|=1),tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt}function Tv(T,M,V,ue,tt){return T.modifiers!==M||T.isTypeOnly!==V||T.name!==ue||T.moduleReference!==tt?br(_C(M,V,ue,tt),T):T}function nS(T,M,V,ue){let tt=O(273);return tt.modifiers=ls(T),tt.importClause=M,tt.moduleSpecifier=V,tt.attributes=tt.assertClause=ue,tt.transformFlags|=Fr(tt.importClause)|Fr(tt.moduleSpecifier),tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt}function Qe(T,M,V,ue,tt){return T.modifiers!==M||T.importClause!==V||T.moduleSpecifier!==ue||T.attributes!==tt?br(nS(M,V,ue,tt),T):T}function jE(T,M,V){let ue=G(274);return typeof T=="boolean"&&(T=T?156:void 0),ue.isTypeOnly=T===156,ue.phaseModifier=T,ue.name=M,ue.namedBindings=V,ue.transformFlags|=Fr(ue.name)|Fr(ue.namedBindings),T===156&&(ue.transformFlags|=1),ue.transformFlags&=-67108865,ue}function Mg(T,M,V,ue){return typeof M=="boolean"&&(M=M?156:void 0),T.phaseModifier!==M||T.name!==V||T.namedBindings!==ue?br(jE(M,V,ue),T):T}function qm(T,M){let V=O(301);return V.elements=F(T),V.multiLine=M,V.token=132,V.transformFlags|=4,V}function Sv(T,M,V){return T.elements!==M||T.multiLine!==V?br(qm(M,V),T):T}function qb(T,M){let V=O(302);return V.name=T,V.value=M,V.transformFlags|=4,V}function Iu(T,M,V){return T.name!==M||T.value!==V?br(qb(M,V),T):T}function Sh(T,M){let V=O(303);return V.assertClause=T,V.multiLine=M,V}function Dm(T,M,V){return T.assertClause!==M||T.multiLine!==V?br(Sh(M,V),T):T}function ST(T,M,V){let ue=O(301);return ue.token=V??118,ue.elements=F(T),ue.multiLine=M,ue.transformFlags|=4,ue}function ja(T,M,V){return T.elements!==M||T.multiLine!==V?br(ST(M,V,T.token),T):T}function Sf(T,M){let V=O(302);return V.name=T,V.value=M,V.transformFlags|=4,V}function Ev(T,M,V){return T.name!==M||T.value!==V?br(Sf(M,V),T):T}function UE(T){let M=G(275);return M.name=T,M.transformFlags|=Fr(M.name),M.transformFlags&=-67108865,M}function Ry(T,M){return T.name!==M?br(UE(M),T):T}function rS(T){let M=G(281);return M.name=T,M.transformFlags|=Fr(M.name)|32,M.transformFlags&=-67108865,M}function Xf(T,M){return T.name!==M?br(rS(M),T):T}function Pg(T){let M=O(276);return M.elements=F(T),M.transformFlags|=rs(M.elements),M.transformFlags&=-67108865,M}function ET(T,M){return T.elements!==M?br(Pg(M),T):T}function Av(T,M,V){let ue=G(277);return ue.isTypeOnly=T,ue.propertyName=M,ue.name=V,ue.transformFlags|=Fr(ue.propertyName)|Fr(ue.name),ue.transformFlags&=-67108865,ue}function f_(T,M,V,ue){return T.isTypeOnly!==M||T.propertyName!==V||T.name!==ue?br(Av(M,V,ue),T):T}function iS(T,M,V){let ue=G(278);return ue.modifiers=ls(T),ue.isExportEquals=M,ue.expression=M?i().parenthesizeRightSideOfBinary(64,void 0,V):i().parenthesizeExpressionOfExportDefault(V),ue.transformFlags|=rs(ue.modifiers)|Fr(ue.expression),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function AT(T,M,V){return T.modifiers!==M||T.expression!==V?br(iS(M,T.isExportEquals,V),T):T}function Jr(T,M,V,ue,tt){let rn=G(279);return rn.modifiers=ls(T),rn.isTypeOnly=M,rn.exportClause=V,rn.moduleSpecifier=ue,rn.attributes=rn.assertClause=tt,rn.transformFlags|=rs(rn.modifiers)|Fr(rn.exportClause)|Fr(rn.moduleSpecifier),rn.transformFlags&=-67108865,rn.jsDoc=void 0,rn}function Vr(T,M,V,ue,tt,rn){return T.modifiers!==M||T.isTypeOnly!==V||T.exportClause!==ue||T.moduleSpecifier!==tt||T.attributes!==rn?Sd(Jr(M,V,ue,tt,rn),T):T}function Sd(T,M){return T!==M&&T.modifiers===M.modifiers&&(T.modifiers=M.modifiers),br(T,M)}function HE(T){let M=O(280);return M.elements=F(T),M.transformFlags|=rs(M.elements),M.transformFlags&=-67108865,M}function Dy(T,M){return T.elements!==M?br(HE(M),T):T}function oS(T,M,V){let ue=O(282);return ue.isTypeOnly=T,ue.propertyName=jc(M),ue.name=jc(V),ue.transformFlags|=Fr(ue.propertyName)|Fr(ue.name),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function gC(T,M,V,ue){return T.isTypeOnly!==M||T.propertyName!==V||T.name!==ue?br(oS(M,V,ue),T):T}function t2(){let T=G(283);return T.jsDoc=void 0,T}function zr(T){let M=O(284);return M.expression=T,M.transformFlags|=Fr(M.expression),M.transformFlags&=-67108865,M}function xu(T,M){return T.expression!==M?br(zr(M),T):T}function Wo(T){return O(T)}function yp(T,M,V=!1){let ue=qE(T,V?M&&i().parenthesizeNonArrayTypeOfPostfixType(M):M);return ue.postfix=V,ue}function qE(T,M){let V=O(T);return V.type=M,V}function Jb(T,M,V){return M.type!==V?br(yp(T,V,M.postfix),M):M}function Mr(T,M,V){return M.type!==V?br(qE(T,V),M):M}function yC(T,M){let V=G(318);return V.parameters=ls(T),V.type=M,V.transformFlags=rs(V.parameters)|(V.type?1:0),V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V.typeArguments=void 0,V}function Ex(T,M,V){return T.parameters!==M||T.type!==V?br(yC(M,V),T):T}function cu(T,M=!1){let V=G(323);return V.jsDocPropertyTags=ls(T),V.isArrayType=M,V}function q_(T,M,V){return T.jsDocPropertyTags!==M||T.isArrayType!==V?br(cu(M,V),T):T}function Eh(T){let M=O(310);return M.type=T,M}function Kb(T,M){return T.type!==M?br(Eh(M),T):T}function JE(T,M,V){let ue=G(324);return ue.typeParameters=ls(T),ue.parameters=F(M),ue.type=V,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue}function Xb(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?br(JE(M,V,ue),T):T}function Ef(T){let M=XV(T.kind);return T.tagName.escapedText===Cl(M)?T.tagName:ve(M)}function Jm(T,M,V){let ue=O(T);return ue.tagName=M,ue.comment=V,ue}function Yf(T,M,V){let ue=G(T);return ue.tagName=M,ue.comment=V,ue}function sp(T,M,V,ue){let tt=Jm(346,T??ve("template"),ue);return tt.constraint=M,tt.typeParameters=F(V),tt}function Iv(T,M=Ef(T),V,ue,tt){return T.tagName!==M||T.constraint!==V||T.typeParameters!==ue||T.comment!==tt?br(sp(M,V,ue,tt),T):T}function IT(T,M,V,ue){let tt=Yf(347,T??ve("typedef"),ue);return tt.typeExpression=M,tt.fullName=V,tt.name=Cj(V),tt.locals=void 0,tt.nextContainer=void 0,tt}function Ax(T,M=Ef(T),V,ue,tt){return T.tagName!==M||T.typeExpression!==V||T.fullName!==ue||T.comment!==tt?br(IT(M,V,ue,tt),T):T}function xT(T,M,V,ue,tt,rn){let Or=Yf(342,T??ve("param"),rn);return Or.typeExpression=ue,Or.name=M,Or.isNameFirst=!!tt,Or.isBracketed=V,Or}function Yb(T,M=Ef(T),V,ue,tt,rn,Or){return T.tagName!==M||T.name!==V||T.isBracketed!==ue||T.typeExpression!==tt||T.isNameFirst!==rn||T.comment!==Or?br(xT(M,V,ue,tt,rn,Or),T):T}function Ix(T,M,V,ue,tt,rn){let Or=Yf(349,T??ve("prop"),rn);return Or.typeExpression=ue,Or.name=M,Or.isNameFirst=!!tt,Or.isBracketed=V,Or}function Cy(T,M=Ef(T),V,ue,tt,rn,Or){return T.tagName!==M||T.name!==V||T.isBracketed!==ue||T.typeExpression!==tt||T.isNameFirst!==rn||T.comment!==Or?br(Ix(M,V,ue,tt,rn,Or),T):T}function m_(T,M,V,ue){let tt=Yf(339,T??ve("callback"),ue);return tt.typeExpression=M,tt.fullName=V,tt.name=Cj(V),tt.locals=void 0,tt.nextContainer=void 0,tt}function $b(T,M=Ef(T),V,ue,tt){return T.tagName!==M||T.typeExpression!==V||T.fullName!==ue||T.comment!==tt?br(m_(M,V,ue,tt),T):T}function RT(T,M,V){let ue=Jm(340,T??ve("overload"),V);return ue.typeExpression=M,ue}function xv(T,M=Ef(T),V,ue){return T.tagName!==M||T.typeExpression!==V||T.comment!==ue?br(RT(M,V,ue),T):T}function Qb(T,M,V){let ue=Jm(329,T??ve("augments"),V);return ue.class=M,ue}function Km(T,M=Ef(T),V,ue){return T.tagName!==M||T.class!==V||T.comment!==ue?br(Qb(M,V,ue),T):T}function Ny(T,M,V){let ue=Jm(330,T??ve("implements"),V);return ue.class=M,ue}function Lg(T,M,V){let ue=Jm(348,T??ve("see"),V);return ue.name=M,ue}function Zb(T,M,V,ue){return T.tagName!==M||T.name!==V||T.comment!==ue?br(Lg(M,V,ue),T):T}function dd(T){let M=O(311);return M.name=T,M}function aS(T,M){return T.name!==M?br(dd(M),T):T}function kg(T,M){let V=O(312);return V.left=T,V.right=M,V.transformFlags|=Fr(V.left)|Fr(V.right),V}function DT(T,M,V){return T.left!==M||T.right!==V?br(kg(M,V),T):T}function KE(T,M){let V=O(325);return V.name=T,V.text=M,V}function wg(T,M,V){return T.name!==M?br(KE(M,V),T):T}function vC(T,M){let V=O(326);return V.name=T,V.text=M,V}function xx(T,M,V){return T.name!==M?br(vC(M,V),T):T}function Rx(T,M){let V=O(327);return V.name=T,V.text=M,V}function n2(T,M,V){return T.name!==M?br(Rx(M,V),T):T}function Dx(T,M=Ef(T),V,ue){return T.tagName!==M||T.class!==V||T.comment!==ue?br(Ny(M,V,ue),T):T}function CT(T,M,V){return Jm(T,M??ve(XV(T)),V)}function My(T,M,V=Ef(M),ue){return M.tagName!==V||M.comment!==ue?br(CT(T,V,ue),M):M}function bC(T,M,V,ue){let tt=Jm(T,M??ve(XV(T)),ue);return tt.typeExpression=V,tt}function NT(T,M,V=Ef(M),ue,tt){return M.tagName!==V||M.typeExpression!==ue||M.comment!==tt?br(bC(T,V,ue,tt),M):M}function XE(T,M){return Jm(328,T,M)}function hc(T,M,V){return T.tagName!==M||T.comment!==V?br(XE(M,V),T):T}function ud(T,M,V){let ue=Yf(341,T??ve(XV(341)),V);return ue.typeExpression=M,ue.locals=void 0,ue.nextContainer=void 0,ue}function Cx(T,M=Ef(T),V,ue){return T.tagName!==M||T.typeExpression!==V||T.comment!==ue?br(ud(M,V,ue),T):T}function lp(T,M,V,ue,tt){let rn=Jm(352,T??ve("import"),tt);return rn.importClause=M,rn.moduleSpecifier=V,rn.attributes=ue,rn.comment=tt,rn}function $f(T,M,V,ue,tt,rn){return T.tagName!==M||T.comment!==rn||T.importClause!==V||T.moduleSpecifier!==ue||T.attributes!==tt?br(lp(M,V,ue,tt,rn),T):T}function sS(T){let M=O(322);return M.text=T,M}function Ah(T,M){return T.text!==M?br(sS(M),T):T}function e0(T,M){let V=O(321);return V.comment=T,V.tags=ls(M),V}function Rv(T,M,V){return T.comment!==M||T.tags!==V?br(e0(M,V),T):T}function Nx(T,M,V){let ue=O(285);return ue.openingElement=T,ue.children=F(M),ue.closingElement=V,ue.transformFlags|=Fr(ue.openingElement)|rs(ue.children)|Fr(ue.closingElement)|2,ue}function r2(T,M,V,ue){return T.openingElement!==M||T.children!==V||T.closingElement!==ue?br(Nx(M,V,ue),T):T}function Gl(T,M,V){let ue=O(286);return ue.tagName=T,ue.typeArguments=ls(M),ue.attributes=V,ue.transformFlags|=Fr(ue.tagName)|rs(ue.typeArguments)|Fr(ue.attributes)|2,ue.typeArguments&&(ue.transformFlags|=1),ue}function TC(T,M,V,ue){return T.tagName!==M||T.typeArguments!==V||T.attributes!==ue?br(Gl(M,V,ue),T):T}function YE(T,M,V){let ue=O(287);return ue.tagName=T,ue.typeArguments=ls(M),ue.attributes=V,ue.transformFlags|=Fr(ue.tagName)|rs(ue.typeArguments)|Fr(ue.attributes)|2,M&&(ue.transformFlags|=1),ue}function lS(T,M,V,ue){return T.tagName!==M||T.typeArguments!==V||T.attributes!==ue?br(YE(M,V,ue),T):T}function Mx(T){let M=O(288);return M.tagName=T,M.transformFlags|=Fr(M.tagName)|2,M}function du(T,M){return T.tagName!==M?br(Mx(M),T):T}function vp(T,M,V){let ue=O(289);return ue.openingFragment=T,ue.children=F(M),ue.closingFragment=V,ue.transformFlags|=Fr(ue.openingFragment)|rs(ue.children)|Fr(ue.closingFragment)|2,ue}function $E(T,M,V,ue){return T.openingFragment!==M||T.children!==V||T.closingFragment!==ue?br(vp(M,V,ue),T):T}function MT(T,M){let V=O(12);return V.text=T,V.containsOnlyTriviaWhiteSpaces=!!M,V.transformFlags|=2,V}function bp(T,M,V){return T.text!==M||T.containsOnlyTriviaWhiteSpaces!==V?br(MT(M,V),T):T}function QE(){let T=O(290);return T.transformFlags|=2,T}function Og(){let T=O(291);return T.transformFlags|=2,T}function Px(T,M){let V=G(292);return V.name=T,V.initializer=M,V.transformFlags|=Fr(V.name)|Fr(V.initializer)|2,V}function ZE(T,M,V){return T.name!==M||T.initializer!==V?br(Px(M,V),T):T}function Xm(T){let M=G(293);return M.properties=F(T),M.transformFlags|=rs(M.properties)|2,M}function Lx(T,M){return T.properties!==M?br(Xm(M),T):T}function SC(T){let M=O(294);return M.expression=T,M.transformFlags|=Fr(M.expression)|2,M}function kx(T,M){return T.expression!==M?br(SC(M),T):T}function eA(T,M){let V=O(295);return V.dotDotDotToken=T,V.expression=M,V.transformFlags|=Fr(V.dotDotDotToken)|Fr(V.expression)|2,V}function wx(T,M){return T.expression!==M?br(eA(T.dotDotDotToken,M),T):T}function Dv(T,M){let V=O(296);return V.namespace=T,V.name=M,V.transformFlags|=Fr(V.namespace)|Fr(V.name)|2,V}function Up(T,M,V){return T.namespace!==M||T.name!==V?br(Dv(M,V),T):T}function h_(T,M){let V=O(297);return V.expression=i().parenthesizeExpressionForDisallowedComma(T),V.statements=F(M),V.transformFlags|=Fr(V.expression)|rs(V.statements),V.jsDoc=void 0,V}function tA(T,M,V){return T.expression!==M||T.statements!==V?br(h_(M,V),T):T}function nA(T){let M=O(298);return M.statements=F(T),M.transformFlags=rs(M.statements),M}function os(T,M){return T.statements!==M?br(nA(M),T):T}function Wr(T,M){let V=O(299);switch(V.token=T,V.types=F(M),V.transformFlags|=rs(V.types),T){case 96:V.transformFlags|=1024;break;case 119:V.transformFlags|=1;break;default:return C.assertNever(T)}return V}function Af(T,M){return T.types!==M?br(Wr(T.token,M),T):T}function $c(T,M){let V=O(300);return V.variableDeclaration=X_(T),V.block=M,V.transformFlags|=Fr(V.variableDeclaration)|Fr(V.block)|(T?0:64),V.locals=void 0,V.nextContainer=void 0,V}function PT(T,M,V){return T.variableDeclaration!==M||T.block!==V?br($c(M,V),T):T}function rA(T,M){let V=G(304);return V.name=jc(T),V.initializer=i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=Ib(V.name)|Fr(V.initializer),V.modifiers=void 0,V.questionToken=void 0,V.exclamationToken=void 0,V.jsDoc=void 0,V}function cS(T,M,V){return T.name!==M||T.initializer!==V?LT(rA(M,V),T):T}function LT(T,M){return T!==M&&(T.modifiers=M.modifiers,T.questionToken=M.questionToken,T.exclamationToken=M.exclamationToken),br(T,M)}function iA(T,M){let V=G(305);return V.name=jc(T),V.objectAssignmentInitializer=M&&i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=$k(V.name)|Fr(V.objectAssignmentInitializer)|1024,V.equalsToken=void 0,V.modifiers=void 0,V.questionToken=void 0,V.exclamationToken=void 0,V.jsDoc=void 0,V}function D(T,M,V){return T.name!==M||T.objectAssignmentInitializer!==V?me(iA(M,V),T):T}function me(T,M){return T!==M&&(T.modifiers=M.modifiers,T.questionToken=M.questionToken,T.exclamationToken=M.exclamationToken,T.equalsToken=M.equalsToken),br(T,M)}function Et(T){let M=G(306);return M.expression=i().parenthesizeExpressionForDisallowedComma(T),M.transformFlags|=Fr(M.expression)|128|65536,M.jsDoc=void 0,M}function An(T,M){return T.expression!==M?br(Et(M),T):T}function vi(T,M){let V=G(307);return V.name=jc(T),V.initializer=M&&i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=Fr(V.name)|Fr(V.initializer)|1,V.jsDoc=void 0,V}function wi(T,M,V){return T.name!==M||T.initializer!==V?br(vi(M,V),T):T}function Ao(T,M,V){let ue=t.createBaseSourceFileNode(308);return ue.statements=F(T),ue.endOfFileToken=M,ue.flags|=V,ue.text="",ue.fileName="",ue.path="",ue.resolvedPath="",ue.originalFileName="",ue.languageVersion=1,ue.languageVariant=0,ue.scriptKind=0,ue.isDeclarationFile=!1,ue.hasNoDefaultLib=!1,ue.transformFlags|=rs(ue.statements)|Fr(ue.endOfFileToken),ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.nodeCount=0,ue.identifierCount=0,ue.symbolCount=0,ue.parseDiagnostics=void 0,ue.bindDiagnostics=void 0,ue.bindSuggestionDiagnostics=void 0,ue.lineMap=void 0,ue.externalModuleIndicator=void 0,ue.setExternalModuleIndicator=void 0,ue.pragmas=void 0,ue.checkJsDirective=void 0,ue.referencedFiles=void 0,ue.typeReferenceDirectives=void 0,ue.libReferenceDirectives=void 0,ue.amdDependencies=void 0,ue.commentDirectives=void 0,ue.identifiers=void 0,ue.packageJsonLocations=void 0,ue.packageJsonScope=void 0,ue.imports=void 0,ue.moduleAugmentations=void 0,ue.ambientModuleNames=void 0,ue.classifiableNames=void 0,ue.impliedNodeFormat=void 0,ue}function Li(T){let M=Object.create(T.redirectTarget);return Object.defineProperties(M,{id:{get(){return this.redirectInfo.redirectTarget.id},set(V){this.redirectInfo.redirectTarget.id=V}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(V){this.redirectInfo.redirectTarget.symbol=V}}}),M.redirectInfo=T,M}function Ja(T){let M=Li(T.redirectInfo);return M.flags|=T.flags&-17,M.fileName=T.fileName,M.path=T.path,M.resolvedPath=T.resolvedPath,M.originalFileName=T.originalFileName,M.packageJsonLocations=T.packageJsonLocations,M.packageJsonScope=T.packageJsonScope,M.emitNode=void 0,M}function _c(T){let M=t.createBaseSourceFileNode(308);M.flags|=T.flags&-17;for(let V in T)if(!(Rs(M,V)||!Rs(T,V))){if(V==="emitNode"){M.emitNode=void 0;continue}M[V]=T[V]}return M}function Kd(T){let M=T.redirectInfo?Ja(T):_c(T);return r(M,T),M}function Gu(T,M,V,ue,tt,rn,Or){let ko=Kd(T);return ko.statements=F(M),ko.isDeclarationFile=V,ko.referencedFiles=ue,ko.typeReferenceDirectives=tt,ko.hasNoDefaultLib=rn,ko.libReferenceDirectives=Or,ko.transformFlags=rs(ko.statements)|Fr(ko.endOfFileToken),ko}function kT(T,M,V=T.isDeclarationFile,ue=T.referencedFiles,tt=T.typeReferenceDirectives,rn=T.hasNoDefaultLib,Or=T.libReferenceDirectives){return T.statements!==M||T.isDeclarationFile!==V||T.referencedFiles!==ue||T.typeReferenceDirectives!==tt||T.hasNoDefaultLib!==rn||T.libReferenceDirectives!==Or?br(Gu(T,M,V,ue,tt,rn,Or),T):T}function Vu(T){let M=O(309);return M.sourceFiles=T,M.syntheticFileReferences=void 0,M.syntheticTypeReferences=void 0,M.syntheticLibReferences=void 0,M.hasNoDefaultLib=void 0,M}function t0(T,M){return T.sourceFiles!==M?br(Vu(M),T):T}function Ox(T,M=!1,V){let ue=O(238);return ue.type=T,ue.isSpread=M,ue.tupleNameSource=V,ue}function Cm(T){let M=O(353);return M._children=T,M}function bl(T){let M=O(354);return M.original=T,bt(M,T),M}function oA(T,M){let V=O(356);return V.expression=T,V.original=M,V.transformFlags|=Fr(V.expression)|1,bt(V,M),V}function Cv(T,M){return T.expression!==M?br(oA(M,T.original),T):T}function Ym(){return O(355)}function Nv(T){if(Os(T)&&!DN(T)&&!T.original&&!T.emitNode&&!T.id){if(BM(T))return T.elements;if(Nr(T)&&cie(T.operatorToken))return[T.left,T.right]}return T}function dS(T){let M=O(357);return M.elements=F(km(T,Nv)),M.transformFlags|=rs(M.elements),M}function x5(T,M){return T.elements!==M?br(dS(M),T):T}function i2(T,M){let V=O(358);return V.expression=T,V.thisArg=M,V.transformFlags|=Fr(V.expression)|Fr(V.thisArg),V}function Wx(T,M,V){return T.expression!==M||T.thisArg!==V?br(i2(M,V),T):T}function o2(T){let M=de(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),tw(M,{...T.emitNode.autoGenerate}),M}function c4(T){let M=de(T.escapedText);M.flags|=T.flags&-17,M.jsDoc=T.jsDoc,M.flowNode=T.flowNode,M.symbol=T.symbol,M.transformFlags=T.transformFlags,r(M,T);let V=sE(T);return V&&av(M,V),M}function n0(T){let M=Se(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),tw(M,{...T.emitNode.autoGenerate}),M}function Fx(T){let M=Se(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),M}function aA(T){if(T===void 0)return T;if(Yi(T))return Kd(T);if(pl(T))return o2(T);if(He(T))return c4(T);if(GS(T))return n0(T);if(eo(T))return Fx(T);let M=a6(T.kind)?t.createBaseNode(T.kind):t.createBaseTokenNode(T.kind);M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T);for(let V in T)Rs(M,V)||!Rs(T,V)||(M[V]=T[V]);return M}function R5(T,M,V){return er(Gp(void 0,void 0,void 0,void 0,M?[M]:[],void 0,hl(T,!0)),void 0,V?[V]:[])}function uS(T,M,V){return er(Jf(void 0,void 0,M?[M]:[],void 0,void 0,hl(T,!0)),void 0,V?[V]:[])}function sA(){return bh(J("0"))}function a2(T){return iS(void 0,!1,T)}function zx(T){return Jr(void 0,!1,HE([oS(!1,void 0,T)]))}function uo(T,M){return M==="null"?k.createStrictEquality(T,je()):M==="undefined"?k.createStrictEquality(T,sA()):k.createStrictEquality(ip(T),ye(M))}function r0(T,M){return M==="null"?k.createStrictInequality(T,je()):M==="undefined"?k.createStrictInequality(T,sA()):k.createStrictInequality(ip(T),ye(M))}function ar(T,M,V){return zS(T)?Za(Hs(T,void 0,M),void 0,void 0,V):er(Ec(T,M),void 0,V)}function s2(T,M,V){return ar(T,"bind",[M,...V])}function EC(T,M,V){return ar(T,"call",[M,...V])}function AC(T,M,V){return ar(T,"apply",[M,V])}function pS(T,M,V){return ar(ve(T),M,V)}function d4(T,M){return ar(T,"slice",M===void 0?[]:[Lv(M)])}function lA(T,M){return ar(T,"concat",M)}function D5(T,M,V){return pS("Object","defineProperty",[T,Lv(M),V])}function IC(T,M){return pS("Object","getOwnPropertyDescriptor",[T,Lv(M)])}function J_(T,M,V){return pS("Reflect","get",V?[T,M,V]:[T,M])}function u4(T,M,V,ue){return pS("Reflect","set",ue?[T,M,V,ue]:[T,M,V])}function wT(T,M,V){return V?(T.push(rA(M,V)),!0):!1}function C5(T,M){let V=[];wT(V,"enumerable",Lv(T.enumerable)),wT(V,"configurable",Lv(T.configurable));let ue=wT(V,"writable",Lv(T.writable));ue=wT(V,"value",T.value)||ue;let tt=wT(V,"get",T.get);return tt=wT(V,"set",T.set)||tt,C.assert(!(ue&&tt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ns(V,!M)}function l2(T,M){switch(T.kind){case 218:return ld(T,M);case 217:return nf(T,T.type,M);case 235:return mt(T,M,T.type);case 239:return Lr(T,M,T.type);case 236:return Rn(T,M);case 234:return Vb(T,M,T.typeArguments);case 356:return Cv(T,M)}}function p4(T){return wu(T)&&Os(T)&&Os(ov(T))&&Os(Qh(T))&&!vt(lD(T))&&!vt(ew(T))}function c2(T,M,V=63){return T&&b3(T,V)&&!p4(T)?l2(T,c2(T.expression,M)):M}function OT(T,M,V){if(!M)return T;let ue=Sx(M,M.label,Nb(M.statement)?OT(T,M.statement):T);return V&&V(M),ue}function K_(T,M){let V=ds(T);switch(V.kind){case 80:return M;case 110:case 9:case 10:case 11:return!1;case 210:return V.elements.length!==0;case 211:return V.properties.length>0;default:return!0}}function xC(T,M,V,ue=!1){let tt=Ul(T,63),rn,Or;return fp(tt)?(rn=ge(),Or=tt):OM(tt)?(rn=ge(),Or=V!==void 0&&V<2?bt(ve("_super"),tt):tt):Qa(tt)&8192?(rn=sA(),Or=i().parenthesizeLeftSideOfAccess(tt,!1)):qr(tt)?K_(tt.expression,ue)?(rn=xe(M),Or=Ec(bt(k.createAssignment(rn,tt.expression),tt.expression),tt.name),bt(Or,tt)):(rn=tt.expression,Or=tt):Ws(tt)?K_(tt.expression,ue)?(rn=xe(M),Or=Pd(bt(k.createAssignment(rn,tt.expression),tt.expression),tt.argumentExpression),bt(Or,tt)):(rn=tt.expression,Or=tt):(rn=sA(),Or=i().parenthesizeLeftSideOfAccess(T,!1)),{target:Or,thisArg:rn}}function __(T,M){return Ec(bd(Ns([ne(void 0,"value",[Di(void 0,void 0,T,void 0,void 0,void 0)],hl([jp(M)]))])),"value")}function ee(T){return T.length>10?dS(T):_u(T,k.createComma)}function ke(T,M,V,ue=0,tt){let rn=tt?T&&Q8(T):Oo(T);if(rn&&He(rn)&&!pl(rn)){let Or=us(bt(aA(rn),rn),rn.parent);return ue|=Qa(rn),V||(ue|=96),M||(ue|=3072),ue&&Cr(Or,ue),Or}return Xe(T)}function rt(T,M,V){return ke(T,M,V,98304)}function Pt(T,M,V,ue){return ke(T,M,V,32768,ue)}function nn(T,M,V){return ke(T,M,V,16384)}function _n(T,M,V){return ke(T,M,V)}function ei(T,M,V,ue){let tt=Ec(T,Os(M)?M:aA(M));bt(tt,M);let rn=0;return ue||(rn|=96),V||(rn|=3072),rn&&Cr(tt,rn),tt}function wr(T,M,V,ue){return T&&di(M,32)?ei(T,ke(M),V,ue):nn(M,V,ue)}function pr(T,M,V,ue){let tt=zs(T,M,0,V);return Is(T,M,tt,ue)}function Si(T){return ka(T.expression)&&T.expression.text==="use strict"}function ao(){return ou(jp(ye("use strict")))}function zs(T,M,V=0,ue){C.assert(M.length===0,"Prologue directives should be at the first statement in the target statements array");let tt=!1,rn=T.length;for(;V<rn;){let Or=T[V];if(jh(Or))Si(Or)&&(tt=!0),M.push(Or);else break;V++}return ue&&!tt&&M.push(ao()),V}function Is(T,M,V,ue,tt=n1){let rn=T.length;for(;V!==void 0&&V<rn;){let Or=T[V];if(Qa(Or)&2097152&&tt(Or))Bn(M,ue?st(Or,ue,ji):Or);else break;V++}return V}function as(T){return xj(T)?T:bt(F([ao(),...T]),T)}function Qf(T){return C.assert(Vn(T,fte),"Cannot lift nodes to a Block."),ig(T)||hl(T)}function If(T,M,V){let ue=V;for(;ue<T.length&&M(T[ue]);)ue++;return ue}function Mv(T,M){if(!vt(M))return T;let V=If(T,jh,0),ue=If(T,M6,V),tt=If(T,P6,ue),rn=If(M,jh,0),Or=If(M,M6,rn),ko=If(M,P6,Or),nl=If(M,KL,ko);C.assert(nl===M.length,"Expected declarations to be valid standard or custom prologues");let rf=s1(T)?T.slice():T;if(nl>ko&&rf.splice(tt,0,...M.slice(ko,nl)),ko>Or&&rf.splice(ue,0,...M.slice(Or,ko)),Or>rn&&rf.splice(V,0,...M.slice(rn,Or)),rn>0)if(V===0)rf.splice(0,0,...M.slice(0,rn));else{let o0=new Map;for(let Ih=0;Ih<V;Ih++){let Gx=T[Ih];o0.set(Gx.expression.text,!0)}for(let Ih=rn-1;Ih>=0;Ih--){let Gx=M[Ih];o0.has(Gx.expression.text)||rf.unshift(Gx)}}return s1(T)?bt(F(rf,T.hasTrailingComma),T):T}function Pv(T,M){let V;return typeof M=="number"?V=Wt(M):V=M,sl(T)?ir(T,V,T.name,T.constraint,T.default):to(T)?lo(T,V,T.dotDotDotToken,T.name,T.questionToken,T.type,T.initializer):dD(T)?gr(T,V,T.typeParameters,T.parameters,T.type):Tu(T)?Ni(T,V,T.name,T.questionToken,T.type):Po(T)?$e(T,V,T.name,T.questionToken??T.exclamationToken,T.type,T.initializer):Bm(T)?mn(T,V,T.name,T.questionToken,T.typeParameters,T.parameters,T.type):Nl(T)?ri(T,V,T.asteriskToken,T.name,T.questionToken,T.typeParameters,T.parameters,T.type,T.body):Ml(T)?Uo(T,V,T.parameters,T.body):jf(T)?le(T,V,T.name,T.parameters,T.type,T.body):_p(T)?Fe(T,V,T.name,T.parameters,T.body):Db(T)?Ot(T,V,T.parameters,T.type):Us(T)?Eu(T,V,T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body):Xs(T)?B_(T,V,T.typeParameters,T.parameters,T.type,T.equalsGreaterThanToken,T.body):uc(T)?G_(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):ac(T)?Td(T,V,T.declarationList):Ql(T)?ns(T,V,T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body):Cc(T)?Iy(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):gd(T)?U_(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):ym(T)?qd(T,V,T.name,T.typeParameters,T.type):q0(T)?Jd(T,V,T.name,T.members):pc(T)?Au(T,V,T.name,T.body):Bc(T)?Tv(T,V,T.isTypeOnly,T.name,T.moduleReference):vl(T)?Qe(T,V,T.importClause,T.moduleSpecifier,T.attributes):ll(T)?AT(T,V,T.expression):fc(T)?Vr(T,V,T.isTypeOnly,T.exportClause,T.moduleSpecifier,T.attributes):C.assertNever(T)}function Wg(T,M){return to(T)?lo(T,M,T.dotDotDotToken,T.name,T.questionToken,T.type,T.initializer):Po(T)?$e(T,M,T.name,T.questionToken??T.exclamationToken,T.type,T.initializer):Nl(T)?ri(T,M,T.asteriskToken,T.name,T.questionToken,T.typeParameters,T.parameters,T.type,T.body):jf(T)?le(T,M,T.name,T.parameters,T.type,T.body):_p(T)?Fe(T,M,T.name,T.parameters,T.body):uc(T)?G_(T,M,T.name,T.typeParameters,T.heritageClauses,T.members):Cc(T)?Iy(T,M,T.name,T.typeParameters,T.heritageClauses,T.members):C.assertNever(T)}function i0(T,M){switch(T.kind){case 178:return le(T,T.modifiers,M,T.parameters,T.type,T.body);case 179:return Fe(T,T.modifiers,M,T.parameters,T.body);case 175:return ri(T,T.modifiers,T.asteriskToken,M,T.questionToken,T.typeParameters,T.parameters,T.type,T.body);case 174:return mn(T,T.modifiers,M,T.questionToken,T.typeParameters,T.parameters,T.type);case 173:return $e(T,T.modifiers,M,T.questionToken??T.exclamationToken,T.type,T.initializer);case 172:return Ni(T,T.modifiers,M,T.questionToken,T.type);case 304:return cS(T,M,T.initializer)}}function ls(T){return T?F(T):void 0}function jc(T){return typeof T=="string"?ve(T):T}function Lv(T){return typeof T=="string"?ye(T):typeof T=="number"?J(T):typeof T=="boolean"?T?Ge():We():T}function uu(T){return T&&i().parenthesizeExpressionForDisallowedComma(T)}function Bx(T){return typeof T=="number"?ce(T):T}function Fg(T){return T&&Aie(T)?bt(r(xm(),T),T):T}function X_(T){return typeof T=="string"||T&&!yi(T)?Ay(T,void 0,void 0,void 0):T}function br(T,M){return T!==M&&(r(T,M),bt(T,M)),T}}function XV(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return C.fail(`Unsupported kind: ${C.formatSyntaxKind(e)}`)}}var iv,q0e={};function rGe(e,t){switch(iv||(iv=lg(99,!1,0)),e){case 15:iv.setText("`"+t+"`");break;case 16:iv.setText("`"+t+"${");break;case 17:iv.setText("}"+t+"${");break;case 18:iv.setText("}"+t+"`");break}let r=iv.scan();if(r===20&&(r=iv.reScanTemplateToken(!1)),iv.isUnterminated())return iv.setText(void 0),q0e;let i;switch(r){case 15:case 16:case 17:case 18:i=iv.getTokenValue();break}return i===void 0||iv.scan()!==1?(iv.setText(void 0),q0e):(iv.setText(void 0),i)}function Ib(e){return e&&He(e)?$k(e):Fr(e)}function $k(e){return Fr(e)&-67108865}function iGe(e,t){return t|e.transformFlags&134234112}function Fr(e){if(!e)return 0;let t=e.transformFlags&~oGe(e.kind);return nd(e)&&bc(e.name)?iGe(e.name,t):t}function rs(e){return e?e.transformFlags:0}function J0e(e){let t=0;for(let r of e)t|=Fr(r);e.transformFlags=t}function oGe(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var YW=Ure();function $W(e){return e.flags|=16,e}var aGe={createBaseSourceFileNode:e=>$W(YW.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>$W(YW.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>$W(YW.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>$W(YW.createBaseTokenNode(e)),createBaseNode:e=>$W(YW.createBaseNode(e))},L=Yk(4,aGe),K0e;function X0e(e,t,r){return new(K0e||(K0e=Rd.getSourceMapSourceConstructor()))(e,t,r)}function jr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=sGe(r,e.emitNode))}return e}function sGe(e,t){let{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:d,constantValue:g,helpers:_,startsOnNewLine:v,snippetElement:E,classThis:A,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Xr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Xr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),d&&(t.tokenSourceMapRanges=lGe(d,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),_)for(let N of _)t.helpers=$g(t.helpers,N);return v!==void 0&&(t.startsOnNewLine=v),E!==void 0&&(t.snippetElement=E),A&&(t.classThis=A),R&&(t.assignedName=R),t}function lGe(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}function jd(e){if(e.emitNode)C.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(DN(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};let t=Wn(jo(Wn(e)))??C.fail("Could not determine parsed source file.");jd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function YV(e){var t,r;let i=(r=(t=Wn(jo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Qk(e){let t=jd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Cr(e,t){return jd(e).flags=t,e}function $h(e,t){let r=jd(e);return r.flags=r.flags|t,e}function Zk(e,t){return jd(e).internalFlags=t,e}function aE(e,t){let r=jd(e);return r.internalFlags=r.internalFlags|t,e}function ov(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ua(e,t){return jd(e).sourceMapRange=t,e}function Y0e(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Yre(e,t,r){let i=jd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function PM(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function QW(e,t){return jd(e).startsOnNewLine=t,e}function Qh(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function Dc(e,t){return jd(e).commentRange=t,e}function lD(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function B0(e,t){return jd(e).leadingComments=t,e}function xb(e,t,r,i){return B0(e,Bn(lD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function ew(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function DI(e,t){return jd(e).trailingComments=t,e}function LM(e,t,r,i){return DI(e,Bn(ew(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function $re(e,t){B0(e,lD(t)),DI(e,ew(t));let r=jd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Qre(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Zre(e,t){let r=jd(e);return r.constantValue=t,e}function CI(e,t){let r=jd(e);return r.helpers=Bn(r.helpers,t),e}function Eg(e,t){if(vt(t)){let r=jd(e);for(let i of t)r.helpers=$g(r.helpers,i)}return e}function $0e(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?uN(i,t):!1}function $V(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function eie(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!vt(o))return;let s=jd(t),l=0;for(let u=0;u<o.length;u++){let d=o[u];r(d)?(l++,s.helpers=$g(s.helpers,d)):l>0&&(o[u-l]=d)}l>0&&(o.length-=l)}function QV(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function ZV(e,t){let r=jd(e);return r.snippetElement=t,e}function ej(e){return jd(e).internalFlags|=4,e}function tie(e,t){let r=jd(e);return r.typeNode=t,e}function nie(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function av(e,t){return jd(e).identifierTypeArguments=t,e}function sE(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function tw(e,t){return jd(e).autoGenerate=t,e}function Q0e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function rie(e,t){return jd(e).generatedImportReference=t,e}function iie(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var oie=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(oie||{});function aie(e){let t=e.factory,r=Cu(()=>Zk(t.createTrue(),8)),i=Cu(()=>Zk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:N,createRunInitializersHelper:P,createAssignHelper:k,createAwaitHelper:F,createAsyncGeneratorHelper:O,createAsyncDelegatorHelper:G,createAsyncValuesHelper:j,createRestHelper:J,createAwaiterHelper:Z,createExtendsHelper:q,createTemplateObjectHelper:ye,createSpreadArrayHelper:ie,createPropKeyHelper:K,createSetFunctionNameHelper:pe,createValuesHelper:de,createReadHelper:fe,createGeneratorHelper:ve,createImportStarHelper:xe,createImportStarCallbackHelper:Y,createImportDefaultHelper:Ce,createExportStarHelper:Xe,createClassPrivateFieldGetHelper:Se,createClassPrivateFieldSetHelper:re,createClassPrivateFieldInHelper:be,createAddDisposableResourceHelper:Ne,createDisposeResourcesHelper:Be,createRewriteRelativeImportExtensionsHelper:lt};function o(ce){return Cr(t.createIdentifier(ce),8196)}function s(ce,De,ge,je){e.requestEmitHelper(cGe);let Ge=[];return Ge.push(t.createArrayLiteralExpression(ce,!0)),Ge.push(De),ge&&(Ge.push(ge),je&&Ge.push(je)),t.createCallExpression(o("__decorate"),void 0,Ge)}function l(ce,De){return e.requestEmitHelper(dGe),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(ce),De])}function u(ce,De,ge){return e.requestEmitHelper(uGe),bt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(De+""),ce]),ge)}function d(ce){let De=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),ce.name),t.createPropertyAssignment(t.createIdentifier("metadata"),ce.metadata)];return t.createObjectLiteralExpression(De)}function g(ce){let De=ce.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ce.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ce.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,De))}function _(ce){let De=ce.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ce.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ce.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(De,t.createIdentifier("value")))])))}function v(ce){let De=ce.computed?ce.name:He(ce.name)?t.createStringLiteralFromNode(ce.name):ce.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(De,103,t.createIdentifier("obj"))))}function E(ce,De){let ge=[];return ge.push(v(ce)),De.get&&ge.push(g(ce)),De.set&&ge.push(_(ce)),t.createObjectLiteralExpression(ge)}function A(ce){let De=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(ce.kind)),t.createPropertyAssignment(t.createIdentifier("name"),ce.name.computed?ce.name.name:t.createStringLiteralFromNode(ce.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),ce.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),ce.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),E(ce.name,ce.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),ce.metadata)];return t.createObjectLiteralExpression(De)}function R(ce){return ce.kind==="class"?d(ce):A(ce)}function N(ce,De,ge,je,Ge,We){return e.requestEmitHelper(pGe),t.createCallExpression(o("__esDecorate"),void 0,[ce??t.createNull(),De??t.createNull(),ge,R(je),Ge,We])}function P(ce,De,ge){return e.requestEmitHelper(fGe),t.createCallExpression(o("__runInitializers"),void 0,ge?[ce,De,ge]:[ce,De])}function k(ce){return Ga(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,ce):(e.requestEmitHelper(mGe),t.createCallExpression(o("__assign"),void 0,ce))}function F(ce){return e.requestEmitHelper(ZW),t.createCallExpression(o("__await"),void 0,[ce])}function O(ce,De){return e.requestEmitHelper(ZW),e.requestEmitHelper(hGe),(ce.emitNode||(ce.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[De?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),ce])}function G(ce){return e.requestEmitHelper(ZW),e.requestEmitHelper(_Ge),t.createCallExpression(o("__asyncDelegator"),void 0,[ce])}function j(ce){return e.requestEmitHelper(gGe),t.createCallExpression(o("__asyncValues"),void 0,[ce])}function J(ce,De,ge,je){e.requestEmitHelper(yGe);let Ge=[],We=0;for(let at=0;at<De.length-1;at++){let Wt=Dj(De[at]);if(Wt)if(va(Wt)){C.assertIsDefined(ge,"Encountered computed property name but 'computedTempVariables' argument was not provided.");let cn=ge[We];We++,Ge.push(t.createConditionalExpression(t.createTypeCheck(cn,"symbol"),void 0,cn,void 0,t.createAdd(cn,t.createStringLiteral(""))))}else Ge.push(t.createStringLiteralFromNode(Wt))}return t.createCallExpression(o("__rest"),void 0,[ce,bt(t.createArrayLiteralExpression(Ge),je)])}function Z(ce,De,ge,je,Ge){e.requestEmitHelper(vGe);let We=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,je??[],void 0,Ge);return(We.emitNode||(We.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[ce?t.createThis():t.createVoidZero(),De??t.createVoidZero(),ge?dw(t,ge):t.createVoidZero(),We])}function q(ce){return e.requestEmitHelper(bGe),t.createCallExpression(o("__extends"),void 0,[ce,t.createUniqueName("_super",48)])}function ye(ce,De){return e.requestEmitHelper(TGe),t.createCallExpression(o("__makeTemplateObject"),void 0,[ce,De])}function ie(ce,De,ge){return e.requestEmitHelper(EGe),t.createCallExpression(o("__spreadArray"),void 0,[ce,De,ge?r():i()])}function K(ce){return e.requestEmitHelper(AGe),t.createCallExpression(o("__propKey"),void 0,[ce])}function pe(ce,De,ge){return e.requestEmitHelper(IGe),e.factory.createCallExpression(o("__setFunctionName"),void 0,ge?[ce,De,e.factory.createStringLiteral(ge)]:[ce,De])}function de(ce){return e.requestEmitHelper(xGe),t.createCallExpression(o("__values"),void 0,[ce])}function fe(ce,De){return e.requestEmitHelper(SGe),t.createCallExpression(o("__read"),void 0,De!==void 0?[ce,t.createNumericLiteral(De+"")]:[ce])}function ve(ce){return e.requestEmitHelper(RGe),t.createCallExpression(o("__generator"),void 0,[t.createThis(),ce])}function xe(ce){return e.requestEmitHelper(eTe),t.createCallExpression(o("__importStar"),void 0,[ce])}function Y(){return e.requestEmitHelper(eTe),o("__importStar")}function Ce(ce){return e.requestEmitHelper(CGe),t.createCallExpression(o("__importDefault"),void 0,[ce])}function Xe(ce,De=t.createIdentifier("exports")){return e.requestEmitHelper(NGe),e.requestEmitHelper(lie),t.createCallExpression(o("__exportStar"),void 0,[ce,De])}function Se(ce,De,ge,je){e.requestEmitHelper(MGe);let Ge;return je?Ge=[ce,De,t.createStringLiteral(ge),je]:Ge=[ce,De,t.createStringLiteral(ge)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,Ge)}function re(ce,De,ge,je,Ge){e.requestEmitHelper(PGe);let We;return Ge?We=[ce,De,ge,t.createStringLiteral(je),Ge]:We=[ce,De,ge,t.createStringLiteral(je)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,We)}function be(ce,De){return e.requestEmitHelper(LGe),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[ce,De])}function Ne(ce,De,ge){return e.requestEmitHelper(kGe),t.createCallExpression(o("__addDisposableResource"),void 0,[ce,De,ge?t.createTrue():t.createFalse()])}function Be(ce){return e.requestEmitHelper(wGe),t.createCallExpression(o("__disposeResources"),void 0,[ce])}function lt(ce){return e.requestEmitHelper(OGe),t.createCallExpression(o("__rewriteRelativeImportExtension"),void 0,e.getCompilerOptions().jsx===1?[ce,t.createTrue()]:[ce])}}function sie(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:js(e.priority,t.priority)}function Z0e(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}}var cGe={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;
};`},dGe={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);
};`},uGe={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); }
};`},pGe={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;
};`},fGe={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;
};`},mGe={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);
};`},ZW={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); }`},hGe={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[ZW],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 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), 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]); }
};`},_Ge={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[ZW],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; }
};`},gGe={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); }
};`},yGe={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;
};`},vGe={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());
});
};`},bGe={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 __());
};
})();`},TGe={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;
};`},SGe={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;
};`},EGe={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));
};`},AGe={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
var __propKey = (this && this.__propKey) || function (x) {
return typeof x === "symbol" ? x : "".concat(x);
};`},IGe={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 });
};`},xGe={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.");
};`},RGe={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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
return g.next = verb(0), g["throw"] = verb(1), g["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 };
}
};`},lie={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];
}));`},DGe={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;
});`},eTe={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[lie,DGe],priority:2,text:`
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();`},CGe={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},NGe={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[lie],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);
};`},MGe={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);
};`},PGe={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;
};`},LGe={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);
};`},kGe={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, inner;
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 (async) inner = dispose;
}
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
env.stack.push({ value: value, dispose: dispose, async: async });
}
else if (async) {
env.stack.push({ async: true });
}
return value;
};`},wGe={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;
}
var r, s = 0;
function next() {
while (r = env.stack.pop()) {
try {
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
if (r.dispose) {
var result = r.dispose.call(r.value);
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
}
else s |= 1;
}
catch (e) {
fail(e);
}
}
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
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;
});`},OGe={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:`
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {
return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
});
}
return path;
};`},e3={name:"typescript:async-super",scoped:!0,text:Z0e`
const ${"_superIndex"} = name => super[name];`},t3={name:"typescript:advanced-async-super",scoped:!0,text:Z0e`
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 kM(e,t){return Zo(e)&&He(e.expression)&&(Qa(e.expression)&8192)!==0&&e.expression.escapedText===t}function ep(e){return e.kind===9}function cD(e){return e.kind===10}function ka(e){return e.kind===11}function NI(e){return e.kind===12}function tj(e){return e.kind===14}function lE(e){return e.kind===15}function MI(e){return e.kind===16}function nj(e){return e.kind===17}function n3(e){return e.kind===18}function r3(e){return e.kind===26}function cie(e){return e.kind===28}function rj(e){return e.kind===40}function ij(e){return e.kind===41}function nw(e){return e.kind===42}function rw(e){return e.kind===54}function Rb(e){return e.kind===58}function die(e){return e.kind===59}function i3(e){return e.kind===29}function uie(e){return e.kind===39}function He(e){return e.kind===80}function eo(e){return e.kind===81}function PI(e){return e.kind===95}function o3(e){return e.kind===90}function wM(e){return e.kind===134}function pie(e){return e.kind===131}function oj(e){return e.kind===135}function fie(e){return e.kind===148}function LI(e){return e.kind===126}function mie(e){return e.kind===128}function hie(e){return e.kind===164}function aj(e){return e.kind===129}function OM(e){return e.kind===108}function WM(e){return e.kind===102}function _ie(e){return e.kind===84}function Lu(e){return e.kind===167}function va(e){return e.kind===168}function sl(e){return e.kind===169}function to(e){return e.kind===170}function zc(e){return e.kind===171}function Tu(e){return e.kind===172}function Po(e){return e.kind===173}function Bm(e){return e.kind===174}function Nl(e){return e.kind===175}function $l(e){return e.kind===176}function Ml(e){return e.kind===177}function jf(e){return e.kind===178}function _p(e){return e.kind===179}function kI(e){return e.kind===180}function FM(e){return e.kind===181}function Db(e){return e.kind===182}function wI(e){return e.kind===183}function wp(e){return e.kind===184}function k_(e){return e.kind===185}function dD(e){return e.kind===186}function N1(e){return e.kind===187}function ku(e){return e.kind===188}function iw(e){return e.kind===189}function OI(e){return e.kind===190}function uD(e){return e.kind===203}function a3(e){return e.kind===191}function s3(e){return e.kind===192}function sv(e){return e.kind===193}function WI(e){return e.kind===194}function M1(e){return e.kind===195}function cE(e){return e.kind===196}function dE(e){return e.kind===197}function zM(e){return e.kind===198}function G0(e){return e.kind===199}function P1(e){return e.kind===200}function uE(e){return e.kind===201}function lv(e){return e.kind===202}function Zh(e){return e.kind===206}function sj(e){return e.kind===205}function gie(e){return e.kind===204}function pf(e){return e.kind===207}function cv(e){return e.kind===208}function Ha(e){return e.kind===209}function Cd(e){return e.kind===210}function Wa(e){return e.kind===211}function qr(e){return e.kind===212}function Ws(e){return e.kind===213}function Zo(e){return e.kind===214}function L1(e){return e.kind===215}function V0(e){return e.kind===216}function l3(e){return e.kind===217}function wu(e){return e.kind===218}function Us(e){return e.kind===219}function Xs(e){return e.kind===220}function yie(e){return e.kind===221}function pD(e){return e.kind===222}function FI(e){return e.kind===223}function Cb(e){return e.kind===224}function j0(e){return e.kind===225}function lj(e){return e.kind===226}function Nr(e){return e.kind===227}function pE(e){return e.kind===228}function c3(e){return e.kind===229}function ow(e){return e.kind===230}function Uf(e){return e.kind===231}function uc(e){return e.kind===232}function Kc(e){return e.kind===233}function dy(e){return e.kind===234}function fD(e){return e.kind===235}function mD(e){return e.kind===239}function zI(e){return e.kind===236}function fE(e){return e.kind===237}function tTe(e){return e.kind===238}function vie(e){return e.kind===356}function BM(e){return e.kind===357}function hD(e){return e.kind===240}function bie(e){return e.kind===241}function ea(e){return e.kind===242}function ac(e){return e.kind===244}function cj(e){return e.kind===243}function od(e){return e.kind===245}function U0(e){return e.kind===246}function nTe(e){return e.kind===247}function dj(e){return e.kind===248}function H0(e){return e.kind===249}function d3(e){return e.kind===250}function aw(e){return e.kind===251}function rTe(e){return e.kind===252}function iTe(e){return e.kind===253}function ef(e){return e.kind===254}function Tie(e){return e.kind===255}function GM(e){return e.kind===256}function Nb(e){return e.kind===257}function uj(e){return e.kind===258}function mE(e){return e.kind===259}function oTe(e){return e.kind===260}function yi(e){return e.kind===261}function _d(e){return e.kind===262}function Ql(e){return e.kind===263}function Cc(e){return e.kind===264}function gd(e){return e.kind===265}function ym(e){return e.kind===266}function q0(e){return e.kind===267}function pc(e){return e.kind===268}function e_(e){return e.kind===269}function VM(e){return e.kind===270}function sw(e){return e.kind===271}function Bc(e){return e.kind===272}function vl(e){return e.kind===273}function Gm(e){return e.kind===274}function aTe(e){return e.kind===303}function Sie(e){return e.kind===301}function sTe(e){return e.kind===302}function hE(e){return e.kind===301}function Eie(e){return e.kind===302}function Ag(e){return e.kind===275}function w_(e){return e.kind===281}function t_(e){return e.kind===276}function Su(e){return e.kind===277}function ll(e){return e.kind===278}function fc(e){return e.kind===279}function Hf(e){return e.kind===280}function iu(e){return e.kind===282}function u3(e){return e.kind===80||e.kind===11}function lTe(e){return e.kind===283}function Aie(e){return e.kind===354}function BI(e){return e.kind===358}function uy(e){return e.kind===284}function n_(e){return e.kind===285}function _E(e){return e.kind===286}function ph(e){return e.kind===287}function k1(e){return e.kind===288}function J0(e){return e.kind===289}function Vm(e){return e.kind===290}function Iie(e){return e.kind===291}function r_(e){return e.kind===292}function w1(e){return e.kind===293}function GI(e){return e.kind===294}function _D(e){return e.kind===295}function fh(e){return e.kind===296}function gD(e){return e.kind===297}function jM(e){return e.kind===298}function Op(e){return e.kind===299}function O1(e){return e.kind===300}function Nc(e){return e.kind===304}function Ud(e){return e.kind===305}function Ig(e){return e.kind===306}function py(e){return e.kind===307}function Yi(e){return e.kind===308}function xie(e){return e.kind===309}function K0(e){return e.kind===310}function UM(e){return e.kind===311}function X0(e){return e.kind===312}function Rie(e){return e.kind===325}function Die(e){return e.kind===326}function cTe(e){return e.kind===327}function Cie(e){return e.kind===313}function Nie(e){return e.kind===314}function yD(e){return e.kind===315}function p3(e){return e.kind===316}function pj(e){return e.kind===317}function vD(e){return e.kind===318}function f3(e){return e.kind===319}function dTe(e){return e.kind===320}function mh(e){return e.kind===321}function gE(e){return e.kind===323}function dv(e){return e.kind===324}function VI(e){return e.kind===329}function uTe(e){return e.kind===331}function Mie(e){return e.kind===333}function fj(e){return e.kind===339}function mj(e){return e.kind===334}function hj(e){return e.kind===335}function _j(e){return e.kind===336}function gj(e){return e.kind===337}function m3(e){return e.kind===338}function bD(e){return e.kind===340}function yj(e){return e.kind===332}function pTe(e){return e.kind===348}function lw(e){return e.kind===341}function ff(e){return e.kind===342}function h3(e){return e.kind===343}function vj(e){return e.kind===344}function HM(e){return e.kind===345}function vm(e){return e.kind===346}function yE(e){return e.kind===347}function fTe(e){return e.kind===328}function Pie(e){return e.kind===349}function _3(e){return e.kind===330}function g3(e){return e.kind===351}function mTe(e){return e.kind===350}function i_(e){return e.kind===352}function TD(e){return e.kind===353}var qM=new WeakMap;function bj(e,t){var r;let i=e.kind;return a6(i)?i===353?e._children:(r=qM.get(t))==null?void 0:r.get(e):ae}function Lie(e,t,r){e.kind===353&&C.fail("Should not need to re-set the children of a SyntaxList.");let i=qM.get(t);return i===void 0&&(i=new WeakMap,qM.set(t,i)),i.set(e,r),r}function Tj(e,t){var r;e.kind===353&&C.fail("Did not expect to unset the children of a SyntaxList."),(r=qM.get(t))==null||r.delete(e)}function kie(e,t){let r=qM.get(e);r!==void 0&&(qM.delete(e),qM.set(t,r))}function cw(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function vE(e,t,r,i){if(va(r))return bt(e.createElementAccessExpression(t,r.expression),i);{let o=bt(cg(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return $h(o,128),o}}function wie(e,t){let r=$0.createIdentifier(e||"React");return us(r,jo(t)),r}function Oie(e,t,r){if(Lu(t)){let i=Oie(e,t.left,r),o=e.createIdentifier(Kr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return wie(Kr(t),r)}function Sj(e,t,r,i){return t?Oie(e,t,i):e.createPropertyAccessExpression(wie(r,i),"createElement")}function WGe(e,t,r,i){return t?Oie(e,t,i):e.createPropertyAccessExpression(wie(r,i),"Fragment")}function Wie(e,t,r,i,o,s){let l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(let u of o)ou(u),l.push(u);else l.push(o[0]);return bt(e.createCallExpression(t,void 0,l),s)}function Fie(e,t,r,i,o,s,l){let d=[WGe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let g of o)ou(g),d.push(g);else d.push(o[0]);return bt(e.createCallExpression(Sj(e,t,i,s),void 0,d),l)}function Ej(e,t,r){if(_d(t)){let i=$a(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return bt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=bt(e.createAssignment(t,r),t);return bt(e.createExpressionStatement(i),t)}}function dw(e,t){if(Lu(t)){let r=dw(e,t.left),i=us(bt(e.cloneNode(t.right),t.right),t.right.parent);return bt(e.createPropertyAccessExpression(r,i),t)}else return us(bt(e.cloneNode(t),t),t.parent)}function Aj(e,t){return He(t)?e.createStringLiteralFromNode(t):va(t)?us(bt(e.cloneNode(t.expression),t.expression),t.expression.parent):us(bt(e.cloneNode(t),t),t.parent)}function FGe(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:u}=E1(t,r);if(r===s)return bt(e.createObjectDefinePropertyCall(i,Aj(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&bt(jr(e.createFunctionExpression(a1(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&bt(jr(e.createFunctionExpression(a1(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function zGe(e,t,r){return jr(bt(e.createAssignment(vE(e,r,t.name,t.name),t.initializer),t),t)}function BGe(e,t,r){return jr(bt(e.createAssignment(vE(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function GGe(e,t,r){return jr(bt(e.createAssignment(vE(e,r,t.name,t.name),jr(bt(e.createFunctionExpression(a1(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function zie(e,t,r,i){switch(r.name&&eo(r.name)&&C.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 178:case 179:return FGe(e,t.properties,r,i,!!t.multiLine);case 304:return zGe(e,r,i);case 305:return BGe(e,r,i);case 175:return GGe(e,r,i)}}function y3(e,t,r,i,o){let s=t.operator;C.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let l=e.createTempVariable(i);r=e.createAssignment(l,r),bt(r,t.operand);let u=j0(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return bt(u,t),o&&(u=e.createAssignment(o,u),bt(u,t)),r=e.createComma(r,u),bt(r,t),lj(t)&&(r=e.createComma(r,l),bt(r,t)),r}function Ij(e){return(Qa(e)&65536)!==0}function fy(e){return(Qa(e)&32768)!==0}function v3(e){return(Qa(e)&16384)!==0}function hTe(e){return ka(e.expression)&&e.expression.text==="use strict"}function xj(e){for(let t of e)if(jh(t)){if(hTe(t))return t}else break}function Bie(e){let t=Ic(e);return t!==void 0&&jh(t)&&hTe(t)}function uw(e){return e.kind===227&&e.operatorToken.kind===28}function JM(e){return uw(e)||BM(e)}function W1(e){return wu(e)&&Ir(e)&&!!x0(e)}function SD(e){let t=Ky(e);return C.assertIsDefined(t),t}function b3(e,t=63){switch(e.kind){case 218:return t&-2147483648&&W1(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Ul(e,t=63){for(;b3(e,t);)e=e.expression;return e}function Gie(e,t=63){let r=e.parent;for(;b3(r,t);)r=r.parent,C.assert(r);return r}function ou(e){return QW(e,!0)}function pw(e){let t=yl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Vie(e){let t=yl(e,Yi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function Rj(e,t,r,i,o,s,l){if(i.importHelpers&&OR(r,i)){let u=vu(i),d=RE(r,i),g=VGe(r);if(d!==1&&(u>=5&&u<=99||d===99||d===void 0&&u===200)){if(g){let _=[];for(let v of g){let E=v.importName;E&&Pf(_,E)}if(vt(_)){_.sort(Wd);let v=e.createNamedImports(Vt(_,N=>E6(r,N)?e.createImportSpecifier(!1,void 0,e.createIdentifier(N)):e.createImportSpecifier(!1,e.createIdentifier(N),t.getUnscopedHelperName(N)))),E=yl(r,Yi),A=jd(E);A.externalHelpers=!0;let R=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,v),e.createStringLiteral(pb),void 0);return aE(R,2),R}}}else{let _=jGe(e,r,i,g,o,s||l);if(_){let v=e.createImportEqualsDeclaration(void 0,!1,_,e.createExternalModuleReference(e.createStringLiteral(pb)));return aE(v,2),v}}}}function VGe(e){return Un($V(e),t=>!t.scoped)}function jGe(e,t,r,i,o,s){let l=pw(t);if(l)return l;if(vt(i)||(o||Yh(r)&&s)&&yP(t,r)<4){let d=yl(t,Yi),g=jd(d);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(pb))}}function ED(e,t,r){let i=UR(t);if(i&&!QS(t)&&!I6(t)){let o=i.name;return o.kind===11?e.getGeneratedNameForNode(t):pl(o)?o:e.createIdentifier(u1(r,o)||Kr(o))}if(t.kind===273&&t.importClause||t.kind===279&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function jI(e,t,r,i,o,s){let l=lI(t);if(l&&ka(l))return HGe(t,i,e,o,s)||UGe(e,l,r)||e.cloneNode(l)}function UGe(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function fw(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&i.outFile)return e.createStringLiteral(UG(r,t.fileName))}}function HGe(e,t,r,i,o){return fw(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function mw(e){if(DL(e))return e.initializer;if(Nc(e)){let t=e.initializer;return id(t,!0)?t.right:void 0}if(Ud(e))return e.objectAssignmentInitializer;if(id(e,!0))return e.right;if(Uf(e))return mw(e.expression)}function Mb(e){if(DL(e))return e.name;if(ny(e)){switch(e.kind){case 304:return Mb(e.initializer);case 305:return e.name;case 306:return Mb(e.expression)}return}return id(e,!0)?Mb(e.left):Uf(e)?Mb(e.expression):e}function T3(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function Dj(e){let t=S3(e);return C.assert(!!t||Ig(e),"Invalid property name for binding element."),t}function S3(e){switch(e.kind){case 209:if(e.propertyName){let r=e.propertyName;return eo(r)?C.failBadSyntaxKind(r):va(r)&&_Te(r.expression)?r.expression:r}break;case 304:if(e.name){let r=e.name;return eo(r)?C.failBadSyntaxKind(r):va(r)&&_Te(r.expression)?r.expression:r}break;case 306:return e.name&&eo(e.name)?C.failBadSyntaxKind(e.name):e.name}let t=Mb(e);if(t&&bc(t))return t}function _Te(e){let t=e.kind;return t===11||t===9}function AD(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function Cj(e){if(e){let t=e;for(;;){if(He(t)||!t.body)return He(t)?t:t.name;t=t.body}}}function gTe(e){let t=e.kind;return t===177||t===179}function jie(e){let t=e.kind;return t===177||t===178||t===179}function Nj(e){let t=e.kind;return t===304||t===305||t===263||t===177||t===182||t===176||t===283||t===244||t===265||t===266||t===267||t===268||t===272||t===273||t===271||t===279||t===278}function Uie(e){let t=e.kind;return t===176||t===304||t===305||t===283||t===271}function Hie(e){return Rb(e)||rw(e)}function qie(e){return He(e)||zM(e)}function Jie(e){return fie(e)||rj(e)||ij(e)}function Kie(e){return Rb(e)||rj(e)||ij(e)}function Xie(e){return He(e)||ka(e)}function qGe(e){return e===43}function JGe(e){return e===42||e===44||e===45}function KGe(e){return qGe(e)||JGe(e)}function XGe(e){return e===40||e===41}function YGe(e){return XGe(e)||KGe(e)}function $Ge(e){return e===48||e===49||e===50}function Mj(e){return $Ge(e)||YGe(e)}function QGe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function ZGe(e){return QGe(e)||Mj(e)}function eVe(e){return e===35||e===37||e===36||e===38}function tVe(e){return eVe(e)||ZGe(e)}function nVe(e){return e===51||e===52||e===53}function rVe(e){return nVe(e)||tVe(e)}function iVe(e){return e===56||e===57}function oVe(e){return iVe(e)||rVe(e)}function aVe(e){return e===61||oVe(e)||sy(e)}function sVe(e){return aVe(e)||e===28}function Yie(e){return sVe(e.kind)}var Pj;(e=>{function t(_,v,E,A,R,N,P){let k=v>0?R[v-1]:void 0;return C.assertEqual(E[v],t),R[v]=_.onEnter(A[v],k,P),E[v]=u(_,t),v}e.enter=t;function r(_,v,E,A,R,N,P){C.assertEqual(E[v],r),C.assertIsDefined(_.onLeft),E[v]=u(_,r);let k=_.onLeft(A[v].left,R[v],A[v]);return k?(g(v,A,k),d(v,E,A,R,k)):v}e.left=r;function i(_,v,E,A,R,N,P){return C.assertEqual(E[v],i),C.assertIsDefined(_.onOperator),E[v]=u(_,i),_.onOperator(A[v].operatorToken,R[v],A[v]),v}e.operator=i;function o(_,v,E,A,R,N,P){C.assertEqual(E[v],o),C.assertIsDefined(_.onRight),E[v]=u(_,o);let k=_.onRight(A[v].right,R[v],A[v]);return k?(g(v,A,k),d(v,E,A,R,k)):v}e.right=o;function s(_,v,E,A,R,N,P){C.assertEqual(E[v],s),E[v]=u(_,s);let k=_.onExit(A[v],R[v]);if(v>0){if(v--,_.foldState){let F=E[v]===s?"right":"left";R[v]=_.foldState(R[v],k,F)}}else N.value=k;return v}e.exit=s;function l(_,v,E,A,R,N,P){return C.assertEqual(E[v],l),v}e.done=l;function u(_,v){switch(v){case t:if(_.onLeft)return r;case r:if(_.onOperator)return i;case i:if(_.onRight)return o;case o:return s;case s:return l;case l:return l;default:C.fail("Invalid state")}}e.nextState=u;function d(_,v,E,A,R){return _++,v[_]=t,E[_]=R,A[_]=void 0,_}function g(_,v,E){if(C.shouldAssert(2))for(;_>=0;)C.assert(v[_]!==E,"Circular traversal detected."),_--}})(Pj||(Pj={}));var lVe=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 E3(e,t,r,i,o,s){let l=new lVe(e,t,r,i,o,s);return u;function u(d,g){let _={value:void 0},v=[Pj.enter],E=[d],A=[void 0],R=0;for(;v[R]!==Pj.done;)R=v[R](l,R,v,E,A,_,g);return C.assertEqual(R,0),_.value}}function cVe(e){return e===95||e===90}function hw(e){let t=e.kind;return cVe(t)}function $ie(e,t){if(t!==void 0)return t.length===0?t:bt(e.createNodeArray([],t.hasTrailingComma),t)}function _w(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let i=r.id,o=e,s=o.original;for(;s;){o=s;let l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(cg(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function ID(e,t){return typeof e=="object"?Y0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function dVe(e,t){return typeof e=="string"?e:uVe(e,C.checkDefined(t))}function uVe(e,t){return GS(e)?t(e).slice(1):pl(e)?t(e):eo(e)?e.escapedText.slice(1):Kr(e)}function Y0(e,t,r,i,o){return t=ID(t,o),i=ID(i,o),r=dVe(r,o),`${e?"#":""}${t}${r}${i}`}function Lj(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Qie(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 Zie(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 A3(e){let t=e.expression;for(;;){if(t=Ul(t),BM(t)){t=Ba(t.elements);continue}if(uw(t)){t=t.right;continue}if(id(t,!0)&&pl(t.left))return t;break}}function pVe(e){return wu(e)&&Os(e)&&!e.emitNode}function I3(e,t){if(pVe(e))I3(e.expression,t);else if(uw(e))I3(e.left,t),I3(e.right,t);else if(BM(e))for(let r of e.elements)I3(r,t);else t.push(e)}function eoe(e){let t=[];return I3(e,t),t}function gw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of AD(e)){let r=Mb(t);if(r&&ON(r)&&(r.transformFlags&65536||r.transformFlags&128&&gw(r)))return!0}return!1}function bt(e,t){return t?uh(e,t.pos,t.end):e}function bm(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function F1(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var yTe,vTe,bTe,TTe,STe,toe={createBaseSourceFileNode:e=>new(STe||(STe=Rd.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(bTe||(bTe=Rd.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(TTe||(TTe=Rd.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(vTe||(vTe=Rd.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(yTe||(yTe=Rd.getNodeConstructor()))(e,-1,-1)},$0=Yk(1,toe);function dn(e,t){return t&&e(t)}function Xi(e,t,r){if(r){if(t)return t(r);for(let i of r){let o=e(i);if(o)return o}}}function kj(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function yw(e){return Je(e.statements,fVe)||mVe(e)}function fVe(e){return bm(e)&&hVe(e,95)||Bc(e)&&uy(e.moduleReference)||vl(e)||ll(e)||fc(e)?e:void 0}function mVe(e){return e.flags&8388608?ETe(e):void 0}function ETe(e){return _Ve(e)?e:Jo(e,ETe)}function hVe(e,t){return vt(e.modifiers,r=>r.kind===t)}function _Ve(e){return fE(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var gVe={167:function(t,r,i){return dn(r,t.left)||dn(r,t.right)},169:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.constraint)||dn(r,t.default)||dn(r,t.expression)},305:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.equalsToken)||dn(r,t.objectAssignmentInitializer)},306:function(t,r,i){return dn(r,t.expression)},170:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.dotDotDotToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)||dn(r,t.initializer)},173:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.type)||dn(r,t.initializer)},172:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)||dn(r,t.initializer)},304:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.initializer)},261:function(t,r,i){return dn(r,t.name)||dn(r,t.exclamationToken)||dn(r,t.type)||dn(r,t.initializer)},209:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.propertyName)||dn(r,t.name)||dn(r,t.initializer)},182:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},186:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},185:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},180:ATe,181:ATe,175:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},174:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},177:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},178:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},179:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},263:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},219:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},220:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.equalsGreaterThanToken)||dn(r,t.body)},176:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.body)},184:function(t,r,i){return dn(r,t.typeName)||Xi(r,i,t.typeArguments)},183:function(t,r,i){return dn(r,t.assertsModifier)||dn(r,t.parameterName)||dn(r,t.type)},187:function(t,r,i){return dn(r,t.exprName)||Xi(r,i,t.typeArguments)},188:function(t,r,i){return Xi(r,i,t.members)},189:function(t,r,i){return dn(r,t.elementType)},190:function(t,r,i){return Xi(r,i,t.elements)},193:ITe,194:ITe,195:function(t,r,i){return dn(r,t.checkType)||dn(r,t.extendsType)||dn(r,t.trueType)||dn(r,t.falseType)},196:function(t,r,i){return dn(r,t.typeParameter)},206:function(t,r,i){return dn(r,t.argument)||dn(r,t.attributes)||dn(r,t.qualifier)||Xi(r,i,t.typeArguments)},303:function(t,r,i){return dn(r,t.assertClause)},197:xTe,199:xTe,200:function(t,r,i){return dn(r,t.objectType)||dn(r,t.indexType)},201:function(t,r,i){return dn(r,t.readonlyToken)||dn(r,t.typeParameter)||dn(r,t.nameType)||dn(r,t.questionToken)||dn(r,t.type)||Xi(r,i,t.members)},202:function(t,r,i){return dn(r,t.literal)},203:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)},207:RTe,208:RTe,210:function(t,r,i){return Xi(r,i,t.elements)},211:function(t,r,i){return Xi(r,i,t.properties)},212:function(t,r,i){return dn(r,t.expression)||dn(r,t.questionDotToken)||dn(r,t.name)},213:function(t,r,i){return dn(r,t.expression)||dn(r,t.questionDotToken)||dn(r,t.argumentExpression)},214:DTe,215:DTe,216:function(t,r,i){return dn(r,t.tag)||dn(r,t.questionDotToken)||Xi(r,i,t.typeArguments)||dn(r,t.template)},217:function(t,r,i){return dn(r,t.type)||dn(r,t.expression)},218:function(t,r,i){return dn(r,t.expression)},221:function(t,r,i){return dn(r,t.expression)},222:function(t,r,i){return dn(r,t.expression)},223:function(t,r,i){return dn(r,t.expression)},225:function(t,r,i){return dn(r,t.operand)},230:function(t,r,i){return dn(r,t.asteriskToken)||dn(r,t.expression)},224:function(t,r,i){return dn(r,t.expression)},226:function(t,r,i){return dn(r,t.operand)},227:function(t,r,i){return dn(r,t.left)||dn(r,t.operatorToken)||dn(r,t.right)},235:function(t,r,i){return dn(r,t.expression)||dn(r,t.type)},236:function(t,r,i){return dn(r,t.expression)},239:function(t,r,i){return dn(r,t.expression)||dn(r,t.type)},237:function(t,r,i){return dn(r,t.name)},228:function(t,r,i){return dn(r,t.condition)||dn(r,t.questionToken)||dn(r,t.whenTrue)||dn(r,t.colonToken)||dn(r,t.whenFalse)},231:function(t,r,i){return dn(r,t.expression)},242:CTe,269:CTe,308:function(t,r,i){return Xi(r,i,t.statements)||dn(r,t.endOfFileToken)},244:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.declarationList)},262:function(t,r,i){return Xi(r,i,t.declarations)},245:function(t,r,i){return dn(r,t.expression)},246:function(t,r,i){return dn(r,t.expression)||dn(r,t.thenStatement)||dn(r,t.elseStatement)},247:function(t,r,i){return dn(r,t.statement)||dn(r,t.expression)},248:function(t,r,i){return dn(r,t.expression)||dn(r,t.statement)},249:function(t,r,i){return dn(r,t.initializer)||dn(r,t.condition)||dn(r,t.incrementor)||dn(r,t.statement)},250:function(t,r,i){return dn(r,t.initializer)||dn(r,t.expression)||dn(r,t.statement)},251:function(t,r,i){return dn(r,t.awaitModifier)||dn(r,t.initializer)||dn(r,t.expression)||dn(r,t.statement)},252:NTe,253:NTe,254:function(t,r,i){return dn(r,t.expression)},255:function(t,r,i){return dn(r,t.expression)||dn(r,t.statement)},256:function(t,r,i){return dn(r,t.expression)||dn(r,t.caseBlock)},270:function(t,r,i){return Xi(r,i,t.clauses)},297:function(t,r,i){return dn(r,t.expression)||Xi(r,i,t.statements)},298:function(t,r,i){return Xi(r,i,t.statements)},257:function(t,r,i){return dn(r,t.label)||dn(r,t.statement)},258:function(t,r,i){return dn(r,t.expression)},259:function(t,r,i){return dn(r,t.tryBlock)||dn(r,t.catchClause)||dn(r,t.finallyBlock)},300:function(t,r,i){return dn(r,t.variableDeclaration)||dn(r,t.block)},171:function(t,r,i){return dn(r,t.expression)},264:MTe,232:MTe,265:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.heritageClauses)||Xi(r,i,t.members)},266:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||dn(r,t.type)},267:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.members)},307:function(t,r,i){return dn(r,t.name)||dn(r,t.initializer)},268:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.body)},272:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.moduleReference)},273:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.importClause)||dn(r,t.moduleSpecifier)||dn(r,t.attributes)},274:function(t,r,i){return dn(r,t.name)||dn(r,t.namedBindings)},301:function(t,r,i){return Xi(r,i,t.elements)},302:function(t,r,i){return dn(r,t.name)||dn(r,t.value)},271:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)},275:function(t,r,i){return dn(r,t.name)},281:function(t,r,i){return dn(r,t.name)},276:PTe,280:PTe,279:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.exportClause)||dn(r,t.moduleSpecifier)||dn(r,t.attributes)},277:LTe,282:LTe,278:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.expression)},229:function(t,r,i){return dn(r,t.head)||Xi(r,i,t.templateSpans)},240:function(t,r,i){return dn(r,t.expression)||dn(r,t.literal)},204:function(t,r,i){return dn(r,t.head)||Xi(r,i,t.templateSpans)},205:function(t,r,i){return dn(r,t.type)||dn(r,t.literal)},168:function(t,r,i){return dn(r,t.expression)},299:function(t,r,i){return Xi(r,i,t.types)},234:function(t,r,i){return dn(r,t.expression)||Xi(r,i,t.typeArguments)},284:function(t,r,i){return dn(r,t.expression)},283:function(t,r,i){return Xi(r,i,t.modifiers)},357:function(t,r,i){return Xi(r,i,t.elements)},285:function(t,r,i){return dn(r,t.openingElement)||Xi(r,i,t.children)||dn(r,t.closingElement)},289:function(t,r,i){return dn(r,t.openingFragment)||Xi(r,i,t.children)||dn(r,t.closingFragment)},286:kTe,287:kTe,293:function(t,r,i){return Xi(r,i,t.properties)},292:function(t,r,i){return dn(r,t.name)||dn(r,t.initializer)},294:function(t,r,i){return dn(r,t.expression)},295:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.expression)},288:function(t,r,i){return dn(r,t.tagName)},296:function(t,r,i){return dn(r,t.namespace)||dn(r,t.name)},191:KM,192:KM,310:KM,316:KM,315:KM,317:KM,319:KM,318:function(t,r,i){return Xi(r,i,t.parameters)||dn(r,t.type)},321:function(t,r,i){return(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))||Xi(r,i,t.tags)},348:function(t,r,i){return dn(r,t.tagName)||dn(r,t.name)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},311:function(t,r,i){return dn(r,t.name)},312:function(t,r,i){return dn(r,t.left)||dn(r,t.right)},342:wTe,349:wTe,331:function(t,r,i){return dn(r,t.tagName)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},330:function(t,r,i){return dn(r,t.tagName)||dn(r,t.class)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},329:function(t,r,i){return dn(r,t.tagName)||dn(r,t.class)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},346:function(t,r,i){return dn(r,t.tagName)||dn(r,t.constraint)||Xi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},347:function(t,r,i){return dn(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===310?dn(r,t.typeExpression)||dn(r,t.fullName)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment)):dn(r,t.fullName)||dn(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment)))},339:function(t,r,i){return dn(r,t.tagName)||dn(r,t.fullName)||dn(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},343:XM,345:XM,344:XM,341:XM,351:XM,350:XM,340:XM,324:function(t,r,i){return Je(t.typeParameters,r)||Je(t.parameters,r)||dn(r,t.type)},325:noe,326:noe,327:noe,323:function(t,r,i){return Je(t.jsDocPropertyTags,r)},328:xD,333:xD,334:xD,335:xD,336:xD,337:xD,332:xD,338:xD,352:yVe,356:vVe};function ATe(e,t,r){return Xi(t,r,e.typeParameters)||Xi(t,r,e.parameters)||dn(t,e.type)}function ITe(e,t,r){return Xi(t,r,e.types)}function xTe(e,t,r){return dn(t,e.type)}function RTe(e,t,r){return Xi(t,r,e.elements)}function DTe(e,t,r){return dn(t,e.expression)||dn(t,e.questionDotToken)||Xi(t,r,e.typeArguments)||Xi(t,r,e.arguments)}function CTe(e,t,r){return Xi(t,r,e.statements)}function NTe(e,t,r){return dn(t,e.label)}function MTe(e,t,r){return Xi(t,r,e.modifiers)||dn(t,e.name)||Xi(t,r,e.typeParameters)||Xi(t,r,e.heritageClauses)||Xi(t,r,e.members)}function PTe(e,t,r){return Xi(t,r,e.elements)}function LTe(e,t,r){return dn(t,e.propertyName)||dn(t,e.name)}function kTe(e,t,r){return dn(t,e.tagName)||Xi(t,r,e.typeArguments)||dn(t,e.attributes)}function KM(e,t,r){return dn(t,e.type)}function wTe(e,t,r){return dn(t,e.tagName)||(e.isNameFirst?dn(t,e.name)||dn(t,e.typeExpression):dn(t,e.typeExpression)||dn(t,e.name))||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function XM(e,t,r){return dn(t,e.tagName)||dn(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function noe(e,t,r){return dn(t,e.name)}function xD(e,t,r){return dn(t,e.tagName)||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function yVe(e,t,r){return dn(t,e.tagName)||dn(t,e.importClause)||dn(t,e.moduleSpecifier)||dn(t,e.attributes)||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function vVe(e,t,r){return dn(t,e.expression)}function Jo(e,t,r){if(e===void 0||e.kind<=166)return;let i=gVe[e.kind];return i===void 0?void 0:i(e,t,r)}function UI(e,t,r){let i=OTe(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){let s=i.pop(),l=o.pop();if(Mo(s)){if(r){let 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{let u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=167)for(let d of OTe(s))i.push(d),o.push(s)}}}function OTe(e){let t=[];return Jo(e,r,r),t;function r(i){t.unshift(i)}}function WTe(e){e.externalModuleIndicator=yw(e)}function HI(e,t,r,i=!1,o){var s,l;(s=xr)==null||s.push(xr.Phase.Parse,"createSourceFile",{path:e},!0),Rl("beforeParse");let u,{languageVersion:d,setExternalModuleIndicator:g,impliedNodeFormat:_,jsDocParsingMode:v}=typeof r=="object"?r:{languageVersion:r};if(d===100)u=Q0.parseSourceFile(e,t,d,void 0,i,6,gs,v);else{let E=_===void 0?g:A=>(A.impliedNodeFormat=_,(g||WTe)(A));u=Q0.parseSourceFile(e,t,d,void 0,i,o,E,v)}return Rl("afterParse"),Lf("Parse","beforeParse","afterParse"),(l=xr)==null||l.pop(),u}function qI(e,t){return Q0.parseIsolatedEntityName(e,t)}function vw(e,t){return Q0.parseJsonText(e,t)}function Gc(e){return e.externalModuleIndicator!==void 0}function wj(e,t,r,i=!1){let o=Oj.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function roe(e,t,r){let i=Q0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&Q0.fixupParentReferences(i.jsDoc),i}function FTe(e,t,r){return Q0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}var Q0;(e=>{var t=lg(99,!0),r=40960,i,o,s,l,u;function d(ee){return We++,ee}var g={createBaseSourceFileNode:ee=>d(new u(ee,0,0)),createBaseIdentifierNode:ee=>d(new s(ee,0,0)),createBasePrivateIdentifierNode:ee=>d(new l(ee,0,0)),createBaseTokenNode:ee=>d(new o(ee,0,0)),createBaseNode:ee=>d(new i(ee,0,0))},_=Yk(11,g),{createNodeArray:v,createNumericLiteral:E,createStringLiteral:A,createLiteralLikeNode:R,createIdentifier:N,createPrivateIdentifier:P,createToken:k,createArrayLiteralExpression:F,createObjectLiteralExpression:O,createPropertyAccessExpression:G,createPropertyAccessChain:j,createElementAccessExpression:J,createElementAccessChain:Z,createCallExpression:q,createCallChain:ye,createNewExpression:ie,createParenthesizedExpression:K,createBlock:pe,createVariableStatement:de,createExpressionStatement:fe,createIfStatement:ve,createWhileStatement:xe,createForStatement:Y,createForOfStatement:Ce,createVariableDeclaration:Xe,createVariableDeclarationList:Se}=_,re,be,Ne,Be,lt,ce,De,ge,je,Ge,We,at,Wt,cn,gn,Kn,_t=!0,en=!1;function ir(ee,ke,rt,Pt,nn=!1,_n,ei,wr=0){var pr;if(_n=LW(ee,_n),_n===6){let ao=lo(ee,ke,rt,Pt,nn);return Aw(ao,(pr=ao.statements[0])==null?void 0:pr.expression,ao.parseDiagnostics,!1,void 0),ao.referencedFiles=ae,ao.typeReferenceDirectives=ae,ao.libReferenceDirectives=ae,ao.amdDependencies=ae,ao.hasNoDefaultLib=!1,ao.pragmas=yt,ao}zt(ee,ke,rt,Pt,_n,wr);let Si=Ai(rt,nn,_n,ei||WTe,wr);return Zr(),Si}e.parseSourceFile=ir;function Di(ee,ke){zt("",ee,ke,void 0,1,0),Le();let rt=ut(!0),Pt=te()===1&&!De.length;return Zr(),Pt?rt:void 0}e.parseIsolatedEntityName=Di;function lo(ee,ke,rt=2,Pt,nn=!1){zt(ee,ke,rt,Pt,6,0),be=Kn,Le();let _n=B(),ei,wr;if(te()===1)ei=qa([],_n,_n),wr=Zl();else{let ao;for(;te()!==1;){let as;switch(te()){case 23:as=$b();break;case 112:case 97:case 106:as=Zl();break;case 41:wt(()=>Le()===9&&Le()!==59)?as=Ev():as=xv();break;case 9:case 11:if(wt(()=>Le()!==59)){as=kt();break}default:as=xv();break}ao&&Mo(ao)?ao.push(as):ao?ao=[ao,as]:(ao=as,te()!==1&&Kt(f.Unexpected_token))}let zs=Mo(ao)?Zt(F(ao),_n):C.checkDefined(ao),Is=fe(zs);Zt(Is,_n),ei=qa([Is],_n),wr=$s(1,f.Unexpected_token)}let pr=At(ee,2,6,!1,ei,wr,be,gs);nn&&$e(pr),pr.nodeCount=We,pr.identifierCount=Wt,pr.identifiers=at,pr.parseDiagnostics=bI(De,pr),ge&&(pr.jsDocDiagnostics=bI(ge,pr));let Si=pr;return Zr(),Si}e.parseJsonText=lo;function zt(ee,ke,rt,Pt,nn,_n){switch(i=Rd.getNodeConstructor(),o=Rd.getTokenConstructor(),s=Rd.getIdentifierConstructor(),l=Rd.getPrivateIdentifierConstructor(),u=Rd.getSourceFileConstructor(),re=ya(ee),Ne=ke,Be=rt,je=Pt,lt=nn,ce=Pk(nn),De=[],cn=0,at=new Map,Wt=0,We=0,be=0,_t=!0,lt){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}en=!1,t.setText(Ne),t.setOnError(_e),t.setScriptTarget(Be),t.setLanguageVariant(ce),t.setScriptKind(lt),t.setJSDocParsingMode(_n)}function Zr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Ne=void 0,Be=void 0,je=void 0,lt=void 0,ce=void 0,be=0,De=void 0,ge=void 0,cn=0,at=void 0,gn=void 0,_t=!0}function Ai(ee,ke,rt,Pt,nn){let _n=ad(re);_n&&(Kn|=33554432),be=Kn,Le();let ei=Va(0,vp);C.assert(te()===1);let wr=Ae(),pr=Pr(Zl(),wr),Si=At(re,ee,rt,_n,ei,pr,be,Pt);return Wj(Si,Ne),Fj(Si,ao),Si.commentDirectives=t.getCommentDirectives(),Si.nodeCount=We,Si.identifierCount=Wt,Si.identifiers=at,Si.parseDiagnostics=bI(De,Si),Si.jsDocParsingMode=nn,ge&&(Si.jsDocDiagnostics=bI(ge,Si)),ke&&$e(Si),Si;function ao(zs,Is,as){De.push(vI(re,Ne,zs,Is,as))}}let Ni=!1;function Pr(ee,ke){if(!ke)return ee;C.assert(!ee.jsDoc);let rt=Ui(mG(ee,Ne),Pt=>__.parseJSDocComment(ee,Pt.pos,Pt.end-Pt.pos));return rt.length&&(ee.jsDoc=rt),Ni&&(Ni=!1,ee.flags|=536870912),ee}function Ci(ee){let ke=je,rt=Oj.createSyntaxCursor(ee);je={currentNode:ao};let Pt=[],nn=De;De=[];let _n=0,ei=pr(ee.statements,0);for(;ei!==-1;){let zs=ee.statements[_n],Is=ee.statements[ei];Xr(Pt,ee.statements,_n,ei),_n=Si(ee.statements,ei);let as=ho(nn,If=>If.start>=zs.pos),Qf=as>=0?ho(nn,If=>If.start>=Is.pos,as):-1;as>=0&&Xr(De,nn,as,Qf>=0?Qf:void 0),yn(()=>{let If=Kn;for(Kn|=65536,t.resetTokenState(Is.pos),Le();te()!==1;){let Mv=t.getTokenFullStart(),Pv=Pc(0,vp);if(Pt.push(Pv),Mv===t.getTokenFullStart()&&Le(),_n>=0){let Wg=ee.statements[_n];if(Pv.end===Wg.pos)break;Pv.end>Wg.pos&&(_n=Si(ee.statements,_n+1))}}Kn=If},2),ei=_n>=0?pr(ee.statements,_n):-1}if(_n>=0){let zs=ee.statements[_n];Xr(Pt,ee.statements,_n);let Is=ho(nn,as=>as.start>=zs.pos);Is>=0&&Xr(De,nn,Is)}return je=ke,_.updateSourceFile(ee,bt(v(Pt),ee.statements));function wr(zs){return!(zs.flags&65536)&&!!(zs.transformFlags&67108864)}function pr(zs,Is){for(let as=Is;as<zs.length;as++)if(wr(zs[as]))return as;return-1}function Si(zs,Is){for(let as=Is;as<zs.length;as++)if(!wr(zs[as]))return as;return-1}function ao(zs){let Is=rt.currentNode(zs);return _t&&Is&&wr(Is)&&ioe(Is),Is}}function $e(ee){z0(ee,!0)}e.fixupParentReferences=$e;function At(ee,ke,rt,Pt,nn,_n,ei,wr){let pr=_.createSourceFile(nn,_n,ei);if(PV(pr,0,Ne.length),Si(pr),!Pt&&Gc(pr)&&pr.transformFlags&67108864){let ao=pr;pr=Ci(pr),ao!==pr&&Si(pr)}return pr;function Si(ao){ao.text=Ne,ao.bindDiagnostics=[],ao.bindSuggestionDiagnostics=void 0,ao.languageVersion=ke,ao.fileName=ee,ao.languageVariant=Pk(rt),ao.isDeclarationFile=Pt,ao.scriptKind=rt,wr(ao),ao.setExternalModuleIndicator=wr}}function mn(ee,ke){ee?Kn|=ke:Kn&=~ke}function dr(ee){mn(ee,8192)}function ri(ee){mn(ee,16384)}function ai(ee){mn(ee,32768)}function qi(ee){mn(ee,65536)}function $o(ee,ke){let rt=ee&Kn;if(rt){mn(!1,rt);let Pt=ke();return mn(!0,rt),Pt}return ke()}function Ia(ee,ke){let rt=ee&~Kn;if(rt){mn(!0,rt);let Pt=ke();return mn(!1,rt),Pt}return ke()}function Mn(ee){return $o(8192,ee)}function Uo(ee){return Ia(8192,ee)}function ot(ee){return $o(131072,ee)}function Ft(ee){return Ia(131072,ee)}function le(ee){return Ia(16384,ee)}function ht(ee){return Ia(32768,ee)}function ne(ee){return Ia(65536,ee)}function Fe(ee){return $o(65536,ee)}function it(ee){return Ia(81920,ee)}function dt(ee){return $o(81920,ee)}function Lt(ee){return(Kn&ee)!==0}function Ue(){return Lt(16384)}function Rt(){return Lt(8192)}function It(){return Lt(131072)}function Ot(){return Lt(32768)}function nt(){return Lt(65536)}function Kt(ee,...ke){return Oe(t.getTokenStart(),t.getTokenEnd(),ee,...ke)}function Sr(ee,ke,rt,...Pt){let nn=Zs(De),_n;return(!nn||ee!==nn.start)&&(_n=vI(re,Ne,ee,ke,rt,...Pt),De.push(_n)),en=!0,_n}function Oe(ee,ke,rt,...Pt){return Sr(ee,ke-ee,rt,...Pt)}function Nt(ee,ke,...rt){Oe(ee.pos,ee.end,ke,...rt)}function _e(ee,ke,rt){Sr(t.getTokenEnd(),ke,ee,rt)}function B(){return t.getTokenFullStart()}function Ae(){return t.hasPrecedingJSDocComment()}function te(){return Ge}function xt(){return Ge=t.scan()}function Xt(ee){return Le(),ee()}function Le(){return Qu(Ge)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Oe(t.getTokenStart(),t.getTokenEnd(),f.Keywords_cannot_contain_escape_characters),xt()}function gt(){return Ge=t.scanJsDocToken()}function Bt(ee){return Ge=t.scanJSDocCommentTextToken(ee)}function gr(){return Ge=t.reScanGreaterToken()}function tr(){return Ge=t.reScanSlashToken()}function Jn(ee){return Ge=t.reScanTemplateToken(ee)}function ft(){return Ge=t.reScanLessThanToken()}function Mt(){return Ge=t.reScanHashToken()}function jt(){return Ge=t.scanJsxIdentifier()}function Qt(){return Ge=t.scanJsxToken()}function In(){return Ge=t.scanJsxAttributeValue()}function yn(ee,ke){let rt=Ge,Pt=De.length,nn=en,_n=Kn,ei=ke!==0?t.lookAhead(ee):t.tryScan(ee);return C.assert(_n===Kn),(!ei||ke!==0)&&(Ge=rt,ke!==2&&(De.length=Pt),en=nn),ei}function wt(ee){return yn(ee,1)}function En(ee){return yn(ee,0)}function xn(){return te()===80?!0:te()>118}function Ln(){return te()===80?!0:te()===127&&Ue()||te()===135&&nt()?!1:te()>118}function ln(ee,ke,rt=!0){return te()===ee?(rt&&Le(),!0):(ke?Kt(ke):Kt(f._0_expected,_a(ee)),!1)}let Ii=Object.keys(J8).filter(ee=>ee.length>2);function ra(ee){if(V0(ee)){Oe(La(Ne,ee.template.pos),ee.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let ke=He(ee)?Kr(ee):void 0;if(!ke||!pp(ke,Be)){Kt(f._0_expected,_a(27));return}let rt=La(Ne,ee.pos);switch(ke){case"const":case"let":case"var":Oe(rt,ee.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":sa(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":Oe(rt,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":sa(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":sa(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let Pt=o1(ke,Ii,Vs)??zo(ke);if(Pt){Oe(rt,ee.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,Pt);return}te()!==0&&Oe(rt,ee.end,f.Unexpected_keyword_or_identifier)}function sa(ee,ke,rt){te()===rt?Kt(ke):Kt(ee,t.getTokenValue())}function zo(ee){for(let ke of Ii)if(ee.length>ke.length+2&&po(ee,ke))return`${ke} ${ee.slice(ke.length)}`}function Bl(ee,ke,rt){if(te()===60&&!t.hasPrecedingLineBreak()){Kt(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(te()===21){Kt(f.Cannot_start_a_function_call_in_a_type_annotation),Le();return}if(ke&&!Lo()){rt?Kt(f._0_expected,_a(27)):Kt(f.Expected_for_property_initializer);return}if(!fa()){if(rt){Kt(f._0_expected,_a(27));return}ra(ee)}}function xl(ee){return te()===ee?(gt(),!0):(C.assert($6(ee)),Kt(f._0_expected,_a(ee)),!1)}function Ps(ee,ke,rt,Pt){if(te()===ke){Le();return}let nn=Kt(f._0_expected,_a(ke));rt&&nn&&pa(nn,vI(re,Ne,Pt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,_a(ee),_a(ke)))}function co(ee){return te()===ee?(Le(),!0):!1}function Go(ee){if(te()===ee)return Zl()}function Sc(ee){if(te()===ee)return vf()}function $s(ee,ke,rt){return Go(ee)||As(ee,!1,ke||f._0_expected,rt||_a(ee))}function Ra(ee){let ke=Sc(ee);return ke||(C.assert($6(ee)),As(ee,!1,f._0_expected,_a(ee)))}function Zl(){let ee=B(),ke=te();return Le(),Zt(k(ke),ee)}function vf(){let ee=B(),ke=te();return gt(),Zt(k(ke),ee)}function Lo(){return te()===27?!0:te()===20||te()===1||t.hasPrecedingLineBreak()}function fa(){return Lo()?(te()===27&&Le(),!0):!1}function is(){return fa()||ln(27)}function qa(ee,ke,rt,Pt){let nn=v(ee,Pt);return uh(nn,ke,rt??t.getTokenFullStart()),nn}function Zt(ee,ke,rt){return uh(ee,ke,rt??t.getTokenFullStart()),Kn&&(ee.flags|=Kn),en&&(en=!1,ee.flags|=262144),ee}function As(ee,ke,rt,...Pt){ke?Sr(t.getTokenFullStart(),0,rt,...Pt):rt&&Kt(rt,...Pt);let nn=B(),_n=ee===80?N("",void 0):sb(ee)?_.createTemplateLiteralLikeNode(ee,"","",void 0):ee===9?E("",void 0):ee===11?A("",void 0):ee===283?_.createMissingDeclaration():k(ee);return Zt(_n,nn)}function Hl(ee){let ke=at.get(ee);return ke===void 0&&at.set(ee,ke=ee),ke}function sc(ee,ke,rt){if(ee){Wt++;let wr=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():B(),pr=te(),Si=Hl(t.getTokenValue()),ao=t.hasExtendedUnicodeEscape();return xt(),Zt(N(Si,pr,ao),wr)}if(te()===81)return Kt(rt||f.Private_identifiers_are_not_allowed_outside_class_bodies),sc(!0);if(te()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return sc(!0);Wt++;let Pt=te()===1,nn=t.isReservedWord(),_n=t.getTokenText(),ei=nn?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return As(80,Pt,ke||ei,_n)}function vd(ee){return sc(xn(),void 0,ee)}function Fs(ee,ke){return sc(Ln(),ee,ke)}function Ee(ee){return sc(Ju(te()),ee)}function $(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Kt(f.Unicode_escape_sequence_cannot_appear_here),sc(Ju(te()))}function pt(){return Ju(te())||te()===11||te()===9||te()===10}function qt(){return Ju(te())||te()===11}function fn(ee){if(te()===11||te()===9||te()===10){let ke=kt();return ke.text=Hl(ke.text),ke}return te()===23?si():te()===81?Dr():Ee()}function ur(){return fn()}function si(){let ee=B();ln(23);let ke=Mn(Au);return ln(24),Zt(_.createComputedPropertyName(ke),ee)}function Dr(){let ee=B(),ke=P(Hl(t.getTokenValue()));return Le(),Zt(ke,ee)}function Fn(ee){return te()===ee&&En(So)}function ro(){return Le(),t.hasPrecedingLineBreak()?!1:Ec()}function So(){switch(te()){case 87:return Le()===94;case 95:return Le(),te()===90?wt(Hs):te()===156?wt(Da):Ns();case 90:return Hs();case 126:return Le(),Ec();case 139:case 153:return Le(),mc();default:return ro()}}function Ns(){return te()===60||te()!==42&&te()!==130&&te()!==19&&Ec()}function Da(){return Le(),Ns()}function Qs(){return cb(te())&&En(So)}function Ec(){return te()===23||te()===19||te()===42||te()===26||pt()}function mc(){return te()===23||pt()}function Hs(){return Le(),te()===86||te()===100||te()===120||te()===60||te()===128&&wt(lp)||te()===134&&wt($f)}function Pl(ee,ke){if(tl(ee))return!0;switch(ee){case 0:case 1:case 3:return!(te()===27&&ke)&&Rv();case 2:return te()===84||te()===90;case 4:return wt(xm);case 5:return wt(iA)||te()===27&&!ke;case 6:return te()===23||pt();case 12:switch(te()){case 23:case 42:case 26:case 25:return!0;default:return pt()}case 18:return pt();case 9:return te()===23||te()===26||pt();case 24:return qt();case 7:return te()===19?wt(vh):ke?Ln()&&!ze():ap()&&!ze();case 8:return wx();case 10:return te()===28||te()===26||wx();case 19:return te()===103||te()===87||Ln();case 15:switch(te()){case 28:case 25:return!0}case 11:return te()===26||Jd();case 16:return mt(!1);case 17:return mt(!0);case 20:case 21:return te()===28||jb();case 22:return oA();case 23:return te()===161&&wt(Og)?!1:te()===11?!0:Ju(te());case 13:return Ju(te())||te()===19;case 14:return!0;case 25:return!0;case 26:return C.fail("ParsingContext.Count used as a context");default:C.assertNever(ee,"Non-exhaustive case in 'isListElement'.")}}function vh(){if(C.assert(te()===19),Le()===20){let ee=Le();return ee===28||ee===19||ee===96||ee===119}return!0}function Pd(){return Le(),Ln()}function tf(){return Le(),Ju(te())}function rp(){return Le(),hee(te())}function ze(){return te()===119||te()===96?wt(Jt):!1}function Jt(){return Le(),Jd()}function er(){return Le(),jb()}function go(ee){if(te()===1)return!0;switch(ee){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return te()===20;case 3:return te()===20||te()===84||te()===90;case 7:return te()===19||te()===96||te()===119;case 8:return Za();case 19:return te()===32||te()===21||te()===19||te()===96||te()===119;case 11:return te()===22||te()===27;case 15:case 21:case 10:return te()===24;case 17:case 16:case 18:return te()===22||te()===24;case 20:return te()!==28;case 22:return te()===19||te()===20;case 13:return te()===32||te()===44;case 14:return te()===30&&wt(R5);default:return!1}}function Za(){return!!(Lo()||Iu(te())||te()===39)}function es(){C.assert(cn,"Missing parsing context");for(let ee=0;ee<26;ee++)if(cn&1<<ee&&(Pl(ee,!0)||go(ee)))return!0;return!1}function Va(ee,ke){let rt=cn;cn|=1<<ee;let Pt=[],nn=B();for(;!go(ee);){if(Pl(ee,!1)){Pt.push(Pc(ee,ke));continue}if(Cg(ee))break}return cn=rt,qa(Pt,nn)}function Pc(ee,ke){let rt=tl(ee);return rt?Ll(rt):ke()}function tl(ee,ke){var rt;if(!je||!ql(ee)||en)return;let Pt=je.currentNode(ke??t.getTokenFullStart());if(!(Ol(Pt)||TVe(Pt)||rI(Pt)||(Pt.flags&101441536)!==Kn)&&nf(Pt,ee))return pk(Pt)&&((rt=Pt.jsDoc)!=null&&rt.jsDocCache)&&(Pt.jsDoc.jsDocCache=void 0),Pt}function Ll(ee){return t.resetTokenState(ee.end),Le(),ee}function ql(ee){switch(ee){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 nf(ee,ke){switch(ke){case 5:return bd(ee);case 2:return ld(ee);case 0:case 1:case 3:return Gp(ee);case 6:return Eu(ee);case 4:return Jf(ee);case 8:return B_(ee);case 17:case 16:return Dg(ee)}return!1}function bd(ee){if(ee)switch(ee.kind){case 177:case 182:case 178:case 179:case 173:case 241:return!0;case 175:let ke=ee;return!(ke.name.kind===80&&ke.name.escapedText==="constructor")}return!1}function ld(ee){if(ee)switch(ee.kind){case 297:case 298:return!0}return!1}function Gp(ee){if(ee)switch(ee.kind){case 263:case 244:case 242:case 246:case 245:case 258:case 254:case 256:case 253:case 252:case 250:case 251:case 249:case 248:case 255:case 243:case 259:case 257:case 247:case 260:case 273:case 272:case 279:case 278:case 268:case 264:case 265:case 267:case 266:return!0}return!1}function Eu(ee){return ee.kind===307}function Jf(ee){if(ee)switch(ee.kind){case 181:case 174:case 182:case 172:case 180:return!0}return!1}function B_(ee){return ee.kind!==261?!1:ee.initializer===void 0}function Dg(ee){return ee.kind!==170?!1:ee.initializer===void 0}function Cg(ee){return ip(ee),es()?!0:(Le(),!1)}function ip(ee){switch(ee){case 0:return te()===90?Kt(f._0_expected,_a(95)):Kt(f.Declaration_or_statement_expected);case 1:return Kt(f.Declaration_or_statement_expected);case 2:return Kt(f.case_or_default_expected);case 3:return Kt(f.Statement_expected);case 18:case 4:return Kt(f.Property_or_signature_expected);case 5:return Kt(f.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Kt(f.Enum_member_expected);case 7:return Kt(f.Expression_expected);case 8:return Qu(te())?Kt(f._0_is_not_allowed_as_a_variable_declaration_name,_a(te())):Kt(f.Variable_declaration_expected);case 9:return Kt(f.Property_destructuring_pattern_expected);case 10:return Kt(f.Array_element_destructuring_pattern_expected);case 11:return Kt(f.Argument_expression_expected);case 12:return Kt(f.Property_assignment_expected);case 15:return Kt(f.Expression_or_comma_expected);case 17:return Kt(f.Parameter_declaration_expected);case 16:return Qu(te())?Kt(f._0_is_not_allowed_as_a_parameter_name,_a(te())):Kt(f.Parameter_declaration_expected);case 19:return Kt(f.Type_parameter_declaration_expected);case 20:return Kt(f.Type_argument_expected);case 21:return Kt(f.Type_expected);case 22:return Kt(f.Unexpected_token_expected);case 23:return te()===161?Kt(f._0_expected,"}"):Kt(f.Identifier_expected);case 13:return Kt(f.Identifier_expected);case 14:return Kt(f.Identifier_expected);case 24:return Kt(f.Identifier_or_string_literal_expected);case 25:return Kt(f.Identifier_expected);case 26:return C.fail("ParsingContext.Count used as a context");default:C.assertNever(ee)}}function Yc(ee,ke,rt){let Pt=cn;cn|=1<<ee;let nn=[],_n=B(),ei=-1;for(;;){if(Pl(ee,!1)){let wr=t.getTokenFullStart(),pr=Pc(ee,ke);if(!pr){cn=Pt;return}if(nn.push(pr),ei=t.getTokenStart(),co(28))continue;if(ei=-1,go(ee))break;ln(28,bh(ee)),rt&&te()===27&&!t.hasPrecedingLineBreak()&&Le(),wr===t.getTokenFullStart()&&Le();continue}if(go(ee)||Cg(ee))break}return cn=Pt,qa(nn,_n,void 0,ei>=0)}function bh(ee){return ee===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function bf(){let ee=qa([],B());return ee.isMissingList=!0,ee}function u_(ee){return!!ee.isMissingList}function oe(ee,ke,rt,Pt){if(ln(rt)){let nn=Yc(ee,ke);return ln(Pt),nn}return bf()}function ut(ee,ke){let rt=B(),Pt=ee?Ee(ke):Fs(ke);for(;co(25)&&te()!==30;)Pt=Zt(_.createQualifiedName(Pt,an(ee,!1,!0)),rt);return Pt}function tn(ee,ke){return Zt(_.createQualifiedName(ee,ke),ee.pos)}function an(ee,ke,rt){if(t.hasPrecedingLineBreak()&&Ju(te())&&wt(Cx))return As(80,!0,f.Identifier_expected);if(te()===81){let Pt=Dr();return ke?Pt:As(80,!0,f.Identifier_expected)}return ee?rt?Ee():$():Fs()}function wn(ee){let ke=B(),rt=[],Pt;do Pt=Ve(ee),rt.push(Pt);while(Pt.literal.kind===17);return qa(rt,ke)}function or(ee){let ke=B();return Zt(_.createTemplateExpression(On(ee),wn(ee)),ke)}function ti(){let ee=B();return Zt(_.createTemplateLiteralType(On(!1),Ti()),ee)}function Ti(){let ee=B(),ke=[],rt;do rt=$i(),ke.push(rt);while(rt.literal.kind===17);return qa(ke,ee)}function $i(){let ee=B();return Zt(_.createTemplateLiteralTypeSpan(cl(),z(!1)),ee)}function z(ee){return te()===20?(Jn(ee),yo()):$s(18,f._0_expected,_a(20))}function Ve(ee){let ke=B();return Zt(_.createTemplateSpan(Mn(Au),z(ee)),ke)}function kt(){return Eo(te())}function On(ee){!ee&&t.getTokenFlags()&26656&&Jn(!1);let ke=Eo(te());return C.assert(ke.kind===16,"Template head has wrong token kind"),ke}function yo(){let ee=Eo(te());return C.assert(ee.kind===17||ee.kind===18,"Template fragment has wrong token kind"),ee}function ta(ee){let ke=ee===15||ee===18,rt=t.getTokenText();return rt.substring(1,rt.length-(t.isUnterminated()?0:ke?1:2))}function Eo(ee){let ke=B(),rt=sb(ee)?_.createTemplateLiteralLikeNode(ee,t.getTokenValue(),ta(ee),t.getTokenFlags()&7176):ee===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):ee===11?A(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):LN(ee)?R(ee,t.getTokenValue()):C.fail();return t.hasExtendedUnicodeEscape()&&(rt.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(rt.isUnterminated=!0),Le(),Zt(rt,ke)}function Vo(){return ut(!0,f.Type_expected)}function ml(){if(!t.hasPrecedingLineBreak()&&ft()===30)return oe(20,cl,30,32)}function Ca(){let ee=B();return Zt(_.createTypeReferenceNode(Vo(),ml()),ee)}function cd(ee){switch(ee.kind){case 184:return Ol(ee.typeName);case 185:case 186:{let{parameters:ke,type:rt}=ee;return u_(ke)||cd(rt)}case 197:return cd(ee.type);default:return!1}}function Vp(ee){return Le(),Zt(_.createTypePredicateNode(void 0,ee,cl()),ee.pos)}function Tf(){let ee=B();return Le(),Zt(_.createThisTypeNode(),ee)}function Kf(){let ee=B();return Le(),Zt(_.createJSDocAllType(),ee)}function Ty(){let ee=B();return Le(),Zt(_.createJSDocNonNullableType(eS(),!1),ee)}function yv(){let ee=B();return Le(),te()===28||te()===20||te()===22||te()===32||te()===64||te()===52?Zt(_.createJSDocUnknownType(),ee):Zt(_.createJSDocNullableType(cl(),!1),ee)}function zu(){let ee=B(),ke=Ae();if(En(Fx)){let rt=_i(36),Pt=lr(59,!1);return Pr(Zt(_.createJSDocFunctionType(rt,Pt),ee),ke)}return Zt(_.createTypeReferenceNode(Ee(),void 0),ee)}function G_(){let ee=B(),ke;return(te()===110||te()===105)&&(ke=Ee(),ln(59)),Zt(_.createParameterDeclaration(void 0,void 0,ke,void 0,Th(),void 0),ee)}function Th(){t.setSkipJsDocLeadingAsterisks(!0);let ee=B();if(co(144)){let Pt=_.createJSDocNamepathType(void 0);e:for(;;)switch(te()){case 20:case 1:case 28:case 5:break e;default:gt()}return t.setSkipJsDocLeadingAsterisks(!1),Zt(Pt,ee)}let ke=co(26),rt=Iy();return t.setSkipJsDocLeadingAsterisks(!1),ke&&(rt=Zt(_.createJSDocVariadicType(rt),ee)),te()===64?(Le(),Zt(_.createJSDocOptionalType(rt),ee)):rt}function Am(){let ee=B();ln(114);let ke=ut(!0),rt=t.hasPrecedingLineBreak()?void 0:bl();return Zt(_.createTypeQueryNode(ke,rt),ee)}function Vb(){let ee=B(),ke=wi(!1,!0),rt=Fs(),Pt,nn;co(96)&&(jb()||!Jd()?Pt=cl():nn=ET());let _n=co(64)?cl():void 0,ei=_.createTypeParameterDeclaration(ke,rt,Pt,_n);return ei.expression=nn,Zt(ei,ee)}function Ye(){if(te()===30)return oe(19,Vb,30,32)}function mt(ee){return te()===26||wx()||cb(te())||te()===60||jb(!ee)}function Yt(ee){let ke=Dv(f.Private_identifiers_cannot_be_used_as_parameters);return WL(ke)===0&&!vt(ee)&&cb(te())&&Le(),ke}function Rn(){return xn()||te()===23||te()===19}function Qn(ee){return Yn(ee)}function Lr(ee){return Yn(ee,!1)}function Yn(ee,ke=!0){let rt=B(),Pt=Ae(),nn=ee?ne(()=>wi(!0)):Fe(()=>wi(!0));if(te()===110){let pr=_.createParameterDeclaration(nn,void 0,sc(!0),void 0,qd(),void 0),Si=Ic(nn);return Si&&Nt(Si,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Pr(Zt(pr,rt),Pt)}let _n=_t;_t=!1;let ei=Go(26);if(!ke&&!Rn())return;let wr=Pr(Zt(_.createParameterDeclaration(nn,ei,Yt(nn),Go(58),qd(),H_()),rt),Pt);return _t=_n,wr}function lr(ee,ke){if(Oi(ee,ke))return ot(Iy)}function Oi(ee,ke){return ee===39?(ln(ee),!0):co(59)?!0:ke&&te()===39?(Kt(f._0_expected,_a(59)),Le(),!0):!1}function Ro(ee,ke){let rt=Ue(),Pt=nt();ri(!!(ee&1)),qi(!!(ee&2));let nn=ee&32?Yc(17,G_):Yc(16,()=>ke?Qn(Pt):Lr(Pt));return ri(rt),qi(Pt),nn}function _i(ee){if(!ln(21))return bf();let ke=Ro(ee,!0);return ln(22),ke}function Do(){co(28)||is()}function Qi(ee){let ke=B(),rt=Ae();ee===181&&ln(105);let Pt=Ye(),nn=_i(4),_n=lr(59,!0);Do();let ei=ee===180?_.createCallSignature(Pt,nn,_n):_.createConstructSignature(Pt,nn,_n);return Pr(Zt(ei,ke),rt)}function hl(){return te()===23&&wt(op)}function op(){if(Le(),te()===26||te()===24)return!0;if(cb(te())){if(Le(),Ln())return!0}else if(Ln())Le();else return!1;return te()===59||te()===28?!0:te()!==58?!1:(Le(),te()===59||te()===28||te()===24)}function Im(ee,ke,rt){let Pt=oe(16,()=>Qn(!1),23,24),nn=qd();Do();let _n=_.createIndexSignature(rt,Pt,nn);return Pr(Zt(_n,ee),ke)}function Td(ee,ke,rt){let Pt=ur(),nn=Go(58),_n;if(te()===21||te()===30){let ei=Ye(),wr=_i(4),pr=lr(59,!0);_n=_.createMethodSignature(rt,Pt,nn,ei,wr,pr)}else{let ei=qd();_n=_.createPropertySignature(rt,Pt,nn,ei),te()===64&&(_n.initializer=H_())}return Do(),Pr(Zt(_n,ee),ke)}function xm(){if(te()===21||te()===30||te()===139||te()===153)return!0;let ee=!1;for(;cb(te());)ee=!0,Le();return te()===23?!0:(pt()&&(ee=!0,Le()),ee?te()===21||te()===30||te()===58||te()===59||te()===28||Lo():!1)}function jp(){if(te()===21||te()===30)return Qi(180);if(te()===105&&wt(fT))return Qi(181);let ee=B(),ke=Ae(),rt=wi(!1);return Fn(139)?LT(ee,ke,rt,178,4):Fn(153)?LT(ee,ke,rt,179,4):hl()?Im(ee,ke,rt):Td(ee,ke,rt)}function fT(){return Le(),te()===21||te()===30}function p_(){return Le()===25}function V_(){switch(Le()){case 21:case 30:case 25:return!0}return!1}function mT(){let ee=B();return Zt(_.createTypeLiteralNode(j_()),ee)}function j_(){let ee;return ln(19)?(ee=Va(4,jp),ln(20)):ee=bf(),ee}function pC(){return Le(),te()===40||te()===41?Le()===148:(te()===148&&Le(),te()===23&&Pd()&&Le()===103)}function QP(){let ee=B(),ke=Ee();ln(103);let rt=cl();return Zt(_.createTypeParameterDeclaration(void 0,ke,rt,void 0),ee)}function fC(){let ee=B();ln(19);let ke;(te()===148||te()===40||te()===41)&&(ke=Zl(),ke.kind!==148&&ln(148)),ln(23);let rt=QP(),Pt=co(130)?cl():void 0;ln(24);let nn;(te()===58||te()===40||te()===41)&&(nn=Zl(),nn.kind!==58&&ln(58));let _n=qd();is();let ei=Va(4,jp);return ln(20),Zt(_.createMappedTypeNode(ke,rt,Pt,nn,_n,ei),ee)}function Ng(){let ee=B();if(co(26))return Zt(_.createRestTypeNode(cl()),ee);let ke=cl();if(yD(ke)&&ke.pos===ke.type.pos){let rt=_.createOptionalTypeNode(ke.type);return bt(rt,ke),rt.flags=ke.flags,rt}return ke}function hT(){return Le()===59||te()===58&&Le()===59}function WE(){return te()===26?Ju(Le())&&hT():Ju(te())&&hT()}function vv(){if(wt(WE)){let ee=B(),ke=Ae(),rt=Go(26),Pt=Ee(),nn=Go(58);ln(59);let _n=Ng(),ei=_.createNamedTupleMember(rt,Pt,nn,_n);return Pr(Zt(ei,ee),ke)}return Ng()}function FE(){let ee=B();return Zt(_.createTupleTypeNode(oe(21,vv,23,24)),ee)}function yx(){let ee=B();ln(21);let ke=cl();return ln(22),Zt(_.createParenthesizedType(ke),ee)}function ZP(){let ee;if(te()===128){let ke=B();Le();let rt=Zt(k(128),ke);ee=qa([rt],ke)}return ee}function zE(){let ee=B(),ke=Ae(),rt=ZP(),Pt=co(105);C.assert(!rt||Pt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let nn=Ye(),_n=_i(4),ei=lr(39,!1),wr=Pt?_.createConstructorTypeNode(rt,nn,_n,ei):_.createFunctionTypeNode(nn,_n,ei);return Pr(Zt(wr,ee),ke)}function vx(){let ee=Zl();return te()===25?void 0:ee}function _T(ee){let ke=B();ee&&Le();let rt=te()===112||te()===97||te()===106?Zl():Eo(te());return ee&&(rt=Zt(_.createPrefixUnaryExpression(41,rt),ke)),Zt(_.createLiteralTypeNode(rt),ke)}function mC(){return Le(),te()===102}function BE(){be|=4194304;let ee=B(),ke=co(114);ln(102),ln(21);let rt=cl(),Pt;if(co(28)){let ei=t.getTokenStart();ln(19);let wr=te();if(wr===118||wr===132?Le():Kt(f._0_expected,_a(118)),ln(59),Pt=r0(wr,!0),co(28),!ln(20)){let pr=Zs(De);pr&&pr.code===f._0_expected.code&&pa(pr,vI(re,Ne,ei,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ln(22);let nn=co(25)?Vo():void 0,_n=ml();return Zt(_.createImportTypeNode(rt,Pt,nn,_n,ke),ee)}function bx(){return Le(),te()===9||te()===10}function eS(){switch(te()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return En(vx)||Ca();case 67:t.reScanAsteriskEqualsToken();case 42:return Kf();case 61:t.reScanQuestionToken();case 58:return yv();case 100:return zu();case 54:return Ty();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return _T();case 41:return wt(bx)?_T(!0):Ca();case 116:return Zl();case 110:{let ee=Tf();return te()===142&&!t.hasPrecedingLineBreak()?Vp(ee):ee}case 114:return wt(mC)?BE():Am();case 19:return wt(pC)?fC():mT();case 23:return FE();case 21:return yx();case 102:return BE();case 131:return wt(Cx)?U_():Ca();case 16:return ti();default:return Ca()}}function jb(ee){switch(te()){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!ee;case 41:return!ee&&wt(bx);case 21:return!ee&&wt(Tx);default:return Ln()}}function Tx(){return Le(),te()===22||mt(!1)||jb()}function Sx(){let ee=B(),ke=eS();for(;!t.hasPrecedingLineBreak();)switch(te()){case 54:Le(),ke=Zt(_.createJSDocNonNullableType(ke,!0),ee);break;case 58:if(wt(er))return ke;Le(),ke=Zt(_.createJSDocNullableType(ke,!0),ee);break;case 23:if(ln(23),jb()){let rt=cl();ln(24),ke=Zt(_.createIndexedAccessTypeNode(ke,rt),ee)}else ln(24),ke=Zt(_.createArrayTypeNode(ke),ee);break;default:return ke}return ke}function tS(ee){let ke=B();return ln(ee),Zt(_.createTypeOperatorNode(ee,Ey()),ke)}function Ub(){if(co(96)){let ee=Ft(cl);if(It()||te()!==58)return ee}}function bv(){let ee=B(),ke=Fs(),rt=En(Ub),Pt=_.createTypeParameterDeclaration(void 0,ke,rt);return Zt(Pt,ee)}function Sy(){let ee=B();return ln(140),Zt(_.createInferTypeNode(bv()),ee)}function Ey(){let ee=te();switch(ee){case 143:case 158:case 148:return tS(ee);case 140:return Sy()}return ot(Sx)}function Ay(ee){if(ns()){let ke=zE(),rt;return k_(ke)?rt=ee?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:rt=ee?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,Nt(ke,rt),ke}}function Hb(ee,ke,rt){let Pt=B(),nn=ee===52,_n=co(ee),ei=_n&&Ay(nn)||ke();if(te()===ee||_n){let wr=[ei];for(;co(ee);)wr.push(Ay(nn)||ke());ei=Zt(rt(qa(wr,Pt)),Pt)}return ei}function gT(){return Hb(51,Ey,_.createIntersectionTypeNode)}function GE(){return Hb(52,gT,_.createUnionTypeNode)}function yT(){return Le(),te()===105}function ns(){return te()===30||te()===21&&wt(hC)?!0:te()===105||te()===128&&wt(yT)}function VE(){if(cb(te())&&wi(!1),Ln()||te()===110)return Le(),!0;if(te()===23||te()===19){let ee=De.length;return Dv(),ee===De.length}return!1}function hC(){return Le(),!!(te()===22||te()===26||VE()&&(te()===59||te()===28||te()===58||te()===64||te()===22&&(Le(),te()===39)))}function Iy(){let ee=B(),ke=Ln()&&En(xy),rt=cl();return ke?Zt(_.createTypePredicateNode(void 0,ke,rt),ee):rt}function xy(){let ee=Fs();if(te()===142&&!t.hasPrecedingLineBreak())return Le(),ee}function U_(){let ee=B(),ke=$s(131),rt=te()===110?Tf():Fs(),Pt=co(142)?cl():void 0;return Zt(_.createTypePredicateNode(ke,rt,Pt),ee)}function cl(){if(Kn&81920)return $o(81920,cl);if(ns())return zE();let ee=B(),ke=GE();if(!It()&&!t.hasPrecedingLineBreak()&&co(96)){let rt=Ft(cl);ln(58);let Pt=ot(cl);ln(59);let nn=ot(cl);return Zt(_.createConditionalTypeNode(ke,rt,Pt,nn),ee)}return ke}function qd(){return co(59)?cl():void 0}function ap(){switch(te()){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 wt(V_);default:return Ln()}}function Jd(){if(ap())return!0;switch(te()){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 Dm()?!0:Ln()}}function vT(){return te()!==19&&te()!==100&&te()!==86&&te()!==60&&Jd()}function Au(){let ee=Ot();ee&&ai(!1);let ke=B(),rt=Bu(!0),Pt;for(;Pt=Go(28);)rt=ja(rt,Pt,Bu(!0),ke);return ee&&ai(!0),rt}function H_(){return co(64)?Bu(!0):void 0}function Bu(ee){if(Rm())return bT();let ke=e2(ee)||Qe(ee);if(ke)return ke;let rt=B(),Pt=Ae(),nn=qb(0);return nn.kind===80&&te()===39?TT(rt,nn,ee,Pt,void 0):Xu(nn)&&sy(gr())?ja(nn,Zl(),Bu(ee),rt):Sv(nn,rt,ee)}function Rm(){return te()===127?Ue()?!0:wt(sS):!1}function Hm(){return Le(),!t.hasPrecedingLineBreak()&&Ln()}function bT(){let ee=B();return Le(),!t.hasPrecedingLineBreak()&&(te()===42||Jd())?Zt(_.createYieldExpression(Go(42),Bu(!0)),ee):Zt(_.createYieldExpression(void 0,void 0),ee)}function TT(ee,ke,rt,Pt,nn){C.assert(te()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let _n=_.createParameterDeclaration(void 0,void 0,ke,void 0,void 0,void 0);Zt(_n,ke.pos);let ei=qa([_n],_n.pos,_n.end),wr=$s(39),pr=qm(!!nn,rt),Si=_.createArrowFunction(nn,void 0,ei,void 0,wr,pr);return Pr(Zt(Si,ee),Pt)}function e2(ee){let ke=_C();if(ke!==0)return ke===1?Mg(!0,!0):En(()=>nS(ee))}function _C(){return te()===21||te()===30||te()===134?wt(Tv):te()===39?1:0}function Tv(){if(te()===134&&(Le(),t.hasPrecedingLineBreak()||te()!==21&&te()!==30))return 0;let ee=te(),ke=Le();if(ee===21){if(ke===22)switch(Le()){case 39:case 59:case 19:return 1;default:return 0}if(ke===23||ke===19)return 2;if(ke===26)return 1;if(cb(ke)&&ke!==134&&wt(Pd))return Le()===130?0:1;if(!Ln()&&ke!==110)return 0;switch(Le()){case 59:return 1;case 58:return Le(),te()===59||te()===28||te()===64||te()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return C.assert(ee===30),!Ln()&&te()!==87?0:ce===1?wt(()=>{co(87);let Pt=Le();if(Pt===96)switch(Le()){case 64:case 32:case 44:return!1;default:return!0}else if(Pt===28||Pt===64)return!0;return!1})?1:0:2}function nS(ee){let ke=t.getTokenStart();if(gn?.has(ke))return;let rt=Mg(!1,ee);return rt||(gn||(gn=new Set)).add(ke),rt}function Qe(ee){if(te()===134&&wt(jE)===1){let ke=B(),rt=Ae(),Pt=Ao(),nn=qb(0);return TT(ke,nn,ee,rt,Pt)}}function jE(){if(te()===134){if(Le(),t.hasPrecedingLineBreak()||te()===39)return 0;let ee=qb(0);if(!t.hasPrecedingLineBreak()&&ee.kind===80&&te()===39)return 1}return 0}function Mg(ee,ke){let rt=B(),Pt=Ae(),nn=Ao(),_n=vt(nn,wM)?2:0,ei=Ye(),wr;if(ln(21)){if(ee)wr=Ro(_n,ee);else{let Mv=Ro(_n,ee);if(!Mv)return;wr=Mv}if(!ln(22)&&!ee)return}else{if(!ee)return;wr=bf()}let pr=te()===59,Si=lr(59,!1);if(Si&&!ee&&cd(Si))return;let ao=Si;for(;ao?.kind===197;)ao=ao.type;let zs=ao&&vD(ao);if(!ee&&te()!==39&&(zs||te()!==19))return;let Is=te(),as=$s(39),Qf=Is===39||Is===19?qm(vt(nn,wM),ke):Fs();if(!ke&&pr&&te()!==59)return;let If=_.createArrowFunction(nn,ei,wr,Si,as,Qf);return Pr(Zt(If,rt),Pt)}function qm(ee,ke){if(te()===19)return Zb(ee?2:0);if(te()!==27&&te()!==100&&te()!==86&&Rv()&&!vT())return Zb(16|(ee?2:0));let rt=Ue();ri(!1);let Pt=_t;_t=!1;let nn=ee?ne(()=>Bu(ke)):Fe(()=>Bu(ke));return _t=Pt,ri(rt),nn}function Sv(ee,ke,rt){let Pt=Go(58);if(!Pt)return ee;let nn;return Zt(_.createConditionalExpression(ee,Pt,$o(r,()=>Bu(!1)),nn=$s(59),pm(nn)?Bu(rt):As(80,!1,f._0_expected,_a(59))),ke)}function qb(ee){let ke=B(),rt=ET();return Sh(ee,rt,ke)}function Iu(ee){return ee===103||ee===165}function Sh(ee,ke,rt){for(;;){gr();let Pt=bk(te());if(!(te()===43?Pt>=ee:Pt>ee)||te()===103&&Rt())break;if(te()===130||te()===152){if(t.hasPrecedingLineBreak())break;{let _n=te();Le(),ke=_n===152?ST(ke,cl()):Sf(ke,cl())}}else ke=ja(ke,Zl(),qb(Pt),rt)}return ke}function Dm(){return Rt()&&te()===103?!1:bk(te())>0}function ST(ee,ke){return Zt(_.createSatisfiesExpression(ee,ke),ee.pos)}function ja(ee,ke,rt,Pt){return Zt(_.createBinaryExpression(ee,ke,rt),Pt)}function Sf(ee,ke){return Zt(_.createAsExpression(ee,ke),ee.pos)}function Ev(){let ee=B();return Zt(_.createPrefixUnaryExpression(te(),Xt(Av)),ee)}function UE(){let ee=B();return Zt(_.createDeleteExpression(Xt(Av)),ee)}function Ry(){let ee=B();return Zt(_.createTypeOfExpression(Xt(Av)),ee)}function rS(){let ee=B();return Zt(_.createVoidExpression(Xt(Av)),ee)}function Xf(){return te()===135?nt()?!0:wt(sS):!1}function Pg(){let ee=B();return Zt(_.createAwaitExpression(Xt(Av)),ee)}function ET(){if(f_()){let rt=B(),Pt=iS();return te()===43?Sh(bk(te()),Pt,rt):Pt}let ee=te(),ke=Av();if(te()===43){let rt=La(Ne,ke.pos),{end:Pt}=ke;ke.kind===217?Oe(rt,Pt,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(C.assert($6(ee)),Oe(rt,Pt,f.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,_a(ee)))}return ke}function Av(){switch(te()){case 40:case 41:case 55:case 54:return Ev();case 91:return UE();case 114:return Ry();case 116:return rS();case 30:return ce===1?Sd(!0,void 0,void 0,!0):cu();case 135:if(Xf())return Pg();default:return iS()}}function f_(){switch(te()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ce!==1)return!1;default:return!0}}function iS(){if(te()===46||te()===47){let ke=B();return Zt(_.createPrefixUnaryExpression(te(),Xt(AT)),ke)}else if(ce===1&&te()===30&&wt(rp))return Sd(!0);let ee=AT();if(C.assert(Xu(ee)),(te()===46||te()===47)&&!t.hasPrecedingLineBreak()){let ke=te();return Le(),Zt(_.createPostfixUnaryExpression(ee,ke),ee.pos)}return ee}function AT(){let ee=B(),ke;return te()===102?wt(fT)?(be|=4194304,ke=Zl()):wt(p_)?(Le(),Le(),ke=Zt(_.createMetaProperty(102,Ee()),ee),ke.name.escapedText==="defer"?(te()===21||te()===30)&&(be|=4194304):be|=8388608):ke=Jr():ke=te()===108?Vr():Jr(),sp(ee,ke)}function Jr(){let ee=B(),ke=xT();return Ef(ee,ke,!0)}function Vr(){let ee=B(),ke=Zl();if(te()===30){let rt=B(),Pt=En(IT);Pt!==void 0&&(Oe(rt,B(),f.super_may_not_use_type_arguments),Jm()||(ke=_.createExpressionWithTypeArguments(ke,Pt)))}return te()===21||te()===25||te()===23?ke:($s(25,f.super_must_be_followed_by_an_argument_list_or_member_access),Zt(G(ke,an(!0,!0,!0)),ee))}function Sd(ee,ke,rt,Pt=!1){let nn=B(),_n=t2(ee),ei;if(_n.kind===287){let wr=oS(_n),pr,Si=wr[wr.length-1];if(Si?.kind===285&&!Z0(Si.openingElement.tagName,Si.closingElement.tagName)&&Z0(_n.tagName,Si.closingElement.tagName)){let ao=Si.children.end,zs=Zt(_.createJsxElement(Si.openingElement,Si.children,Zt(_.createJsxClosingElement(Zt(N(""),ao,ao)),ao,ao)),Si.openingElement.pos,ao);wr=qa([...wr.slice(0,wr.length-1),zs],wr.pos,ao),pr=Si.closingElement}else pr=yC(_n,ee),Z0(_n.tagName,pr.tagName)||(rt&&ph(rt)&&Z0(pr.tagName,rt.tagName)?Nt(_n.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,BN(Ne,_n.tagName)):Nt(pr.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,BN(Ne,_n.tagName)));ei=Zt(_.createJsxElement(_n,wr,pr),nn)}else _n.kind===290?ei=Zt(_.createJsxFragment(_n,oS(_n),Ex(ee)),nn):(C.assert(_n.kind===286),ei=_n);if(!Pt&&ee&&te()===30){let wr=typeof ke>"u"?ei.pos:ke,pr=En(()=>Sd(!0,wr));if(pr){let Si=As(28,!1);return PV(Si,pr.pos,0),Oe(La(Ne,wr),pr.end,f.JSX_expressions_must_have_one_parent_element),Zt(_.createBinaryExpression(ei,Si,pr),nn)}}return ei}function HE(){let ee=B(),ke=_.createJsxText(t.getTokenValue(),Ge===13);return Ge=t.scanJsxToken(),Zt(ke,ee)}function Dy(ee,ke){switch(ke){case 1:if(Vm(ee))Nt(ee,f.JSX_fragment_has_no_corresponding_closing_tag);else{let rt=ee.tagName,Pt=Math.min(La(Ne,rt.pos),rt.end);Oe(Pt,rt.end,f.JSX_element_0_has_no_corresponding_closing_tag,BN(Ne,ee.tagName))}return;case 31:case 7:return;case 12:case 13:return HE();case 19:return Wo(!1);case 30:return Sd(!1,void 0,ee);default:return C.assertNever(ke)}}function oS(ee){let ke=[],rt=B(),Pt=cn;for(cn|=16384;;){let nn=Dy(ee,Ge=t.reScanJsxToken());if(!nn||(ke.push(nn),ph(ee)&&nn?.kind===285&&!Z0(nn.openingElement.tagName,nn.closingElement.tagName)&&Z0(ee.tagName,nn.closingElement.tagName)))break}return cn=Pt,qa(ke,rt)}function gC(){let ee=B();return Zt(_.createJsxAttributes(Va(13,yp)),ee)}function t2(ee){let ke=B();if(ln(30),te()===32)return Qt(),Zt(_.createJsxOpeningFragment(),ke);let rt=zr(),Pt=(Kn&524288)===0?bl():void 0,nn=gC(),_n;return te()===32?(Qt(),_n=_.createJsxOpeningElement(rt,Pt,nn)):(ln(44),ln(32,void 0,!1)&&(ee?Le():Qt()),_n=_.createJsxSelfClosingElement(rt,Pt,nn)),Zt(_n,ke)}function zr(){let ee=B(),ke=xu();if(fh(ke))return ke;let rt=ke;for(;co(25);)rt=Zt(G(rt,an(!0,!1,!1)),ee);return rt}function xu(){let ee=B();jt();let ke=te()===110,rt=$();return co(59)?(jt(),Zt(_.createJsxNamespacedName(rt,$()),ee)):ke?Zt(_.createToken(110),ee):rt}function Wo(ee){let ke=B();if(!ln(19))return;let rt,Pt;return te()!==20&&(ee||(rt=Go(26)),Pt=Au()),ee?ln(20):ln(20,void 0,!1)&&Qt(),Zt(_.createJsxExpression(rt,Pt),ke)}function yp(){if(te()===19)return Mr();let ee=B();return Zt(_.createJsxAttribute(Jb(),qE()),ee)}function qE(){if(te()===64){if(In()===11)return kt();if(te()===19)return Wo(!0);if(te()===30)return Sd(!0);Kt(f.or_JSX_element_expected)}}function Jb(){let ee=B();jt();let ke=$();return co(59)?(jt(),Zt(_.createJsxNamespacedName(ke,$()),ee)):ke}function Mr(){let ee=B();ln(19),ln(26);let ke=Au();return ln(20),Zt(_.createJsxSpreadAttribute(ke),ee)}function yC(ee,ke){let rt=B();ln(31);let Pt=zr();return ln(32,void 0,!1)&&(ke||!Z0(ee.tagName,Pt)?Le():Qt()),Zt(_.createJsxClosingElement(Pt),rt)}function Ex(ee){let ke=B();return ln(31),ln(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(ee?Le():Qt()),Zt(_.createJsxJsxClosingFragment(),ke)}function cu(){C.assert(ce!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let ee=B();ln(30);let ke=cl();ln(32);let rt=Av();return Zt(_.createTypeAssertion(ke,rt),ee)}function q_(){return Le(),Ju(te())||te()===23||Jm()}function Eh(){return te()===29&&wt(q_)}function Kb(ee){if(ee.flags&64)return!0;if(zI(ee)){let ke=ee.expression;for(;zI(ke)&&!(ke.flags&64);)ke=ke.expression;if(ke.flags&64){for(;zI(ee);)ee.flags|=64,ee=ee.expression;return!0}}return!1}function JE(ee,ke,rt){let Pt=an(!0,!0,!0),nn=rt||Kb(ke),_n=nn?j(ke,rt,Pt):G(ke,Pt);if(nn&&eo(_n.name)&&Nt(_n.name,f.An_optional_chain_cannot_contain_private_identifiers),dy(ke)&&ke.typeArguments){let ei=ke.typeArguments.pos-1,wr=La(Ne,ke.typeArguments.end)+1;Oe(ei,wr,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Zt(_n,ee)}function Xb(ee,ke,rt){let Pt;if(te()===24)Pt=As(80,!0,f.An_element_access_expression_should_take_an_argument);else{let _n=Mn(Au);df(_n)&&(_n.text=Hl(_n.text)),Pt=_n}ln(24);let nn=rt||Kb(ke)?Z(ke,rt,Pt):J(ke,Pt);return Zt(nn,ee)}function Ef(ee,ke,rt){for(;;){let Pt,nn=!1;if(rt&&Eh()?(Pt=$s(29),nn=Ju(te())):nn=co(25),nn){ke=JE(ee,ke,Pt);continue}if((Pt||!Ot())&&co(23)){ke=Xb(ee,ke,Pt);continue}if(Jm()){ke=!Pt&&ke.kind===234?Yf(ee,ke.expression,Pt,ke.typeArguments):Yf(ee,ke,Pt,void 0);continue}if(!Pt){if(te()===54&&!t.hasPrecedingLineBreak()){Le(),ke=Zt(_.createNonNullExpression(ke),ee);continue}let _n=En(IT);if(_n){ke=Zt(_.createExpressionWithTypeArguments(ke,_n),ee);continue}}return ke}}function Jm(){return te()===15||te()===16}function Yf(ee,ke,rt,Pt){let nn=_.createTaggedTemplateExpression(ke,Pt,te()===15?(Jn(!0),kt()):or(!0));return(rt||ke.flags&64)&&(nn.flags|=64),nn.questionDotToken=rt,Zt(nn,ee)}function sp(ee,ke){for(;;){ke=Ef(ee,ke,!0);let rt,Pt=Go(29);if(Pt&&(rt=En(IT),Jm())){ke=Yf(ee,ke,Pt,rt);continue}if(rt||te()===21){!Pt&&ke.kind===234&&(rt=ke.typeArguments,ke=ke.expression);let nn=Iv(),_n=Pt||Kb(ke)?ye(ke,Pt,rt,nn):q(ke,rt,nn);ke=Zt(_n,ee);continue}if(Pt){let nn=As(80,!1,f.Identifier_expected);ke=Zt(j(ke,Pt,nn),ee)}break}return ke}function Iv(){ln(21);let ee=Yc(11,m_);return ln(22),ee}function IT(){if((Kn&524288)!==0||ft()!==30)return;Le();let ee=Yc(20,cl);if(gr()===32)return Le(),ee&&Ax()?ee:void 0}function Ax(){switch(te()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Dm()||!Jd()}function xT(){switch(te()){case 15:t.getTokenFlags()&26656&&Jn(!1);case 9:case 10:case 11:return kt();case 110:case 108:case 106:case 112:case 97:return Zl();case 21:return Yb();case 23:return $b();case 19:return xv();case 134:if(!wt($f))break;return Qb();case 60:return Ja();case 86:return _c();case 100:return Qb();case 105:return Ny();case 44:case 69:if(tr()===14)return kt();break;case 16:return or(!1);case 81:return Dr()}return Fs(f.Expression_expected)}function Yb(){let ee=B(),ke=Ae();ln(21);let rt=Mn(Au);return ln(22),Pr(Zt(K(rt),ee),ke)}function Ix(){let ee=B();ln(26);let ke=Bu(!0);return Zt(_.createSpreadElement(ke),ee)}function Cy(){return te()===26?Ix():te()===28?Zt(_.createOmittedExpression(),B()):Bu(!0)}function m_(){return $o(r,Cy)}function $b(){let ee=B(),ke=t.getTokenStart(),rt=ln(23),Pt=t.hasPrecedingLineBreak(),nn=Yc(15,Cy);return Ps(23,24,rt,ke),Zt(F(nn,Pt),ee)}function RT(){let ee=B(),ke=Ae();if(Go(26)){let ao=Bu(!0);return Pr(Zt(_.createSpreadAssignment(ao),ee),ke)}let rt=wi(!0);if(Fn(139))return LT(ee,ke,rt,178,0);if(Fn(153))return LT(ee,ke,rt,179,0);let Pt=Go(42),nn=Ln(),_n=ur(),ei=Go(58),wr=Go(54);if(Pt||te()===21||te()===30)return PT(ee,ke,rt,Pt,_n,ei,wr);let pr;if(nn&&te()!==59){let ao=Go(64),zs=ao?Mn(()=>Bu(!0)):void 0;pr=_.createShorthandPropertyAssignment(_n,zs),pr.equalsToken=ao}else{ln(59);let ao=Mn(()=>Bu(!0));pr=_.createPropertyAssignment(_n,ao)}return pr.modifiers=rt,pr.questionToken=ei,pr.exclamationToken=wr,Pr(Zt(pr,ee),ke)}function xv(){let ee=B(),ke=t.getTokenStart(),rt=ln(19),Pt=t.hasPrecedingLineBreak(),nn=Yc(12,RT,!0);return Ps(19,20,rt,ke),Zt(O(nn,Pt),ee)}function Qb(){let ee=Ot();ai(!1);let ke=B(),rt=Ae(),Pt=wi(!1);ln(100);let nn=Go(42),_n=nn?1:0,ei=vt(Pt,wM)?2:0,wr=_n&&ei?it(Km):_n?le(Km):ei?ne(Km):Km(),pr=Ye(),Si=_i(_n|ei),ao=lr(59,!1),zs=Zb(_n|ei);ai(ee);let Is=_.createFunctionExpression(Pt,nn,wr,pr,Si,ao,zs);return Pr(Zt(Is,ke),rt)}function Km(){return xn()?vd():void 0}function Ny(){let ee=B();if(ln(105),co(25)){let _n=Ee();return Zt(_.createMetaProperty(105,_n),ee)}let ke=B(),rt=Ef(ke,xT(),!1),Pt;rt.kind===234&&(Pt=rt.typeArguments,rt=rt.expression),te()===29&&Kt(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,BN(Ne,rt));let nn=te()===21?Iv():void 0;return Zt(ie(rt,Pt,nn),ee)}function Lg(ee,ke){let rt=B(),Pt=Ae(),nn=t.getTokenStart(),_n=ln(19,ke);if(_n||ee){let ei=t.hasPrecedingLineBreak(),wr=Va(1,vp);Ps(19,20,_n,nn);let pr=Pr(Zt(pe(wr,ei),rt),Pt);return te()===64&&(Kt(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),Le()),pr}else{let ei=bf();return Pr(Zt(pe(ei,void 0),rt),Pt)}}function Zb(ee,ke){let rt=Ue();ri(!!(ee&1));let Pt=nt();qi(!!(ee&2));let nn=_t;_t=!1;let _n=Ot();_n&&ai(!1);let ei=Lg(!!(ee&16),ke);return _n&&ai(!0),_t=nn,ri(rt),qi(Pt),ei}function dd(){let ee=B(),ke=Ae();return ln(27),Pr(Zt(_.createEmptyStatement(),ee),ke)}function aS(){let ee=B(),ke=Ae();ln(101);let rt=t.getTokenStart(),Pt=ln(21),nn=Mn(Au);Ps(21,22,Pt,rt);let _n=vp(),ei=co(93)?vp():void 0;return Pr(Zt(ve(nn,_n,ei),ee),ke)}function kg(){let ee=B(),ke=Ae();ln(92);let rt=vp();ln(117);let Pt=t.getTokenStart(),nn=ln(21),_n=Mn(Au);return Ps(21,22,nn,Pt),co(27),Pr(Zt(_.createDoStatement(rt,_n),ee),ke)}function DT(){let ee=B(),ke=Ae();ln(117);let rt=t.getTokenStart(),Pt=ln(21),nn=Mn(Au);Ps(21,22,Pt,rt);let _n=vp();return Pr(Zt(xe(nn,_n),ee),ke)}function KE(){let ee=B(),ke=Ae();ln(99);let rt=Go(135);ln(21);let Pt;te()!==27&&(te()===115||te()===121||te()===87||te()===160&&wt(Gl)||te()===135&&wt(Mx)?Pt=tA(!0):Pt=Uo(Au));let nn;if(rt?ln(165):co(165)){let _n=Mn(()=>Bu(!0));ln(22),nn=Ce(rt,Pt,_n,vp())}else if(co(103)){let _n=Mn(Au);ln(22),nn=_.createForInStatement(Pt,_n,vp())}else{ln(27);let _n=te()!==27&&te()!==22?Mn(Au):void 0;ln(27);let ei=te()!==22?Mn(Au):void 0;ln(22),nn=Y(Pt,_n,ei,vp())}return Pr(Zt(nn,ee),ke)}function wg(ee){let ke=B(),rt=Ae();ln(ee===253?83:88);let Pt=Lo()?void 0:Fs();is();let nn=ee===253?_.createBreakStatement(Pt):_.createContinueStatement(Pt);return Pr(Zt(nn,ke),rt)}function vC(){let ee=B(),ke=Ae();ln(107);let rt=Lo()?void 0:Mn(Au);return is(),Pr(Zt(_.createReturnStatement(rt),ee),ke)}function xx(){let ee=B(),ke=Ae();ln(118);let rt=t.getTokenStart(),Pt=ln(21),nn=Mn(Au);Ps(21,22,Pt,rt);let _n=Ia(67108864,vp);return Pr(Zt(_.createWithStatement(nn,_n),ee),ke)}function Rx(){let ee=B(),ke=Ae();ln(84);let rt=Mn(Au);ln(59);let Pt=Va(3,vp);return Pr(Zt(_.createCaseClause(rt,Pt),ee),ke)}function n2(){let ee=B();ln(90),ln(59);let ke=Va(3,vp);return Zt(_.createDefaultClause(ke),ee)}function Dx(){return te()===84?Rx():n2()}function CT(){let ee=B();ln(19);let ke=Va(2,Dx);return ln(20),Zt(_.createCaseBlock(ke),ee)}function My(){let ee=B(),ke=Ae();ln(109),ln(21);let rt=Mn(Au);ln(22);let Pt=CT();return Pr(Zt(_.createSwitchStatement(rt,Pt),ee),ke)}function bC(){let ee=B(),ke=Ae();ln(111);let rt=t.hasPrecedingLineBreak()?void 0:Mn(Au);return rt===void 0&&(Wt++,rt=Zt(N(""),B())),fa()||ra(rt),Pr(Zt(_.createThrowStatement(rt),ee),ke)}function NT(){let ee=B(),ke=Ae();ln(113);let rt=Lg(!1),Pt=te()===85?XE():void 0,nn;return(!Pt||te()===98)&&(ln(98,f.catch_or_finally_expected),nn=Lg(!1)),Pr(Zt(_.createTryStatement(rt,Pt,nn),ee),ke)}function XE(){let ee=B();ln(85);let ke;co(21)?(ke=h_(),ln(22)):ke=void 0;let rt=Lg(!1);return Zt(_.createCatchClause(ke,rt),ee)}function hc(){let ee=B(),ke=Ae();return ln(89),is(),Pr(Zt(_.createDebuggerStatement(),ee),ke)}function ud(){let ee=B(),ke=Ae(),rt,Pt=te()===21,nn=Mn(Au);return He(nn)&&co(59)?rt=_.createLabeledStatement(nn,vp()):(fa()||ra(nn),rt=fe(nn),Pt&&(ke=!1)),Pr(Zt(rt,ee),ke)}function Cx(){return Le(),Ju(te())&&!t.hasPrecedingLineBreak()}function lp(){return Le(),te()===86&&!t.hasPrecedingLineBreak()}function $f(){return Le(),te()===100&&!t.hasPrecedingLineBreak()}function sS(){return Le(),(Ju(te())||te()===9||te()===10||te()===11)&&!t.hasPrecedingLineBreak()}function Ah(){for(;;)switch(te()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return lS();case 135:return du();case 120:case 156:case 166:return Hm();case 144:case 145:return ZE();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let ee=te();if(Le(),t.hasPrecedingLineBreak())return!1;if(ee===138&&te()===156)return!0;continue;case 162:return Le(),te()===19||te()===80||te()===95;case 102:return Le(),te()===166||te()===11||te()===42||te()===19||Ju(te());case 95:let ke=Le();if(ke===156&&(ke=wt(Le)),ke===64||ke===42||ke===19||ke===90||ke===130||ke===60)return!0;continue;case 126:Le();continue;default:return!1}}function e0(){return wt(Ah)}function Rv(){switch(te()){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 e0()||wt(V_);case 87:case 95:return e0();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return e0()||!wt(Cx);default:return Jd()}}function Nx(){return Le(),xn()||te()===19||te()===23}function r2(){return wt(Nx)}function Gl(){return YE(!0)}function TC(){return Le(),te()===64||te()===27||te()===59}function YE(ee){return Le(),ee&&te()===165?wt(TC):(xn()||te()===19)&&!t.hasPrecedingLineBreak()}function lS(){return wt(YE)}function Mx(ee){return Le()===160?YE(ee):!1}function du(){return wt(Mx)}function vp(){switch(te()){case 27:return dd();case 19:return Lg(!1);case 115:return os(B(),Ae(),void 0);case 121:if(r2())return os(B(),Ae(),void 0);break;case 135:if(du())return os(B(),Ae(),void 0);break;case 160:if(lS())return os(B(),Ae(),void 0);break;case 100:return Wr(B(),Ae(),void 0);case 86:return Kd(B(),Ae(),void 0);case 101:return aS();case 92:return kg();case 117:return DT();case 99:return KE();case 88:return wg(252);case 83:return wg(253);case 107:return vC();case 118:return xx();case 109:return My();case 111:return bC();case 113:case 85:case 98:return NT();case 89:return hc();case 60:return MT();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(e0())return MT();break}return ud()}function $E(ee){return ee.kind===138}function MT(){let ee=B(),ke=Ae(),rt=wi(!0);if(vt(rt,$E)){let nn=bp(ee);if(nn)return nn;for(let _n of rt)_n.flags|=33554432;return Ia(33554432,()=>QE(ee,ke,rt))}else return QE(ee,ke,rt)}function bp(ee){return Ia(33554432,()=>{let ke=tl(cn,ee);if(ke)return Ll(ke)})}function QE(ee,ke,rt){switch(te()){case 115:case 121:case 87:case 160:case 135:return os(ee,ke,rt);case 100:return Wr(ee,ke,rt);case 86:return Kd(ee,ke,rt);case 120:return Ym(ee,ke,rt);case 156:return Nv(ee,ke,rt);case 94:return x5(ee,ke,rt);case 162:case 144:case 145:return c4(ee,ke,rt);case 102:return sA(ee,ke,rt);case 95:switch(Le(),te()){case 90:case 64:return OT(ee,ke,rt);case 130:return uS(ee,ke,rt);default:return c2(ee,ke,rt)}default:if(rt){let Pt=As(283,!0,f.Declaration_expected);return IM(Pt,ee),Pt.modifiers=rt,Pt}return}}function Og(){return Le()===11}function Px(){return Le(),te()===161||te()===64}function ZE(){return Le(),!t.hasPrecedingLineBreak()&&(Ln()||te()===11)}function Xm(ee,ke){if(te()!==19){if(ee&4){Do();return}if(Lo()){is();return}}return Zb(ee,ke)}function Lx(){let ee=B();if(te()===28)return Zt(_.createOmittedExpression(),ee);let ke=Go(26),rt=Dv(),Pt=H_();return Zt(_.createBindingElement(ke,void 0,rt,Pt),ee)}function SC(){let ee=B(),ke=Go(26),rt=xn(),Pt=ur(),nn;rt&&te()!==59?(nn=Pt,Pt=void 0):(ln(59),nn=Dv());let _n=H_();return Zt(_.createBindingElement(ke,Pt,nn,_n),ee)}function kx(){let ee=B();ln(19);let ke=Mn(()=>Yc(9,SC));return ln(20),Zt(_.createObjectBindingPattern(ke),ee)}function eA(){let ee=B();ln(23);let ke=Mn(()=>Yc(10,Lx));return ln(24),Zt(_.createArrayBindingPattern(ke),ee)}function wx(){return te()===19||te()===23||te()===81||xn()}function Dv(ee){return te()===23?eA():te()===19?kx():vd(ee)}function Up(){return h_(!0)}function h_(ee){let ke=B(),rt=Ae(),Pt=Dv(f.Private_identifiers_are_not_allowed_in_variable_declarations),nn;ee&&Pt.kind===80&&te()===54&&!t.hasPrecedingLineBreak()&&(nn=Zl());let _n=qd(),ei=Iu(te())?void 0:H_(),wr=Xe(Pt,nn,_n,ei);return Pr(Zt(wr,ke),rt)}function tA(ee){let ke=B(),rt=0;switch(te()){case 115:break;case 121:rt|=1;break;case 87:rt|=2;break;case 160:rt|=4;break;case 135:C.assert(du()),rt|=6,Le();break;default:C.fail()}Le();let Pt;if(te()===165&&wt(nA))Pt=bf();else{let nn=Rt();dr(ee),Pt=Yc(8,ee?h_:Up),dr(nn)}return Zt(Se(Pt,rt),ke)}function nA(){return Pd()&&Le()===22}function os(ee,ke,rt){let Pt=tA(!1);is();let nn=de(rt,Pt);return Pr(Zt(nn,ee),ke)}function Wr(ee,ke,rt){let Pt=nt(),nn=Kh(rt);ln(100);let _n=Go(42),ei=nn&2048?Km():vd(),wr=_n?1:0,pr=nn&1024?2:0,Si=Ye();nn&32&&qi(!0);let ao=_i(wr|pr),zs=lr(59,!1),Is=Xm(wr|pr,f.or_expected);qi(Pt);let as=_.createFunctionDeclaration(rt,_n,ei,Si,ao,zs,Is);return Pr(Zt(as,ee),ke)}function Af(){if(te()===137)return ln(137);if(te()===11&&wt(Le)===21)return En(()=>{let ee=kt();return ee.text==="constructor"?ee:void 0})}function $c(ee,ke,rt){return En(()=>{if(Af()){let Pt=Ye(),nn=_i(0),_n=lr(59,!1),ei=Xm(0,f.or_expected),wr=_.createConstructorDeclaration(rt,nn,ei);return wr.typeParameters=Pt,wr.type=_n,Pr(Zt(wr,ee),ke)}})}function PT(ee,ke,rt,Pt,nn,_n,ei,wr){let pr=Pt?1:0,Si=vt(rt,wM)?2:0,ao=Ye(),zs=_i(pr|Si),Is=lr(59,!1),as=Xm(pr|Si,wr),Qf=_.createMethodDeclaration(rt,Pt,nn,_n,ao,zs,Is,as);return Qf.exclamationToken=ei,Pr(Zt(Qf,ee),ke)}function rA(ee,ke,rt,Pt,nn){let _n=!nn&&!t.hasPrecedingLineBreak()?Go(54):void 0,ei=qd(),wr=$o(90112,H_);Bl(Pt,ei,wr);let pr=_.createPropertyDeclaration(rt,Pt,nn||_n,ei,wr);return Pr(Zt(pr,ee),ke)}function cS(ee,ke,rt){let Pt=Go(42),nn=ur(),_n=Go(58);return Pt||te()===21||te()===30?PT(ee,ke,rt,Pt,nn,_n,void 0,f.or_expected):rA(ee,ke,rt,nn,_n)}function LT(ee,ke,rt,Pt,nn){let _n=ur(),ei=Ye(),wr=_i(0),pr=lr(59,!1),Si=Xm(nn),ao=Pt===178?_.createGetAccessorDeclaration(rt,_n,wr,pr,Si):_.createSetAccessorDeclaration(rt,_n,wr,Si);return ao.typeParameters=ei,_p(ao)&&(ao.type=pr),Pr(Zt(ao,ee),ke)}function iA(){let ee;if(te()===60)return!0;for(;cb(te());){if(ee=te(),WB(ee))return!0;Le()}if(te()===42||(pt()&&(ee=te(),Le()),te()===23))return!0;if(ee!==void 0){if(!Qu(ee)||ee===153||ee===139)return!0;switch(te()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Lo()}}return!1}function D(ee,ke,rt){$s(126);let Pt=me(),nn=Pr(Zt(_.createClassStaticBlockDeclaration(Pt),ee),ke);return nn.modifiers=rt,nn}function me(){let ee=Ue(),ke=nt();ri(!1),qi(!0);let rt=Lg(!1);return ri(ee),qi(ke),rt}function Et(){if(nt()&&te()===135){let ee=B(),ke=Fs(f.Expression_expected);Le();let rt=Ef(ee,ke,!0);return sp(ee,rt)}return AT()}function An(){let ee=B();if(!co(60))return;let ke=ht(Et);return Zt(_.createDecorator(ke),ee)}function vi(ee,ke,rt){let Pt=B(),nn=te();if(te()===87&&ke){if(!En(ro))return}else{if(rt&&te()===126&&wt(aA))return;if(ee&&te()===126)return;if(!Qs())return}return Zt(k(nn),Pt)}function wi(ee,ke,rt){let Pt=B(),nn,_n,ei,wr=!1,pr=!1,Si=!1;if(ee&&te()===60)for(;_n=An();)nn=Bn(nn,_n);for(;ei=vi(wr,ke,rt);)ei.kind===126&&(wr=!0),nn=Bn(nn,ei),pr=!0;if(pr&&ee&&te()===60)for(;_n=An();)nn=Bn(nn,_n),Si=!0;if(Si)for(;ei=vi(wr,ke,rt);)ei.kind===126&&(wr=!0),nn=Bn(nn,ei);return nn&&qa(nn,Pt)}function Ao(){let ee;if(te()===134){let ke=B();Le();let rt=Zt(k(134),ke);ee=qa([rt],ke)}return ee}function Li(){let ee=B(),ke=Ae();if(te()===27)return Le(),Pr(Zt(_.createSemicolonClassElement(),ee),ke);let rt=wi(!0,!0,!0);if(te()===126&&wt(aA))return D(ee,ke,rt);if(Fn(139))return LT(ee,ke,rt,178,0);if(Fn(153))return LT(ee,ke,rt,179,0);if(te()===137||te()===11){let Pt=$c(ee,ke,rt);if(Pt)return Pt}if(hl())return Im(ee,ke,rt);if(Ju(te())||te()===11||te()===9||te()===10||te()===42||te()===23)if(vt(rt,$E)){for(let nn of rt)nn.flags|=33554432;return Ia(33554432,()=>cS(ee,ke,rt))}else return cS(ee,ke,rt);if(rt){let Pt=As(80,!0,f.Declaration_expected);return rA(ee,ke,rt,Pt,void 0)}return C.fail("Should not have attempted to parse class member declaration.")}function Ja(){let ee=B(),ke=Ae(),rt=wi(!0);if(te()===86)return Gu(ee,ke,rt,232);let Pt=As(283,!0,f.Expression_expected);return IM(Pt,ee),Pt.modifiers=rt,Pt}function _c(){return Gu(B(),Ae(),void 0,232)}function Kd(ee,ke,rt){return Gu(ee,ke,rt,264)}function Gu(ee,ke,rt,Pt){let nn=nt();ln(86);let _n=kT(),ei=Ye();vt(rt,PI)&&qi(!0);let wr=t0(),pr;ln(19)?(pr=Cv(),ln(20)):pr=bf(),qi(nn);let Si=Pt===264?_.createClassDeclaration(rt,_n,ei,wr,pr):_.createClassExpression(rt,_n,ei,wr,pr);return Pr(Zt(Si,ee),ke)}function kT(){return xn()&&!Vu()?sc(xn()):void 0}function Vu(){return te()===119&&wt(tf)}function t0(){if(oA())return Va(22,Ox)}function Ox(){let ee=B(),ke=te();C.assert(ke===96||ke===119),Le();let rt=Yc(7,Cm);return Zt(_.createHeritageClause(ke,rt),ee)}function Cm(){let ee=B(),ke=AT();if(ke.kind===234)return ke;let rt=bl();return Zt(_.createExpressionWithTypeArguments(ke,rt),ee)}function bl(){return te()===30?oe(20,cl,30,32):void 0}function oA(){return te()===96||te()===119}function Cv(){return Va(5,Li)}function Ym(ee,ke,rt){ln(120);let Pt=Fs(),nn=Ye(),_n=t0(),ei=j_(),wr=_.createInterfaceDeclaration(rt,Pt,nn,_n,ei);return Pr(Zt(wr,ee),ke)}function Nv(ee,ke,rt){ln(156),t.hasPrecedingLineBreak()&&Kt(f.Line_break_not_permitted_here);let Pt=Fs(),nn=Ye();ln(64);let _n=te()===141&&En(vx)||cl();is();let ei=_.createTypeAliasDeclaration(rt,Pt,nn,_n);return Pr(Zt(ei,ee),ke)}function dS(){let ee=B(),ke=Ae(),rt=ur(),Pt=Mn(H_);return Pr(Zt(_.createEnumMember(rt,Pt),ee),ke)}function x5(ee,ke,rt){ln(94);let Pt=Fs(),nn;ln(19)?(nn=dt(()=>Yc(6,dS)),ln(20)):nn=bf();let _n=_.createEnumDeclaration(rt,Pt,nn);return Pr(Zt(_n,ee),ke)}function i2(){let ee=B(),ke;return ln(19)?(ke=Va(1,vp),ln(20)):ke=bf(),Zt(_.createModuleBlock(ke),ee)}function Wx(ee,ke,rt,Pt){let nn=Pt&32,_n=Pt&8?Ee():Fs(),ei=co(25)?Wx(B(),!1,void 0,8|nn):i2(),wr=_.createModuleDeclaration(rt,_n,ei,Pt);return Pr(Zt(wr,ee),ke)}function o2(ee,ke,rt){let Pt=0,nn;te()===162?(nn=Fs(),Pt|=2048):(nn=kt(),nn.text=Hl(nn.text));let _n;te()===19?_n=i2():is();let ei=_.createModuleDeclaration(rt,nn,_n,Pt);return Pr(Zt(ei,ee),ke)}function c4(ee,ke,rt){let Pt=0;if(te()===162)return o2(ee,ke,rt);if(co(145))Pt|=32;else if(ln(144),te()===11)return o2(ee,ke,rt);return Wx(ee,ke,rt,Pt)}function n0(){return te()===149&&wt(Fx)}function Fx(){return Le()===21}function aA(){return Le()===19}function R5(){return Le()===44}function uS(ee,ke,rt){ln(130),ln(145);let Pt=Fs();is();let nn=_.createNamespaceExportDeclaration(Pt);return nn.modifiers=rt,Pr(Zt(nn,ee),ke)}function sA(ee,ke,rt){ln(102);let Pt=t.getTokenFullStart(),nn;Ln()&&(nn=Fs());let _n;if(nn?.escapedText==="type"&&(te()!==161||Ln()&&wt(Px))&&(Ln()||ar())?(_n=156,nn=Ln()?Fs():void 0):nn?.escapedText==="defer"&&(te()===161?!wt(Og):te()!==28&&te()!==64)&&(_n=166,nn=Ln()?Fs():void 0),nn&&!s2()&&_n!==166)return EC(ee,ke,rt,nn,_n===156);let ei=a2(nn,Pt,_n,void 0),wr=lA(),pr=zx();is();let Si=_.createImportDeclaration(rt,ei,wr,pr);return Pr(Zt(Si,ee),ke)}function a2(ee,ke,rt,Pt=!1){let nn;return(ee||te()===42||te()===19)&&(nn=AC(ee,ke,rt,Pt),ln(161)),nn}function zx(){let ee=te();if((ee===118||ee===132)&&!t.hasPrecedingLineBreak())return r0(ee)}function uo(){let ee=B(),ke=Ju(te())?Ee():Eo(11);ln(59);let rt=Bu(!0);return Zt(_.createImportAttribute(ke,rt),ee)}function r0(ee,ke){let rt=B();ke||ln(ee);let Pt=t.getTokenStart();if(ln(19)){let nn=t.hasPrecedingLineBreak(),_n=Yc(24,uo,!0);if(!ln(20)){let ei=Zs(De);ei&&ei.code===f._0_expected.code&&pa(ei,vI(re,Ne,Pt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Zt(_.createImportAttributes(_n,nn,ee),rt)}else{let nn=qa([],B(),void 0,!1);return Zt(_.createImportAttributes(nn,!1,ee),rt)}}function ar(){return te()===42||te()===19}function s2(){return te()===28||te()===161}function EC(ee,ke,rt,Pt,nn){ln(64);let _n=pS();is();let ei=_.createImportEqualsDeclaration(rt,nn,Pt,_n);return Pr(Zt(ei,ee),ke)}function AC(ee,ke,rt,Pt){let nn;return(!ee||co(28))&&(Pt&&t.setSkipJsDocLeadingAsterisks(!0),te()===42?nn=D5():nn=u4(276),Pt&&t.setSkipJsDocLeadingAsterisks(!1)),Zt(_.createImportClause(rt,ee,nn),ke)}function pS(){return n0()?d4():ut(!1)}function d4(){let ee=B();ln(149),ln(21);let ke=lA();return ln(22),Zt(_.createExternalModuleReference(ke),ee)}function lA(){if(te()===11){let ee=kt();return ee.text=Hl(ee.text),ee}else return Au()}function D5(){let ee=B();ln(42),ln(130);let ke=Fs();return Zt(_.createNamespaceImport(ke),ee)}function IC(){return Ju(te())||te()===11}function J_(ee){return te()===11?kt():ee()}function u4(ee){let ke=B(),rt=ee===276?_.createNamedImports(oe(23,C5,19,20)):_.createNamedExports(oe(23,wT,19,20));return Zt(rt,ke)}function wT(){let ee=Ae();return Pr(l2(282),ee)}function C5(){return l2(277)}function l2(ee){let ke=B(),rt=Qu(te())&&!Ln(),Pt=t.getTokenStart(),nn=t.getTokenEnd(),_n=!1,ei,wr=!0,pr=J_(Ee);if(pr.kind===80&&pr.escapedText==="type")if(te()===130){let zs=Ee();if(te()===130){let Is=Ee();IC()?(_n=!0,ei=zs,pr=J_(ao),wr=!1):(ei=pr,pr=Is,wr=!1)}else IC()?(ei=pr,wr=!1,pr=J_(ao)):(_n=!0,pr=zs)}else IC()&&(_n=!0,pr=J_(ao));wr&&te()===130&&(ei=pr,ln(130),pr=J_(ao)),ee===277&&(pr.kind!==80?(Oe(La(Ne,pr.pos),pr.end,f.Identifier_expected),pr=uh(As(80,!1),pr.pos,pr.pos)):rt&&Oe(Pt,nn,f.Identifier_expected));let Si=ee===277?_.createImportSpecifier(_n,ei,pr):_.createExportSpecifier(_n,ei,pr);return Zt(Si,ke);function ao(){return rt=Qu(te())&&!Ln(),Pt=t.getTokenStart(),nn=t.getTokenEnd(),Ee()}}function p4(ee){return Zt(_.createNamespaceExport(J_(Ee)),ee)}function c2(ee,ke,rt){let Pt=nt();qi(!0);let nn,_n,ei,wr=co(156),pr=B();co(42)?(co(130)&&(nn=p4(pr)),ln(161),_n=lA()):(nn=u4(280),(te()===161||te()===11&&!t.hasPrecedingLineBreak())&&(ln(161),_n=lA()));let Si=te();_n&&(Si===118||Si===132)&&!t.hasPrecedingLineBreak()&&(ei=r0(Si)),is(),qi(Pt);let ao=_.createExportDeclaration(rt,wr,nn,_n,ei);return Pr(Zt(ao,ee),ke)}function OT(ee,ke,rt){let Pt=nt();qi(!0);let nn;co(64)?nn=!0:ln(90);let _n=Bu(!0);is(),qi(Pt);let ei=_.createExportAssignment(rt,nn,_n);return Pr(Zt(ei,ee),ke)}let K_;(ee=>{ee[ee.SourceElements=0]="SourceElements",ee[ee.BlockStatements=1]="BlockStatements",ee[ee.SwitchClauses=2]="SwitchClauses",ee[ee.SwitchClauseStatements=3]="SwitchClauseStatements",ee[ee.TypeMembers=4]="TypeMembers",ee[ee.ClassMembers=5]="ClassMembers",ee[ee.EnumMembers=6]="EnumMembers",ee[ee.HeritageClauseElement=7]="HeritageClauseElement",ee[ee.VariableDeclarations=8]="VariableDeclarations",ee[ee.ObjectBindingElements=9]="ObjectBindingElements",ee[ee.ArrayBindingElements=10]="ArrayBindingElements",ee[ee.ArgumentExpressions=11]="ArgumentExpressions",ee[ee.ObjectLiteralMembers=12]="ObjectLiteralMembers",ee[ee.JsxAttributes=13]="JsxAttributes",ee[ee.JsxChildren=14]="JsxChildren",ee[ee.ArrayLiteralMembers=15]="ArrayLiteralMembers",ee[ee.Parameters=16]="Parameters",ee[ee.JSDocParameters=17]="JSDocParameters",ee[ee.RestProperties=18]="RestProperties",ee[ee.TypeParameters=19]="TypeParameters",ee[ee.TypeArguments=20]="TypeArguments",ee[ee.TupleElementTypes=21]="TupleElementTypes",ee[ee.HeritageClauses=22]="HeritageClauses",ee[ee.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ee[ee.ImportAttributes=24]="ImportAttributes",ee[ee.JSDocComment=25]="JSDocComment",ee[ee.Count=26]="Count"})(K_||(K_={}));let xC;(ee=>{ee[ee.False=0]="False",ee[ee.True=1]="True",ee[ee.Unknown=2]="Unknown"})(xC||(xC={}));let __;(ee=>{function ke(Si,ao,zs){zt("file.js",Si,99,void 0,1,0),t.setText(Si,ao,zs),Ge=t.scan();let Is=rt(),as=At("file.js",99,1,!1,[],k(1),0,gs),Qf=bI(De,as);return ge&&(as.jsDocDiagnostics=bI(ge,as)),Zr(),Is?{jsDocTypeExpression:Is,diagnostics:Qf}:void 0}ee.parseJSDocTypeExpressionForTests=ke;function rt(Si){let ao=B(),zs=(Si?co:ln)(19),Is=Ia(16777216,Th);(!Si||zs)&&xl(20);let as=_.createJSDocTypeExpression(Is);return $e(as),Zt(as,ao)}ee.parseJSDocTypeExpression=rt;function Pt(){let Si=B(),ao=co(19),zs=B(),Is=ut(!1);for(;te()===81;)Mt(),gt(),Is=Zt(_.createJSDocMemberName(Is,Fs()),zs);ao&&xl(20);let as=_.createJSDocNameReference(Is);return $e(as),Zt(as,Si)}ee.parseJSDocNameReference=Pt;function nn(Si,ao,zs){zt("",Si,99,void 0,1,0);let Is=Ia(16777216,()=>pr(ao,zs)),Qf=bI(De,{languageVariant:0,text:Si});return Zr(),Is?{jsDoc:Is,diagnostics:Qf}:void 0}ee.parseIsolatedJSDocComment=nn;function _n(Si,ao,zs){let Is=Ge,as=De.length,Qf=en,If=Ia(16777216,()=>pr(ao,zs));return us(If,Si),Kn&524288&&(ge||(ge=[]),Xr(ge,De,as)),Ge=Is,De.length=as,en=Qf,If}ee.parseJSDocComment=_n;let ei;(Si=>{Si[Si.BeginningOfLine=0]="BeginningOfLine",Si[Si.SawAsterisk=1]="SawAsterisk",Si[Si.SavingComments=2]="SavingComments",Si[Si.SavingBackticks=3]="SavingBackticks"})(ei||(ei={}));let wr;(Si=>{Si[Si.Property=1]="Property",Si[Si.Parameter=2]="Parameter",Si[Si.CallbackParameter=4]="CallbackParameter"})(wr||(wr={}));function pr(Si=0,ao){let zs=Ne,Is=ao===void 0?zs.length:Si+ao;if(ao=Is-Si,C.assert(Si>=0),C.assert(Si<=Is),C.assert(Is<=zs.length),!kj(zs,Si))return;let as,Qf,If,Mv,Pv,Wg=[],i0=[],ls=cn;cn|=1<<25;let jc=t.scanRange(Si+3,ao-5,Lv);return cn=ls,jc;function Lv(){let zn=1,Ur,$r=Si-(zs.lastIndexOf(`
`,Si)+1)+4;function Mi(Bs){Ur||(Ur=$r),Wg.push(Bs),$r+=Bs.length}for(gt();xh(5););xh(4)&&(zn=0,$r=0);e:for(;;){switch(te()){case 60:Bx(Wg),Pv||(Pv=B()),nl(T($r)),zn=0,Ur=void 0;break;case 4:Wg.push(t.getTokenText()),zn=0,$r=0;break;case 42:let Bs=t.getTokenText();zn===1?(zn=2,Mi(Bs)):(C.assert(zn===0),zn=1,$r+=Bs.length);break;case 5:C.assert(zn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Ed=t.getTokenText();Ur!==void 0&&$r+Ed.length>Ur&&Wg.push(Ed.slice(Ur-$r)),$r+=Ed.length;break;case 1:break e;case 82:zn=2,Mi(t.getTokenValue());break;case 19:zn=2;let Rh=t.getTokenFullStart(),Nm=t.getTokenEnd()-1,$m=ue(Nm);if($m){Mv||uu(Wg),i0.push(Zt(_.createJSDocText(Wg.join("")),Mv??Si,Rh)),i0.push($m),Wg=[],Mv=t.getTokenEnd();break}default:zn=2,Mi(t.getTokenText());break}zn===2?Bt(!1):gt()}let Wi=Wg.join("").trimEnd();i0.length&&Wi.length&&i0.push(Zt(_.createJSDocText(Wi),Mv??Si,Pv)),i0.length&&as&&C.assertIsDefined(Pv,"having parsed tags implies that the end of the comment span should be set");let Na=as&&qa(as,Qf,If);return Zt(_.createJSDocComment(i0.length?qa(i0,Si,Pv):Wi.length?Wi:void 0,Na),Si,Is)}function uu(zn){for(;zn.length&&(zn[0]===`
`||zn[0]==="\r");)zn.shift()}function Bx(zn){for(;zn.length;){let Ur=zn[zn.length-1].trimEnd();if(Ur==="")zn.pop();else if(Ur.length<zn[zn.length-1].length){zn[zn.length-1]=Ur;break}else break}}function Fg(){for(;;){if(gt(),te()===1)return!0;if(!(te()===5||te()===4))return!1}}function X_(){if(!((te()===5||te()===4)&&wt(Fg)))for(;te()===5||te()===4;)gt()}function br(){if((te()===5||te()===4)&&wt(Fg))return"";let zn=t.hasPrecedingLineBreak(),Ur=!1,$r="";for(;zn&&te()===42||te()===5||te()===4;)$r+=t.getTokenText(),te()===4?(zn=!0,Ur=!0,$r=""):te()===42&&(zn=!1),gt();return Ur?$r:""}function T(zn){C.assert(te()===60);let Ur=t.getTokenStart();gt();let $r=Hp(void 0),Mi=br(),Wi;switch($r.escapedText){case"author":Wi=f4(Ur,$r,zn,Mi);break;case"implements":Wi=a0(Ur,$r,zn,Mi);break;case"augments":case"extends":Wi=the(Ur,$r,zn,Mi);break;case"class":case"constructor":Wi=jx(Ur,_.createJSDocClassTag,$r,zn,Mi);break;case"public":Wi=jx(Ur,_.createJSDocPublicTag,$r,zn,Mi);break;case"private":Wi=jx(Ur,_.createJSDocPrivateTag,$r,zn,Mi);break;case"protected":Wi=jx(Ur,_.createJSDocProtectedTag,$r,zn,Mi);break;case"readonly":Wi=jx(Ur,_.createJSDocReadonlyTag,$r,zn,Mi);break;case"override":Wi=jx(Ur,_.createJSDocOverrideTag,$r,zn,Mi);break;case"deprecated":Ni=!0,Wi=jx(Ur,_.createJSDocDeprecatedTag,$r,zn,Mi);break;case"this":Wi=kX(Ur,$r,zn,Mi);break;case"enum":Wi=p2(Ur,$r,zn,Mi);break;case"arg":case"argument":case"param":return Gx(Ur,$r,2,zn);case"return":case"returns":Wi=d2(Ur,$r,zn,Mi);break;case"template":Wi=_r(Ur,$r,zn,Mi);break;case"type":Wi=Vx(Ur,$r,zn,Mi);break;case"typedef":Wi=wX(Ur,$r,zn,Mi);break;case"callback":Wi=WX(Ur,$r,zn,Mi);break;case"overload":Wi=ihe(Ur,$r,zn,Mi);break;case"satisfies":Wi=nhe(Ur,$r,zn,Mi);break;case"see":Wi=Zme(Ur,$r,zn,Mi);break;case"exception":case"throws":Wi=ehe(Ur,$r,zn,Mi);break;case"import":Wi=rhe(Ur,$r,zn,Mi);break;default:Wi=ko(Ur,$r,zn,Mi);break}return Wi}function M(zn,Ur,$r,Mi){return Mi||($r+=Ur-zn),V($r,Mi.slice($r))}function V(zn,Ur){let $r=B(),Mi=[],Wi=[],Na,Bs=0,Ed;function Rh(zg){Ed||(Ed=zn),Mi.push(zg),zn+=zg.length}Ur!==void 0&&(Ur!==""&&Rh(Ur),Bs=1);let Nm=te();e:for(;;){switch(Nm){case 4:Bs=0,Mi.push(t.getTokenText()),zn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:C.assert(Bs!==2&&Bs!==3,"whitespace shouldn't come from the scanner while saving comment text");let zg=t.getTokenText();Ed!==void 0&&zn+zg.length>Ed&&(Mi.push(zg.slice(Ed-zn)),Bs=2),zn+=zg.length;break;case 19:Bs=2;let Py=t.getTokenFullStart(),RC=t.getTokenEnd()-1,m2=ue(RC);m2?(Wi.push(Zt(_.createJSDocText(Mi.join("")),Na??$r,Py)),Wi.push(m2),Mi=[],Na=t.getTokenEnd()):Rh(t.getTokenText());break;case 62:Bs===3?Bs=2:Bs=3,Rh(t.getTokenText());break;case 82:Bs!==3&&(Bs=2),Rh(t.getTokenValue());break;case 42:if(Bs===0){Bs=1,zn+=1;break}default:Bs!==3&&(Bs=2),Rh(t.getTokenText());break}Bs===2||Bs===3?Nm=Bt(Bs===3):Nm=gt()}uu(Mi);let $m=Mi.join("").trimEnd();if(Wi.length)return $m.length&&Wi.push(Zt(_.createJSDocText($m),Na??$r)),qa(Wi,$r,t.getTokenEnd());if($m.length)return $m}function ue(zn){let Ur=En(rn);if(!Ur)return;gt(),X_();let $r=tt(),Mi=[];for(;te()!==20&&te()!==4&&te()!==1;)Mi.push(t.getTokenText()),gt();let Wi=Ur==="link"?_.createJSDocLink:Ur==="linkcode"?_.createJSDocLinkCode:_.createJSDocLinkPlain;return Zt(Wi($r,Mi.join("")),zn,t.getTokenEnd())}function tt(){if(Ju(te())){let zn=B(),Ur=Ee();for(;co(25);)Ur=Zt(_.createQualifiedName(Ur,te()===81?As(80,!1):Ee()),zn);for(;te()===81;)Mt(),gt(),Ur=Zt(_.createJSDocMemberName(Ur,Fs()),zn);return Ur}}function rn(){if(br(),te()===19&&gt()===60&&Ju(gt())){let zn=t.getTokenValue();if(Or(zn))return zn}}function Or(zn){return zn==="link"||zn==="linkcode"||zn==="linkplain"}function ko(zn,Ur,$r,Mi){return Zt(_.createJSDocUnknownTag(Ur,M(zn,B(),$r,Mi)),zn)}function nl(zn){zn&&(as?as.push(zn):(as=[zn],Qf=zn.pos),If=zn.end)}function rf(){return br(),te()===19?rt():void 0}function o0(){let zn=xh(23);zn&&X_();let Ur=xh(62),$r=zX();return Ur&&Ra(62),zn&&(X_(),Go(64)&&Au(),ln(24)),{name:$r,isBracketed:zn}}function Ih(zn){switch(zn.kind){case 151:return!0;case 189:return Ih(zn.elementType);default:return wp(zn)&&He(zn.typeName)&&zn.typeName.escapedText==="Object"&&!zn.typeArguments}}function Gx(zn,Ur,$r,Mi){let Wi=rf(),Na=!Wi;br();let{name:Bs,isBracketed:Ed}=o0(),Rh=br();Na&&!wt(rn)&&(Wi=rf());let Nm=M(zn,B(),Mi,Rh),$m=Qme(Wi,Bs,$r,Mi);$m&&(Wi=$m,Na=!0);let zg=$r===1?_.createJSDocPropertyTag(Ur,Bs,Ed,Wi,Na,Nm):_.createJSDocParameterTag(Ur,Bs,Ed,Wi,Na,Nm);return Zt(zg,zn)}function Qme(zn,Ur,$r,Mi){if(zn&&Ih(zn.type)){let Wi=B(),Na,Bs;for(;Na=En(()=>cA($r,Mi,Ur));)Na.kind===342||Na.kind===349?Bs=Bn(Bs,Na):Na.kind===346&&Nt(Na.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Bs){let Ed=Zt(_.createJSDocTypeLiteral(Bs,zn.type.kind===189),Wi);return Zt(_.createJSDocTypeExpression(Ed),Wi)}}}function d2(zn,Ur,$r,Mi){vt(as,h3)&&Oe(Ur.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Ur.escapedText));let Wi=rf();return Zt(_.createJSDocReturnTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function Vx(zn,Ur,$r,Mi){vt(as,HM)&&Oe(Ur.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Ur.escapedText));let Wi=rt(!0),Na=$r!==void 0&&Mi!==void 0?M(zn,B(),$r,Mi):void 0;return Zt(_.createJSDocTypeTag(Ur,Wi,Na),zn)}function Zme(zn,Ur,$r,Mi){let Na=te()===23||wt(()=>gt()===60&&Ju(gt())&&Or(t.getTokenValue()))?void 0:Pt(),Bs=$r!==void 0&&Mi!==void 0?M(zn,B(),$r,Mi):void 0;return Zt(_.createJSDocSeeTag(Ur,Na,Bs),zn)}function ehe(zn,Ur,$r,Mi){let Wi=rf(),Na=M(zn,B(),$r,Mi);return Zt(_.createJSDocThrowsTag(Ur,Wi,Na),zn)}function f4(zn,Ur,$r,Mi){let Wi=B(),Na=LX(),Bs=t.getTokenFullStart(),Ed=M(zn,Bs,$r,Mi);Ed||(Bs=t.getTokenFullStart());let Rh=typeof Ed!="string"?qa(so([Zt(Na,Wi,Bs)],Ed),Wi):Na.text+Ed;return Zt(_.createJSDocAuthorTag(Ur,Rh),zn)}function LX(){let zn=[],Ur=!1,$r=t.getToken();for(;$r!==1&&$r!==4;){if($r===30)Ur=!0;else{if($r===60&&!Ur)break;if($r===32&&Ur){zn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}zn.push(t.getTokenText()),$r=gt()}return _.createJSDocText(zn.join(""))}function a0(zn,Ur,$r,Mi){let Wi=fS();return Zt(_.createJSDocImplementsTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function the(zn,Ur,$r,Mi){let Wi=fS();return Zt(_.createJSDocAugmentsTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function nhe(zn,Ur,$r,Mi){let Wi=rt(!1),Na=$r!==void 0&&Mi!==void 0?M(zn,B(),$r,Mi):void 0;return Zt(_.createJSDocSatisfiesTag(Ur,Wi,Na),zn)}function rhe(zn,Ur,$r,Mi){let Wi=t.getTokenFullStart(),Na;Ln()&&(Na=Fs());let Bs=a2(Na,Wi,156,!0),Ed=lA(),Rh=zx(),Nm=$r!==void 0&&Mi!==void 0?M(zn,B(),$r,Mi):void 0;return Zt(_.createJSDocImportTag(Ur,Bs,Ed,Rh,Nm),zn)}function fS(){let zn=co(19),Ur=B(),$r=u2();t.setSkipJsDocLeadingAsterisks(!0);let Mi=bl();t.setSkipJsDocLeadingAsterisks(!1);let Wi=_.createExpressionWithTypeArguments($r,Mi),Na=Zt(Wi,Ur);return zn&&(X_(),ln(20)),Na}function u2(){let zn=B(),Ur=Hp();for(;co(25);){let $r=Hp();Ur=Zt(G(Ur,$r),zn)}return Ur}function jx(zn,Ur,$r,Mi,Wi){return Zt(Ur($r,M(zn,B(),Mi,Wi)),zn)}function kX(zn,Ur,$r,Mi){let Wi=rt(!0);return X_(),Zt(_.createJSDocThisTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function p2(zn,Ur,$r,Mi){let Wi=rt(!0);return X_(),Zt(_.createJSDocEnumTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function wX(zn,Ur,$r,Mi){let Wi=rf();br();let Na=m4();X_();let Bs=V($r),Ed;if(!Wi||Ih(Wi.type)){let Nm,$m,zg,Py=!1;for(;(Nm=En(()=>ahe($r)))&&Nm.kind!==346;)if(Py=!0,Nm.kind===345)if($m){let RC=Kt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);RC&&pa(RC,vI(re,Ne,0,0,f.The_tag_was_first_specified_here));break}else $m=Nm;else zg=Bn(zg,Nm);if(Py){let RC=Wi&&Wi.type.kind===189,m2=_.createJSDocTypeLiteral(zg,RC);Wi=$m&&$m.typeExpression&&!Ih($m.typeExpression.type)?$m.typeExpression:Zt(m2,zn),Ed=Wi.end}}Ed=Ed||Bs!==void 0?B():(Na??Wi??Ur).end,Bs||(Bs=M(zn,Ed,$r,Mi));let Rh=_.createJSDocTypedefTag(Ur,Wi,Na,Bs);return Zt(Rh,zn,Ed)}function m4(zn){let Ur=t.getTokenStart();if(!Ju(te()))return;let $r=Hp();if(co(25)){let Mi=m4(!0),Wi=_.createModuleDeclaration(void 0,$r,Mi,zn?8:void 0);return Zt(Wi,Ur)}return zn&&($r.flags|=4096),$r}function f2(zn){let Ur=B(),$r,Mi;for(;$r=En(()=>cA(4,zn));){if($r.kind===346){Nt($r.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Mi=Bn(Mi,$r)}return qa(Mi||[],Ur)}function OX(zn,Ur){let $r=f2(Ur),Mi=En(()=>{if(xh(60)){let Wi=T(Ur);if(Wi&&Wi.kind===343)return Wi}});return Zt(_.createJSDocSignature(void 0,$r,Mi),zn)}function WX(zn,Ur,$r,Mi){let Wi=m4();X_();let Na=V($r),Bs=OX(zn,$r);Na||(Na=M(zn,B(),$r,Mi));let Ed=Na!==void 0?B():Bs.end;return Zt(_.createJSDocCallbackTag(Ur,Bs,Wi,Na),zn,Ed)}function ihe(zn,Ur,$r,Mi){X_();let Wi=V($r),Na=OX(zn,$r);Wi||(Wi=M(zn,B(),$r,Mi));let Bs=Wi!==void 0?B():Na.end;return Zt(_.createJSDocOverloadTag(Ur,Na,Wi),zn,Bs)}function ohe(zn,Ur){for(;!He(zn)||!He(Ur);)if(!He(zn)&&!He(Ur)&&zn.right.escapedText===Ur.right.escapedText)zn=zn.left,Ur=Ur.left;else return!1;return zn.escapedText===Ur.escapedText}function ahe(zn){return cA(1,zn)}function cA(zn,Ur,$r){let Mi=!0,Wi=!1;for(;;)switch(gt()){case 60:if(Mi){let Na=FX(zn,Ur);return Na&&(Na.kind===342||Na.kind===349)&&$r&&(He(Na.name)||!ohe($r,Na.name.left))?!1:Na}Wi=!1;break;case 4:Mi=!0,Wi=!1;break;case 42:Wi&&(Mi=!1),Wi=!0;break;case 80:Mi=!1;break;case 1:return!1}}function FX(zn,Ur){C.assert(te()===60);let $r=t.getTokenFullStart();gt();let Mi=Hp(),Wi=br(),Na;switch(Mi.escapedText){case"type":return zn===1&&Vx($r,Mi);case"prop":case"property":Na=1;break;case"arg":case"argument":case"param":Na=6;break;case"template":return _r($r,Mi,Ur,Wi);case"this":return kX($r,Mi,Ur,Wi);default:return!1}return zn&Na?Gx($r,Mi,zn,Ur):!1}function she(){let zn=B(),Ur=xh(23);Ur&&X_();let $r=wi(!1,!0),Mi=Hp(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Wi;if(Ur&&(X_(),ln(64),Wi=Ia(16777216,Th),ln(24)),!Ol(Mi))return Zt(_.createTypeParameterDeclaration($r,Mi,void 0,Wi),zn)}function kv(){let zn=B(),Ur=[];do{X_();let $r=she();$r!==void 0&&Ur.push($r),br()}while(xh(28));return qa(Ur,zn)}function _r(zn,Ur,$r,Mi){let Wi=te()===19?rt():void 0,Na=kv();return Zt(_.createJSDocTemplateTag(Ur,Wi,Na,M(zn,B(),$r,Mi)),zn)}function xh(zn){return te()===zn?(gt(),!0):!1}function zX(){let zn=Hp();for(co(23)&&ln(24);co(25);){let Ur=Hp();co(23)&&ln(24),zn=tn(zn,Ur)}return zn}function Hp(zn){if(!Ju(te()))return As(80,!zn,zn||f.Identifier_expected);Wt++;let Ur=t.getTokenStart(),$r=t.getTokenEnd(),Mi=te(),Wi=Hl(t.getTokenValue()),Na=Zt(N(Wi,Mi),Ur,$r);return gt(),Na}}})(__=e.JSDocParser||(e.JSDocParser={}))})(Q0||(Q0={}));var zTe=new WeakSet;function bVe(e){zTe.has(e)&&C.fail("Source file has already been incrementally parsed"),zTe.add(e)}var BTe=new WeakSet;function TVe(e){return BTe.has(e)}function ioe(e){BTe.add(e)}var Oj;(e=>{function t(A,R,N,P){if(P=P||C.shouldAssert(2),_(A,R,N,P),Pee(N))return A;if(A.statements.length===0)return Q0.parseSourceFile(A.fileName,R,A.languageVersion,void 0,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);bVe(A),Q0.fixupParentReferences(A);let k=A.text,F=v(A),O=d(A,N);_(A,R,O,P),C.assert(O.span.start<=N.span.start),C.assert(Dl(O.span)===Dl(N.span)),C.assert(Dl(RN(O))===Dl(RN(N)));let G=RN(O).length-O.span.length;u(A,O.span.start,Dl(O.span),Dl(RN(O)),G,k,R,P);let j=Q0.parseSourceFile(A.fileName,R,A.languageVersion,F,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);return j.commentDirectives=r(A.commentDirectives,j.commentDirectives,O.span.start,Dl(O.span),G,k,R,P),j.impliedNodeFormat=A.impliedNodeFormat,kie(A,j),j}e.updateSourceFile=t;function r(A,R,N,P,k,F,O,G){if(!A)return R;let j,J=!1;for(let q of A){let{range:ye,type:ie}=q;if(ye.end<N)j=Bn(j,q);else if(ye.pos>P){Z();let K={range:{pos:ye.pos+k,end:ye.end+k},type:ie};j=Bn(j,K),G&&C.assert(F.substring(ye.pos,ye.end)===O.substring(K.range.pos,K.range.end))}}return Z(),j;function Z(){J||(J=!0,j?R&&j.push(...R):j=R)}}function i(A,R,N,P,k,F,O){N?j(A):G(A);return;function G(J){let Z="";if(O&&o(J)&&(Z=k.substring(J.pos,J.end)),Tj(J,R),uh(J,J.pos+P,J.end+P),O&&o(J)&&C.assert(Z===F.substring(J.pos,J.end)),Jo(J,G,j),Zp(J))for(let q of J.jsDoc)G(q);l(J,O)}function j(J){uh(J,J.pos+P,J.end+P);for(let Z of J)G(Z)}}function o(A){switch(A.kind){case 11:case 9:case 80:return!0}return!1}function s(A,R,N,P,k){C.assert(A.end>=R,"Adjusting an element that was entirely before the change range"),C.assert(A.pos<=N,"Adjusting an element that was entirely after the change range"),C.assert(A.pos<=A.end);let F=Math.min(A.pos,P),O=A.end>=N?A.end+k:Math.min(A.end,P);if(C.assert(F<=O),A.parent){let G=A.parent;C.assertGreaterThanOrEqual(F,G.pos),C.assertLessThanOrEqual(O,G.end)}uh(A,F,O)}function l(A,R){if(R){let N=A.pos,P=k=>{C.assert(k.pos>=N),N=k.end};if(Zp(A))for(let k of A.jsDoc)P(k);Jo(A,P),C.assert(N<=A.end)}}function u(A,R,N,P,k,F,O,G){j(A);return;function j(Z){if(C.assert(Z.pos<=Z.end),Z.pos>N){i(Z,A,!1,k,F,O,G);return}let q=Z.end;if(q>=R){if(ioe(Z),Tj(Z,A),s(Z,R,N,P,k),Jo(Z,j,J),Zp(Z))for(let ye of Z.jsDoc)j(ye);l(Z,G);return}C.assert(q<R)}function J(Z){if(C.assert(Z.pos<=Z.end),Z.pos>N){i(Z,A,!0,k,F,O,G);return}let q=Z.end;if(q>=R){ioe(Z),s(Z,R,N,P,k);for(let ye of Z)j(ye);return}C.assert(q<R)}}function d(A,R){let P=R.span.start;for(let O=0;P>0&&O<=1;O++){let G=g(A,P);C.assert(G.pos<=P);let j=G.pos;P=Math.max(0,j-1)}let k=ic(P,Dl(R.span)),F=R.newLength+(R.span.start-P);return SL(k,F)}function g(A,R){let N=A,P;if(Jo(A,F),P){let O=k(P);O.pos>N.pos&&(N=O)}return N;function k(O){for(;;){let G=uV(O);if(G)O=G;else return O}}function F(O){if(!Ol(O))if(O.pos<=R){if(O.pos>=N.pos&&(N=O),R<O.end)return Jo(O,F),!0;C.assert(O.end<=R),P=O}else return C.assert(O.pos>R),!0}}function _(A,R,N,P){let k=A.text;if(N&&(C.assert(k.length-N.span.length+N.newLength===R.length),P||C.shouldAssert(3))){let F=k.substr(0,N.span.start),O=R.substr(0,N.span.start);C.assert(F===O);let G=k.substring(Dl(N.span),k.length),j=R.substring(Dl(RN(N)),R.length);C.assert(G===j)}}function v(A){let R=A.statements,N=0;C.assert(N<R.length);let P=R[N],k=-1;return{currentNode(O){return O!==k&&(P&&P.end===O&&N<R.length-1&&(N++,P=R[N]),(!P||P.pos!==O)&&F(O)),k=O,C.assert(!P||P.pos===O),P}};function F(O){R=void 0,N=-1,P=void 0,Jo(A,G,j);return;function G(J){return O>=J.pos&&O<J.end?(Jo(J,G,j),!0):!1}function j(J){if(O>=J.pos&&O<J.end)for(let Z=0;Z<J.length;Z++){let q=J[Z];if(q){if(q.pos===O)return R=J,N=Z,P=q,!0;if(q.pos<O&&O<q.end)return Jo(q,G,j),!0}}return!1}}}e.createSyntaxCursor=v;let E;(A=>{A[A.Value=-1]="Value"})(E||(E={}))})(Oj||(Oj={}));function ad(e){return x3(e)!==void 0}function x3(e){let t=qA(e,OW,!1);if(t)return t;if(El(e,".ts")){let r=xc(e),i=r.lastIndexOf(".d.");if(i>=0)return r.substring(i)}}function SVe(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 Wj(e,t){let r=[];for(let i of sg(t,0)||ae){let o=t.substring(i.pos,i.end);xVe(r,i,o)}e.pragmas=new Map;for(let i of r){if(e.pragmas.has(i.name)){let 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 Fj(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":{let o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;Je(VA(r),u=>{let{types:d,lib:g,path:_,["resolution-mode"]:v,preserve:E}=u.arguments,A=E==="true"?!0:void 0;if(u.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(d){let R=SVe(v,d.pos,d.end,t);s.push({pos:d.pos,end:d.end,fileName:d.value,...R?{resolutionMode:R}:{},...A?{preserve:A}:{}})}else g?l.push({pos:g.pos,end:g.end,fileName:g.value,...A?{preserve:A}:{}}):_?o.push({pos:_.pos,end:_.end,fileName:_.value,...A?{preserve:A}:{}}):t(u.range.pos,u.range.end-u.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Vt(VA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let 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":{Je(VA(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:C.fail("Unhandled pragma kind")}})}var ooe=new Map;function EVe(e){if(ooe.has(e))return ooe.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return ooe.set(e,t),t}var AVe=/^\/\/\/\s*<(\S+)\s.*?\/>/m,IVe=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function xVe(e,t,r){let i=t.kind===2&&AVe.exec(r);if(i){let s=i[1].toLowerCase(),l=F8[s];if(!l||!(l.kind&1))return;if(l.args){let u={};for(let d of l.args){let _=EVe(d.name).exec(r);if(!_&&!d.optional)return;if(_){let v=_[2]||_[3];if(d.captureSpan){let E=t.pos+_.index+_[1].length+1;u[d.name]={value:v,pos:E,end:E+v.length}}else u[d.name]=v}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}let o=t.kind===2&&IVe.exec(r);if(o)return GTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+(?:\S.*)?)?$/gm,l;for(;l=s.exec(r);)GTe(e,t,4,l)}}function GTe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=F8[o];if(!s||!(s.kind&r))return;let l=i[2],u=RVe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function RVe(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;o<e.args.length;o++){let s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return C.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function Z0(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===296?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&Z0(e.expression,t.expression)}var aoe={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},VTe=new Map(Object.entries({preserve:1,"react-native":3,"react-jsx":4,"react-jsxdev":5,react:2})),bw=new Map(za(VTe.entries(),([e,t])=>[""+t,e])),jTe=[["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"],["es2024","lib.es2024.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.arraybuffer","lib.es2017.arraybuffer.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.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"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.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.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],R3=jTe.map(e=>e[0]),zj=new Map(jTe),JI=[{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:xoe},allowConfigDirTemplateSubstitution:!0,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:xoe},allowConfigDirTemplateSubstitution:!0,category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],D3=[{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,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,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:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:f.Compiler_Diagnostics,description:f.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,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}],Bj={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,es2023:10,es2024:11,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},soe={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,node18:101,node20:102,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},UTe=[{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:"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},Bj,soe,{name:"lib",type:"list",element:{name:"lib",type:zj,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:VTe,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:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!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.Backwards_Compatibility,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",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,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:"isolatedDeclarations",type:"boolean",category:f.Interop_Constraints,description:f.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:f.Language_and_Environment,description:f.Enable_lib_replacement,defaultValueDescription:!0},{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:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,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,allowConfigDirTemplateSubstitution:!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,allowConfigDirTemplateSubstitution:!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,allowConfigDirTemplateSubstitution:!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:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{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:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Check_side_effect_imports,defaultValueDescription:!1},{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,affectsSourceFile:!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.Backwards_Compatibility,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}],jm=[...D3,...UTe],loe=jm.filter(e=>!!e.affectsSemanticDiagnostics),coe=jm.filter(e=>!!e.affectsEmit),doe=jm.filter(e=>!!e.affectsDeclarationPath),Gj=jm.filter(e=>!!e.affectsModuleResolution),Vj=jm.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),uoe=jm.filter(e=>!!e.affectsProgramStructure),poe=jm.filter(e=>Rs(e,"transpileOptionValue")),DVe=jm.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),CVe=JI.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),foe=jm.filter(NVe);function NVe(e){return!Bo(e.type)}var bE={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},jj=[bE,{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},{name:"stopBuildOnErrors",category:f.Command_line_Options,description:f.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],Tw=[...D3,...jj],C3=[{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}];function N3(e){let t=new Map,r=new Map;return Je(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}var HTe;function RD(){return HTe||(HTe=N3(jm))}var MVe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:$Te},qTe={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function moe(e){return JTe(e,Il)}function JTe(e,t){let r=Co(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 M3(e,t,r){return M1e(e,(t??"").trim(),r)}function hoe(e,t="",r){if(t=t.trim(),po(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return KI(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Ui(i,o=>KI(e.element,parseInt(o),r));case"string":return Ui(i,o=>KI(e.element,o||"",r));case"boolean":case"object":return C.fail(`List of ${e.element.type} is not yet supported.`);default:return Ui(i,o=>M3(e.element,o,r))}}function KTe(e){return e.name}function _oe(e,t,r,i,o){var s;let l=(s=t.alternateMode)==null?void 0:s.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(l)return eT(o,i,l!==bE?t.alternateMode.diagnostic:f.Option_build_must_be_the_first_command_line_argument,e);let u=o1(e,t.optionDeclarations,KTe);return u?eT(o,i,t.unknownDidYouMeanDiagnostic,r||e,u.name):eT(o,i,t.unknownOptionDiagnostic,r||e)}function Uj(e,t,r){let i={},o,s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(g){let _=0;for(;_<g.length;){let v=g[_];if(_++,v.charCodeAt(0)===64)d(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),A=yoe(e.getOptionsNameMap,E,!0);if(A)_=XTe(g,_,e,A,i,l);else{let R=yoe(Kj.getOptionsNameMap,E,!0);R?_=XTe(g,_,Kj,R,o||(o={}),l):l.push(_oe(E,e,v))}}else s.push(v)}}function d(g){let _=YM(g,r||(A=>Uc.readFile(A)));if(!Bo(_)){l.push(_);return}let v=[],E=0;for(;;){for(;E<_.length&&_.charCodeAt(E)<=32;)E++;if(E>=_.length)break;let A=E;if(_.charCodeAt(A)===34){for(E++;E<_.length&&_.charCodeAt(E)!==34;)E++;E<_.length?(v.push(_.substring(A+1,E)),E++):l.push(Il(f.Unterminated_quoted_string_in_response_file_0,g))}else{for(;_.charCodeAt(E)>32;)E++;v.push(_.substring(A,E))}}u(v)}}function XTe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=KI(i,!1,s),t++):(l==="true"&&t++,s.push(Il(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Il(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!po(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Il(r.optionTypeMismatchDiagnostic,i.name,Xj(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=KI(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=KI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=KI(i,e[t]||"",s),t++;break;case"list":let u=hoe(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":C.fail("listOrElement not supported here");break;default:o[i.name]=M3(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}var P3={alternateMode:MVe,getOptionsNameMap:RD,optionDeclarations:jm,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument};function goe(e,t){return Uj(P3,e,t)}function Hj(e,t){return yoe(RD,e,t)}function yoe(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}var YTe;function $Te(){return YTe||(YTe=N3(Tw))}var PVe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:RD},LVe={alternateMode:PVe,getOptionsNameMap:$Te,optionDeclarations:Tw,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};function voe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=Uj(LVe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function tp(e,...t){return ma(Il(e,...t).messageText,Bo)}function Sw(e,t,r,i,o,s){let l=YM(e,g=>r.readFile(g));if(!Bo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let u=vw(e,l),d=r.getCurrentDirectory();return u.path=ks(e,d,Fd(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,Iw(u,r,To(ci(e),d),t,To(e,d),void 0,s,i,o)}function Ew(e,t){let r=YM(e,t);return Bo(r)?qj(e,r):{config:{},error:r}}function qj(e,t){let r=vw(e,t);return{config:d1e(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function boe(e,t){let r=YM(e,t);return Bo(r)?vw(e,r):{fileName:e,parseDiagnostics:[r]}}function YM(e,t){let r;try{r=t(e)}catch(i){return Il(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Il(f.Cannot_read_file_0,e):r}function Jj(e){return hR(e,KTe)}var QTe={optionDeclarations:C3,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},ZTe;function e1e(){return ZTe||(ZTe=N3(JI))}var Kj={getOptionsNameMap:e1e,optionDeclarations:JI,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},t1e;function n1e(){return t1e||(t1e=Jj(jm))}var r1e;function i1e(){return r1e||(r1e=Jj(JI))}var o1e;function a1e(){return o1e||(o1e=Jj(C3))}var L3={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},s1e={name:"compilerOptions",type:"object",elementOptions:n1e(),extraKeyDiagnostics:P3},l1e={name:"watchOptions",type:"object",elementOptions:i1e(),extraKeyDiagnostics:Kj},c1e={name:"typeAcquisition",type:"object",elementOptions:a1e(),extraKeyDiagnostics:QTe},Toe;function kVe(){return Toe===void 0&&(Toe={name:void 0,type:"object",elementOptions:Jj([s1e,l1e,c1e,L3,{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},aoe])}),Toe}function d1e(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==211){if(t.push(wf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,xc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Cd(o)){let s=hn(o.elements,Wa);if(s)return Aw(e,s,t,!0,r)}return{}}return Aw(e,o,t,!0,r)}function Soe(e,t){var r;return Aw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function Aw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o?.rootOptions);function s(g,_){var v;let E=i?{}:void 0;for(let A of g.properties){if(A.kind!==304){r.push(wf(e,A,f.Property_assignment_expected));continue}A.questionToken&&r.push(wf(e,A.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(A.name)||r.push(wf(e,A.name,f.String_literal_with_double_quotes_expected));let R=jL(A.name)?void 0:oI(A.name),N=R&&Vi(R),P=N?(v=_?.elementOptions)==null?void 0:v.get(N):void 0,k=u(A.initializer,P);typeof N<"u"&&(i&&(E[N]=k),o?.onPropertySet(N,k,A,_,P))}return E}function l(g,_){if(!i){g.forEach(v=>u(v,_));return}return Un(g.map(v=>u(v,_)),v=>v!==void 0)}function u(g,_){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return d(g)||r.push(wf(e,g,f.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 225:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 211:return s(g,_);case 210:return l(g.elements,_&&_.element)}_?r.push(wf(e,g,f.Compiler_option_0_requires_a_value_of_type_1,_.name,Xj(_))):r.push(wf(e,g,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function d(g){return ka(g)&&q6(g,e)}}function Xj(e){return e.type==="listOrElement"?`${Xj(e.element)} or Array`:e.type==="list"?"Array":Bo(e.type)?e.type:"string"}function u1e(e,t){if(e){if(xw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Mo(t);if(e.type==="listOrElement")return Mo(t)||u1e(e.element,t);let r=Bo(e.type)?e.type:"string";return typeof t===r}return!1}function Yj(e,t,r){var i,o,s;let l=Fd(r.useCaseSensitiveFileNames),u=Vt(Un(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?WVe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):n1),R=>SR(To(t,r.getCurrentDirectory()),To(R,r.getCurrentDirectory()),l)),d={configFilePath:To(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},g=$j(e.options,d),_=e.watchOptions&&FVe(e.watchOptions),v={compilerOptions:{...k3(g),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:_&&k3(_),references:Vt(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:et(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:OVe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(g.keys()),A={};for(let R in gM)if(!E.has(R)&&wVe(R,E)){let N=gM[R].computeValue(e.options),P=gM[R].computeValue({});N!==P&&(A[R]=gM[R].computeValue(e.options))}return PS(v.compilerOptions,k3($j(A,d))),v}function wVe(e,t){let r=new Set;return i(e);function i(o){var s;return _m(r,o)?vt((s=gM[o])==null?void 0:s.dependencies,l=>t.has(l)||i(l)):!1}}function k3(e){return Object.fromEntries(e)}function OVe(e){if(et(e)){if(et(e)!==1)return e;if(e[0]!==_1e)return e}}function WVe(e,t,r,i){if(!t)return n1;let o=PW(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&nv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&nv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):n1}function p1e(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return p1e(e.element);default:return e.type}}function w3(e,t){return qc(t,(r,i)=>{if(r===e)return i})}function $j(e,t){return f1e(e,RD(),t)}function FVe(e){return f1e(e,e1e())}function f1e(e,{optionsNameMap:t},r){let i=new Map,o=r&&Fd(r.useCaseSensitiveFileNames);for(let s in e)if(Rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],u=t.get(s.toLowerCase());if(u){C.assert(u.type!=="listOrElement");let d=p1e(u);d?u.type==="list"?i.set(s,l.map(g=>w3(g,d))):i.set(s,w3(l,d)):r&&u.isFilePath?i.set(s,SR(r.configFilePath,To(l,ci(r.configFilePath)),o)):r&&u.type==="list"&&u.element.isFilePath?i.set(s,l.map(g=>SR(r.configFilePath,To(g,ci(r.configFilePath)),o))):i.set(s,l)}}return i}function Eoe(e,t){let r=" ",i=[],o=Object.keys(e).filter(_=>_!=="init"&&_!=="help"&&_!=="watch");if(i.push("{"),i.push(`${r}// ${Ho(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),i.push(`${r}"compilerOptions": {`),l(f.File_Layout),u("rootDir","./src","optional"),u("outDir","./dist","optional"),s(),l(f.Environment_Settings),l(f.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),u("module",199),u("target",99),u("types",[]),e.lib&&u("lib",e.lib),l(f.For_nodejs_Colon),i.push(`${r}${r}// "lib": ["esnext"],`),i.push(`${r}${r}// "types": ["node"],`),l(f.and_npm_install_D_types_Slashnode),s(),l(f.Other_Outputs),u("sourceMap",!0),u("declaration",!0),u("declarationMap",!0),s(),l(f.Stricter_Typechecking_Options),u("noUncheckedIndexedAccess",!0),u("exactOptionalPropertyTypes",!0),s(),l(f.Style_Options),u("noImplicitReturns",!0,"optional"),u("noImplicitOverride",!0,"optional"),u("noUnusedLocals",!0,"optional"),u("noUnusedParameters",!0,"optional"),u("noFallthroughCasesInSwitch",!0,"optional"),u("noPropertyAccessFromIndexSignature",!0,"optional"),s(),l(f.Recommended_Options),u("strict",!0),u("jsx",4),u("verbatimModuleSyntax",!0),u("isolatedModules",!0),u("noUncheckedSideEffectImports",!0),u("moduleDetection",3),u("skipLibCheck",!0),o.length>0)for(s();o.length>0;)u(o[0],e[o[0]]);function s(){i.push("")}function l(_){i.push(`${r}${r}// ${Ho(_)}`)}function u(_,v,E="never"){let A=o.indexOf(_);A>=0&&o.splice(A,1);let R;E==="always"?R=!0:E==="never"?R=!1:R=!Rs(e,_);let N=e[_]??v;R?i.push(`${r}${r}// "${_}": ${d(_,N)},`):i.push(`${r}${r}"${_}": ${d(_,N)},`)}function d(_,v){let E=jm.filter(R=>R.name===_)[0];E||C.fail(`No option named ${_}?`);let A=E.type instanceof Map?E.type:void 0;if(Mo(v)){let R="element"in E&&E.element.type instanceof Map?E.element.type:void 0;return`[${v.map(N=>g(N,R)).join(", ")}]`}else return g(v,A)}function g(_,v){return v&&(_=w3(_,v)??C.fail(`No matching value of ${_}`)),JSON.stringify(_)}return i.push(`${r}}`),i.push("}"),i.push(""),i.join(t)}function O3(e,t){let r={},i=RD().optionsNameMap;for(let o in e)Rs(e,o)&&(r[o]=zVe(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function zVe(e,t,r){if(e&&!xw(t)){if(e.type==="list"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);C.assert(e.type!=="listOrElement")}return t}function m1e(e,t,r,i,o,s,l,u,d){return g1e(e,void 0,t,r,i,d,o,s,l,u)}function Iw(e,t,r,i,o,s,l,u,d){var g,_;(g=xr)==null||g.push(xr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});let v=g1e(void 0,e,t,r,i,d,o,s,l,u);return(_=xr)==null||_.pop(),v}function Qj(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function xw(e){return e==null}function h1e(e,t){return ci(To(e,t))}var _1e="**/*";function g1e(e,t,r,i,o={},s,l,u=[],d=[],g){C.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let _=[],v=E1e(e,t,r,i,l,u,_,g),{raw:E}=v,A=y1e(Nz(o,v.options||{}),DVe,i),R=W3(s&&v.watchOptions?Nz(s,v.watchOptions):v.watchOptions||s,i);A.configFilePath=l&&Bd(l);let N=ya(l?h1e(l,i):i),P=k();return t&&(t.configFileSpecs=P),Qj(A,t),{options:A,watchOptions:R,fileNames:F(N),projectReferences:O(N),typeAcquisition:v.typeAcquisition||tU(),raw:E,errors:_,wildcardDirectories:$Ve(P,N,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function k(){let q=J("references",Se=>typeof Se=="object","object"),ye=G(j("files"));if(ye){let Se=q==="no-prop"||Mo(q)&&q.length===0,re=Rs(E,"extends");if(ye.length===0&&Se&&!re)if(t){let be=l||"tsconfig.json",Ne=f.The_files_list_in_config_file_0_is_empty,Be=XL(t,"files",ce=>ce.initializer),lt=eT(t,Be,Ne,be);_.push(lt)}else Z(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ie=G(j("include")),K=j("exclude"),pe=!1,de=G(K);if(K==="no-prop"){let Se=A.outDir,re=A.declarationDir;(Se||re)&&(de=Un([Se,re],be=>!!be))}ye===void 0&&ie===void 0&&(ie=[_1e],pe=!0);let fe,ve,xe,Y;ie&&(fe=k1e(ie,_,!0,t,"include"),xe=F3(fe,N)||fe),de&&(ve=k1e(de,_,!1,t,"exclude"),Y=F3(ve,N)||ve);let Ce=Un(ye,Bo),Xe=F3(Ce,N)||Ce;return{filesSpecs:ye,includeSpecs:ie,excludeSpecs:de,validatedFilesSpec:Xe,validatedIncludeSpecs:xe,validatedExcludeSpecs:Y,validatedFilesSpecBeforeSubstitution:Ce,validatedIncludeSpecsBeforeSubstitution:fe,validatedExcludeSpecsBeforeSubstitution:ve,isDefaultIncludeSpec:pe}}function F(q){let ye=$M(P,q,A,r,d);return S1e(ye,Rw(E),u)&&_.push(T1e(P,l)),ye}function O(q){let ye,ie=J("references",K=>typeof K=="object","object");if(Mo(ie))for(let K of ie)typeof K.path!="string"?Z(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ye||(ye=[])).push({path:To(K.path,q),originalPath:K.path,prepend:K.prepend,circular:K.circular});return ye}function G(q){return Mo(q)?q:void 0}function j(q){return J(q,Bo,"string")}function J(q,ye,ie){if(Rs(E,q)&&!xw(E[q]))if(Mo(E[q])){let K=E[q];return!t&&!Vn(K,ye)&&_.push(Il(f.Compiler_option_0_requires_a_value_of_type_1,q,ie)),K}else return Z(f.Compiler_option_0_requires_a_value_of_type_1,q,"Array"),"not-array";return"no-prop"}function Z(q,...ye){t||_.push(Il(q,...ye))}}function W3(e,t){return y1e(e,CVe,t)}function y1e(e,t,r){if(!e)return e;let i;for(let s of t)if(e[s.name]!==void 0){let l=e[s.name];switch(s.type){case"string":C.assert(s.isFilePath),Zj(l)&&o(s,b1e(l,r));break;case"list":C.assert(s.element.isFilePath);let u=F3(l,r);u&&o(s,u);break;case"object":C.assert(s.name==="paths");let d=BVe(l,r);d&&o(s,d);break;default:C.fail("option type not supported")}}return i||e;function o(s,l){(i??(i=PS({},e)))[s.name]=l}}var v1e="${configDir}";function Zj(e){return Bo(e)&&po(e,v1e,!0)}function b1e(e,t){return To(e.replace(v1e,"./"),t)}function F3(e,t){if(!e)return e;let r;return e.forEach((i,o)=>{Zj(i)&&((r??(r=e.slice()))[o]=b1e(i,t))}),r}function BVe(e,t){let r;return Oh(e).forEach(o=>{if(!Mo(e[o]))return;let s=F3(e[o],t);s&&((r??(r=PS({},e)))[o]=s)}),r}function GVe(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 T1e({includeSpecs:e,excludeSpecs:t},r){return Il(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 S1e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function eU(e){return!e.fileNames.length&&Rs(e.raw,"references")}function Rw(e){return!Rs(e,"files")&&!Rs(e,"references")}function z3(e,t,r,i,o){let s=i.length;return S1e(e,o)?i.push(T1e(r,t)):ul(i,l=>!GVe(l)),s!==i.length}function VVe(e){return!!e.options}function E1e(e,t,r,i,o,s,l,u){var d;i=Bd(i);let g=To(o||"",i);if(s.includes(g))return l.push(Il(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,g].join(" -> "))),{raw:e||Soe(t,l)};let _=e?jVe(e,r,i,o,l):UVe(t,r,i,o,l);if((d=_.options)!=null&&d.paths&&(_.options.pathsBasePath=i),_.extendedConfigPath){s=s.concat([g]);let A={options:{}};Bo(_.extendedConfigPath)?v(A,_.extendedConfigPath):_.extendedConfigPath.forEach(R=>v(A,R)),A.include&&(_.raw.include=A.include),A.exclude&&(_.raw.exclude=A.exclude),A.files&&(_.raw.files=A.files),_.raw.compileOnSave===void 0&&A.compileOnSave&&(_.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=Co(A.extendedSourceFiles.keys())),_.options=PS(A.options,_.options),_.watchOptions=_.watchOptions&&A.watchOptions?E(A,_.watchOptions):_.watchOptions||A.watchOptions}return _;function v(A,R){let N=HVe(t,R,r,s,l,u,A);if(N&&VVe(N)){let P=N.raw,k,F=O=>{_.raw[O]||P[O]&&(A[O]=Vt(P[O],G=>Zj(G)||Rp(G)?G:Qr(k||(k=bN(ci(R),i,Fd(r.useCaseSensitiveFileNames))),G)))};F("include"),F("exclude"),F("files"),P.compileOnSave!==void 0&&(A.compileOnSave=P.compileOnSave),PS(A.options,N.options),A.watchOptions=A.watchOptions&&N.watchOptions?E(A,N.watchOptions):A.watchOptions||N.watchOptions}}function E(A,R){return A.watchOptionsCopied?PS(A.watchOptions,R):(A.watchOptionsCopied=!0,PS({},A.watchOptions,R))}}function jVe(e,t,r,i,o){Rs(e,"excludes")&&o.push(Il(f.Unknown_option_excludes_Did_you_mean_exclude));let s=C1e(e.compilerOptions,r,o,i),l=N1e(e.typeAcquisition,r,o,i),u=JVe(e.watchOptions,r,o);e.compileOnSave=qVe(e,r,o);let d=e.extends||e.extends===""?A1e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:d}}function A1e(e,t,r,i,o,s,l,u){let d,g=i?h1e(i,r):r;if(Bo(e))d=I1e(e,t,g,o,l,u);else if(Mo(e)){d=[];for(let _=0;_<e.length;_++){let v=e[_];Bo(v)?d=Bn(d,I1e(v,t,g,o,l?.elements[_],u)):TE(L3.element,e,r,o,s,l?.elements[_],u)}}else TE(L3,e,r,o,s,l,u);return d}function UVe(e,t,r,i,o){let s=D1e(i),l,u,d,g,_=kVe(),v=d1e(e,o,{rootOptions:_,onPropertySet:E});return l||(l=tU(i)),g&&v&&v.compilerOptions===void 0&&o.push(wf(e,g[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,oI(g[0]))),{raw:v,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:d};function E(A,R,N,P,k){if(k&&k!==L3&&(R=TE(k,R,r,o,N,N.initializer,e)),P?.name)if(k){let F;P===s1e?F=s:P===l1e?F=u??(u={}):P===c1e?F=l??(l=tU(i)):C.fail("Unknown option"),F[k.name]=R}else A&&P?.extraKeyDiagnostics&&(P.elementOptions?o.push(_oe(A,P.extraKeyDiagnostics,void 0,N.name,e)):o.push(wf(e,N.name,P.extraKeyDiagnostics.unknownOptionDiagnostic,A)));else P===_&&(k===L3?d=A1e(R,t,r,i,o,N,N.initializer,e):k||(A==="excludes"&&o.push(wf(e,N.name,f.Unknown_option_excludes_Did_you_mean_exclude)),hn(UTe,F=>F.name===A)&&(g=Bn(g,N.name))))}}function I1e(e,t,r,i,o,s){if(e=Bd(e),Rp(e)||po(e,"./")||po(e,"../")){let u=To(e,r);if(!t.fileExists(u)&&!el(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(eT(s,o,f.File_0_not_found,e));return}return u}let l=Goe(e,Qr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(eT(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(eT(s,o,f.File_0_not_found,e))}function HVe(e,t,r,i,o,s,l){let u=r.useCaseSensitiveFileNames?t:Qv(t),d,g,_;if(s&&(d=s.get(u))?{extendedResult:g,extendedConfig:_}=d:(g=boe(t,v=>r.readFile(v)),g.parseDiagnostics.length||(_=E1e(void 0,g,r,ci(t),xc(t),i,o,s)),s&&s.set(u,{extendedResult:g,extendedConfig:_})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(let v of g.extendedSourceFiles)l.extendedSourceFiles.add(v);if(g.parseDiagnostics.length){o.push(...g.parseDiagnostics);return}return _}function qVe(e,t,r){if(!Rs(e,aoe.name))return!1;let i=TE(aoe,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function x1e(e,t,r){let i=[];return{options:C1e(e,t,i,r),errors:i}}function R1e(e,t,r){let i=[];return{options:N1e(e,t,i,r),errors:i}}function D1e(e){return e&&xc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function C1e(e,t,r,i){let o=D1e(i);return Aoe(n1e(),e,t,o,P3,r),i&&(o.configFilePath=Bd(i)),o}function tU(e){return{enable:!!e&&xc(e)==="jsconfig.json",include:[],exclude:[]}}function N1e(e,t,r,i){let o=tU(i);return Aoe(a1e(),e,t,o,QTe,r),o}function JVe(e,t,r){return Aoe(i1e(),e,t,void 0,Kj,r)}function Aoe(e,t,r,i,o,s){if(t){for(let l in t){let u=e.get(l);u?(i||(i={}))[u.name]=TE(u,t[l],r,s):s.push(_oe(l,o))}return i}}function eT(e,t,r,...i){return e&&t?wf(e,t,r,...i):Il(r,...i)}function TE(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(eT(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(u1e(e,t)){let u=e.type;if(u==="list"&&Mo(t))return P1e(e,t,r,i,o,s,l);if(u==="listOrElement")return Mo(t)?P1e(e,t,r,i,o,s,l):TE(e.element,t,r,i,o,s,l);if(!Bo(e.type))return M1e(e,t,i,s,l);let d=KI(e,t,i,s,l);return xw(d)?d:KVe(e,r,d)}else i.push(eT(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,Xj(e)))}function KVe(e,t,r){return e.isFilePath&&(r=Bd(r),r=Zj(r)?r:To(r,t),r===""&&(r=".")),r}function KI(e,t,r,i,o){var s;if(xw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(eT(o,i,...l))}function M1e(e,t,r,i,o){if(xw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return KI(e,l,r,i,o);r.push(JTe(e,(u,...d)=>eT(o,i,u,...d)))}function P1e(e,t,r,i,o,s,l){return Un(Vt(t,(u,d)=>TE(e.element,u,r,i,o,s?.elements[d],l)),u=>e.listPreserveFalsyValues?!0:!!u)}var XVe=/(?:^|\/)\*\*\/?$/,YVe=/^[^*?]*(?=\/[^/]*[*?])/;function $M(e,t,r,i,o=ae){t=ya(t);let s=Fd(i.useCaseSensitiveFileNames),l=new Map,u=new Map,d=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:_,validatedExcludeSpecs:v}=e,E=vM(r,o),A=Bk(r,E);if(g)for(let k of g){let F=To(k,t);l.set(s(F),F)}let R;if(_&&_.length>0)for(let k of i.readDirectory(t,la(A),v,_,void 0)){if(El(k,".json")){if(!R){let G=_.filter(J=>el(J,".json")),j=Vt(NW(G,t,"files"),J=>`^${J}$`);R=j?j.map(J=>nv(J,i.useCaseSensitiveFileNames)):ae}if(ho(R,G=>G.test(k))!==-1){let G=s(k);!l.has(G)&&!d.has(G)&&d.set(G,k)}continue}if(ZVe(k,l,u,E,s))continue;eje(k,u,E,s);let F=s(k);!l.has(F)&&!u.has(F)&&u.set(F,k)}let N=Co(l.values()),P=Co(u.values());return N.concat(P,Co(d.values()))}function Ioe(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!et(l)||!et(u))return!1;r=ya(r);let d=Fd(i);if(s){for(let g of s)if(d(To(g,r))===e)return!1}return G3(e,u,i,o,r)}function L1e(e){let t=po(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(el(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function B3(e,t,r,i){return G3(e,Un(t,o=>!L1e(o)),r,i)}function G3(e,t,r,i,o){let s=yM(t,Qr(ya(i),o),"exclude"),l=s&&nv(s,r);return l?l.test(e)?!0:!TR(e)&&l.test(Hc(e)):!1}function k1e(e,t,r,i,o){return e.filter(l=>{if(!Bo(l))return!1;let u=xoe(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){let d=w6(i,o,u);return eT(i,d,l,u)}}function xoe(e,t){if(C.assert(typeof e=="string"),t&&XVe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(L1e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function $Ve({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=yM(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){let d=[];for(let g of e){let _=ya(Qr(r,g));if(s&&s.test(_))continue;let v=QVe(_,i);if(v){let{key:E,path:A,flags:R}=v,N=u.get(E),P=N!==void 0?l[N]:void 0;(P===void 0||P<R)&&(l[N!==void 0?N:A]=R,N===void 0&&u.set(E,A),R===1&&d.push(E))}}for(let g in l)if(Rs(l,g))for(let _ of d){let v=Roe(g,i);v!==_&&dm(_,v,r,!i)&&delete l[g]}}return l}function Roe(e,t){return t?e:Qv(e)}function QVe(e,t){let r=YVe.exec(e);if(r){let i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(Js);return{key:Roe(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(SV(e.substring(e.lastIndexOf(Js)+1))){let i=Jy(e);return{key:Roe(i,t),path:i,flags:1}}}function ZVe(e,t,r,i,o){let s=Je(i,l=>Yl(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(El(e,l)&&(l!==".ts"||!El(e,".d.ts")))return!1;let u=o(rv(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(El(e,".js")||El(e,".jsx")))continue;return!0}}return!1}function eje(e,t,r,i){let o=Je(r,s=>Yl(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(El(e,l))return;let u=i(rv(e,l));t.delete(u)}}function Doe(e){let t={};for(let r in e)if(Rs(e,r)){let i=Hj(r);i!==void 0&&(t[r]=Coe(e[r],i))}return t}function Coe(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(!Mo(e))return Coe(e,t.element);case"list":let r=t.element;return Mo(e)?Ui(e,i=>Coe(i,r)):"";default:return qc(t.type,(i,o)=>{if(i===e)return o})}}function xo(e,t,...r){e.trace(TI(t,...r))}function Pb(e,t){return!!e.traceResolution&&t.trace!==void 0}function XI(e,t,r){let i;if(t&&e){let o=e.contents.packageJsonContent;typeof o.name=="string"&&typeof o.version=="string"&&(i={name:o.name,subModuleName:t.path.slice(e.packageDirectory.length+Js.length),version:o.version,peerDependencies:Tje(e,r)})}return t&&{path:t.path,extension:t.ext,packageId:i,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function nU(e){return XI(void 0,e,void 0)}function w1e(e){if(e)return C.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function V3(e){let 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 tje(e){let t=[];return e&1&&t.push(...zk),e&2&&t.push(...iD),e&4&&t.push(...OW),e&8&&t.push(".json"),t}function Noe(e){if(e)return C.assert(FW(e.extension)),{fileName:e.path,packageId:e.packageId}}function O1e(e,t,r,i,o,s,l,u,d){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!td(e)){let{resolvedFileName:g,originalPath:_}=z1e(t.path,l.host,l.traceEnabled);_&&(t={...t,path:g,originalPath:_})}return W1e(t,r,i,o,s,l.resultFromCache,u,d)}function W1e(e,t,r,i,o,s,l,u){return s?l?.isReadonly?{...s,failedLookupLocations:Moe(s.failedLookupLocations,r),affectingLocations:Moe(s.affectingLocations,i),resolutionDiagnostics:Moe(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=DD(s.failedLookupLocations,r),s.affectingLocations=DD(s.affectingLocations,i),s.resolutionDiagnostics=DD(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:QM(r),affectingLocations:QM(i),resolutionDiagnostics:QM(o),alternateResult:u}}function QM(e){return e.length?e:void 0}function DD(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Moe(e,t){return e?.length?t.length?[...e,...t]:e.slice():QM(t)}function Poe(e,t,r,i){if(!Rs(e,t)){i.traceEnabled&&xo(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&xo(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 rU(e,t,r,i){let o=Poe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&xo(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=ya(Qr(r,o));return i.traceEnabled&&xo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function nje(e,t,r){return rU(e,"typings",t,r)||rU(e,"types",t,r)}function rje(e,t,r){return rU(e,"tsconfig",t,r)}function ije(e,t,r){return rU(e,"main",t,r)}function oje(e,t){let r=Poe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&xo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function aje(e,t){let r=oje(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)Rs(r,l)&&!w8.tryParse(l)&&xo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=j3(r);if(!i){t.traceEnabled&&xo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,he);return}let{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&xo(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}var Loe;function j3(e){Loe||(Loe=new ih(Me));for(let t in e){if(!Rs(e,t))continue;let r=w8.tryParse(t);if(r!==void 0&&r.test(Loe))return{version:t,paths:e[t]}}}function ZM(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ci(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return sje(r)}function sje(e){let t;return TN(ya(e),r=>{let i=Qr(r,lje);(t??(t=[])).push(i)}),t}var lje=Qr("node_modules","@types");function F1e(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Zg(e,t,!i)===0}function z1e(e,t,r){let i=X1e(e,t,r),o=F1e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function B1e(e,t,r){let i=el(e,"/node_modules/@types")||el(e,"/node_modules/@types/")?lSe(t,r):t;return Qr(e,i)}function koe(e,t,r,i,o,s,l){C.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.");let u=Pb(r,i);o&&(r=o.commandLine.options);let d=t?ci(t):void 0,g=d?s?.getFromDirectoryCache(e,l,d,o):void 0;if(!g&&d&&!td(e)&&(g=s?.getFromNonRelativeNameCache(e,l,d,o)),g)return u&&(xo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),xo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),j(g)),g;let _=ZM(r,i);u&&(t===void 0?_===void 0?xo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):xo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,_):_===void 0?xo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):xo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,_),o&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],A=woe(r);l!==void 0&&(A|=30);let R=ru(r);l===99&&3<=R&&R<=99&&(A|=32);let N=A&8?Lb(r,l):[],P=[],k={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:A,conditions:N,requestContainingDirectory:d,reportDiagnostic:q=>void P.push(q),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},F=J(),O=!0;F||(F=Z(),O=!1);let G;if(F){let{fileName:q,packageId:ye}=F,ie=q,K;r.preserveSymlinks||({resolvedFileName:ie,originalPath:K}=z1e(q,i,u)),G={primary:O,resolvedFileName:ie,originalPath:K,packageId:ye,isExternalLibraryImport:kb(q)}}return g={resolvedTypeReferenceDirective:G,failedLookupLocations:QM(v),affectingLocations:QM(E),resolutionDiagnostics:QM(P)},d&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(d,o).set(e,l,g),td(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(d,g)),u&&j(g),g;function j(q){var ye;(ye=q.resolvedTypeReferenceDirective)!=null&&ye.resolvedFileName?q.resolvedTypeReferenceDirective.packageId?xo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,q.resolvedTypeReferenceDirective.resolvedFileName,D0(q.resolvedTypeReferenceDirective.packageId),q.resolvedTypeReferenceDirective.primary):xo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,q.resolvedTypeReferenceDirective.resolvedFileName,q.resolvedTypeReferenceDirective.primary):xo(i,f.Type_reference_directive_0_was_not_resolved,e)}function J(){if(_&&_.length)return u&&xo(i,f.Resolving_with_primary_search_path_0,_.join(", ")),Hn(_,q=>{let ye=B1e(q,e,k),ie=ch(q,i);if(!ie&&u&&xo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,q),r.typeRoots){let K=MD(4,ye,!ie,k);if(K){let pe=Cw(K.path),de=pe?EE(pe,!1,k):void 0;return Noe(XI(de,K,k))}}return Noe(joe(4,ye,!ie,k))});u&&xo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function Z(){let q=t&&ci(t);if(q!==void 0){let ye;if(!r.typeRoots||!el(t,_P))if(u&&xo(i,f.Looking_up_in_node_modules_folder_initial_location_0,q),td(e)){let{path:ie}=K1e(q,e);ye=sU(4,ie,!1,k,!0)}else{let ie=iSe(4,e,q,k,void 0,void 0);ye=ie&&ie.value}else u&&xo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Noe(ye)}else u&&xo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function woe(e){let t=0;switch(ru(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 Lb(e,t){let r=ru(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),so(i,e.customConditions)}function iU(e,t,r,i,o){let s=tP(o?.getPackageJsonInfoCache(),i,r);return O_(i,t,l=>{if(xc(l)!=="node_modules"){let u=Qr(l,"node_modules"),d=Qr(u,e);return EE(d,!1,s)}})}function U3(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=ZM(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=ya(s),u=Qr(o,l,"package.json");if(!(t.fileExists(u)&&ZR(u,t).typings===null)){let g=xc(l);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function H3(e){return!!e?.contents}function Ooe(e){return!!e&&!e.contents}function Woe(e){var t;if(e===null||typeof e!="object")return""+e;if(Mo(e))return`[${(t=e.map(i=>Woe(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)Rs(e,i)&&(r+=`${i}: ${Woe(e[i])}`);return r+"}"}function oU(e,t){return t.map(r=>Woe(RW(e,r))).join("|")+`|${e.pathsBasePath}`}function G1e(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:g,getOwnMap:()=>o};function s(v){return v?d(v.commandLine.options,!1):o}function l(v){return v?d(v.commandLine.options,!0):o}function u(v){e!==v&&(e?o=d(v,!0):r.set(v,o),e=v)}function d(v,E){let A=r.get(v);if(A)return A;let R=_(v);if(A=i.get(R),!A){if(e){let N=_(e);N===R?A=o:i.has(N)||i.set(N,o)}E&&(A??(A=new Map)),A&&i.set(R,A)}return A&&r.set(v,A),A}function g(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function _(v){let E=t.get(v);return E||t.set(v,E=oU(v,Gj)),E}}function cje(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r?.get(ks(u,e,t))}function o(u,d){(r||(r=new Map)).set(ks(u,e,t),d)}function s(){r=void 0}function l(){return r}}function V1e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function dje(e,t,r,i){let o=G1e(r,i);return{getFromDirectoryCache:d,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(g){o.update(g)}function u(g,_){let v=ks(g,e,t);return V1e(o,_,v,()=>CD())}function d(g,_,v,E){var A,R;let N=ks(v,e,t);return(R=(A=o.getMapOfCacheRedirects(E))==null?void 0:A.get(N))==null?void 0:R.get(g,_)}}function eP(e,t){return t===void 0?e:`${t}|${e}`}function CD(){let 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)=>{let[u,d]=t.get(l);return o(s,u,d)})},size(){return e.size}};return r;function i(o,s){let l=eP(o,s);return t.set(l,[o,s]),l}}function uje(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function pje(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function fje(e,t,r,i,o){let s=G1e(r,o);return{getFromNonRelativeNameCache:d,getOrCreateCacheForNonRelativeName:g,clear:l,update:u};function l(){s.clear()}function u(v){s.update(v)}function d(v,E,A,R){var N,P;return C.assert(!td(v)),(P=(N=s.getMapOfCacheRedirects(R))==null?void 0:N.get(eP(v,E)))==null?void 0:P.get(A)}function g(v,E,A){return C.assert(!td(v)),V1e(s,A,eP(v,E),_)}function _(){let v=new Map;return{get:E,set:A};function E(N){return v.get(ks(N,e,t))}function A(N,P){let k=ks(N,e,t);if(v.has(k))return;v.set(k,P);let F=i(P),O=F&&R(k,F),G=k;for(;G!==O;){let j=ci(G);if(j===G||v.has(j))break;v.set(j,P),G=j}}function R(N,P){let k=ks(ci(P),e,t),F=0,O=Math.min(N.length,k.length);for(;F<O&&N.charCodeAt(F)===k.charCodeAt(F);)F++;if(F===N.length&&(k.length===F||k[F]===Js))return N;let G=Fh(N);if(F<G)return;let j=N.lastIndexOf(Js,F-1);if(j!==-1)return N.substr(0,Math.max(j,G))}}}function j1e(e,t,r,i,o,s){s??(s=new Map);let l=dje(e,t,r,s),u=fje(e,t,r,o,s);return i??(i=cje(e,t)),{...i,...l,...u,clear:d,update:_,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:s};function d(){g(),i.clear()}function g(){l.clear(),u.clear()}function _(v){l.update(v),u.update(v)}}function ND(e,t,r,i,o){let s=j1e(e,t,r,i,uje,o);return s.getOrCreateCacheForModuleName=(l,u,d)=>s.getOrCreateCacheForNonRelativeName(l,u,d),s}function q3(e,t,r,i,o){return j1e(e,t,r,i,pje,o)}function aU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function J3(e,t,r,i,o){return SE(e,t,aU(r),i,o)}function U1e(e,t,r,i){let o=ci(t);return r.getFromDirectoryCache(e,i,o,void 0)}function SE(e,t,r,i,o,s,l){let u=Pb(r,i);s&&(r=s.commandLine.options),u&&(xo(i,f.Resolving_module_0_from_1,e,t),s&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let d=ci(t),g=o?.getFromDirectoryCache(e,l,d,s);if(g)u&&xo(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,d);else{let _=r.moduleResolution;switch(_===void 0?(_=ru(r),u&&xo(i,f.Module_resolution_kind_is_not_specified_using_0,vR[_])):u&&xo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,vR[_]),_){case 3:g=gje(e,t,r,i,o,s,l);break;case 99:g=yje(e,t,r,i,o,s,l);break;case 2:g=Boe(e,t,r,i,o,s,l?Lb(r,l):void 0);break;case 1:g=qoe(e,t,r,i,o,s);break;case 100:g=zoe(e,t,r,i,o,s,l?Lb(r,l):void 0);break;default:return C.fail(`Unexpected moduleResolution: ${_}`)}o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(d,s).set(e,l,g),td(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(d,g))}return u&&(g.resolvedModule?g.resolvedModule.packageId?xo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,g.resolvedModule.resolvedFileName,D0(g.resolvedModule.packageId)):xo(i,f.Module_name_0_was_successfully_resolved_to_1,e,g.resolvedModule.resolvedFileName):xo(i,f.Module_name_0_was_not_resolved,e)),g}function H1e(e,t,r,i,o){let s=mje(e,t,i,o);return s?s.value:td(t)?hje(e,t,r,i,o):_je(e,t,i,o)}function mje(e,t,r,i){let{baseUrl:o,paths:s}=i.compilerOptions;if(s&&!Qp(t)){i.traceEnabled&&(o&&xo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),xo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let l=aW(i.compilerOptions,i.host),u=jk(s);return Uoe(e,t,l,s,u,r,!1,i)}}function hje(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&xo(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=ya(Qr(r,t)),l,u;for(let d of o.compilerOptions.rootDirs){let g=ya(d);el(g,Js)||(g+=Js);let _=po(s,g)&&(u===void 0||u.length<g.length);o.traceEnabled&&xo(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,g,s,_),_&&(u=g,l=d)}if(u){o.traceEnabled&&xo(o.host,f.Longest_matching_prefix_for_0_is_1,s,u);let d=s.substr(u.length);o.traceEnabled&&xo(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,d,u,s);let g=i(e,s,!ch(r,o.host),o);if(g)return g;o.traceEnabled&&xo(o.host,f.Trying_other_entries_in_rootDirs);for(let _ of o.compilerOptions.rootDirs){if(_===l)continue;let v=Qr(ya(_),d);o.traceEnabled&&xo(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,d,_,v);let E=ci(v),A=i(e,v,!ch(E,o.host),o);if(A)return A}o.traceEnabled&&xo(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function _je(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&xo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=ya(Qr(o,t));return i.traceEnabled&&xo(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!ch(ci(s),i.host),i)}function q1e(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=vje(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(", ")}`);return i.resolvedFileName}var Foe=(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))(Foe||{});function gje(e,t,r,i,o,s,l){return J1e(30,e,t,r,i,o,s,l)}function yje(e,t,r,i,o,s,l){return J1e(30,e,t,r,i,o,s,l)}function J1e(e,t,r,i,o,s,l,u,d){let g=ci(r),_=u===99?32:0,v=i.noDtsResolution?3:7;return I1(i)&&(v|=8),Dw(e|_,t,g,i,o,s,v,!1,l,d)}function vje(e,t,r){return Dw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function zoe(e,t,r,i,o,s,l){let u=ci(t),d=r.noDtsResolution?3:7;return I1(r)&&(d|=8),Dw(woe(r),e,u,r,i,o,d,!1,s,l)}function Boe(e,t,r,i,o,s,l,u){let d;return u?d=8:r.noDtsResolution?(d=3,I1(r)&&(d|=8)):d=I1(r)?15:7,Dw(l?30:0,e,ci(t),r,i,o,d,!!u,s,l)}function Goe(e,t,r){return Dw(30,e,ci(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function Dw(e,t,r,i,o,s,l,u,d,g){var _,v,E,A,R;let N=Pb(i,o),P=[],k=[],F=ru(i);g??(g=Lb(i,F===100||F===2?void 0:e&32?99:1));let O=[],G={compilerOptions:i,host:o,traceEnabled:N,failedLookupLocations:P,affectingLocations:k,packageJsonInfoCache:s,features:e,conditions:g??ae,requestContainingDirectory:r,reportDiagnostic:q=>void O.push(q),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&rD(F)&&xo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",G.conditions.map(q=>`'${q}'`).join(", "));let j;if(F===2){let q=l&5,ye=l&-6;j=q&&Z(q,G)||ye&&Z(ye,G)||void 0}else j=Z(l,G);let J;if(G.resolvedPackageDirectory&&!u&&!td(t)){let q=j?.value&&l&5&&!tSe(5,j.value.resolved.extension);if((_=j?.value)!=null&&_.isExternalLibraryImport&&q&&e&8&&g?.includes("import")){wb(G,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let ye={...G,features:G.features&-9,reportDiagnostic:gs},ie=Z(l&5,ye);(v=ie?.value)!=null&&v.isExternalLibraryImport&&(J=ie.value.resolved.path)}else if((!j?.value||q)&&F===2){wb(G,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let ye={...G.compilerOptions,moduleResolution:100},ie={...G,compilerOptions:ye,features:30,conditions:Lb(ye),reportDiagnostic:gs},K=Z(l&5,ie);(E=K?.value)!=null&&E.isExternalLibraryImport&&(J=K.value.resolved.path)}}return O1e(t,(A=j?.value)==null?void 0:A.resolved,(R=j?.value)==null?void 0:R.isExternalLibraryImport,P,k,O,G,s,J);function Z(q,ye){let K=H1e(q,t,r,(pe,de,fe,ve)=>sU(pe,de,fe,ve,!0),ye);if(K)return mf({resolved:K,isExternalLibraryImport:kb(K.path)});if(td(t)){let{path:pe,parts:de}=K1e(r,t),fe=sU(q,pe,!1,ye,!0);return fe&&mf({resolved:fe,isExternalLibraryImport:jn(de,"node_modules")})}else{if(e&2&&po(t,"#")){let de=Ije(q,t,r,ye,s,d);if(de)return de.value&&{value:{resolved:de.value,isExternalLibraryImport:!1}}}if(e&4){let de=Aje(q,t,r,ye,s,d);if(de)return de.value&&{value:{resolved:de.value,isExternalLibraryImport:!1}}}if(t.includes(":")){N&&xo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,V3(q));return}N&&xo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,V3(q));let pe=iSe(q,t,r,ye,s,d);return q&4&&(pe??(pe=dSe(t,ye))),pe&&{value:pe.value&&{resolved:pe.value,isExternalLibraryImport:!0}}}}}function K1e(e,t){let r=Qr(e,t),i=zd(r),o=Zs(i);return{path:o==="."||o===".."?Hc(ya(r)):ya(r),parts:i}}function X1e(e,t,r){if(!t.realpath)return e;let i=ya(t.realpath(e));return r&&xo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function sU(e,t,r,i,o){if(i.traceEnabled&&xo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,V3(e)),!nb(t)){if(!r){let l=ci(t);ch(l,i.host)||(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=MD(e,t,r,i);if(s){let l=o?Cw(s.path):void 0,u=l?EE(l,!1,i):void 0;return XI(u,s,i)}}if(r||ch(t,i.host)||(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return joe(e,t,r,i,o)}var xg="/node_modules/";function kb(e){return e.includes(xg)}function Cw(e,t){let r=ya(e),i=r.lastIndexOf(xg);if(i===-1)return;let o=i+xg.length,s=Y1e(r,o,t);return r.charCodeAt(o)===64&&(s=Y1e(r,s,t)),r.slice(0,s)}function Y1e(e,t,r){let i=e.indexOf(Js,t+1);return i===-1?r?e.length:t:i}function Voe(e,t,r,i){return nU(MD(e,t,r,i))}function MD(e,t,r,i){let o=$1e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=Q1e(t,e,"",r,i);if(s)return s}}function $1e(e,t,r,i){if(!xc(t).includes("."))return;let s=bu(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&xo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),Q1e(s,e,l,r,i)}function lU(e,t,r,i,o){if(e&1&&Yl(t,zk)||e&4&&Yl(t,OW)){let s=cU(t,i,o),l=hW(t);return s!==void 0?{path:t,ext:l,resolvedUsingTsExtension:r?!el(r,l):void 0}:void 0}return o.isConfigLookup&&e===8&&El(t,".json")?cU(t,i,o)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:$1e(e,t,i,o)}function Q1e(e,t,r,i,o){if(!i){let l=ci(e);l&&(i=!ch(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&&!ad(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){let d=cU(e+l,i,o);return d===void 0?void 0:{path:d,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function cU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return Z1e(e,t,r);let o=Tg(e)??"",s=o?Vk(e,o):e;return Je(r.compilerOptions.moduleSuffixes,l=>Z1e(s+l+o,t,r))}function Z1e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&xo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&xo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function joe(e,t,r,i,o=!0){let s=o?EE(t,r,i):void 0;return XI(s,uU(e,t,r,i,s),i)}function dU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),u=woe(t),d=tP(i?.getPackageJsonInfoCache(),r,t);d.conditions=Lb(t),d.requestContainingDirectory=e.packageDirectory;let g=uU(l,e.packageDirectory,!1,d,e);if(s=Bn(s,g?.path),u&8&&e.contents.packageJsonContent.exports){let _=t1([Lb(t,99),Lb(t,1)],$p);for(let v of _){let E={...d,failedLookupLocations:[],conditions:v,host:r},A=bje(e,e.contents.packageJsonContent.exports,E,l);if(A)for(let R of A)s=$g(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function bje(e,t,r,i){let o;if(Mo(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&X3(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var u,d;if(typeof l=="string"&&po(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,tje(i),void 0,[H8(oE(l,"**/*"),".*")]).forEach(g=>{o=$g(o,{path:g,ext:qA(g),resolvedUsingTsExtension:void 0})})}else{let g=zd(l).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;let _=Qr(e.packageDirectory,l),v=To(_,(d=(u=r.host).getCurrentDirectory)==null?void 0:d.call(u)),E=lU(i,v,l,!1,r);if(E)return o=$g(o,E,(A,R)=>A.path===R.path),!0}else if(Array.isArray(l)){for(let g of l)if(s(g))return!0}else if(typeof l=="object"&&l!==null)return Je(Oh(l),g=>{if(g==="default"||jn(r.conditions,g)||Nw(r.conditions,g))return s(l[g]),!0})}}function tP(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Pb(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:ae,requestContainingDirectory:void 0,reportDiagnostic:gs,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function nP(e,t){return O_(t.host,e,r=>EE(r,!1,t))}function eSe(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=aje(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function Tje(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=Sje(e,t)||!1),e.contents.peerDependencies||void 0}function Sje(e,t){let r=Poe(e.contents.packageJsonContent,"peerDependencies","object",t);if(r===void 0)return;t.traceEnabled&&xo(t.host,f.package_json_has_a_peerDependencies_field);let i=X1e(e.packageDirectory,t.host,t.traceEnabled),o=i.substring(0,i.lastIndexOf("node_modules")+12)+Js,s="";for(let l in r)if(Rs(r,l)){let u=EE(o+l,!1,t);if(u){let d=u.contents.packageJsonContent.version;s+=`+${l}@${d}`,t.traceEnabled&&xo(t.host,f.Found_peerDependency_0_with_1_version,l,d)}else t.traceEnabled&&xo(t.host,f.Failed_to_find_peerDependency_0,l)}return s}function EE(e,t,r){var i,o,s,l,u,d;let{host:g,traceEnabled:_}=r,v=Qr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if(H3(E))return _&&xo(g,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&_&&xo(g,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let A=ch(e,g);if(A&&g.fileExists(v)){let R=ZR(v,g);_&&xo(g,f.Found_package_json_at_0,v);let N={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,N),(u=r.affectingLocations)==null||u.push(v),N}else A&&_&&xo(g,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:A}),(d=r.failedLookupLocations)==null||d.push(v)}function uU(e,t,r,i,o){let s=o&&eSe(o,i),l;o&&F1e(o?.packageDirectory,t,i.host)&&(i.isConfigLookup?l=rje(o.contents.packageJsonContent,o.packageDirectory,i):l=e&4&&nje(o.contents.packageJsonContent,o.packageDirectory,i)||e&7&&ije(o.contents.packageJsonContent,o.packageDirectory,i)||void 0);let u=(E,A,R,N)=>{let P=lU(E,A,void 0,R,N);if(P)return nU(P);let k=E===4?5:E,F=N.features,O=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,o?.contents.packageJsonContent.type!=="module"&&(N.features&=-33);let G=sU(k,A,R,N,!1);return N.features=F,N.candidateIsFromPackageJsonField=O,G},d=l?!ch(ci(l),i.host):void 0,g=r||!ch(t,i.host),_=Qr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||dm(t,l))){let E=lf(t,l||_,!1);i.traceEnabled&&xo(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,Me,E);let A=jk(s.paths),R=Uoe(e,E,t,s.paths,A,u,d||g,i);if(R)return w1e(R.value)}let v=l&&w1e(u(e,l,d,i));if(v)return v;if(!(i.features&32))return MD(e,_,g,i)}function tSe(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 K3(e){let t=e.indexOf(Js);return e[0]==="@"&&(t=e.indexOf(Js,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function X3(e){return Vn(Oh(e),t=>po(t,"."))}function Eje(e){return!vt(Oh(e),t=>po(t,"."))}function Aje(e,t,r,i,o,s){var l,u;let d=To(r,(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=nP(d,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;let _=zd(t),v=zd(g.contents.packageJsonContent.name);if(!Vn(v,(P,k)=>_[k]===P))return;let E=_.slice(v.length),A=et(E)?`.${Js}${E.join(Js)}`:".";if(Eb(i.compilerOptions)&&!kb(r))return pU(g,e,A,i,o,s);let R=e&5,N=e&-6;return pU(g,R,A,i,o,s)||pU(g,N,A,i,o,s)}function pU(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"&&Eje(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Rs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return rSe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(X3(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&xo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),mf(void 0);let l=nSe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&xo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),mf(void 0)}}function Ije(e,t,r,i,o,s){var l,u;if(t==="#"||po(t,"#/"))return i.traceEnabled&&xo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),mf(void 0);let d=To(r,(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=nP(d,i);if(!g)return i.traceEnabled&&xo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),mf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&xo(i.host,f.package_json_scope_0_has_no_imports_defined,g.packageDirectory),mf(void 0);let _=nSe(e,i,o,s,t,g.contents.packageJsonContent.imports,g,!0);return _||(i.traceEnabled&&xo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),mf(void 0))}function fU(e,t){let 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 nSe(e,t,r,i,o,s,l,u){let d=rSe(e,t,r,i,o,l,u);if(!el(o,Js)&&!o.includes("*")&&Rs(s,o)){let v=s[o];return d(v,"",!1,o)}let g=Ap(Un(Oh(s),v=>xje(v)||el(v,"/")),fU);for(let v of g)if(t.features&16&&_(v,o)){let E=s[v],A=v.indexOf("*"),R=o.substring(v.substring(0,A).length,o.length-(v.length-1-A));return d(E,R,!0,v)}else if(el(v,"*")&&po(o,v.substring(0,v.length-1))){let E=s[v],A=o.substring(v.length-1);return d(E,A,!0,v)}else if(po(o,v)){let E=s[v],A=o.substring(v.length);return d(E,A,!1,v)}function _(v,E){if(el(v,"*"))return!1;let A=v.indexOf("*");return A===-1?!1:po(E,v.substring(0,A))&&el(E,v.substring(A+1))}}function xje(e){let t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function rSe(e,t,r,i,o,s,l){return u;function u(d,g,_,v){var E,A;if(typeof d=="string"){if(!_&&g.length>0&&!el(d,"/"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),mf(void 0);if(!po(d,"./")){if(l&&!po(d,"../")&&!po(d,"/")&&!Rp(d)){let Z=_?d.replace(/\*/g,g):d+g;wb(t,f.Using_0_subpath_1_with_target_2,"imports",v,Z),wb(t,f.Resolving_module_0_from_1,Z,s.packageDirectory+"/");let q=Dw(t.features,Z,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return(E=t.failedLookupLocations)==null||E.push(...q.failedLookupLocations??ae),(A=t.affectingLocations)==null||A.push(...q.affectingLocations??ae),mf(q.resolvedModule?{path:q.resolvedModule.resolvedFileName,extension:q.resolvedModule.extension,packageId:q.resolvedModule.packageId,originalPath:q.resolvedModule.originalPath,resolvedUsingTsExtension:q.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),mf(void 0)}let F=(Qp(d)?zd(d).slice(1):zd(d)).slice(1);if(F.includes("..")||F.includes(".")||F.includes("node_modules"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),mf(void 0);let O=Qr(s.packageDirectory,d),G=zd(g);if(G.includes("..")||G.includes(".")||G.includes("node_modules"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),mf(void 0);t.traceEnabled&&xo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",v,_?d.replace(/\*/g,g):d+g);let j=R(_?O.replace(/\*/g,g):O+g),J=P(j,g,Qr(s.packageDirectory,"package.json"),l);return J||mf(XI(s,lU(e,j,d,!1,t),t))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!et(d))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),mf(void 0);for(let k of d){let F=u(k,g,_,v);if(F)return F}}else{wb(t,f.Entering_conditional_exports);for(let k of Oh(d))if(k==="default"||t.conditions.includes(k)||Nw(t.conditions,k)){wb(t,f.Matched_0_condition_1,l?"imports":"exports",k);let F=d[k],O=u(F,g,_,v);if(O)return wb(t,f.Resolved_under_condition_0,k),wb(t,f.Exiting_conditional_exports),O;wb(t,f.Failed_to_resolve_under_condition_0,k)}else wb(t,f.Saw_non_matching_condition_0,k);wb(t,f.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&xo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),mf(void 0);return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),mf(void 0);function R(k){var F,O;return k===void 0?k:To(k,(O=(F=t.host).getCurrentDirectory)==null?void 0:O.call(F))}function N(k,F){return Hc(Qr(k,F))}function P(k,F,O,G){var j,J,Z,q;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!k.includes("/node_modules/")&&(!t.compilerOptions.configFile||dm(s.packageDirectory,R(t.compilerOptions.configFile.fileName),!mU(t)))){let ie=ay({useCaseSensitiveFileNames:()=>mU(t)}),K=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let pe=R(mP(t.compilerOptions,()=>[],((J=(j=t.host).getCurrentDirectory)==null?void 0:J.call(j))||"",ie));K.push(pe)}else if(t.requestContainingDirectory){let pe=R(Qr(t.requestContainingDirectory,"index.ts")),de=R(mP(t.compilerOptions,()=>[pe,R(O)],((q=(Z=t.host).getCurrentDirectory)==null?void 0:q.call(Z))||"",ie));K.push(de);let fe=Hc(de);for(;fe&&fe.length>1;){let ve=zd(fe);ve.pop();let xe=A0(ve);K.unshift(xe),fe=Hc(xe)}}K.length>1&&t.reportDiagnostic(Il(G?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,F===""?".":F,O));for(let pe of K){let de=ye(pe);for(let fe of de)if(dm(fe,k,!mU(t))){let ve=k.slice(fe.length+1),xe=Qr(pe,ve),Y=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let Ce of Y)if(El(xe,Ce)){let Xe=HG(xe);for(let Se of Xe){if(!tSe(e,Se))continue;let re=pL(xe,Se,Ce,!mU(t));if(t.host.fileExists(re))return mf(XI(s,lU(e,re,void 0,!1,t),t))}}}}}return;function ye(ie){var K,pe;let de=t.compilerOptions.configFile?((pe=(K=t.host).getCurrentDirectory)==null?void 0:pe.call(K))||"":ie,fe=[];return t.compilerOptions.declarationDir&&fe.push(R(N(de,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&fe.push(R(N(de,t.compilerOptions.outDir))),fe}}}}function Nw(e,t){if(!e.includes("types")||!po(t,"types@"))return!1;let r=w8.tryParse(t.substring(6));return r?r.test(Me):!1}function iSe(e,t,r,i,o,s){return oSe(e,t,r,i,!1,o,s)}function Rje(e,t,r){return oSe(4,e,t,r,!0,void 0,void 0)}function oSe(e,t,r,i,o,s,l){let u=i.features===0?void 0:i.features&32||i.conditions.includes("import")?99:1,d=e&5,g=e&-6;if(d){wb(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,V3(d));let v=_(d);if(v)return v}if(g&&!o)return wb(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,V3(g)),_(g);function _(v){return O_(i.host,Bd(r),E=>{if(xc(E)!=="node_modules"){let A=cSe(s,t,u,E,l,i);return A||mf(aSe(v,t,E,i,o,s,l))}})}}function O_(e,t,r){var i;let o=(i=e?.getGlobalTypingsCacheLocation)==null?void 0:i.call(e);return TN(t,s=>{let l=r(s);if(l!==void 0)return l;if(s===o)return!1})||void 0}function aSe(e,t,r,i,o,s,l){let u=Qr(r,"node_modules"),d=ch(u,i.host);if(!d&&i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){let g=sSe(e,t,u,d,i,s,l);if(g)return g}if(e&4){let g=Qr(u,"@types"),_=d;return d&&!ch(g,i.host)&&(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),_=!1),sSe(4,lSe(t,i),g,_,i,s,l)}}function sSe(e,t,r,i,o,s,l){var u,d;let g=ya(Qr(r,t)),{packageName:_,rest:v}=K3(t),E=Qr(r,_),A,R=EE(g,!i,o);if(v!==""&&R&&(!(o.features&8)||!Rs(((u=A=EE(E,!i,o))==null?void 0:u.contents.packageJsonContent)??ae,"exports"))){let k=MD(e,g,!i,o);if(k)return nU(k);let F=uU(e,g,!i,o,R);return XI(R,F,o)}let N=(k,F,O,G)=>{let j=(v||!(G.features&32))&&MD(k,F,O,G)||uU(k,F,O,G,R);return!j&&!v&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&G.features&32&&(j=MD(k,Qr(F,"index.js"),O,G)),XI(R,j,G)};if(v!==""&&(R=A??EE(E,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(d=pU(R,e,Qr(".",v),o,s,l))==null?void 0:d.value;let P=v!==""&&R?eSe(R,o):void 0;if(P){o.traceEnabled&&xo(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,P.version,Me,v);let k=i&&ch(E,o.host),F=jk(P.paths),O=Uoe(e,v,E,P.paths,F,N,!k,o);if(O)return O.value}return N(e,g,!i,o)}function Uoe(e,t,r,i,o,s,l,u){let d=RV(o,t);if(d){let g=Bo(d)?void 0:YQ(d,t),_=Bo(d)?d:XQ(d);return u.traceEnabled&&xo(u.host,f.Module_name_0_matched_pattern_1,t,_),{value:Je(i[_],E=>{let A=g?oE(E,g):E,R=ya(Qr(r,A));u.traceEnabled&&xo(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,A);let N=Tg(E);if(N!==void 0){let P=cU(R,l,u);if(P!==void 0)return nU({path:P,ext:N,resolvedUsingTsExtension:void 0})}return s(e,R,l||!ch(ci(R),u.host),u)})}}}var Hoe="__";function lSe(e,t){let r=PD(e);return t.traceEnabled&&r!==e&&xo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function Y3(e){return`@types/${PD(e)}`}function PD(e){if(po(e,"@")){let t=e.replace(Js,Hoe);if(t!==e)return t.slice(1)}return e}function rP(e){let t=pN(e,"@types/");return t!==e?Mw(t):e}function Mw(e){return e.includes(Hoe)?"@"+e.replace(Hoe,Js):e}function cSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&xo(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 qoe(e,t,r,i,o,s){let l=Pb(r,i),u=[],d=[],g=ci(t),_=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:R=>void _.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=A(5)||A(2|(r.resolveJsonModule?8:0));return O1e(e,E&&E.value,E?.value&&kb(E.value.path),u,d,_,v,o);function A(R){let N=H1e(R,e,g,Voe,v);if(N)return{value:N};if(td(e)){let P=ya(Qr(g,e));return mf(Voe(R,P,!1,v))}else{let P=O_(v.host,g,k=>{let F=cSe(o,e,void 0,k,s,v);if(F)return F;let O=ya(Qr(k,e));return mf(Voe(R,O,!1,v))});if(P)return P;if(R&5){let k=Rje(e,g,v);return R&4&&(k??(k=dSe(e,v))),k}}}}function dSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=B1e(r,e,t),o=ch(r,t.host);!o&&t.traceEnabled&&xo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=MD(4,i,!o,t);if(s){let u=Cw(s.path),d=u?EE(u,!1,t):void 0;return mf(XI(d,s,t))}let l=joe(4,i,!o,t);if(l)return mf(l)}}function LD(e,t){return rre(e)||!!t&&ad(t)}function Joe(e,t,r,i,o,s){let l=Pb(r,i);l&&xo(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);let u=[],d=[],g=[],_={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void g.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=aSe(4,e,o,_,!1,void 0,void 0);return W1e(v,!0,u,d,g,_.resultFromCache,void 0)}function mf(e){return e!==void 0?{value:e}:void 0}function wb(e,t,...r){e.traceEnabled&&xo(e.host,t,...r)}function mU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Koe=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Koe||{});function my(e,t){return e.body&&!e.body.parent&&(us(e.body,e),z0(e.body,!1)),e.body?Xoe(e.body,t):1}function Xoe(e,t=new Map){let r=ss(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=Dje(e,t);return t.set(r,i),i}function Dje(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(C0(e))return 2;break;case 273:case 272:if(!di(e,32))return 0;break;case 279:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===280){let i=0;for(let o of r.exportClause.elements){let s=Cje(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 269:{let i=0;return Jo(e,o=>{let s=Xoe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:C.assertNever(s)}}),i}case 268:return my(e,t);case 80:if(e.flags&4096)return 0}return 1}function Cje(e,t){let r=e.propertyName||e.name;if(r.kind!==80)return 1;let i=e.parent;for(;i;){if(ea(i)||e_(i)||Yi(i)){let o=i.statements,s;for(let l of o)if(EL(l,r)){l.parent||(us(l,i),z0(l,!1));let u=Xoe(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===272&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}var Yoe=(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))(Yoe||{});function W_(e,t,r){return C.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:r})}var Nje=Mje();function $oe(e,t){Rl("beforeBind"),Nje(e,t),Rl("afterBind"),Lf("Bind","beforeBind","afterBind")}function Mje(){var e,t,r,i,o,s,l,u,d,g,_,v,E,A,R,N,P,k,F,O,G,j,J,Z,q,ye=!1,ie=0,K,pe,de=W_(1,void 0,void 0),fe=W_(1,void 0,void 0),ve=B();return Y;function xe(z,Ve,...kt){return wf(Wn(z)||e,z,Ve,...kt)}function Y(z,Ve){var kt,On;e=z,t=Ve,r=Ga(t),q=Ce(e,Ve),pe=new Set,ie=0,K=Rd.getSymbolConstructor(),C.attachFlowNodeDebugInfo(de),C.attachFlowNodeDebugInfo(fe),e.locals||((kt=xr)==null||kt.push(xr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Fn(e),(On=xr)==null||On.pop(),e.symbolCount=ie,e.classifiableNames=pe,$s(),Ra()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0,_=void 0,g=!1,v=void 0,E=void 0,A=void 0,R=void 0,N=void 0,P=void 0,k=void 0,O=void 0,G=!1,j=!1,J=!1,ye=!1,Z=0}function Ce(z,Ve){return Vd(Ve,"alwaysStrict")&&!z.isDeclarationFile?!0:!!z.externalModuleIndicator}function Xe(z,Ve){return ie++,new K(z,Ve)}function Se(z,Ve,kt){z.flags|=kt,Ve.symbol=z,z.declarations=$g(z.declarations,Ve),kt&1955&&!z.exports&&(z.exports=da()),kt&6240&&!z.members&&(z.members=da()),z.constEnumOnlyModule&&z.flags&304&&(z.constEnumOnlyModule=!1),kt&111551&&YN(z,Ve)}function re(z){if(z.kind===278)return z.isExportEquals?"export=":"default";let Ve=Oo(z);if(Ve){if(gu(z)){let kt=Wf(Ve);return N_(z)?"__global":`"${kt}"`}if(Ve.kind===168){let kt=Ve.expression;if(df(kt))return Cl(kt.text);if(Z6(kt))return _a(kt.operator)+kt.operand.text;C.fail("Only computed properties with literal names have declaration names")}if(eo(Ve)){let kt=hd(z);if(!kt)return;let On=kt.symbol;return yk(On,Ve.escapedText)}return fh(Ve)?xI(Ve):Hh(Ve)?rM(Ve):void 0}switch(z.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(oc(z)===2)return"export=";C.fail("Unknown binary declaration kind");break;case 318:return dI(z)?"__new":"__call";case 170:return C.assert(z.parent.kind===318,"Impossible parameter parent kind",()=>`parent is: ${C.formatSyntaxKind(z.parent.kind)}, expected JSDocFunctionType`),"arg"+z.parent.parameters.indexOf(z)}}function be(z){return nd(z)?ws(z.name):Vi(C.checkDefined(re(z)))}function Ne(z,Ve,kt,On,yo,ta,Eo){C.assert(Eo||!oy(kt));let Vo=di(kt,2048)||iu(kt)&&C_(kt.name),ml=Eo?"__computed":Vo&&Ve?"default":re(kt),Ca;if(ml===void 0)Ca=Xe(0,"__missing");else if(Ca=z.get(ml),On&2885600&&pe.add(ml),!Ca)z.set(ml,Ca=Xe(0,ml)),ta&&(Ca.isReplaceableByMethod=!0);else{if(ta&&!Ca.isReplaceableByMethod)return Ca;if(Ca.flags&yo){if(Ca.isReplaceableByMethod)z.set(ml,Ca=Xe(0,ml));else if(!(On&3&&Ca.flags&67108864)){nd(kt)&&us(kt.name,kt);let cd=Ca.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Vp=!0;(Ca.flags&384||On&384)&&(cd=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Vp=!1);let Tf=!1;et(Ca.declarations)&&(Vo||Ca.declarations&&Ca.declarations.length&&kt.kind===278&&!kt.isExportEquals)&&(cd=f.A_module_cannot_have_multiple_default_exports,Vp=!1,Tf=!0);let Kf=[];ym(kt)&&Ol(kt.type)&&di(kt,32)&&Ca.flags&2887656&&Kf.push(xe(kt,f.Did_you_mean_0,`export type { ${Vi(kt.name.escapedText)} }`));let Ty=Oo(kt)||kt;Je(Ca.declarations,(zu,G_)=>{let Th=Oo(zu)||zu,Am=Vp?xe(Th,cd,be(zu)):xe(Th,cd);e.bindDiagnostics.push(Tf?pa(Am,xe(Ty,G_===0?f.Another_export_default_is_here:f.and_here)):Am),Tf&&Kf.push(xe(Th,f.The_first_export_default_is_here))});let yv=Vp?xe(Ty,cd,be(kt)):xe(Ty,cd);e.bindDiagnostics.push(pa(yv,...Kf)),Ca=Xe(0,ml)}}}return Se(Ca,kt,On),Ca.parent?C.assert(Ca.parent===Ve,"Existing symbol parent should match new one"):Ca.parent=Ve,Ca}function Be(z,Ve,kt){let On=!!(I0(z)&32)||lt(z);if(Ve&2097152)return z.kind===282||z.kind===272&&On?Ne(o.symbol.exports,o.symbol,z,Ve,kt):(C.assertNode(o,R_),Ne(o.locals,void 0,z,Ve,kt));if(mm(z)&&C.assert(Ir(z)),!gu(z)&&(On||o.flags&128)){if(!R_(o)||!o.locals||di(z,2048)&&!re(z))return Ne(o.symbol.exports,o.symbol,z,Ve,kt);let yo=Ve&111551?1048576:0,ta=Ne(o.locals,void 0,z,yo,kt);return ta.exportSymbol=Ne(o.symbol.exports,o.symbol,z,Ve,kt),z.localSymbol=ta,ta}else return C.assertNode(o,R_),Ne(o.locals,void 0,z,Ve,kt)}function lt(z){if(z.parent&&pc(z)&&(z=z.parent),!mm(z))return!1;if(!lw(z)&&z.fullName)return!0;let Ve=Oo(z);return Ve?!!(Rk(Ve.parent)&&Jf(Ve.parent)||rd(Ve.parent)&&I0(Ve.parent)&32):!1}function ce(z,Ve){let kt=o,On=s,yo=l,ta=j;if(z.kind===220&&z.body.kind!==242&&(j=!0),Ve&1?(z.kind!==220&&(s=o),o=l=z,Ve&32&&(o.locals=da(),En(o))):Ve&2&&(l=z,Ve&32&&(l.locals=void 0)),Ve&4){let Eo=v,Vo=E,ml=A,Ca=R,cd=k,Vp=O,Tf=G,Kf=Ve&16&&!di(z,1024)&&!z.asteriskToken&&!!N0(z)||z.kind===176;Kf||(v=W_(2,void 0,void 0),Ve&144&&(v.node=z)),R=Kf||z.kind===177||Ir(z)&&(z.kind===263||z.kind===219)?en():void 0,k=void 0,E=void 0,A=void 0,O=void 0,G=!1,Ge(z),z.flags&=-5633,!(v.flags&1)&&Ve&8&&pm(z.body)&&(z.flags|=512,G&&(z.flags|=1024),z.endFlowNode=v),z.kind===308&&(z.flags|=Z,z.endFlowNode=v),R&&(zt(R,v),v=Ci(R),(z.kind===177||z.kind===176||Ir(z)&&(z.kind===263||z.kind===219))&&(z.returnFlowNode=v)),Kf||(v=Eo),E=Vo,A=ml,R=Ca,k=cd,O=Vp,G=Tf}else Ve&64?(g=!1,Ge(z),C.assertNotNode(z,He),z.flags=g?z.flags|256:z.flags&-257):Ge(z);j=ta,o=kt,s=On,l=yo}function De(z){ge(z,Ve=>Ve.kind===263?Fn(Ve):void 0),ge(z,Ve=>Ve.kind!==263?Fn(Ve):void 0)}function ge(z,Ve=Fn){z!==void 0&&Je(z,Ve)}function je(z){Jo(z,Fn,ge)}function Ge(z){let Ve=ye;if(ye=!1,$i(z)){HR(z)&&z.flowNode&&(z.flowNode=void 0),je(z),ro(z),ye=Ve;return}switch(z.kind>=244&&z.kind<=260&&(!t.allowUnreachableCode||z.kind===254)&&(z.flowNode=v),z.kind){case 248:Ia(z);break;case 247:Mn(z);break;case 249:Uo(z);break;case 250:case 251:ot(z);break;case 246:Ft(z);break;case 254:case 258:le(z);break;case 253:case 252:Fe(z);break;case 259:it(z);break;case 256:dt(z);break;case 270:Lt(z);break;case 297:Ue(z);break;case 245:Rt(z);break;case 257:Ot(z);break;case 225:Oe(z);break;case 226:Nt(z);break;case 227:if(ev(z)){ye=Ve,_e(z);return}ve(z);break;case 221:Ae(z);break;case 228:te(z);break;case 261:Xt(z);break;case 212:case 213:yn(z);break;case 214:wt(z);break;case 236:In(z);break;case 347:case 339:case 341:gr(z);break;case 352:Jn(z);break;case 308:{De(z.statements),Fn(z.endOfFileToken);break}case 242:case 269:De(z.statements);break;case 209:Le(z);break;case 170:gt(z);break;case 211:case 210:case 304:case 231:ye=Ve;default:je(z);break}ro(z),ye=Ve}function We(z){switch(z.kind){case 80:case 110:return!0;case 212:case 213:return Wt(z);case 214:return cn(z);case 218:if(W1(z))return!1;case 236:return We(z.expression);case 227:return Kn(z);case 225:return z.operator===54&&We(z.operand);case 222:return We(z.expression)}return!1}function at(z){switch(z.kind){case 80:case 110:case 108:case 237:return!0;case 212:case 218:case 236:return at(z.expression);case 213:return(df(z.argumentExpression)||Ds(z.argumentExpression))&&at(z.expression);case 227:return z.operatorToken.kind===28&&at(z.right)||sy(z.operatorToken.kind)&&Xu(z.left)}return!1}function Wt(z){return at(z)||eu(z)&&Wt(z.expression)}function cn(z){if(z.arguments){for(let Ve of z.arguments)if(Wt(Ve))return!0}return!!(z.expression.kind===212&&Wt(z.expression.expression))}function gn(z,Ve){return pD(z)&&_t(z.expression)&&cs(Ve)}function Kn(z){switch(z.operatorToken.kind){case 64:case 76:case 77:case 78:return Wt(z.left);case 35:case 36:case 37:case 38:let Ve=ds(z.left),kt=ds(z.right);return _t(Ve)||_t(kt)||gn(kt,Ve)||gn(Ve,kt)||wN(kt)&&We(Ve)||wN(Ve)&&We(kt);case 104:return _t(z.left);case 103:return We(z.right);case 28:return We(z.right)}return!1}function _t(z){switch(z.kind){case 218:return _t(z.expression);case 227:switch(z.operatorToken.kind){case 64:return _t(z.left);case 28:return _t(z.right)}}return Wt(z)}function en(){return W_(4,void 0,void 0)}function ir(){return W_(8,void 0,void 0)}function Di(z,Ve,kt){return W_(1024,{target:z,antecedents:Ve},kt)}function lo(z){z.flags|=z.flags&2048?4096:2048}function zt(z,Ve){!(Ve.flags&1)&&!jn(z.antecedent,Ve)&&((z.antecedent||(z.antecedent=[])).push(Ve),lo(Ve))}function Zr(z,Ve,kt){return Ve.flags&1?Ve:kt?(kt.kind===112&&z&64||kt.kind===97&&z&32)&&!i6(kt)&&!PB(kt.parent)?de:We(kt)?(lo(Ve),W_(z,kt,Ve)):Ve:z&32?Ve:de}function Ai(z,Ve,kt,On){return lo(z),W_(128,{switchStatement:Ve,clauseStart:kt,clauseEnd:On},z)}function Ni(z,Ve,kt){lo(Ve),J=!0;let On=W_(z,kt,Ve);return k&&zt(k,On),On}function Pr(z,Ve){return lo(z),J=!0,W_(512,Ve,z)}function Ci(z){let Ve=z.antecedent;return Ve?Ve.length===1?Ve[0]:z:de}function $e(z){let Ve=z.parent;switch(Ve.kind){case 246:case 248:case 247:return Ve.expression===z;case 249:case 228:return Ve.condition===z}return!1}function At(z){for(;;)if(z.kind===218)z=z.expression;else if(z.kind===225&&z.operator===54)z=z.operand;else return Ik(z)}function mn(z){return ZG(ds(z))}function dr(z){for(;wu(z.parent)||j0(z.parent)&&z.parent.operator===54;)z=z.parent;return!$e(z)&&!At(z.parent)&&!(eu(z.parent)&&z.parent.expression===z)}function ri(z,Ve,kt,On){let yo=N,ta=P;N=kt,P=On,z(Ve),N=yo,P=ta}function ai(z,Ve,kt){ri(Fn,z,Ve,kt),(!z||!mn(z)&&!At(z)&&!(eu(z)&&NN(z)))&&(zt(Ve,Zr(32,v,z)),zt(kt,Zr(64,v,z)))}function qi(z,Ve,kt){let On=E,yo=A;E=Ve,A=kt,Fn(z),E=On,A=yo}function $o(z,Ve){let kt=O;for(;kt&&z.parent.kind===257;)kt.continueTarget=Ve,kt=kt.next,z=z.parent;return Ve}function Ia(z){let Ve=$o(z,ir()),kt=en(),On=en();zt(Ve,v),v=Ve,ai(z.expression,kt,On),v=Ci(kt),qi(z.statement,On,Ve),zt(Ve,v),v=Ci(On)}function Mn(z){let Ve=ir(),kt=$o(z,en()),On=en();zt(Ve,v),v=Ve,qi(z.statement,On,kt),zt(kt,v),v=Ci(kt),ai(z.expression,Ve,On),v=Ci(On)}function Uo(z){let Ve=$o(z,ir()),kt=en(),On=en(),yo=en();Fn(z.initializer),zt(Ve,v),v=Ve,ai(z.condition,kt,yo),v=Ci(kt),qi(z.statement,yo,On),zt(On,v),v=Ci(On),Fn(z.incrementor),zt(Ve,v),v=Ci(yo)}function ot(z){let Ve=$o(z,ir()),kt=en();Fn(z.expression),zt(Ve,v),v=Ve,z.kind===251&&Fn(z.awaitModifier),zt(kt,v),Fn(z.initializer),z.initializer.kind!==262&&Kt(z.initializer),qi(z.statement,kt,Ve),zt(Ve,v),v=Ci(kt)}function Ft(z){let Ve=en(),kt=en(),On=en();ai(z.expression,Ve,kt),v=Ci(Ve),Fn(z.thenStatement),zt(On,v),v=Ci(kt),Fn(z.elseStatement),zt(On,v),v=Ci(On)}function le(z){let Ve=j;j=!0,Fn(z.expression),j=Ve,z.kind===254&&(G=!0,R&&zt(R,v)),v=de,J=!0}function ht(z){for(let Ve=O;Ve;Ve=Ve.next)if(Ve.name===z)return Ve}function ne(z,Ve,kt){let On=z.kind===253?Ve:kt;On&&(zt(On,v),v=de,J=!0)}function Fe(z){if(Fn(z.label),z.label){let Ve=ht(z.label.escapedText);Ve&&(Ve.referenced=!0,ne(z,Ve.breakTarget,Ve.continueTarget))}else ne(z,E,A)}function it(z){let Ve=R,kt=k,On=en(),yo=en(),ta=en();if(z.finallyBlock&&(R=yo),zt(ta,v),k=ta,Fn(z.tryBlock),zt(On,v),z.catchClause&&(v=Ci(ta),ta=en(),zt(ta,v),k=ta,Fn(z.catchClause),zt(On,v)),R=Ve,k=kt,z.finallyBlock){let Eo=en();Eo.antecedent=so(so(On.antecedent,ta.antecedent),yo.antecedent),v=Eo,Fn(z.finallyBlock),v.flags&1?v=de:(R&&yo.antecedent&&zt(R,Di(Eo,yo.antecedent,v)),k&&ta.antecedent&&zt(k,Di(Eo,ta.antecedent,v)),v=On.antecedent?Di(Eo,On.antecedent,v):de)}else v=Ci(On)}function dt(z){let Ve=en();Fn(z.expression);let kt=E,On=F;E=Ve,F=v,Fn(z.caseBlock),zt(Ve,v);let yo=Je(z.caseBlock.clauses,ta=>ta.kind===298);z.possiblyExhaustive=!yo&&!Ve.antecedent,yo||zt(Ve,Ai(F,z,0,0)),E=kt,F=On,v=Ci(Ve)}function Lt(z){let Ve=z.clauses,kt=z.parent.expression.kind===112||We(z.parent.expression),On=de;for(let yo=0;yo<Ve.length;yo++){let ta=yo;for(;!Ve[yo].statements.length&&yo+1<Ve.length;)On===de&&(v=F),Fn(Ve[yo]),yo++;let Eo=en();zt(Eo,kt?Ai(F,z.parent,ta,yo+1):F),zt(Eo,On),v=Ci(Eo);let Vo=Ve[yo];Fn(Vo),On=v,!(v.flags&1)&&yo!==Ve.length-1&&t.noFallthroughCasesInSwitch&&(Vo.fallthroughFlowNode=v)}}function Ue(z){let Ve=v;v=F,Fn(z.expression),v=Ve,ge(z.statements)}function Rt(z){Fn(z.expression),It(z.expression)}function It(z){if(z.kind===214){let Ve=z;Ve.expression.kind!==108&&xk(Ve.expression)&&(v=Pr(v,Ve))}}function Ot(z){let Ve=en();O={next:O,name:z.label.escapedText,breakTarget:Ve,continueTarget:void 0,referenced:!1},Fn(z.label),Fn(z.statement),!O.referenced&&!t.allowUnusedLabels&&ur(are(t),z.label,f.Unused_label),O=O.next,zt(Ve,v),v=Ci(Ve)}function nt(z){z.kind===227&&z.operatorToken.kind===64?Kt(z.left):Kt(z)}function Kt(z){if(at(z))v=Ni(16,v,z);else if(z.kind===210)for(let Ve of z.elements)Ve.kind===231?Kt(Ve.expression):nt(Ve);else if(z.kind===211)for(let Ve of z.properties)Ve.kind===304?nt(Ve.initializer):Ve.kind===305?Kt(Ve.name):Ve.kind===306&&Kt(Ve.expression)}function Sr(z,Ve,kt){let On=en();z.operatorToken.kind===56||z.operatorToken.kind===77?ai(z.left,On,kt):ai(z.left,Ve,On),v=Ci(On),Fn(z.operatorToken),cM(z.operatorToken.kind)?(ri(Fn,z.right,Ve,kt),Kt(z.left),zt(Ve,Zr(32,v,z)),zt(kt,Zr(64,v,z))):ai(z.right,Ve,kt)}function Oe(z){if(z.operator===54){let Ve=N;N=P,P=Ve,je(z),P=N,N=Ve}else je(z),(z.operator===46||z.operator===47)&&Kt(z.operand)}function Nt(z){je(z),(z.operator===46||z.operator===47)&&Kt(z.operand)}function _e(z){ye?(ye=!1,Fn(z.operatorToken),Fn(z.right),ye=!0,Fn(z.left)):(ye=!0,Fn(z.left),ye=!1,Fn(z.operatorToken),Fn(z.right)),Kt(z.left)}function B(){return E3(z,Ve,kt,On,yo,void 0);function z(Eo,Vo){if(Vo){Vo.stackIndex++,us(Eo,i);let Ca=q;Da(Eo);let cd=i;i=Eo,Vo.skip=!1,Vo.inStrictModeStack[Vo.stackIndex]=Ca,Vo.parentStack[Vo.stackIndex]=cd}else Vo={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let ml=Eo.operatorToken.kind;if(pW(ml)||cM(ml)){if(dr(Eo)){let Ca=en(),cd=v,Vp=J;J=!1,Sr(Eo,Ca,Ca),v=J?Ci(Ca):cd,J||(J=Vp)}else Sr(Eo,N,P);Vo.skip=!0}return Vo}function Ve(Eo,Vo,ml){if(!Vo.skip){let Ca=ta(Eo);return ml.operatorToken.kind===28&&It(Eo),Ca}}function kt(Eo,Vo,ml){Vo.skip||Fn(Eo)}function On(Eo,Vo,ml){if(!Vo.skip){let Ca=ta(Eo);return ml.operatorToken.kind===28&&It(Eo),Ca}}function yo(Eo,Vo){if(!Vo.skip){let cd=Eo.operatorToken.kind;if(sy(cd)&&!yb(Eo)&&(Kt(Eo.left),cd===64&&Eo.left.kind===213)){let Vp=Eo.left;_t(Vp.expression)&&(v=Ni(256,v,Eo))}}let ml=Vo.inStrictModeStack[Vo.stackIndex],Ca=Vo.parentStack[Vo.stackIndex];ml!==void 0&&(q=ml),Ca!==void 0&&(i=Ca),Vo.skip=!1,Vo.stackIndex--}function ta(Eo){if(Eo&&Nr(Eo)&&!ev(Eo))return Eo;Fn(Eo)}}function Ae(z){je(z),z.expression.kind===212&&Kt(z.expression)}function te(z){let Ve=en(),kt=en(),On=en(),yo=v,ta=J;J=!1,ai(z.condition,Ve,kt),v=Ci(Ve),j&&(z.flowNodeWhenTrue=v),Fn(z.questionToken),Fn(z.whenTrue),zt(On,v),v=Ci(kt),j&&(z.flowNodeWhenFalse=v),Fn(z.colonToken),Fn(z.whenFalse),zt(On,v),v=J?Ci(On):yo,J||(J=ta)}function xt(z){let Ve=Kc(z)?void 0:z.name;if(Qo(Ve))for(let kt of Ve.elements)xt(kt);else v=Ni(16,v,z)}function Xt(z){je(z),(z.initializer||jS(z.parent.parent))&&xt(z)}function Le(z){Fn(z.dotDotDotToken),Fn(z.propertyName),Bt(z.initializer),Fn(z.name)}function gt(z){ge(z.modifiers),Fn(z.dotDotDotToken),Fn(z.questionToken),Fn(z.type),Bt(z.initializer),Fn(z.name)}function Bt(z){if(!z)return;let Ve=v;if(Fn(z),Ve===de||Ve===v)return;let kt=en();zt(kt,Ve),zt(kt,v),v=Ci(kt)}function gr(z){Fn(z.tagName),z.kind!==341&&z.fullName&&(us(z.fullName,z),z0(z.fullName,!1)),typeof z.comment!="string"&&ge(z.comment)}function tr(z){je(z);let Ve=L0(z);Ve&&Ve.kind!==175&&Se(Ve.symbol,Ve,32)}function Jn(z){Fn(z.tagName),Fn(z.moduleSpecifier),Fn(z.attributes),typeof z.comment!="string"&&ge(z.comment)}function ft(z,Ve,kt){ri(Fn,z,Ve,kt),(!eu(z)||NN(z))&&(zt(Ve,Zr(32,v,z)),zt(kt,Zr(64,v,z)))}function Mt(z){switch(z.kind){case 212:Fn(z.questionDotToken),Fn(z.name);break;case 213:Fn(z.questionDotToken),Fn(z.argumentExpression);break;case 214:Fn(z.questionDotToken),ge(z.typeArguments),ge(z.arguments);break}}function jt(z,Ve,kt){let On=CN(z)?en():void 0;ft(z.expression,On||Ve,kt),On&&(v=Ci(On)),ri(Mt,z,Ve,kt),NN(z)&&(zt(Ve,Zr(32,v,z)),zt(kt,Zr(64,v,z)))}function Qt(z){if(dr(z)){let Ve=en(),kt=v,On=J;jt(z,Ve,Ve),v=J?Ci(Ve):kt,J||(J=On)}else jt(z,N,P)}function In(z){eu(z)?Qt(z):je(z)}function yn(z){eu(z)?Qt(z):je(z)}function wt(z){if(eu(z))Qt(z);else{let Ve=ds(z.expression);Ve.kind===219||Ve.kind===220?(ge(z.typeArguments),ge(z.arguments),Fn(z.expression)):(je(z),z.expression.kind===108&&(v=Pr(v,z)))}if(z.expression.kind===212){let Ve=z.expression;He(Ve.name)&&_t(Ve.expression)&&wG(Ve.name)&&(v=Ni(256,v,z))}}function En(z){u&&(u.nextContainer=z),u=z}function xn(z,Ve,kt){switch(o.kind){case 268:return Be(z,Ve,kt);case 308:return ln(z,Ve,kt);case 232:case 264:return Ln(z,Ve,kt);case 267:return Ne(o.symbol.exports,o.symbol,z,Ve,kt);case 188:case 323:case 211:case 265:case 293:return Ne(o.symbol.members,o.symbol,z,Ve,kt);case 185:case 186:case 180:case 181:case 324:case 182:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 318:case 176:case 266:case 201:return o.locals&&C.assertNode(o,R_),Ne(o.locals,void 0,z,Ve,kt)}}function Ln(z,Ve,kt){return ua(z)?Ne(o.symbol.exports,o.symbol,z,Ve,kt):Ne(o.symbol.members,o.symbol,z,Ve,kt)}function ln(z,Ve,kt){return Gc(e)?Be(z,Ve,kt):Ne(e.locals,void 0,z,Ve,kt)}function Ii(z){let Ve=Yi(z)?z:ni(z.body,e_);return!!Ve&&Ve.statements.some(kt=>fc(kt)||ll(kt))}function ra(z){z.flags&33554432&&!Ii(z)?z.flags|=128:z.flags&=-129}function sa(z){if(ra(z),gu(z))if(di(z,32)&&fn(z,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),oG(z))zo(z);else{let Ve;if(z.name.kind===11){let{text:On}=z.name;Ve=EI(On),Ve===void 0&&fn(z.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,On)}let kt=xn(z,512,110735);e.patternAmbientModules=Bn(e.patternAmbientModules,Ve&&!Bo(Ve)?{pattern:Ve,symbol:kt}:void 0)}else{let Ve=zo(z);if(Ve!==0){let{symbol:kt}=z;kt.constEnumOnlyModule=!(kt.flags&304)&&Ve===2&&kt.constEnumOnlyModule!==!1}}}function zo(z){let Ve=my(z),kt=Ve!==0;return xn(z,kt?512:1024,kt?110735:0),Ve}function Bl(z){let Ve=Xe(131072,re(z));Se(Ve,z,131072);let kt=Xe(2048,"__type");Se(kt,z,2048),kt.members=da(),kt.members.set(Ve.escapedName,Ve)}function xl(z){return Go(z,4096,"__object")}function Ps(z){return Go(z,4096,"__jsxAttributes")}function co(z,Ve,kt){return xn(z,Ve,kt)}function Go(z,Ve,kt){let On=Xe(Ve,kt);return Ve&106508&&(On.parent=o.symbol),Se(On,z,Ve),On}function Sc(z,Ve,kt){switch(l.kind){case 268:Be(z,Ve,kt);break;case 308:if(Np(o)){Be(z,Ve,kt);break}default:C.assertNode(l,R_),l.locals||(l.locals=da(),En(l)),Ne(l.locals,void 0,z,Ve,kt)}}function $s(){if(!d)return;let z=o,Ve=u,kt=l,On=i,yo=v;for(let ta of d){let Eo=ta.parent.parent;o=D6(Eo)||e,l=sh(Eo)||e,v=W_(2,void 0,void 0),i=ta,Fn(ta.typeExpression);let Vo=Oo(ta);if((lw(ta)||!ta.fullName)&&Vo&&Rk(Vo.parent)){let ml=Jf(Vo.parent);if(ml){Gp(e.symbol,Vo.parent,ml,!!Dn(Vo,cd=>qr(cd)&&cd.name.escapedText==="prototype"),!1);let Ca=o;switch(sk(Vo.parent)){case 1:case 2:Np(e)?o=e:o=void 0;break;case 4:o=Vo.parent.expression;break;case 3:o=Vo.parent.expression.name;break;case 5:o=z1(e,Vo.parent.expression)?e:qr(Vo.parent.expression)?Vo.parent.expression.name:Vo.parent.expression;break;case 0:return C.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Be(ta,524288,788968),o=Ca}}else lw(ta)||!ta.fullName||ta.fullName.kind===80?(i=ta.parent,Sc(ta,524288,788968)):Fn(ta.fullName)}o=z,u=Ve,l=kt,i=On,v=yo}function Ra(){if(_===void 0)return;let z=o,Ve=u,kt=l,On=i,yo=v;for(let ta of _){let Eo=g1(ta),Vo=Eo?D6(Eo):void 0,ml=Eo?sh(Eo):void 0;o=Vo||e,l=ml||e,v=W_(2,void 0,void 0),i=ta,Fn(ta.importClause)}o=z,u=Ve,l=kt,i=On,v=yo}function Zl(z){if(!e.parseDiagnostics.length&&!(z.flags&33554432)&&!(z.flags&16777216)&&!_ne(z)){let Ve=FS(z);if(Ve===void 0)return;q&&Ve>=119&&Ve<=127?e.bindDiagnostics.push(xe(z,vf(z),ws(z))):Ve===135?Gc(e)&&F6(z)?e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,ws(z))):z.flags&65536&&e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ws(z))):Ve===127&&z.flags&16384&&e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ws(z)))}}function vf(z){return hd(z)?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 Lo(z){z.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(xe(z,f.constructor_is_a_reserved_word,ws(z))))}function fa(z){q&&Xu(z.left)&&sy(z.operatorToken.kind)&&As(z,z.left)}function is(z){q&&z.variableDeclaration&&As(z,z.variableDeclaration.name)}function qa(z){if(q&&z.expression.kind===80){let Ve=qS(e,z.expression);e.bindDiagnostics.push(Fc(e,Ve.start,Ve.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Zt(z){return He(z)&&(z.escapedText==="eval"||z.escapedText==="arguments")}function As(z,Ve){if(Ve&&Ve.kind===80){let kt=Ve;if(Zt(kt)){let On=qS(e,Ve);e.bindDiagnostics.push(Fc(e,On.start,On.length,Hl(z),Kr(kt)))}}}function Hl(z){return hd(z)?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 sc(z){q&&!(z.flags&33554432)&&As(z,z.name)}function vd(z){return hd(z)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function Fs(z){if(r<2&&l.kind!==308&&l.kind!==268&&!MR(l)){let Ve=qS(e,z);e.bindDiagnostics.push(Fc(e,Ve.start,Ve.length,vd(z)))}}function Ee(z){q&&As(z,z.operand)}function $(z){q&&(z.operator===46||z.operator===47)&&As(z,z.operand)}function pt(z){q&&fn(z,f.with_statements_are_not_allowed_in_strict_mode)}function qt(z){q&&Ga(t)>=2&&(pte(z.statement)||ac(z.statement))&&fn(z.label,f.A_label_is_not_allowed_here)}function fn(z,Ve,...kt){let On=Vh(e,z.pos);e.bindDiagnostics.push(Fc(e,On.start,On.length,Ve,...kt))}function ur(z,Ve,kt){si(z,Ve,Ve,kt)}function si(z,Ve,kt,On){Dr(z,{pos:mb(Ve,e),end:kt.end},On)}function Dr(z,Ve,kt){let On=Fc(e,Ve.pos,Ve.end-Ve.pos,kt);z?e.bindDiagnostics.push(On):e.bindSuggestionDiagnostics=Bn(e.bindSuggestionDiagnostics,{...On,category:2})}function Fn(z){if(!z)return;us(z,i),xr&&(z.tracingPath=e.path);let Ve=q;if(Da(z),z.kind>166){let kt=i;i=z;let On=hU(z);On===0?Ge(z):ce(z,On),i=kt}else{let kt=i;z.kind===1&&(i=z),ro(z),i=kt}q=Ve}function ro(z){if(Zp(z))if(Ir(z))for(let Ve of z.jsDoc)Fn(Ve);else for(let Ve of z.jsDoc)us(Ve,z),z0(Ve,!1)}function So(z){if(!q)for(let Ve of z){if(!jh(Ve))return;if(Ns(Ve)){q=!0;return}}}function Ns(z){let Ve=u1(e,z.expression);return Ve==='"use strict"'||Ve==="'use strict'"}function Da(z){switch(z.kind){case 80:if(z.flags&4096){let Eo=z.parent;for(;Eo&&!mm(Eo);)Eo=Eo.parent;Sc(Eo,524288,788968);break}case 110:return v&&(St(z)||i.kind===305)&&(z.flowNode=v),Zl(z);case 167:v&&V6(z)&&(z.flowNode=v);break;case 237:case 108:z.flowNode=v;break;case 81:return Lo(z);case 212:case 213:let Ve=z;v&&at(Ve)&&(Ve.flowNode=v),sne(Ve)&&Pc(Ve),Ir(Ve)&&e.commonJsModuleIndicator&&_g(Ve)&&!$3(l,"module")&&Ne(e.locals,void 0,Ve.expression,134217729,111550);break;case 227:switch(oc(z)){case 1:Jt(z);break;case 2:er(z);break;case 3:ql(z.left,z);break;case 6:tl(z);break;case 4:Za(z);break;case 5:let Eo=z.left.expression;if(Ir(z)&&He(Eo)){let Vo=$3(l,Eo.escapedText);if(z6(Vo?.valueDeclaration)){Za(z);break}}bd(z);break;case 0:break;default:C.fail("Unknown binary expression special property assignment kind")}return fa(z);case 300:return is(z);case 221:return qa(z);case 226:return Ee(z);case 225:return $(z);case 255:return pt(z);case 257:return qt(z);case 198:g=!0;return;case 183:break;case 169:return ti(z);case 170:return ut(z);case 261:return oe(z);case 209:return z.flowNode=v,oe(z);case 173:case 172:return Qs(z);case 304:case 305:return wn(z,4,0);case 307:return wn(z,8,900095);case 180:case 181:case 182:return xn(z,131072,0);case 175:case 174:return wn(z,8192|(z.questionToken?16777216:0),fm(z)?0:103359);case 263:return tn(z);case 177:return xn(z,16384,0);case 178:return wn(z,32768,46015);case 179:return wn(z,65536,78783);case 185:case 318:case 324:case 186:return Bl(z);case 188:case 323:case 201:return Ec(z);case 333:return tr(z);case 211:return xl(z);case 219:case 220:return an(z);case 214:switch(oc(z)){case 7:return nf(z);case 8:return ze(z);case 9:return Ll(z);case 0:break;default:return C.fail("Unknown call expression assignment declaration kind")}Ir(z)&&bh(z);break;case 232:case 264:return q=!0,bf(z);case 265:return Sc(z,64,788872);case 266:return Sc(z,524288,788968);case 267:return u_(z);case 268:return sa(z);case 293:return Ps(z);case 292:return co(z,4,0);case 272:case 275:case 277:case 282:return xn(z,2097152,2097152);case 271:return vh(z);case 274:return tf(z);case 279:return Pd(z);case 278:return Pl(z);case 308:return So(z.statements),mc();case 242:if(!MR(z.parent))return;case 269:return So(z.statements);case 342:if(z.parent.kind===324)return ut(z);if(z.parent.kind!==323)break;case 349:let yo=z,ta=yo.isBracketed||yo.typeExpression&&yo.typeExpression.type.kind===317?16777220:4;return xn(yo,ta,0);case 347:case 339:case 341:return(d||(d=[])).push(z);case 340:return Fn(z.typeExpression);case 352:return(_||(_=[])).push(z)}}function Qs(z){let Ve=Ku(z),kt=Ve?98304:4,On=Ve?13247:0;return wn(z,kt|(z.questionToken?16777216:0),On)}function Ec(z){return Go(z,2048,"__type")}function mc(){if(ra(e),Gc(e))Hs();else if(Of(e)){Hs();let z=e.symbol;Ne(e.symbol.exports,e.symbol,e,4,-1),e.symbol=z}}function Hs(){Go(e,512,`"${bu(e.fileName)}"`)}function Pl(z){if(!o.symbol||!o.symbol.exports)Go(z,111551,re(z));else{let Ve=_k(z)?2097152:4,kt=Ne(o.symbol.exports,o.symbol,z,Ve,-1);z.isExportEquals&&YN(kt,z)}}function vh(z){vt(z.modifiers)&&e.bindDiagnostics.push(xe(z,f.Modifiers_cannot_appear_here));let Ve=Yi(z.parent)?Gc(z.parent)?z.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;Ve?e.bindDiagnostics.push(xe(z,Ve)):(e.symbol.globalExports=e.symbol.globalExports||da(),Ne(e.symbol.globalExports,e.symbol,z,2097152,2097152))}function Pd(z){!o.symbol||!o.symbol.exports?Go(z,8388608,re(z)):z.exportClause?w_(z.exportClause)&&(us(z.exportClause,z),Ne(o.symbol.exports,o.symbol,z.exportClause,2097152,2097152)):Ne(o.symbol.exports,o.symbol,z,8388608,0)}function tf(z){z.name&&xn(z,2097152,2097152)}function rp(z){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=z,e.externalModuleIndicator||Hs()),!0)}function ze(z){if(!rp(z))return;let Ve=Yc(z.arguments[0],void 0,(kt,On)=>(On&&Se(On,kt,67110400),On));Ve&&Ne(Ve.exports,Ve,z,1048580,0)}function Jt(z){if(!rp(z))return;let Ve=Yc(z.left.expression,void 0,(kt,On)=>(On&&Se(On,kt,67110400),On));if(Ve){let On=Y6(z.right)&&(XS(z.left.expression)||_g(z.left.expression))?2097152:1048580;us(z.left,z),Ne(Ve.exports,Ve,z.left,On,0)}}function er(z){if(!rp(z))return;let Ve=ok(z.right);if(rV(Ve)||o===e&&z1(e,Ve))return;if(Wa(Ve)&&Vn(Ve.properties,Ud)){Je(Ve.properties,go);return}let kt=_k(z)?2097152:1049092,On=Ne(e.symbol.exports,e.symbol,z,kt|67108864,0);YN(On,z)}function go(z){Ne(e.symbol.exports,e.symbol,z,69206016,0)}function Za(z){if(C.assert(Ir(z)),Nr(z)&&qr(z.left)&&eo(z.left.name)||qr(z)&&eo(z.name))return;let kt=yu(z,!1,!1);switch(kt.kind){case 263:case 219:let On=kt.symbol;if(Nr(kt.parent)&&kt.parent.operatorToken.kind===64){let Eo=kt.parent.left;_1(Eo)&&Tb(Eo.expression)&&(On=ip(Eo.expression.expression,s))}On&&On.valueDeclaration&&(On.members=On.members||da(),oy(z)?es(z,On,On.members):Ne(On.members,On,z,67108868,0),Se(On,On.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:let yo=kt.parent,ta=ua(kt)?yo.symbol.exports:yo.symbol.members;oy(z)?es(z,yo.symbol,ta):Ne(ta,yo.symbol,z,67108868,0,!0);break;case 308:if(oy(z))break;kt.commonJsModuleIndicator?Ne(kt.symbol.exports,kt.symbol,z,1048580,0):xn(z,1,111550);break;case 268:break;default:C.failBadSyntaxKind(kt)}}function es(z,Ve,kt){Ne(kt,Ve,z,4,0,!0,!0),Va(z,Ve)}function Va(z,Ve){Ve&&(Ve.assignmentDeclarationMembers||(Ve.assignmentDeclarationMembers=new Map)).set(ss(z),z)}function Pc(z){z.expression.kind===110?Za(z):_1(z)&&z.parent.parent.kind===308&&(Tb(z.expression)?ql(z,z.parent):ld(z))}function tl(z){us(z.left,z),us(z.right,z),B_(z.left.expression,z.left,!1,!0)}function Ll(z){let Ve=ip(z.arguments[0].expression);Ve&&Ve.valueDeclaration&&Se(Ve,Ve.valueDeclaration,32),Eu(z,Ve,!0)}function ql(z,Ve){let kt=z.expression,On=kt.expression;us(On,kt),us(kt,z),us(z,Ve),B_(On,z,!0,!0)}function nf(z){let Ve=ip(z.arguments[0]),kt=z.parent.parent.kind===308;Ve=Gp(Ve,z.arguments[0],kt,!1,!1),Eu(z,Ve,!1)}function bd(z){var Ve;let kt=ip(z.left.expression,l)||ip(z.left.expression,o);if(!Ir(z)&&!lne(kt))return;let On=tD(z.left);if(!(He(On)&&((Ve=$3(o,On.escapedText))==null?void 0:Ve.flags)&2097152))if(us(z.left,z),us(z.right,z),He(z.left.expression)&&o===e&&z1(e,z.left.expression))Jt(z);else if(oy(z)){Go(z,67108868,"__computed");let yo=Gp(kt,z.left.expression,Jf(z.left),!1,!1);Va(z,yo)}else ld(ma(z.left,$S))}function ld(z){C.assert(!He(z)),us(z.expression,z),B_(z.expression,z,!1,!1)}function Gp(z,Ve,kt,On,yo){return z?.flags&2097152||(kt&&!On&&(z=Yc(Ve,z,(Vo,ml,Ca)=>{if(ml)return Se(ml,Vo,67110400),ml;{let cd=Ca?Ca.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=da());return Ne(cd,Ca,Vo,67110400,110735)}})),yo&&z&&z.valueDeclaration&&Se(z,z.valueDeclaration,32)),z}function Eu(z,Ve,kt){if(!Ve||!Dg(Ve))return;let On=kt?Ve.members||(Ve.members=da()):Ve.exports||(Ve.exports=da()),yo=0,ta=0;Ms(aI(z))?(yo=8192,ta=103359):Zo(z)&&YS(z)&&(vt(z.arguments[2].properties,Eo=>{let Vo=Oo(Eo);return!!Vo&&He(Vo)&&Kr(Vo)==="set"})&&(yo|=65540,ta|=78783),vt(z.arguments[2].properties,Eo=>{let Vo=Oo(Eo);return!!Vo&&He(Vo)&&Kr(Vo)==="get"})&&(yo|=32772,ta|=46015)),yo===0&&(yo=4,ta=0),Ne(On,Ve,z,yo|67108864,ta&-67108865)}function Jf(z){return Nr(z.parent)?Cg(z.parent).parent.kind===308:z.parent.parent.kind===308}function B_(z,Ve,kt,On){let yo=ip(z,l)||ip(z,o),ta=Jf(Ve);yo=Gp(yo,Ve.expression,ta,kt,On),Eu(Ve,yo,kt)}function Dg(z){if(z.flags&1072)return!0;let Ve=z.valueDeclaration;if(Ve&&Zo(Ve))return!!aI(Ve);let kt=Ve?yi(Ve)?Ve.initializer:Nr(Ve)?Ve.right:qr(Ve)&&Nr(Ve.parent)?Ve.parent.right:void 0:void 0;if(kt=kt&&ok(kt),kt){let On=Tb(yi(Ve)?Ve.name:Nr(Ve)?Ve.left:Ve);return!!P0(Nr(kt)&&(kt.operatorToken.kind===57||kt.operatorToken.kind===61)?kt.right:kt,On)}return!1}function Cg(z){for(;Nr(z.parent);)z=z.parent;return z.parent}function ip(z,Ve=o){if(He(z))return $3(Ve,z.escapedText);{let kt=ip(z.expression);return kt&&kt.exports&&kt.exports.get(iy(z))}}function Yc(z,Ve,kt){if(z1(e,z))return e.symbol;if(He(z))return kt(z,ip(z),Ve);{let On=Yc(z.expression,Ve,kt),yo=ak(z);return eo(yo)&&C.fail("unexpected PrivateIdentifier"),kt(yo,On&&On.exports&&On.exports.get(iy(z)),On)}}function bh(z){!e.commonJsModuleIndicator&&$u(z,!1)&&rp(z)}function bf(z){if(z.kind===264)Sc(z,32,899503);else{let yo=z.name?z.name.escapedText:"__class";Go(z,32,yo),z.name&&pe.add(z.name.escapedText)}let{symbol:Ve}=z,kt=Xe(4194308,"prototype"),On=Ve.exports.get(kt.escapedName);On&&(z.name&&us(z.name,z),e.bindDiagnostics.push(xe(On.declarations[0],f.Duplicate_identifier_0,wl(kt)))),Ve.exports.set(kt.escapedName,kt),kt.parent=Ve}function u_(z){return C0(z)?Sc(z,128,899967):Sc(z,256,899327)}function oe(z){if(q&&As(z,z.name),!Qo(z.name)){let Ve=z.kind===261?z:z.parent.parent;Ir(z)&&h1(Ve)&&!x0(z)&&!(I0(z)&32)?xn(z,2097152,2097152):nG(z)?Sc(z,2,111551):O0(z)?xn(z,1,111551):xn(z,1,111550)}}function ut(z){if(!(z.kind===342&&o.kind!==324)&&(q&&!(z.flags&33554432)&&As(z,z.name),Qo(z.name)?Go(z,1,"__"+z.parent.parameters.indexOf(z)):xn(z,1,111551),Dp(z,z.parent))){let Ve=z.parent.parent;Ne(Ve.symbol.members,Ve.symbol,z,4|(z.questionToken?16777216:0),0)}}function tn(z){!e.isDeclarationFile&&!(z.flags&33554432)&&nM(z)&&(Z|=4096),sc(z),q?(Fs(z),Sc(z,16,110991)):xn(z,16,110991)}function an(z){!e.isDeclarationFile&&!(z.flags&33554432)&&nM(z)&&(Z|=4096),v&&(z.flowNode=v),sc(z);let Ve=z.name?z.name.escapedText:"__function";return Go(z,16,Ve)}function wn(z,Ve,kt){return!e.isDeclarationFile&&!(z.flags&33554432)&&nM(z)&&(Z|=4096),v&&k6(z)&&(z.flowNode=v),oy(z)?Go(z,Ve,"__computed"):xn(z,Ve,kt)}function or(z){let Ve=Dn(z,kt=>kt.parent&&M1(kt.parent)&&kt.parent.extendsType===kt);return Ve&&Ve.parent}function ti(z){if(vm(z.parent)){let Ve=X6(z.parent);Ve?(C.assertNode(Ve,R_),Ve.locals??(Ve.locals=da()),Ne(Ve.locals,void 0,z,262144,526824)):xn(z,262144,526824)}else if(z.parent.kind===196){let Ve=or(z.parent);Ve?(C.assertNode(Ve,R_),Ve.locals??(Ve.locals=da()),Ne(Ve.locals,void 0,z,262144,526824)):Go(z,262144,re(z))}else xn(z,262144,526824)}function Ti(z){let Ve=my(z);return Ve===1||Ve===2&&Sb(t)}function $i(z){if(!(v.flags&1))return!1;if(v===de&&(wL(z)&&z.kind!==243||z.kind===264||uSe(z,t)||z.kind===268&&Ti(z))&&(v=fe,!t.allowUnreachableCode)){let kt=ore(t)&&!(z.flags&33554432)&&(!ac(z)||!!(ty(z.declarationList)&7)||z.declarationList.declarations.some(On=>!!On.initializer));Pje(z,t,(On,yo)=>si(kt,On,yo,f.Unreachable_code_detected))}return!0}}function uSe(e,t){return e.kind===267&&(!C0(e)||Sb(t))}function Pje(e,t,r){if(ji(e)&&i(e)&&ea(e.parent)){let{statements:s}=e.parent,l=DV(s,e);Sz(l,i,(u,d)=>r(l[u],l[d-1]))}else r(e,e);function i(s){return!Ql(s)&&!o(s)&&!(ac(s)&&!(ty(s)&7)&&s.declarationList.declarations.some(l=>!l.initializer))}function o(s){switch(s.kind){case 265:case 266:return!0;case 268:return my(s)!==1;case 267:return!uSe(s,t);default:return!1}}}function z1(e,t){let r=0,i=aL();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),XS(t)||_g(t))return!0;if(He(t)){let o=$3(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),id(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function hU(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(k6(e))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return Yo(e.parent)||$l(e.parent)?0:34}return 0}function $3(e,t){var r,i,o,s;let l=(i=(r=ni(e,R_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Yi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(ah(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}function Qoe(e,t,r,i,o,s,l,u,d,g){return _;function _(v=()=>!0){let E=[],A=[];return{walkType:ye=>{try{return R(ye),{visitedTypes:GA(E),visitedSymbols:GA(A)}}finally{hi(E),hi(A)}},walkSymbol:ye=>{try{return q(ye),{visitedTypes:GA(E),visitedSymbols:GA(A)}}finally{hi(E),hi(A)}}};function R(ye){if(!(!ye||E[ye.id]||(E[ye.id]=ye,q(ye.symbol)))){if(ye.flags&524288){let K=ye,pe=K.objectFlags;pe&4&&N(ye),pe&32&&G(ye),pe&3&&J(ye),pe&24&&Z(K)}ye.flags&262144&&P(ye),ye.flags&3145728&&k(ye),ye.flags&4194304&&F(ye),ye.flags&8388608&&O(ye)}}function N(ye){R(ye.target),Je(g(ye),R)}function P(ye){R(u(ye))}function k(ye){Je(ye.types,R)}function F(ye){R(ye.type)}function O(ye){R(ye.objectType),R(ye.indexType),R(ye.constraint)}function G(ye){R(ye.typeParameter),R(ye.constraintType),R(ye.templateType),R(ye.modifiersType)}function j(ye){let ie=t(ye);ie&&R(ie.type),Je(ye.typeParameters,R);for(let K of ye.parameters)q(K);R(e(ye)),R(r(ye))}function J(ye){Z(ye),Je(ye.typeParameters,R),Je(i(ye),R),R(ye.thisType)}function Z(ye){let ie=o(ye);for(let K of ie.indexInfos)R(K.keyType),R(K.type);for(let K of ie.callSignatures)j(K);for(let K of ie.constructSignatures)j(K);for(let K of ie.properties)q(K)}function q(ye){if(!ye)return!1;let ie=Ta(ye);if(A[ie])return!1;if(A[ie]=ye,!v(ye))return!0;let K=s(ye);return R(K),ye.exports&&ye.exports.forEach(q),Je(ye.declarations,pe=>{if(pe.type&&pe.type.kind===187){let de=pe.type,fe=l(d(de.exprName));q(fe)}}),!1}}}var hy={};x(hy,{RelativePreference:()=>pSe,countPathComponents:()=>eF,forEachFileNameOfModule:()=>ySe,getLocalModuleSpecifierBetweenFileNames:()=>Fje,getModuleSpecifier:()=>wje,getModuleSpecifierPreferences:()=>Pw,getModuleSpecifiers:()=>hSe,getModuleSpecifiersWithCacheInfo:()=>_Se,getNodeModulesPackageName:()=>Oje,tryGetJSExtensionForFile:()=>gU,tryGetModuleSpecifiersFromCache:()=>Wje,tryGetRealFileNameForNonJsDeclarationFileName:()=>ESe,updateModuleSpecifier:()=>kje});var Lje=Wh(e=>{try{let t=e.indexOf("/");if(t!==0)return new RegExp(e);let r=e.lastIndexOf("/");if(t===r)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==r;)if(e[t-1]!=="\\")return new RegExp(e);let i=e.substring(r+1).replace(/[^iu]/g,"");return e=e.substring(1,r),new RegExp(e,i)}catch{return}}),pSe=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(pSe||{});function Pw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:r},i,o,s,l){let u=d();return{excludeRegexes:r,relativePreference:l!==void 0?td(l)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:g=>{let _=yU(s,i,o),v=g!==_?d(g):u,E=ru(o);if((g??_)===99&&3<=E&&E<=99)return LD(o,s.fileName)?[3,2]:[2];if(ru(o)===1)return v===2?[2,1]:[1,2];let A=LD(o,s.fileName);switch(v){case 2:return A?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return A?[1,0,3,2]:[1,0,2];case 0:return A?[0,1,3,2]:[0,1,2];default:C.assertNever(v)}}};function d(g){if(l!==void 0){if(bg(l))return 2;if(el(l,"/index"))return 1}return yre(t,g??yU(s,i,o),o,hg(s)?s:void 0)}}function kje(e,t,r,i,o,s,l={}){let u=fSe(e,t,r,i,o,Pw({},o,e,t,s),{},l);if(u!==s)return u}function wje(e,t,r,i,o,s={}){return fSe(e,t,r,i,o,Pw({},o,e,t),{},s)}function Oje(e,t,r,i,o,s={}){let l=Z3(t.fileName,i),u=vSe(l,r,i,o,e,s);return Hn(u,d=>tae(d,l,t,i,e,o,!0,s.overrideImportMode))}function fSe(e,t,r,i,o,s,l,u={}){let d=Z3(r,o),g=vSe(d,i,o,l,e,u);return Hn(g,_=>tae(_,d,t,o,e,l,void 0,u.overrideImportMode))||Zoe(i,d,e,o,u.overrideImportMode||yU(t,o,e),s)}function Wje(e,t,r,i,o={}){let s=mSe(e,t,r,i,o);return s[1]&&{kind:s[0],moduleSpecifiers:s[1],computedWithoutCache:!1}}function mSe(e,t,r,i,o={}){var s;let l=FL(e);if(!l)return ae;let u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),d=u?.get(t.path,l.path,i,o);return[d?.kind,d?.moduleSpecifiers,l,d?.modulePaths,u]}function hSe(e,t,r,i,o,s,l={}){return _Se(e,t,r,i,o,s,l,!1).moduleSpecifiers}function _Se(e,t,r,i,o,s,l={},u){let d=!1,g=jje(e,t);if(g)return{kind:"ambient",moduleSpecifiers:u&&Q3(g,s.autoImportSpecifierExcludeRegexes)?ae:[g],computedWithoutCache:d};let[_,v,E,A,R]=mSe(e,i,o,s,l);if(v)return{kind:_,moduleSpecifiers:v,computedWithoutCache:d};if(!E)return{kind:void 0,moduleSpecifiers:ae,computedWithoutCache:d};d=!0,A||(A=bSe(Z3(i.fileName,o),E.originalFileName,o,r,l));let N=zje(A,r,i,o,s,l,u);return R?.set(i.path,E.path,s,l,N.kind,A,N.moduleSpecifiers),N}function Fje(e,t,r,i,o,s={}){let l=Z3(e.fileName,i),u=s.overrideImportMode??e.impliedNodeFormat;return Zoe(t,l,r,i,u,Pw(o,i,r,e))}function zje(e,t,r,i,o,s={},l){let u=Z3(r.fileName,i),d=Pw(o,i,t,r),g=hg(r)&&Je(e,N=>Je(i.getFileIncludeReasons().get(ks(N.path,i.getCurrentDirectory(),u.getCanonicalFileName)),P=>{if(P.kind!==3||P.file!==r.path)return;let k=i.getModeForResolutionAtIndex(r,P.index),F=s.overrideImportMode??i.getDefaultResolutionModeForFile(r);if(k!==F&&k!==void 0&&F!==void 0)return;let O=Xw(r,P.index).text;return d.relativePreference!==1||!Qp(O)?O:void 0}));if(g)return{kind:void 0,moduleSpecifiers:[g],computedWithoutCache:!0};let _=vt(e,N=>N.isInNodeModules),v,E,A,R;for(let N of e){let P=N.isInNodeModules?tae(N,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(P&&!(l&&Q3(P,d.excludeRegexes))&&(v=Bn(v,P),N.isRedirect))return{kind:"node_modules",moduleSpecifiers:v,computedWithoutCache:!0};let k=Zoe(N.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,d,N.isRedirect||!!P);!k||l&&Q3(k,d.excludeRegexes)||(N.isRedirect?A=Bn(A,k):fB(k)?kb(k)?R=Bn(R,k):E=Bn(E,k):(l||!_||N.isInNodeModules)&&(R=Bn(R,k)))}return E?.length?{kind:"paths",moduleSpecifiers:E,computedWithoutCache:!0}:A?.length?{kind:"redirect",moduleSpecifiers:A,computedWithoutCache:!0}:v?.length?{kind:"node_modules",moduleSpecifiers:v,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:R??ae,computedWithoutCache:!0}}function Q3(e,t){return vt(t,r=>{var i;return!!((i=Lje(r))!=null&&i.test(e))})}function Z3(e,t){e=To(e,t.getCurrentDirectory());let r=Fd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ci(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function Zoe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l,excludeRegexes:u},d){let{baseUrl:g,paths:_,rootDirs:v}=r;if(d&&!_)return;let{sourceDirectory:E,canonicalSourceDirectory:A,getCanonicalFileName:R}=t,N=s(o),P=v&&qje(v,e,E,R,N,r)||Lw(wS(lf(E,e,R)),N,r);if(!g&&!_&&!wk(r)||l===0)return d?void 0:P;let k=To(aW(r,i)||g,i.getCurrentDirectory()),F=nae(e,k,R);if(!F)return d?void 0:P;let O=d?void 0:Hje(e,E,r,i,o,Kje(N)),G=d||O===void 0?_&&TSe(F,_,N,k,R,i,r):void 0;if(d)return G;let j=O??(G===void 0&&g!==void 0?Lw(F,N,r):G);if(!j)return P;let J=Q3(P,u),Z=Q3(j,u);if(!J&&Z)return P;if(J&&!Z||l===1&&!Qp(j))return j;if(l===3&&!Qp(j)){let q=r.configFilePath?ks(ci(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ye=ks(e,q,R),ie=po(A,q),K=po(ye,q);if(ie&&!K||!ie&&K)return j;let pe=eae(i,ci(ye)),de=eae(i,E),fe=!tE(i);return Bje(pe,de,fe)?P:j}return ASe(j)||eF(P)<eF(j)?P:j}function Bje(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Zg(e,t,r)===0}function eF(e){let t=0;for(let r=po(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function gSe(e,t){return E0(t.isRedirect,e.isRedirect)||Gk(e.path,t.path)}function eae(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):O_(e,t,r=>e.fileExists(Qr(r,"package.json"))?r:void 0)}function ySe(e,t,r,i,o){var s,l;let u=ay(r),d=r.getCurrentDirectory(),g=r.isSourceOfProjectReferenceRedirect(t)?(s=r.getRedirectFromSourceFile(t))==null?void 0:s.outputDts:void 0,_=ks(t,d,u),v=r.redirectTargetsMap.get(_)||ae,A=[...g?[g]:ae,t,...v].map(F=>To(F,d)),R=!Vn(A,xM);if(!i){let F=Je(A,O=>!(R&&xM(O))&&o(O,g===O));if(F)return F}let N=(l=r.getSymlinkCache)==null?void 0:l.call(r).getSymlinkedDirectoriesByRealpath(),P=To(t,d);return N&&O_(r,ci(P),F=>{let O=N.get(Hc(ks(F,d,u)));if(O)return _B(e,F,u)?!1:Je(A,G=>{if(!_B(G,F,u))return;let j=lf(F,G,u);for(let J of O){let Z=rb(J,j),q=o(Z,G===g);if(R=!0,q)return q}})})||(i?Je(A,F=>R&&xM(F)?void 0:o(F,F===g)):void 0)}function vSe(e,t,r,i,o,s={}){var l;let u=ks(e.importingSourceFileName,r.getCurrentDirectory(),ay(r)),d=ks(t,r.getCurrentDirectory(),ay(r)),g=(l=r.getModuleSpecifierCache)==null?void 0:l.call(r);if(g){let v=g.get(u,d,i,s);if(v?.modulePaths)return v.modulePaths}let _=bSe(e,t,r,o,s);return g&&g.setModulePaths(u,d,i,s,_),_}var Gje=["dependencies","peerDependencies","optionalDependencies"];function Vje(e){let t;for(let r of Gje){let i=e[r];i&&typeof i=="object"&&(t=so(t,Oh(i)))}return t}function bSe(e,t,r,i,o){var s,l;let u=(s=r.getModuleResolutionCache)==null?void 0:s.call(r),d=(l=r.getSymlinkCache)==null?void 0:l.call(r);if(u&&d&&r.readFile&&!kb(e.importingSourceFileName)){C.type(r);let v=tP(u.getPackageJsonInfoCache(),r,{}),E=nP(ci(e.importingSourceFileName),v);if(E){let A=Vje(E.contents.packageJsonContent);for(let R of A||ae){let N=SE(R,Qr(E.packageDirectory,"package.json"),i,r,u,void 0,o.overrideImportMode);d.setSymlinksFromResolution(N.resolvedModule)}}}let g=new Map;ySe(e.importingSourceFileName,t,r,!0,(v,E)=>{let A=kb(v);g.set(v,{path:e.getCanonicalFileName(v),isRedirect:E,isInNodeModules:A})});let _=[];for(let v=e.canonicalSourceDirectory;g.size!==0;){let E=Hc(v),A;g.forEach(({path:N,isRedirect:P,isInNodeModules:k},F)=>{po(N,E)&&((A||(A=[])).push({path:F,isRedirect:P,isInNodeModules:k}),g.delete(F))}),A&&(A.length>1&&A.sort(gSe),_.push(...A));let R=ci(v);if(R===v)break;v=R}if(g.size){let v=Co(g.entries(),([E,{isRedirect:A,isInNodeModules:R}])=>({path:E,isRedirect:A,isInNodeModules:R}));v.length>1&&v.sort(gSe),_.push(...v)}return _}function jje(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>iG(l)&&(!f1(l)||!td(Wf(l.name))));if(i)return i.name.text;let s=Ui(e.declarations,l=>{var u,d,g,_;if(!pc(l))return;let v=N(l);if(!((u=v?.parent)!=null&&u.parent&&e_(v.parent)&&gu(v.parent.parent)&&Yi(v.parent.parent.parent)))return;let E=(_=(g=(d=v.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:_.expression;if(!E)return;let A=t.getSymbolAtLocation(E);if(!A)return;if((A?.flags&2097152?t.getAliasedSymbol(A):A)===l.symbol)return v.parent.parent;function N(P){for(;P.flags&8;)P=P.parent;return P}})[0];if(s)return s.name.text}function TSe(e,t,r,i,o,s,l){for(let d in t)for(let g of t[d]){let _=ya(g),v=nae(_,i,o)??_,E=v.indexOf("*"),A=r.map(R=>({ending:R,value:Lw(e,[R],l)}));if(Tg(v)&&A.push({ending:void 0,value:e}),E!==-1){let R=v.substring(0,E),N=v.substring(E+1);for(let{ending:P,value:k}of A)if(k.length>=R.length+N.length&&po(k,R)&&el(k,N)&&u({ending:P,value:k})){let F=k.substring(R.length,k.length-N.length);if(!Qp(F))return oE(d,F)}}else if(vt(A,R=>R.ending!==0&&v===R.value)||vt(A,R=>R.ending===0&&v===R.value&&u(R)))return d}function u({ending:d,value:g}){return d!==0||g===Lw(e,[d],l,s)}}function tF(e,t,r,i,o,s,l,u,d,g){if(typeof s=="string"){let _=!tE(t),v=()=>t.getCommonSourceDirectory(),E=d&&qU(r,e,_,v),A=d&&HU(r,e,_,v),R=To(Qr(i,s),void 0),N=iE(r)?bu(r)+gU(r,e):void 0,P=g&&_re(r);switch(u){case 0:if(N&&Zg(N,R,_)===0||Zg(r,R,_)===0||E&&Zg(E,R,_)===0||A&&Zg(A,R,_)===0)return{moduleFileToTry:o};break;case 1:if(P&&dm(r,R,_)){let G=lf(R,r,!1);return{moduleFileToTry:To(Qr(Qr(o,s),G),void 0)}}if(N&&dm(R,N,_)){let G=lf(R,N,!1);return{moduleFileToTry:To(Qr(Qr(o,s),G),void 0)}}if(!P&&dm(R,r,_)){let G=lf(R,r,!1);return{moduleFileToTry:To(Qr(Qr(o,s),G),void 0)}}if(E&&dm(R,E,_)){let G=lf(R,E,!1);return{moduleFileToTry:Qr(o,G)}}if(A&&dm(R,A,_)){let G=H8(lf(R,A,!1),_U(A,e));return{moduleFileToTry:Qr(o,G)}}break;case 2:let k=R.indexOf("*"),F=R.slice(0,k),O=R.slice(k+1);if(P&&po(r,F,_)&&el(r,O,_)){let G=r.slice(F.length,r.length-O.length);return{moduleFileToTry:oE(o,G)}}if(N&&po(N,F,_)&&el(N,O,_)){let G=N.slice(F.length,N.length-O.length);return{moduleFileToTry:oE(o,G)}}if(!P&&po(r,F,_)&&el(r,O,_)){let G=r.slice(F.length,r.length-O.length);return{moduleFileToTry:oE(o,G)}}if(E&&po(E,F,_)&&el(E,O,_)){let G=E.slice(F.length,E.length-O.length);return{moduleFileToTry:oE(o,G)}}if(A&&po(A,F,_)&&el(A,O,_)){let G=A.slice(F.length,A.length-O.length),j=oE(o,G),J=gU(A,e);return J?{moduleFileToTry:H8(j,J)}:void 0}break}}else{if(Array.isArray(s))return Je(s,_=>tF(e,t,r,i,o,_,l,u,d,g));if(typeof s=="object"&&s!==null){for(let _ of Oh(s))if(_==="default"||l.indexOf(_)>=0||Nw(l,_)){let v=s[_],E=tF(e,t,r,i,o,v,l,u,d,g);if(E)return E}}}}function Uje(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&X3(s)?Je(Oh(s),u=>{let d=To(Qr(o,u),void 0),g=el(u,"/")?1:u.includes("*")?2:0;return tF(e,t,r,i,d,s[u],l,g,!1,!1)}):tF(e,t,r,i,o,s,l,0,!1,!1)}function Hje(e,t,r,i,o,s){var l,u,d;if(!i.readFile||!wk(r))return;let g=eae(i,t);if(!g)return;let _=Qr(g,"package.json"),v=(u=(l=i.getPackageJsonInfoCache)==null?void 0:l.call(i))==null?void 0:u.getPackageJsonInfo(_);if(Ooe(v)||!i.fileExists(_))return;let E=v?.contents.packageJsonContent||Ck(i.readFile(_)),A=E?.imports;if(!A)return;let R=Lb(r,o);return(d=Je(Oh(A),N=>{if(!po(N,"#")||N==="#"||po(N,"#/"))return;let P=el(N,"/")?1:N.includes("*")?2:0;return tF(r,i,e,g,N,A[N],R,P,!0,s)}))==null?void 0:d.moduleFileToTry}function qje(e,t,r,i,o,s){let l=SSe(t,e,i);if(l===void 0)return;let u=SSe(r,e,i),d=Ki(u,_=>Vt(l,v=>wS(lf(_,v,i)))),g=kz(d,Gk);if(g)return Lw(g,o,s)}function tae({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,d,g){if(!s.fileExists||!s.readFile)return;let _=VW(e);if(!_)return;let E=Pw(u,s,l,o).getAllowedEndingsInPreferredOrder(),A=e,R=!1;if(!d){let G=_.packageRootIndex,j;for(;;){let{moduleFileToTry:J,packageRootPath:Z,blockedByExports:q,verbatimFromExports:ye}=O(G);if(ru(l)!==1){if(q)return;if(ye)return J}if(Z){A=Z,R=!0;break}if(j||(j=J),G=e.indexOf(Js,G+1),G===-1){A=Lw(j,E,l,s);break}}}if(t&&!R)return;let N=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),P=r(A.substring(0,_.topLevelNodeModulesIndex));if(!(po(i,P)||N&&po(r(N),P)))return;let k=A.substring(_.topLevelPackageNameIndex+1),F=rP(k);return ru(l)===1&&F===k?void 0:F;function O(G){var j,J;let Z=e.substring(0,G),q=Qr(Z,"package.json"),ye=e,ie=!1,K=(J=(j=s.getPackageJsonInfoCache)==null?void 0:j.call(s))==null?void 0:J.getPackageJsonInfo(q);if(H3(K)||K===void 0&&s.fileExists(q)){let pe=K?.contents.packageJsonContent||Ck(s.readFile(q)),de=g||yU(o,s,l);if(kk(l)){let xe=Z.substring(_.topLevelPackageNameIndex+1),Y=rP(xe),Ce=Lb(l,de),Xe=pe?.exports?Uje(l,s,e,Z,Y,pe.exports,Ce):void 0;if(Xe)return{...Xe,verbatimFromExports:!0};if(pe?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let fe=pe?.typesVersions?j3(pe.typesVersions):void 0;if(fe){let xe=e.slice(Z.length+1),Y=TSe(xe,fe.paths,E,Z,r,s,l);Y===void 0?ie=!0:ye=Qr(Z,Y)}let ve=pe?.typings||pe?.types||pe?.main||"index.js";if(Bo(ve)&&!(ie&&RV(jk(fe.paths),ve))){let xe=ks(ve,Z,r),Y=r(ye);if(bu(xe)===bu(Y))return{packageRootPath:Z,moduleFileToTry:ye};if(pe?.type!=="module"&&!Yl(Y,WW)&&po(Y,xe)&&ci(Y)===Jy(xe)&&bu(xc(Y))==="index")return{packageRootPath:Z,moduleFileToTry:ye}}}else{let pe=r(ye.substring(_.packageRootIndex+1));if(pe==="index.d.ts"||pe==="index.js"||pe==="index.ts"||pe==="index.tsx")return{moduleFileToTry:ye,packageRootPath:Z}}return{moduleFileToTry:ye}}}function Jje(e,t){if(!e.fileExists)return;let r=la(vM({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function SSe(e,t,r){return Ui(t,i=>{let o=nae(e,i,r);return o!==void 0&&ASe(o)?void 0:o})}function Lw(e,t,r,i){if(Yl(e,[".json",".mjs",".cjs"]))return e;let o=bu(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if(Yl(e,[".mts",".cts"])&&l!==-1&&l<s)return e;if(Yl(e,[".d.mts",".mts",".d.cts",".cts"]))return o+_U(e,r);if(!Yl(e,[".d.ts"])&&Yl(e,[".ts"])&&e.includes(".d."))return ESe(e);switch(t[0]){case 0:let u=yR(o,"/index");return i&&u!==o&&Jje(i,u)?o:u;case 1:return o;case 2:return o+_U(e,r);case 3:if(ad(e)){let d=t.findIndex(g=>g===0||g===1);return d!==-1&&d<s?o:o+_U(e,r)}return e;default:return C.assertNever(t[0])}}function ESe(e){let t=xc(e);if(!el(e,".ts")||!t.includes(".d.")||Yl(t,[".d.ts"]))return;let r=Vk(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function _U(e,t){return gU(e,t)??C.fail(`Extension ${TM(e)} is unsupported:: FileName:: ${e}`)}function gU(e,t){let r=Tg(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 nae(e,t,r){let i=ER(t,e,t,r,!1);return Rp(i)?void 0:i}function ASe(e){return po(e,"..")}function yU(e,t,r){return hg(e)?t.getDefaultResolutionModeForFile(e):SF(e,r)}function Kje(e){let t=e.indexOf(3);return t>-1&&t<e.indexOf(2)}var rae=/^".+"$/,vU="(anonymous)",ISe=1,xSe=1,RSe=1,DSe=1,bU=(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))(bU||{}),iae=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),TU=(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))(TU||{}),SU=(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))(SU||{}),Xje=P8(NSe,$je),EU=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),CSe=class{};function Yje(){this.flags=0}function ss(e){return e.id||(e.id=xSe,xSe++),e.id}function Ta(e){return e.id||(e.id=ISe,ISe++),e.id}function AU(e,t){let r=my(e);return r===1||t&&r===2}function oae(e){var t=[],r=n=>{t.push(n)},i,o,s=Rd.getSymbolConstructor(),l=Rd.getTypeConstructor(),u=Rd.getSignatureConstructor(),d=0,g=0,_=0,v=0,E=0,A=0,R,N,P=!1,k=da(),F=[1],O=e.getCompilerOptions(),G=Ga(O),j=vu(O),J=!!O.experimentalDecorators,Z=Ok(O),q=yV(O),ye=SI(O),ie=Vd(O,"strictNullChecks"),K=Vd(O,"strictFunctionTypes"),pe=Vd(O,"strictBindCallApply"),de=Vd(O,"strictPropertyInitialization"),fe=Vd(O,"strictBuiltinIteratorReturn"),ve=Vd(O,"noImplicitAny"),xe=Vd(O,"noImplicitThis"),Y=Vd(O,"useUnknownInCatchVariables"),Ce=O.exactOptionalPropertyTypes,Xe=!!O.noUncheckedSideEffectImports,Se=kmt(),re=yyt(),be=D5(),Ne=cle(O,be.syntacticBuilderResolver),Be=Ore({evaluateElementAccessExpression:lgt,evaluateEntityNameExpression:C3e}),lt=da(),ce=ja(4,"undefined");ce.declarations=[];var De=ja(1536,"globalThis",8);De.exports=lt,De.declarations=[],lt.set(De.escapedName,De);var ge=ja(4,"arguments"),je=ja(4,"require"),Ge=O.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",We=!O.verbatimModuleSyntax,at,Wt,cn=0,gn,Kn=0,_t=zV({compilerOptions:O,requireSymbol:je,argumentsSymbol:ge,globals:lt,getSymbolOfDeclaration:Wr,error:Qe,getRequiresScopeChangeCache:oS,setRequiresScopeChangeCache:gC,lookup:Sd,onPropertyWithInvalidInitializer:t2,onFailedToResolveSymbol:zr,onSuccessfullyResolvedSymbol:xu}),en=zV({compilerOptions:O,requireSymbol:je,argumentsSymbol:ge,globals:lt,getSymbolOfDeclaration:Wr,error:Qe,getRequiresScopeChangeCache:oS,setRequiresScopeChangeCache:gC,lookup:tft});let ir={getNodeCount:()=>_u(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>_u(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>_u(e.getSourceFiles(),(n,a)=>n+a.symbolCount,g),getTypeCount:()=>d,getInstantiationCount:()=>_,getRelationCacheSizes:()=>({assignable:qd.size,identity:Jd.size,subtype:U_.size,strictSubtype:cl.size}),isUndefinedSymbol:n=>n===ce,isArgumentsSymbol:n=>n===ge,isUnknownSymbol:n=>n===ne,getMergedSymbol:os,symbolIsValue:An,getDiagnostics:W3e,getGlobalDiagnostics:Lgt,getRecursionIdentity:yY,getUnmatchedProperties:L_e,getTypeOfSymbolAtLocation:(n,a)=>{let c=jo(a);return c?put(n,c):nt},getTypeOfSymbol:_r,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=jo(n,to);return c===void 0?C.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(C.assert(Dp(c,c.parent)),HE(c,Cl(a)))},getDeclaredTypeOfSymbol:qs,getPropertiesOfType:bs,getPropertyOfType:(n,a)=>Ea(n,Cl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let p=jo(c);if(!p)return;let h=Cl(a),b=S9(h,p);return b?e$(n,b):void 0},getTypeOfPropertyOfType:(n,a)=>_n(n,Cl(a)),getIndexInfoOfType:(n,a)=>Gg(n,a===0?gt:Bt),getIndexInfosOfType:Xd,getIndexInfosOfIndexSymbol:KX,getSignaturesOfType:na,getIndexTypeOfType:(n,a)=>zT(n,a===0?gt:Bt),getIndexType:n=>v_(n),getBaseTypes:Qm,getBaseTypeOfLiteralType:zy,getWidenedType:Xp,getWidenedLiteralType:qT,fillMissingTypeArguments:Wv,getTypeFromTypeNode:n=>{let a=jo(n,Ri);return a?Ji(a):nt},getParameterType:Lh,getParameterIdentifierInfoAtPosition:Xft,getPromisedTypeOfPromise:t8,getAwaitedType:n=>nR(n),getReturnTypeOfSignature:ps,isNullableType:T9,getNullableType:i9,getNonNullableType:By,getNonOptionalType:SY,getTypeArguments:rl,typeToTypeNode:be.typeToTypeNode,typePredicateToTypePredicateNode:be.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:be.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:be.signatureToSignatureDeclaration,symbolToEntityName:be.symbolToEntityName,symbolToExpression:be.symbolToExpression,symbolToNode:be.symbolToNode,symbolToTypeParameterDeclarations:be.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:be.symbolToParameterDeclaration,typeParameterToDeclaration:be.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=jo(n);return c?kgt(c,a):[]},getSymbolAtLocation:n=>{let a=jo(n);return a?om(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=jo(n);return a?Vgt(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=jo(n);return a?jgt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=jo(n,iu);return a?Ugt(a):void 0},getExportSymbolOfSymbol(n){return os(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=jo(n);return a?iR(a):nt},getTypeOfAssignmentPattern:n=>{let a=jo(n,ON);return a&&N$(a)||nt},getPropertySymbolOfDestructuringAssignment:n=>{let a=jo(n,He);return a?Hgt(a):void 0},signatureToString:(n,a,c,p)=>r0(n,jo(a),c,p),typeToString:(n,a,c)=>ar(n,jo(a),c),symbolToString:(n,a,c,p)=>uo(n,jo(a),c,p),typePredicateToString:(n,a,c)=>J_(n,jo(a),c),writeSignature:(n,a,c,p,h,b,I,w)=>r0(n,jo(a),c,p,h,b,I,w),writeType:(n,a,c,p,h,b,I)=>ar(n,jo(a),c,p,h,b,I),writeSymbol:(n,a,c,p,h)=>uo(n,jo(a),c,p,h),writeTypePredicate:(n,a,c,p)=>J_(n,jo(a),c,p),getAugmentedPropertiesOfType:Sye,getRootSymbols:H3e,getSymbolOfExpando:a$,getContextualType:(n,a)=>{let c=jo(n,St);if(c)return a&4?Zr(c,()=>Uu(c,a)):Uu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=jo(n,ny);return a?cge(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=jo(n,c1);return c&&age(c,a)},getContextualTypeForJsxAttribute:n=>{let a=jo(n,p6);return a&&a6e(a,void 0)},isContextSensitive:Df,getTypeOfPropertyOfContextualType:KT,getFullyQualifiedName:Rv,getResolvedSignature:(n,a,c)=>Ai(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:lo,getResolvedSignatureForSignatureHelp:(n,a,c)=>zt(n,()=>Ai(n,a,c,16)),getExpandedParameters:jwe,hasEffectiveRestParameter:tg,containsArgumentsReference:Ihe,getConstantValue:n=>{let a=jo(n,$3e);return a?L$(a):void 0},isValidPropertyAccess:(n,a)=>{let c=jo(n,ote);return!!c&&ift(c,Cl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let p=jo(n,qr);return!!p&&W6e(p,a,c)},getSignatureFromDeclaration:n=>{let a=jo(n,Yo);return a?Rf(a):void 0},isImplementationOfOverload:n=>{let a=jo(n,Yo);return a?X3e(a):void 0},getImmediateAliasedSymbol:JY,getAliasedSymbol:ud,getEmitResolver:e2,requiresAddingImplicitUndefined:K9,getExportsOfModule:Lx,getExportsAndPropertiesOfModule:SC,forEachExportAndPropertyOfModule:kx,getSymbolWalker:Qoe(Nst,em,ps,Qm,Dh,_r,pu,ju,Pu,rl),getAmbientModules:avt,getJsxIntrinsicTagNamesAt:Fpt,isOptionalParameter:n=>{let a=jo(n,to);return a?v4(a):!1},tryGetMemberInModuleExports:(n,a)=>eA(Cl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>wx(Cl(n),a),tryFindAmbientModule:n=>cOe(n,!0),getApparentType:Ru,getUnionType:pi,isTypeAssignableTo:aa,createAnonymousType:bl,createSignature:g_,createSymbol:ja,createIndexInfo:Vg,getAnyType:()=>Ue,getStringType:()=>gt,getStringLiteralType:Tp,getNumberType:()=>Bt,getNumberLiteralType:Ch,getBigIntType:()=>gr,getBigIntLiteralType:q5,getUnknownType:()=>Nt,createPromiseType:M9,createArrayType:Yd,getElementTypeOfArrayType:r9,getBooleanType:()=>jt,getFalseType:n=>n?tr:Jn,getTrueType:n=>n?ft:Mt,getVoidType:()=>In,getUndefinedType:()=>_e,getNullType:()=>Xt,getESSymbolType:()=>Qt,getNeverType:()=>yn,getNonPrimitiveType:()=>Ln,getOptionalType:()=>xt,getPromiseType:()=>B5(!1),getPromiseLikeType:()=>LOe(!1),getAnyAsyncIterableType:()=>{let n=G5(!1);if(n!==Zt)return Ly(n,[Ue,Ue,Ue])},isSymbolAccessible:n0,isArrayType:nm,isTupleType:Ka,isArrayLikeType:Bv,isEmptyAnonymousObjectType:eg,isTypeInvalidDueToUnionDiscriminant:ust,getExactOptionalProperties:Bct,getAllPossiblePropertiesOfTypes:pst,getSuggestedSymbolForNonexistentProperty:Sge,getSuggestedSymbolForNonexistentJSXAttribute:L6e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>w6e(n,Cl(a),c),getSuggestedSymbolForNonexistentModule:Ege,getSuggestedSymbolForNonexistentClassMember:P6e,getBaseConstraintOfType:Ld,getDefaultFromTypeParameter:n=>n&&n.flags&262144?hS(n):void 0,resolveName(n,a,c,p){return _t(a,Cl(n),c,void 0,!1,p)},getJsxNamespace:n=>Vi(Hm(n)),getJsxFragmentFactory:n=>{let a=Rye(n);return a&&Vi(Pu(a).escapedText)},getAccessibleSymbolChain:Nv,getTypePredicateOfSignature:em,resolveExternalModuleName:n=>{let a=jo(n,St);return a&&du(a,a,!0)},resolveExternalModuleSymbol:bp,tryGetThisTypeAt:(n,a,c)=>{let p=jo(n);return p&&nge(p,a,c)},getTypeArgumentConstraint:n=>{let a=jo(n,Ri);return a&&_ht(a)},getSuggestionDiagnostics:(n,a)=>{let c=jo(n,Yi)||C.fail("Could not determine parsed source file.");if(oD(c,O,e))return ae;let p;try{return i=a,bye(c),C.assert(!!(Vr(c).flags&1)),p=Xr(p,VE.getDiagnostics(c.fileName)),t3e(O3e(c),(h,b,I)=>{!rI(h)&&!w3e(b,!!(h.flags&33554432))&&(p||(p=[])).push({...I,category:2})}),p||ae}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(ir)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Na,isDeclarationVisible:K_,isPropertyAccessible:Ige,getTypeOnlyAliasDeclaration:Ah,getMemberOverrideModifierStatus:$_t,isTypeParameterPossiblyReferenced:X5,typeHasCallOrConstructSignatures:M$,getSymbolFlags:lp,getTypeArgumentsForResolvedSignature:Di,isLibType:IC};function Di(n){if(n.mapper!==void 0)return Wy((n.target||n).typeParameters,n.mapper)}function lo(n,a){let c=new Set,p=[];Zr(a,()=>Ai(n,p,void 0,0));for(let h of p)c.add(h);p.length=0,zt(a,()=>Ai(n,p,void 0,0));for(let h of p)c.add(h);return Co(c)}function zt(n,a){if(n=Dn(n,GB),n){let c=[],p=[];for(;n;){let b=Vr(n);if(c.push([b,b.resolvedSignature]),b.resolvedSignature=void 0,Ab(n)){let I=Jr(Wr(n)),w=I.type;p.push([I,w]),I.type=void 0}n=Dn(n.parent,GB)}let h=a();for(let[b,I]of c)b.resolvedSignature=I;for(let[b,I]of p)b.type=I;return h}return a()}function Zr(n,a){let c=Dn(n,c1);if(c){let h=n;do Vr(h).skipDirectInference=!0,h=h.parent;while(h&&h!==c)}P=!0;let p=zt(n,a);if(P=!1,c){let h=n;do Vr(h).skipDirectInference=void 0,h=h.parent;while(h&&h!==c)}return p}function Ai(n,a,c,p){let h=jo(n,c1);at=c;let b=h?UC(h,a,p):void 0;return at=void 0,b}var Ni=new Map,Pr=new Map,Ci=new Map,$e=new Map,At=new Map,mn=new Map,dr=new Map,ri=new Map,ai=new Map,qi=new Map,$o=new Map,Ia=new Map,Mn=new Map,Uo=new Map,ot=new Map,Ft=[],le=new Map,ht=new Set,ne=ja(4,"unknown"),Fe=ja(0,"__resolving__"),it=new Map,dt=new Map,Lt=new Set,Ue=Li(1,"any"),Rt=Li(1,"any",262144,"auto"),It=Li(1,"any",void 0,"wildcard"),Ot=Li(1,"any",void 0,"blocked string"),nt=Li(1,"error"),Kt=Li(1,"unresolved"),Sr=Li(1,"any",65536,"non-inferrable"),Oe=Li(1,"intrinsic"),Nt=Li(2,"unknown"),_e=Li(32768,"undefined"),B=ie?_e:Li(32768,"undefined",65536,"widening"),Ae=Li(32768,"undefined",void 0,"missing"),te=Ce?Ae:_e,xt=Li(32768,"undefined",void 0,"optional"),Xt=Li(65536,"null"),Le=ie?Xt:Li(65536,"null",65536,"widening"),gt=Li(4,"string"),Bt=Li(8,"number"),gr=Li(64,"bigint"),tr=Li(512,"false",void 0,"fresh"),Jn=Li(512,"false"),ft=Li(512,"true",void 0,"fresh"),Mt=Li(512,"true");ft.regularType=Mt,ft.freshType=ft,Mt.regularType=Mt,Mt.freshType=ft,tr.regularType=Jn,tr.freshType=tr,Jn.regularType=Jn,Jn.freshType=tr;var jt=pi([Jn,Mt]),Qt=Li(4096,"symbol"),In=Li(16384,"void"),yn=Li(131072,"never"),wt=Li(131072,"never",262144,"silent"),En=Li(131072,"never",void 0,"implicit"),xn=Li(131072,"never",void 0,"unreachable"),Ln=Li(67108864,"object"),ln=pi([gt,Bt]),Ii=pi([gt,Bt,Qt]),ra=pi([Bt,gr]),sa=pi([gt,Bt,jt,gr,Xt,_e]),zo=mA(["",""],[Bt]),Bl=K5(n=>n.flags&262144?pct(n):n,()=>"(restrictive mapper)"),xl=K5(n=>n.flags&262144?It:n,()=>"(permissive mapper)"),Ps=Li(131072,"never",void 0,"unique literal"),co=K5(n=>n.flags&262144?Ps:n,()=>"(unique literal mapper)"),Go,Sc=K5(n=>(Go&&(n===Fs||n===Ee||n===$)&&Go(!0),n),()=>"(unmeasurable reporter)"),$s=K5(n=>(Go&&(n===Fs||n===Ee||n===$)&&Go(!1),n),()=>"(unreliable reporter)"),Ra=bl(void 0,k,ae,ae,ae),Zl=bl(void 0,k,ae,ae,ae);Zl.objectFlags|=2048;var vf=bl(void 0,k,ae,ae,ae);vf.objectFlags|=141440;var Lo=ja(2048,"__type");Lo.members=da();var fa=bl(Lo,k,ae,ae,ae),is=bl(void 0,k,ae,ae,ae),qa=ie?pi([_e,Xt,is]):Nt,Zt=bl(void 0,k,ae,ae,ae);Zt.instantiations=new Map;var As=bl(void 0,k,ae,ae,ae);As.objectFlags|=262144;var Hl=bl(void 0,k,ae,ae,ae),sc=bl(void 0,k,ae,ae,ae),vd=bl(void 0,k,ae,ae,ae),Fs=Gu(),Ee=Gu();Ee.constraint=Fs;var $=Gu(),pt=Gu(),qt=Gu();qt.constraint=pt;var fn=b4(1,"<<unresolved>>",0,Ue),ur=g_(void 0,void 0,void 0,ae,Ue,void 0,0,0),si=g_(void 0,void 0,void 0,ae,nt,void 0,0,0),Dr=g_(void 0,void 0,void 0,ae,Ue,void 0,0,0),Fn=g_(void 0,void 0,void 0,ae,wt,void 0,0,0),ro=Vg(Bt,gt,!0),So=Vg(gt,Ue,!1),Ns=new Map,Da={get yieldType(){return C.fail("Not supported")},get returnType(){return C.fail("Not supported")},get nextType(){return C.fail("Not supported")}},Qs=h0(Ue,Ue,Ue),Ec=h0(wt,wt,wt),mc={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Hst,getGlobalIterableType:G5,getGlobalIterableIteratorType:kOe,getGlobalIteratorObjectType:Jst,getGlobalGeneratorType:Kst,getGlobalBuiltinIteratorTypes:qst,resolveIterationType:(n,a)=>nR(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},Hs={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Xst,getGlobalIterableType:nY,getGlobalIterableIteratorType:wOe,getGlobalIteratorObjectType:$st,getGlobalGeneratorType:Qst,getGlobalBuiltinIteratorTypes:Yst,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},Pl,vh=new Map,Pd=new Map,tf,rp,ze,Jt,er,go,Za,es,Va,Pc,tl,Ll,ql,nf,bd,ld,Gp,Eu,Jf,B_,Dg,Cg,ip,Yc,bh,bf,u_,oe,ut,tn,an,wn,or,ti,Ti,$i,z,Ve,kt,On,yo,ta,Eo,Vo,ml,Ca,cd,Vp,Tf,Kf,Ty,yv,zu,G_,Th,Am,Vb,Ye,mt,Yt,Rn,Qn=new Map,Lr=0,Yn=0,lr=0,Oi=!1,Ro=0,_i,Do,Qi,hl=[],op=[],Im=[],Td=0,xm=[],jp=[],fT=[],p_=0,V_=[],mT=[],j_=0,pC=Tp(""),QP=Ch(0),fC=q5({negative:!1,base10Value:"0"}),Ng=[],hT=[],WE=[],vv=0,FE=!1,yx=0,ZP=10,zE=[],vx=[],_T=[],mC=[],BE=[],bx=[],eS=[],jb=[],Tx=[],Sx=[],tS=[],Ub=[],bv=[],Sy=[],Ey=[],Ay=[],Hb=[],gT=[],GE=[],yT=0,ns=aM(),VE=aM(),hC=Kd(),Iy,xy,U_=new Map,cl=new Map,qd=new Map,ap=new Map,Jd=new Map,vT=new Map,Au=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",O.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return vyt(),ir;function H_(n){return!qr(n)||!He(n.name)||!qr(n.expression)&&!He(n.expression)?!1:He(n.expression)?Kr(n.expression)==="Symbol"&&pu(n.expression)===(wC("Symbol",1160127,void 0)||ne):He(n.expression.expression)?Kr(n.expression.name)==="Symbol"&&Kr(n.expression.expression)==="globalThis"&&pu(n.expression.expression)===De:!1}function Bu(n){return n?ot.get(n):void 0}function Rm(n,a){return n&&ot.set(n,a),a}function Hm(n){if(n){let a=Wn(n);if(a)if(Vm(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let h=Mo(c)?c[0]:c;if(a.localJsxFragmentFactory=qI(h.arguments.factory,G),st(a.localJsxFragmentFactory,TT,Nu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Pu(a.localJsxFragmentFactory).escapedText}let p=Rye(n);if(p)return a.localJsxFragmentFactory=p,a.localJsxFragmentNamespace=Pu(p).escapedText}else{let c=bT(a);if(c)return a.localJsxNamespace=c}}return Iy||(Iy="React",O.jsxFactory?(xy=qI(O.jsxFactory,G),st(xy,TT),xy&&(Iy=Pu(xy).escapedText)):O.reactNamespace&&(Iy=Cl(O.reactNamespace))),xy||(xy=L.createQualifiedName(L.createIdentifier(Vi(Iy)),"createElement")),Iy}function bT(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=Mo(a)?a[0]:a;if(n.localJsxFactory=qI(c.arguments.factory,G),st(n.localJsxFactory,TT,Nu),n.localJsxFactory)return n.localJsxNamespace=Pu(n.localJsxFactory).escapedText}}function TT(n){return uh(n,-1,-1),kn(n,TT,void 0)}function e2(n,a,c){return c||W3e(n,a),re}function _C(n,a,...c){let p=n?Ar(n,a,...c):Il(a,...c),h=ns.lookup(p);return h||(ns.add(p),p)}function Tv(n,a,c,...p){let h=Qe(a,c,...p);return h.skippedOn=n,h}function nS(n,a,...c){return n?Ar(n,a,...c):Il(a,...c)}function Qe(n,a,...c){let p=nS(n,a,...c);return ns.add(p),p}function jE(n){let c=Wn(n).fileName;return Yl(c,[".cts",".cjs"])?f.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:f.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Mg(n,a){n?ns.add(a):VE.add({...a,category:2})}function qm(n,a,c,...p){if(a.pos<0||a.end<0){if(!n)return;let h=Wn(a);Mg(n,"message"in c?Fc(h,0,0,c,...p):pG(h,c));return}Mg(n,"message"in c?Ar(a,c,...p):mg(Wn(a),a,c))}function Sv(n,a,c,...p){let h=Qe(n,c,...p);if(a){let b=Ar(n,f.Did_you_forget_to_use_await);pa(h,b)}return h}function qb(n,a){let c=Array.isArray(n)?Je(n,DB):DB(n);return c&&pa(a,Ar(c,f.The_declaration_was_marked_as_deprecated_here)),VE.add(a),a}function Iu(n){let a=$c(n);return a&&et(n.declarations)>1?a.flags&64?vt(n.declarations,Sh):Vn(n.declarations,Sh):!!n.valueDeclaration&&Sh(n.valueDeclaration)||et(n.declarations)&&Vn(n.declarations,Sh)}function Sh(n){return!!(RS(n)&536870912)}function Dm(n,a,c){let p=Ar(n,f._0_is_deprecated,c);return qb(a,p)}function ST(n,a,c,p){let h=c?Ar(n,f.The_signature_0_of_1_is_deprecated,p,c):Ar(n,f._0_is_deprecated,p);return qb(a,h)}function ja(n,a,c){g++;let p=new s(n|33554432,a);return p.links=new CSe,p.links.checkFlags=c||0,p}function Sf(n,a){let c=ja(1,n);return c.links.type=a,c}function Ev(n,a){let c=ja(4,n);return c.links.type=a,c}function UE(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 Ry(n,a){a.mergeId||(a.mergeId=RSe,RSe++),zE[a.mergeId]=n}function rS(n){let a=ja(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)),Ry(a,n),a}function Xf(n,a,c=!1){if(!(n.flags&UE(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let b=hc(n);if(b===ne)return a;if(!(b.flags&UE(a.flags))||(a.flags|b.flags)&67108864)n=rS(b);else return p(n,a),a}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&YN(n,a.valueDeclaration),Xr(n.declarations,a.declarations),a.members&&(n.members||(n.members=da()),f_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=da()),f_(n.exports,a.exports,c,n)),c||Ry(n,a)}else n.flags&1024?n!==De&&Qe(a.declarations&&Oo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,uo(n)):p(n,a);return n;function p(b,I){let w=!!(b.flags&384||I.flags&384),U=!!(b.flags&2||I.flags&2),H=w?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:U?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Q=I.declarations&&Wn(I.declarations[0]),Ie=b.declarations&&Wn(b.declarations[0]),Te=zN(Q,O.checkJs),Ze=zN(Ie,O.checkJs),Tt=uo(I);if(Q&&Ie&&Pl&&!w&&Q!==Ie){let Dt=Zg(Q.path,Ie.path)===-1?Q:Ie,$t=Dt===Q?Ie:Q,Tn=FA(Pl,`${Dt.path}|${$t.path}`,()=>({firstFile:Dt,secondFile:$t,conflictingSymbols:new Map})),nr=FA(Tn.conflictingSymbols,Tt,()=>({isBlockScoped:U,firstFileLocations:[],secondFileLocations:[]}));Te||h(nr.firstFileLocations,I),Ze||h(nr.secondFileLocations,b)}else Te||Pg(I,H,Tt,b),Ze||Pg(b,H,Tt,I)}function h(b,I){if(I.declarations)for(let w of I.declarations)Pf(b,w)}}function Pg(n,a,c,p){Je(n.declarations,h=>{ET(h,a,c,p.declarations)})}function ET(n,a,c,p){let h=(P0(n,!1)?bG(n):Oo(n))||n,b=_C(h,a,c);for(let I of p||ae){let w=(P0(I,!1)?bG(I):Oo(I))||I;if(w===h)continue;b.relatedInformation=b.relatedInformation||[];let U=Ar(w,f._0_was_also_declared_here,c),H=Ar(w,f.and_here);et(b.relatedInformation)>=5||vt(b.relatedInformation,Q=>_M(Q,H)===0||_M(Q,U)===0)||pa(b,et(b.relatedInformation)?H:U)}}function Av(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=da();return f_(c,n),f_(c,a),c}function f_(n,a,c=!1,p){a.forEach((h,b)=>{let I=n.get(b),w=I?Xf(I,h,c):os(h);p&&I&&(w.parent=p),n.set(b,w)})}function iS(n){var a,c,p;let h=n.parent;if(((a=h.symbol.declarations)==null?void 0:a[0])!==h){C.assert(h.symbol.declarations.length>1);return}if(N_(h))f_(lt,h.symbol.exports);else{let b=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,I=vp(n,n,b,!1,!0);if(!I)return;if(I=bp(I),I.flags&1920)if(vt(rp,w=>I===w.symbol)){let w=Xf(h.symbol,I,!0);ze||(ze=new Map),ze.set(n.text,w)}else{if((c=I.exports)!=null&&c.get("__export")&&((p=h.symbol.exports)!=null&&p.size)){let w=dhe(I,"resolvedExports");for(let[U,H]of Co(h.symbol.exports.entries()))w.has(U)&&!I.exports.has(U)&&Xf(w.get(U),H)}Xf(I,h.symbol)}else Qe(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function AT(){let n=ce.escapedName,a=lt.get(n);a?Je(a.declarations,c=>{AI(c)||ns.add(Ar(c,f.Declaration_name_conflicts_with_built_in_global_identifier_0,Vi(n)))}):lt.set(n,ce)}function Jr(n){if(n.flags&33554432)return n.links;let a=Ta(n);return vx[a]??(vx[a]=new CSe)}function Vr(n){let a=ss(n);return _T[a]||(_T[a]=new Yje)}function Sd(n,a,c){if(c){let p=os(n.get(a));if(p&&(p.flags&c||p.flags&2097152&&lp(p)&c))return p}}function HE(n,a){let c=n.parent,p=n.parent.parent,h=Sd(c.locals,a,111551),b=Sd(Y_(p.symbol),a,111551);return h&&b?[h,b]:C.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Dy(n,a){let c=Wn(n),p=Wn(a),h=sh(n);if(c!==p){if(j&&(c.externalModuleIndicator||p.externalModuleIndicator)||!O.outFile||fI(a)||n.flags&33554432||I(a,n))return!0;let H=e.getSourceFiles();return H.indexOf(c)<=H.indexOf(p)}if(a.flags&16777216||fI(a)||B_e(a))return!0;if(n.pos<=a.pos&&!(Po(n)&&$L(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===209){let H=w0(a,209);return H?Dn(H,Ha)!==Dn(n,Ha)||n.pos<H.pos:Dy(w0(n,261),a)}else{if(n.kind===261)return!b(n,a);if(ui(n)){let H=Dn(a,Q=>Q===n?"quit":va(Q)?Q.parent.parent===n:!J&&zc(Q)&&(Q.parent===n||Nl(Q.parent)&&Q.parent.parent===n||xL(Q.parent)&&Q.parent.parent===n||Po(Q.parent)&&Q.parent.parent===n||to(Q.parent)&&Q.parent.parent.parent===n));return H?!J&&zc(H)?!!Dn(a,Q=>Q===H?"quit":Yo(Q)&&!N0(Q)):!1:!0}else{if(Po(n))return!U(n,a,!1);if(Dp(n,n.parent))return!(q&&hd(n)===hd(a)&&I(a,n))}}return!0}if(a.parent.kind===282||a.parent.kind===278&&a.parent.isExportEquals||a.kind===278&&a.isExportEquals)return!0;if(I(a,n))return q&&hd(n)&&(Po(n)||Dp(n,n.parent))?!U(n,a,!0):!0;return!1;function b(H,Q){switch(H.parent.parent.kind){case 244:case 249:case 251:if(Jm(Q,H,h))return!0;break}let Ie=H.parent.parent;return jS(Ie)&&Jm(Q,Ie.expression,h)}function I(H,Q){return w(H,Q)}function w(H,Q){return!!Dn(H,Ie=>{if(Ie===h)return"quit";if(Yo(Ie))return!N0(Ie);if($l(Ie))return Q.pos<H.pos;let Te=ni(Ie.parent,Po);if(Te&&Te.initializer===Ie){if(ua(Ie.parent)){if(Q.kind===175)return!0;if(Po(Q)&&hd(H)===hd(Q)){let Dt=Q.name;if(He(Dt)||eo(Dt)){let $t=_r(Wr(Q)),Tn=Un(Q.parent.members,$l);if(rgt(Dt,$t,Tn,Q.parent.pos,Ie.pos))return!0}}}else if(!(Q.kind===173&&!ua(Q))||hd(H)!==hd(Q))return!0}let Ze=ni(Ie.parent,zc);if(Ze&&Ze.expression===Ie){if(to(Ze.parent))return w(Ze.parent.parent.parent,Q)?!0:"quit";if(Nl(Ze.parent))return w(Ze.parent.parent,Q)?!0:"quit"}return!1})}function U(H,Q,Ie){return Q.end>H.end?!1:Dn(Q,Ze=>{if(Ze===H)return"quit";switch(Ze.kind){case 220:return!0;case 173:return Ie&&(Po(H)&&Ze.parent===H.parent||Dp(H,H.parent)&&Ze.parent===H.parent.parent)?"quit":!0;case 242:switch(Ze.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})===void 0}}function oS(n){return Vr(n).declarationRequiresScopeChange}function gC(n,a){Vr(n).declarationRequiresScopeChange=a}function t2(n,a,c,p){return q?!1:(n&&!p&&qE(n,a,a)||Qe(n,n&&c.type&&vL(c.type,n.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,ws(c.name),yp(a)),!0)}function zr(n,a,c,p){let h=Bo(a)?a:a.escapedText;r(()=>{if(!n||n.parent.kind!==325&&!qE(n,h,a)&&!Jb(n)&&!yC(n,h,c)&&!q_(n,h)&&!Xb(n,h,c)&&!Eh(n,h,c)&&!Ex(n,h,c)){let b,I;if(a&&(I=Zpt(a),I&&Qe(n,p,yp(a),I)),!I&&yx<ZP&&(b=w6e(n,h,c),b?.valueDeclaration&&gu(b.valueDeclaration)&&N_(b.valueDeclaration)&&(b=void 0),b)){let U=uo(b),H=bge(n,b,!1),Q=c===1920||a&&typeof a!="string"&&Os(a)?f.Cannot_find_namespace_0_Did_you_mean_1:H?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Ie=nS(n,Q,yp(a),U);Ie.canonicalHead=Vte(p,yp(a)),Mg(!H,Ie),b.valueDeclaration&&pa(Ie,Ar(b.valueDeclaration,f._0_is_declared_here,U))}!b&&!I&&a&&Qe(n,p,yp(a)),yx++}})}function xu(n,a,c,p,h,b){r(()=>{var I;let w=a.escapedName,U=p&&Yi(p)&&Np(p);if(n&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let H=Et(a);(H.flags&2||H.flags&32||H.flags&384)&&Ef(H,n)}if(U&&(c&111551)===111551&&!(n.flags&16777216)){let H=os(a);et(H.declarations)&&Vn(H.declarations,Q=>sw(Q)||Yi(Q)&&!!Q.symbol.globalExports)&&qm(!O.allowUmdGlobalAccess,n,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Vi(w))}if(h&&!b&&(c&111551)===111551){let H=os(GX(a)),Q=qh(h);H===Wr(h)?Qe(n,f.Parameter_0_cannot_reference_itself,ws(h.name)):H.valueDeclaration&&H.valueDeclaration.pos>h.pos&&Q.parent.locals&&Sd(Q.parent.locals,H.escapedName,c)===H&&Qe(n,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,ws(h.name),ws(n))}if(n&&c&111551&&a.flags&2097152&&!(a.flags&111551)&&!F0(n)){let H=Ah(a,111551);if(H){let Q=H.kind===282||H.kind===279||H.kind===281?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,Ie=Vi(w);Wo(Qe(n,Q,Ie),H,Ie)}}if(O.isolatedModules&&a&&U&&(c&111551)===111551){let Q=Sd(lt,w,c)===a&&Yi(p)&&p.locals&&Sd(p.locals,w,-111552);if(Q){let Ie=(I=Q.declarations)==null?void 0:I.find(Te=>Te.kind===277||Te.kind===274||Te.kind===275||Te.kind===272);Ie&&!CR(Ie)&&Qe(Ie,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(w))}}})}function Wo(n,a,c){return a?pa(n,Ar(a,a.kind===282||a.kind===279||a.kind===281?f._0_was_exported_here:f._0_was_imported_here,c)):n}function yp(n){return Bo(n)?Vi(n):ws(n)}function qE(n,a,c){if(!He(n)||n.escapedText!==a||F3e(n)||fI(n))return!1;let p=yu(n,!1,!1),h=p;for(;h;){if(ui(h.parent)){let b=Wr(h.parent);if(!b)break;let I=_r(b);if(Ea(I,a))return Qe(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,yp(c),uo(b)),!0;if(h===p&&!ua(h)){let w=qs(b).thisType;if(Ea(w,a))return Qe(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,yp(c)),!0}}h=h.parent}return!1}function Jb(n){let a=Mr(n);return a&&Gl(a,64,!0)?(Qe(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Al(a)),!0):!1}function Mr(n){switch(n.kind){case 80:case 212:return n.parent?Mr(n.parent):void 0;case 234:if(Ds(n.expression))return n.expression;default:return}}function yC(n,a,c){let p=1920|(Ir(n)?111551:0);if(c===p){let h=hc(_t(n,a,788968&~p,void 0,!1)),b=n.parent;if(h){if(Lu(b)){C.assert(b.left===n,"Should only be resolving left side of qualified name as a namespace");let I=b.right.escapedText;if(Ea(qs(h),I))return Qe(b,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(I)),!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 Ex(n,a,c){if(c&788584){let p=hc(_t(n,a,111127,void 0,!1));if(p&&!(p.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 cu(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function q_(n,a){return cu(a)&&n.parent.kind===282?(Qe(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Eh(n,a,c){if(c&111551){if(cu(a)){let b=n.parent.parent;if(b&&b.parent&&Op(b)){let I=b.token;b.parent.kind===265&&I===96?Qe(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Vi(a)):ui(b.parent)&&I===96?Qe(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):ui(b.parent)&&I===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}let p=hc(_t(n,a,788544,void 0,!1)),h=p&&lp(p);if(p&&h!==void 0&&!(h&111551)){let b=Vi(a);return JE(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,b):Kb(n,p)?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,b,b==="K"?"P":"K"):Qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,b),!0}}return!1}function Kb(n,a){let c=Dn(n.parent,p=>va(p)||Tu(p)?!1:ku(p)||"quit");if(c&&c.members.length===1){let p=qs(a);return!!(p.flags&1048576)&&$4(p,384,!0)}return!1}function JE(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Xb(n,a,c){if(c&111127){if(hc(_t(n,a,1024,void 0,!1)))return Qe(n,f.Cannot_use_namespace_0_as_a_value,Vi(a)),!0}else if(c&788544&&hc(_t(n,a,1536,void 0,!1)))return Qe(n,f.Cannot_use_namespace_0_as_a_type,Vi(a)),!0;return!1}function Ef(n,a){var c;if(C.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let p=(c=n.declarations)==null?void 0:c.find(h=>nG(h)||ui(h)||h.kind===267);if(p===void 0)return C.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(p.flags&33554432)&&!Dy(p,a)){let h,b=ws(Oo(p));n.flags&2?h=Qe(a,f.Block_scoped_variable_0_used_before_its_declaration,b):n.flags&32?h=Qe(a,f.Class_0_used_before_its_declaration,b):n.flags&256?h=Qe(a,f.Enum_0_used_before_its_declaration,b):(C.assert(!!(n.flags&128)),gm(O)&&(h=Qe(a,f.Enum_0_used_before_its_declaration,b))),h&&pa(h,Ar(p,f._0_is_declared_here,b))}}function Jm(n,a,c){return!!a&&!!Dn(n,p=>p===a||(p===c||Yo(p)&&(!N0(p)||dc(p)&3)?"quit":!1))}function Yf(n){switch(n.kind){case 272:return n;case 274:return n.parent;case 275:return n.parent.parent;case 277:return n.parent.parent.parent;default:return}}function sp(n){return n.declarations&&ga(n.declarations,Iv)}function Iv(n){return n.kind===272||n.kind===271||n.kind===274&&!!n.name||n.kind===275||n.kind===281||n.kind===277||n.kind===282||n.kind===278&&_k(n)||Nr(n)&&oc(n)===2&&_k(n)||Ks(n)&&Nr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&IT(n.parent.right)||n.kind===305||n.kind===304&&IT(n.initializer)||n.kind===261&&h1(n)||n.kind===209&&h1(n.parent.parent)}function IT(n){return Y6(n)||Us(n)&&S_(n)}function Ax(n,a){let c=Rx(n);if(c){let h=tD(c.expression).arguments[0];return He(c.name)?hc(Ea(dOe(h),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===284){let h=du(n,vG(n)||qN(n)),b=bp(h);if(b&&102<=j&&j<=199){let I=aS(b,"module.exports",n,a);if(I)return I}return $f(n,h,b,!1),b}let p=e0(n.moduleReference,a);return xT(n,p),p}function xT(n,a){if($f(n,void 0,a,!1)&&!n.isTypeOnly){let c=Ah(Wr(n)),p=c.kind===282||c.kind===279,h=p?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,b=p?f._0_was_exported_here:f._0_was_imported_here,I=c.kind===279?"*":hb(c.name);pa(Qe(n.moduleReference,h),Ar(c,b,I))}}function Yb(n,a,c,p){let h=n.exports.get("export="),b=h?Ea(_r(h),a,!0):n.exports.get(a),I=hc(b,p);return $f(c,b,I,!1),I}function Ix(n){return ll(n)&&!n.isExportEquals||di(n,2048)||iu(n)||w_(n)}function Cy(n){return cs(n)?e.getEmitSyntaxForUsageLocation(Wn(n),n):void 0}function m_(n,a){return n===99&&a===1}function $b(n,a){if(100<=j&&j<=199&&Cy(n)===99){a??(a=du(n,n,!0));let p=a&&FL(a);return p&&(Of(p)||x3(p.fileName)===".d.json.ts")}return!1}function RT(n,a,c,p){let h=n&&Cy(p);if(n&&h!==void 0){let b=e.getImpliedNodeFormatForEmit(n);if(h===99&&b===1&&100<=j&&j<=199)return!0;if(h===99&&b===99)return!1}if(!ye)return!1;if(!n||n.isDeclarationFile){let b=Yb(a,"default",void 0,!0);return!(b&&vt(b.declarations,Ix)||Yb(a,Cl("__esModule"),void 0,c))}return Mu(n)?typeof n.externalModuleIndicator!="object"&&!Yb(a,Cl("__esModule"),void 0,c):Xm(a)}function xv(n,a){let c=du(n,n.parent.moduleSpecifier);if(c)return Qb(c,n,a)}function Qb(n,a,c){var p;let h=(p=n.declarations)==null?void 0:p.find(Yi),b=Km(a),I,w;if(GL(n))I=n;else if(h&&b&&102<=j&&j<=199&&Cy(b)===1&&e.getImpliedNodeFormatForEmit(h)===99&&(w=Yb(n,"module.exports",a,c))){if(!Yh(O)){Qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,uo(n),"esModuleInterop");return}return $f(a,w,void 0,!1),w}else I=Yb(n,"default",a,c);if(!b)return I;let U=$b(b,n),H=RT(h,n,c,b);if(!I&&!H&&!U)if(Xm(n)&&!ye){let Q=j>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=n.exports.get("export=").valueDeclaration,Ze=Qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,uo(n),Q);Te&&pa(Ze,Ar(Te,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Q))}else Gm(a)?Ny(n,a):KE(n,n,a,lb(a)&&a.propertyName||a.name);else if(H||U){let Q=bp(n,c)||hc(n,c);return $f(a,n,Q,!1),Q}return $f(a,I,void 0,!1),I}function Km(n){switch(n.kind){case 274:return n.parent.moduleSpecifier;case 272:return uy(n.moduleReference)?n.moduleReference.expression:void 0;case 275:return n.parent.parent.moduleSpecifier;case 277:return n.parent.parent.parent.moduleSpecifier;case 282:return n.parent.parent.moduleSpecifier;default:return C.assertNever(n)}}function Ny(n,a){var c,p,h;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,uo(n),uo(a.symbol));else{let b=Qe(a.name,f.Module_0_has_no_default_export,uo(n)),I=(p=n.exports)==null?void 0:p.get("__export");if(I){let w=(h=I.declarations)==null?void 0:h.find(U=>{var H,Q;return!!(fc(U)&&U.moduleSpecifier&&((Q=(H=du(U,U.moduleSpecifier))==null?void 0:H.exports)!=null&&Q.has("default")))});w&&pa(b,Ar(w,f.export_Asterisk_does_not_re_export_a_default))}}}function Lg(n,a){let c=n.parent.parent.moduleSpecifier,p=du(n,c),h=Og(p,c,a,!1);return $f(n,p,h,!1),h}function Zb(n,a){let c=n.parent.moduleSpecifier,p=c&&du(n,c),h=c&&Og(p,c,a,!1);return $f(n,p,h,!1),h}function dd(n,a){if(n===ne&&a===ne)return ne;if(n.flags&790504)return n;let c=ja(n.flags|a.flags,n.escapedName);return C.assert(n.declarations||a.declarations),c.declarations=t1(so(n.declarations,a.declarations),Zv),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 aS(n,a,c,p){var h;if(n.flags&1536){let b=Up(n).get(a),I=hc(b,p),w=(h=Jr(n).typeOnlyExportStarMap)==null?void 0:h.get(a);return $f(c,b,I,!1,w,a),I}}function kg(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return hc(Ea(Ji(c),a))}}function DT(n,a,c=!1){var p;let h=vG(n)||n.moduleSpecifier,b=du(n,h),I=!qr(a)&&a.propertyName||a.name;if(!He(I)&&I.kind!==11)return;let w=p1(I),H=Og(b,h,!1,w==="default"&&ye);if(H&&(w||I.kind===11)){if(GL(b))return b;let Q;b&&b.exports&&b.exports.get("export=")?Q=Ea(_r(H),w,!0):Q=kg(H,w),Q=hc(Q,c);let Ie=aS(H,w,a,c);if(Ie===void 0&&w==="default"){let Ze=(p=b.declarations)==null?void 0:p.find(Yi);($b(h,b)||RT(Ze,b,c,h))&&(Ie=bp(b,c)||hc(b,c))}let Te=Ie&&Q&&Ie!==Q?dd(Q,Ie):Ie||Q;return lb(a)&&$b(h,b)&&w!=="default"?Qe(I,f.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,bR[j]):Te||KE(b,H,n,I),Te}}function KE(n,a,c,p){var h;let b=Rv(n,c),I=ws(p),w=He(p)?Ege(p,a):void 0;if(w!==void 0){let U=uo(w),H=Qe(p,f._0_has_no_exported_member_named_1_Did_you_mean_2,b,I,U);w.valueDeclaration&&pa(H,Ar(w.valueDeclaration,f._0_is_declared_here,U))}else(h=n.exports)!=null&&h.has("default")?Qe(p,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,b,I):wg(c,p,I,n,b)}function wg(n,a,c,p,h){var b,I;let w=(I=(b=ni(p.valueDeclaration,R_))==null?void 0:b.locals)==null?void 0:I.get(p1(a)),U=p.exports;if(w){let H=U?.get("export=");if(H)me(H,w)?vC(n,a,c,h):Qe(a,f.Module_0_has_no_exported_member_1,h,c);else{let Q=U?hn(Ahe(U),Te=>!!me(Te,w)):void 0,Ie=Q?Qe(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,h,c,uo(Q)):Qe(a,f.Module_0_declares_1_locally_but_it_is_not_exported,h,c);w.declarations&&pa(Ie,...Vt(w.declarations,(Te,Ze)=>Ar(Te,Ze===0?f._0_is_declared_here:f.and_here,c)))}}else Qe(a,f.Module_0_has_no_exported_member_1,h,c)}function vC(n,a,c,p){if(j>=5){let h=Yh(O)?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,h,c)}else if(Ir(n)){let h=Yh(O)?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,h,c)}else{let h=Yh(O)?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,h,c,c,p)}}function xx(n,a){if(Su(n)&&C_(n.propertyName||n.name)){let I=Km(n),w=I&&du(n,I);if(w)return Qb(w,n,a)}let c=Ha(n)?qh(n):n.parent.parent.parent,p=Rx(c),h=DT(c,p||n,a),b=n.propertyName||n.name;return p&&h&&He(b)?hc(Ea(_r(h),b.escapedText),a):($f(n,void 0,h,!1),h)}function Rx(n){if(yi(n)&&n.initializer&&qr(n.initializer))return n.initializer}function n2(n,a){if(ah(n.parent)){let c=bp(n.parent.symbol,a);return $f(n,void 0,c,!1),c}}function Dx(n,a,c){let p=n.propertyName||n.name;if(C_(p)){let b=Km(n),I=b&&du(n,b);if(I)return Qb(I,n,!!c)}let h=n.parent.parent.moduleSpecifier?DT(n.parent.parent,n,c):p.kind===11?void 0:Gl(p,a,!1,c);return $f(n,void 0,h,!1),h}function CT(n,a){let c=ll(n)?n.expression:n.right,p=My(c,a);return $f(n,void 0,p,!1),p}function My(n,a){if(uc(n))return Vl(n).symbol;if(!Nu(n)&&!Ds(n))return;let c=Gl(n,901119,!0,a);return c||(Vl(n),Vr(n).resolvedSymbol)}function bC(n,a){if(Nr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return My(n.parent.right,a)}function NT(n,a=!1){switch(n.kind){case 272:case 261:return Ax(n,a);case 274:return xv(n,a);case 275:return Lg(n,a);case 281:return Zb(n,a);case 277:case 209:return xx(n,a);case 282:return Dx(n,901119,a);case 278:case 227:return CT(n,a);case 271:return n2(n,a);case 305:return Gl(n.name,901119,!0,a);case 304:return My(n.initializer,a);case 213:case 212:return bC(n,a);default:return C.fail()}}function XE(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function hc(n,a){return!a&&XE(n)?ud(n):n}function ud(n){C.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=Jr(n);if(a.aliasTarget)a.aliasTarget===Fe&&(a.aliasTarget=ne);else{a.aliasTarget=Fe;let c=sp(n);if(!c)return C.fail();let p=NT(c);a.aliasTarget===Fe?a.aliasTarget=p||ne:Qe(c,f.Circular_definition_of_import_alias_0,uo(n))}return a.aliasTarget}function Cx(n){if(Jr(n).aliasTarget!==Fe)return ud(n)}function lp(n,a,c){let p=a&&Ah(n),h=p&&fc(p),b=p&&(h?du(p.moduleSpecifier,p.moduleSpecifier,!0):ud(p.symbol)),I=h&&b?h_(b):void 0,w=c?0:n.flags,U;for(;n.flags&2097152;){let H=Et(ud(n));if(!h&&H===b||I?.get(H.escapedName)===H)break;if(H===ne)return-1;if(H===n||U?.has(H))break;H.flags&2097152&&(U?U.add(H):U=new Set([n,H])),w|=H.flags,n=H}return w}function $f(n,a,c,p,h,b){if(!n||qr(n))return!1;let I=Wr(n);if(Xy(n)){let U=Jr(I);return U.typeOnlyDeclaration=n,!0}if(h){let U=Jr(I);return U.typeOnlyDeclaration=h,I.escapedName!==b&&(U.typeOnlyExportStarName=b),!0}let w=Jr(I);return sS(w,a,p)||sS(w,c,p)}function sS(n,a,c){var p;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let h=((p=a.exports)==null?void 0:p.get("export="))??a,b=h.declarations&&hn(h.declarations,Xy);n.typeOnlyDeclaration=b??Jr(h).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Ah(n,a){var c;if(!(n.flags&2097152))return;let p=Jr(n);if(p.typeOnlyDeclaration===void 0){p.typeOnlyDeclaration=!1;let h=hc(n);$f((c=n.declarations)==null?void 0:c[0],sp(n)&&JY(n),h,!0)}if(a===void 0)return p.typeOnlyDeclaration||void 0;if(p.typeOnlyDeclaration){let h=p.typeOnlyDeclaration.kind===279?hc(h_(p.typeOnlyDeclaration.symbol.parent).get(p.typeOnlyExportStarName||n.escapedName)):ud(p.typeOnlyDeclaration.symbol);return lp(h)&a?p.typeOnlyDeclaration:void 0}}function e0(n,a){return n.kind===80&&dM(n)&&(n=n.parent),n.kind===80||n.parent.kind===167?Gl(n,1920,!1,a):(C.assert(n.parent.kind===272),Gl(n,901119,!1,a))}function Rv(n,a){return n.parent?Rv(n.parent,a)+"."+uo(n):uo(n,a,void 0,36)}function Nx(n){for(;Lu(n.parent);)n=n.parent;return n}function r2(n){let a=Pu(n),c=_t(a,a,111551,void 0,!0);if(c){for(;Lu(a.parent);){let p=_r(c);if(c=Ea(p,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Gl(n,a,c,p,h){if(Ol(n))return;let b=1920|(Ir(n)?a&111551:0),I;if(n.kind===80){let w=a===b||Os(n)?f.Cannot_find_namespace_0:d8e(Pu(n)),U=Ir(n)&&!Os(n)?TC(n,a):void 0;if(I=os(_t(h||n,n,a,c||U?void 0:w,!0,!1)),!I)return os(U)}else if(n.kind===167||n.kind===212){let w=n.kind===167?n.left:n.expression,U=n.kind===167?n.right:n.name,H=Gl(w,b,c,!1,h);if(!H||Ol(U))return;if(H===ne)return H;if(H.valueDeclaration&&Ir(H.valueDeclaration)&&ru(O)!==100&&yi(H.valueDeclaration)&&H.valueDeclaration.initializer&&aWe(H.valueDeclaration.initializer)){let Q=H.valueDeclaration.initializer.arguments[0],Ie=du(Q,Q);if(Ie){let Te=bp(Ie);Te&&(H=Te)}}if(I=os(Sd(Up(H),U.escapedText,a)),!I&&H.flags&2097152&&(I=os(Sd(Up(ud(H)),U.escapedText,a))),!I){if(!c){let Q=Rv(H),Ie=ws(U),Te=Ege(U,H);if(Te){Qe(U,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,Ie,uo(Te));return}let Ze=Lu(n)&&Nx(n);if(Jt&&a&788968&&Ze&&!pD(Ze.parent)&&r2(Ze)){Qe(Ze,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Cp(Ze));return}if(a&1920&&Lu(n.parent)){let Dt=os(Sd(Up(H),U.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,uo(Dt),Vi(n.parent.right.escapedText));return}}Qe(U,f.Namespace_0_has_no_exported_member_1,Q,Ie)}return}}else C.assertNever(n,"Unknown entity name kind.");return!Os(n)&&Nu(n)&&(I.flags&2097152||n.parent.kind===278)&&$f(CG(n),I,void 0,!0),I.flags&a||p?I:ud(I)}function TC(n,a){if(ZX(n.parent)){let c=YE(n.parent);if(c)return _t(c,n,a,void 0,!0)}}function YE(n){if(Dn(n,h=>PR(h)||h.flags&16777216?mm(h):"quit"))return;let c=g1(n);if(c&&od(c)&&lk(c.expression)){let h=Wr(c.expression.left);if(h)return lS(h)}if(c&&Us(c)&&lk(c.parent)&&od(c.parent.parent)){let h=Wr(c.parent.left);if(h)return lS(h)}if(c&&(fm(c)||Nc(c))&&Nr(c.parent.parent)&&oc(c.parent.parent)===6){let h=Wr(c.parent.parent.left);if(h)return lS(h)}let p=k0(n);if(p&&Yo(p)){let h=Wr(p);return h&&h.valueDeclaration}}function lS(n){let a=n.parent.valueDeclaration;return a?(KN(a)?aI(a):US(a)?XN(a):void 0)||a:void 0}function Mx(n){let a=n.valueDeclaration;if(!a||!Ir(a)||n.flags&524288||P0(a,!1))return;let c=yi(a)?XN(a):aI(a);if(c){let p=Af(c);if(p)return Lge(p,n)}}function du(n,a,c){let h=ru(O)===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 vp(n,a,c?void 0:h,c)}function vp(n,a,c,p=!1,h=!1){return cs(a)?$E(n,a.text,c,p?void 0:a,h):void 0}function $E(n,a,c,p,h=!1){var b,I,w,U,H,Q,Ie,Te,Ze,Tt,Dt,$t;if(p&&po(a,"@types/")){let zi=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ko=pN(a,"@types/");Qe(p,zi,Ko,a)}let Tn=cOe(a,!0);if(Tn)return Tn;let nr=Wn(n),yr=cs(n)?n:((b=pc(n)?n:n.parent&&pc(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:b.name)||((I=ry(n)?n:void 0)==null?void 0:I.argument.literal)||(yi(n)&&n.initializer&&$u(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((w=Dn(n,Yu))==null?void 0:w.arguments[0])||((U=Dn(n,Ip(vl,i_,fc)))==null?void 0:U.moduleSpecifier)||((H=Dn(n,M0))==null?void 0:H.moduleReference.expression),Sn=yr&&cs(yr)?e.getModeForUsageLocation(nr,yr):e.getDefaultResolutionModeForFile(nr),vn=ru(O),Er=(Q=e.getResolvedModule(nr,a,Sn))==null?void 0:Q.resolvedModule,fi=p&&Er&&mH(O,Er,nr),oo=Er&&(!fi||fi===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Er.resolvedFileName);if(oo){if(fi&&Qe(p,fi,a,Er.resolvedFileName),Er.resolvedUsingTsExtension&&ad(a)){let zi=((Ie=Dn(n,vl))==null?void 0:Ie.importClause)||Dn(n,Ip(Bc,fc));(p&&zi&&!zi.isTypeOnly||Dn(n,Yu))&&Qe(p,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,ii(C.checkDefined(hW(a))))}else if(Er.resolvedUsingTsExtension&&!LD(O,nr.fileName)){let zi=((Te=Dn(n,vl))==null?void 0:Te.importClause)||Dn(n,Ip(Bc,fc));if(p&&!(zi?.isTypeOnly||Dn(n,Zh))){let Ko=C.checkDefined(hW(a));Qe(p,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ko)}}else if(O.rewriteRelativeImportExtensions&&!(n.flags&33554432)&&!ad(a)&&!ry(n)&&!ete(n)){let zi=dk(a,O);if(!Er.resolvedUsingTsExtension&&zi)Qe(p,f.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,SR(To(nr.fileName,e.getCurrentDirectory()),Er.resolvedFileName,ay(e)));else if(Er.resolvedUsingTsExtension&&!zi&&b1(oo,e))Qe(p,f.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,qA(a));else if(Er.resolvedUsingTsExtension&&zi){let Ko=(Ze=e.getRedirectFromSourceFile(oo.path))==null?void 0:Ze.resolvedRef;if(Ko){let fs=!e.useCaseSensitiveFileNames(),fo=e.getCommonSourceDirectory(),dl=xE(Ko.commandLine,fs),Kl=lf(fo,dl,fs),fu=lf(O.outDir||fo,Ko.commandLine.options.outDir||dl,fs);Kl!==fu&&Qe(p,f.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(oo.symbol){if(p&&Er.isExternalLibraryImport&&!bM(Er.extension)&&MT(!1,p,nr,Sn,Er,a),p&&(j===100||j===101)){let zi=nr.impliedNodeFormat===1&&!Dn(n,Yu)||!!Dn(n,Bc),Ko=Dn(n,fs=>Zh(fs)||fc(fs)||vl(fs)||i_(fs));if(zi&&oo.impliedNodeFormat===99&&!kre(Ko))if(Dn(n,Bc))Qe(p,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 fs,fo=Tg(nr.fileName);(fo===".ts"||fo===".js"||fo===".tsx"||fo===".jsx")&&(fs=YB(nr));let dl=Ko?.kind===273&&((Tt=Ko.importClause)!=null&&Tt.isTypeOnly)?f.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:Ko?.kind===206?f.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: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;ns.add(mg(Wn(p),p,qo(fs,dl,a)))}}return os(oo.symbol)}p&&c&&!BV(p)&&Qe(p,f.File_0_is_not_a_module,oo.fileName);return}if(rp){let zi=Fz(rp,Ko=>Ko.pattern,a);if(zi){let Ko=ze&&ze.get(a);return os(Ko||zi.symbol)}}if(!p)return;if(Er&&!bM(Er.extension)&&fi===void 0||fi===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(h){let zi=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Qe(p,zi,a,Er.resolvedFileName)}else MT(ve&&!!c,p,nr,Sn,Er,a);return}if(c){if(Er){let zi=e.getRedirectFromSourceFile(Er.resolvedFileName);if(zi?.outputDts){Qe(p,f.Output_file_0_has_not_been_built_from_source_file_1,zi.outputDts,Er.resolvedFileName);return}}if(fi)Qe(p,fi,a,Er.resolvedFileName);else{let zi=Qp(a)&&!TR(a),Ko=vn===3||vn===99;if(!I1(O)&&El(a,".json")&&vn!==1&&IW(O))Qe(p,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Sn===99&&Ko&&zi){let fs=To(a,ci(nr.path)),fo=(Dt=Au.find(([dl,Kl])=>e.fileExists(fs+dl)))==null?void 0:Dt[1];fo?Qe(p,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+fo):Qe(p,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(($t=e.getResolvedModule(nr,a,Sn))!=null&&$t.alternateResult){let fs=T6(nr,e,a,Sn,a);qm(!0,p,qo(fs,c,a))}else Qe(p,c,a)}}return;function ii(zi){let Ko=Vk(a,zi);if(Wk(j)||Sn===99){let fs=ad(a)&&LD(O);return Ko+(zi===".mts"||zi===".d.mts"?fs?".mts":".mjs":zi===".cts"||zi===".d.mts"?fs?".cts":".cjs":fs?".ts":".js")}return Ko}}function MT(n,a,c,p,{packageId:h,resolvedFileName:b},I){if(BV(a))return;let w;!td(I)&&h&&(w=T6(c,e,I,p,h.name)),qm(n,a,qo(w,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,I,b))}function bp(n,a){if(n?.exports){let c=hc(n.exports.get("export="),a),p=QE(os(c),os(n));return os(p)||n}}function QE(n,a){if(!n||n===ne||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Jr(n);if(c.cjsExportMerged)return c.cjsExportMerged;let p=n.flags&33554432?n:rS(n);return p.flags=p.flags|512,p.exports===void 0&&(p.exports=da()),a.exports.forEach((h,b)=>{b!=="export="&&p.exports.set(b,p.exports.has(b)?Xf(p.exports.get(b),h):h)}),p===n&&(Jr(p).resolvedExports=void 0,Jr(p).resolvedMembers=void 0),Jr(p).cjsExportMerged=p,c.cjsExportMerged=p}function Og(n,a,c,p){var h;let b=bp(n,c);if(!c&&b){if(!p&&!(b.flags&1539)&&!al(b,308)){let U=j>=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,U),b}let I=a.parent,w=vl(I)&&UR(I);if(w||Yu(I)){let U=Yu(I)?I.arguments[0]:I.moduleSpecifier,H=_r(b),Q=iWe(H,b,n,U);if(Q)return ZE(b,Q,I);let Ie=(h=n?.declarations)==null?void 0:h.find(Yi),Te=Cy(U),Ze;if(w&&Ie&&102<=j&&j<=199&&Te===1&&e.getImpliedNodeFormatForEmit(Ie)===99&&(Ze=Yb(b,"module.exports",w,c)))return!p&&!(b.flags&1539)&&Qe(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),Yh(O)&&Px(H)?ZE(Ze,H,I):Ze;let Tt=Ie&&m_(Te,e.getImpliedNodeFormatForEmit(Ie));if((Yh(O)||Tt)&&(Px(H)||Ea(H,"default",!0)||Tt)){let Dt=H.flags&3670016?oWe(H,b,n,U):kge(b,b.parent);return ZE(b,Dt,I)}}}return b}function Px(n){return vt(W5(n,0))||vt(W5(n,1))}function ZE(n,a,c){let p=ja(n.flags,n.escapedName);p.declarations=n.declarations?n.declarations.slice():[],p.parent=n.parent,p.links.target=n,p.links.originatingImport=c,n.valueDeclaration&&(p.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(p.constEnumOnlyModule=!0),n.members&&(p.members=new Map(n.members)),n.exports&&(p.exports=new Map(n.exports));let h=Dh(a);return p.links.type=bl(p,h.members,ae,ae,h.indexInfos),p}function Xm(n){return n.exports.get("export=")!==void 0}function Lx(n){return Ahe(h_(n))}function SC(n){let a=Lx(n),c=bp(n);if(c!==n){let p=_r(c);Dv(p)&&Xr(a,bs(p))}return a}function kx(n,a){h_(n).forEach((h,b)=>{kT(b)||a(h,b)});let p=bp(n);if(p!==n){let h=_r(p);Dv(h)&&dst(h,(b,I)=>{a(b,I)})}}function eA(n,a){let c=h_(a);if(c)return c.get(n)}function wx(n,a){let c=eA(n,a);if(c)return c;let p=bp(a);if(p===a)return;let h=_r(p);return Dv(h)?Ea(h,n):void 0}function Dv(n){return!(n.flags&402784252||Hr(n)&1||nm(n)||Ka(n))}function Up(n){return n.flags&6256?dhe(n,"resolvedExports"):n.flags&1536?h_(n):n.exports||k}function h_(n){let a=Jr(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:p}=nA(n);a.resolvedExports=c,a.typeOnlyExportStarMap=p}return a.resolvedExports}function tA(n,a,c,p){a&&a.forEach((h,b)=>{if(b==="default")return;let I=n.get(b);if(!I)n.set(b,h),c&&p&&c.set(b,{specifierText:Al(p.moduleSpecifier)});else if(c&&p&&I&&hc(I)!==hc(h)){let w=c.get(b);w.exportsWithDuplicate?w.exportsWithDuplicate.push(p):w.exportsWithDuplicate=[p]}})}function nA(n){let a=[],c,p=new Set;n=bp(n);let h=b(n)||k;return c&&p.forEach(I=>c.delete(I)),{exports:h,typeOnlyExportStarMap:c};function b(I,w,U){if(!U&&I?.exports&&I.exports.forEach((Ie,Te)=>p.add(Te)),!(I&&I.exports&&Pf(a,I)))return;let H=new Map(I.exports),Q=I.exports.get("__export");if(Q){let Ie=da(),Te=new Map;if(Q.declarations)for(let Ze of Q.declarations){let Tt=du(Ze,Ze.moduleSpecifier),Dt=b(Tt,Ze,U||Ze.isTypeOnly);tA(Ie,Dt,Te,Ze)}Te.forEach(({exportsWithDuplicate:Ze},Tt)=>{if(!(Tt==="export="||!(Ze&&Ze.length)||H.has(Tt)))for(let Dt of Ze)ns.add(Ar(Dt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Te.get(Tt).specifierText,Vi(Tt)))}),tA(H,Ie)}return w?.isTypeOnly&&(c??(c=new Map),H.forEach((Ie,Te)=>c.set(Te,w))),H}}function os(n){let a;return n&&n.mergeId&&(a=zE[n.mergeId])?a:n}function Wr(n){return os(n.symbol&&GX(n.symbol))}function Af(n){return ah(n)?Wr(n):void 0}function $c(n){return os(n.parent&&GX(n.parent))}function PT(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===220||((c=n.valueDeclaration)==null?void 0:c.kind)===219)&&Af(n.valueDeclaration.parent)||n}function rA(n,a){let c=Wn(a),p=ss(c),h=Jr(n),b;if(h.extendedContainersByFile&&(b=h.extendedContainersByFile.get(p)))return b;if(c&&c.imports){for(let w of c.imports){if(Os(w))continue;let U=du(a,w,!0);!U||!D(U,n)||(b=Bn(b,U))}if(et(b))return(h.extendedContainersByFile||(h.extendedContainersByFile=new Map)).set(p,b),b}if(h.extendedContainers)return h.extendedContainers;let I=e.getSourceFiles();for(let w of I){if(!Gc(w))continue;let U=Wr(w);D(U,n)&&(b=Bn(b,U))}return h.extendedContainers=b||ae}function cS(n,a,c){let p=$c(n);if(p&&!(n.flags&262144))return U(p);let h=Ui(n.declarations,Q=>{if(!gu(Q)&&Q.parent){if(uS(Q.parent))return Wr(Q.parent);if(e_(Q.parent)&&Q.parent.parent&&bp(Wr(Q.parent.parent))===n)return Wr(Q.parent.parent)}if(uc(Q)&&Nr(Q.parent)&&Q.parent.operatorToken.kind===64&&Ks(Q.parent.left)&&Ds(Q.parent.left.expression))return _g(Q.parent.left)||XS(Q.parent.left.expression)?Wr(Wn(Q)):(Vl(Q.parent.left.expression),Vr(Q.parent.left.expression).resolvedSymbol)});if(!et(h))return;let b=Ui(h,Q=>D(Q,n)?Q:void 0),I=[],w=[];for(let Q of b){let[Ie,...Te]=U(Q);I=Bn(I,Ie),w=Xr(w,Te)}return so(I,w);function U(Q){let Ie=Ui(Q.declarations,H),Te=a&&rA(n,a),Ze=LT(Q,c);if(a&&Q.flags&Ym(c)&&Nv(Q,a,1920,!1))return Bn(so(so([Q],Ie),Te),Ze);let Tt=!(Q.flags&Ym(c))&&Q.flags&788968&&qs(Q).flags&524288&&c===111551?Cv(a,$t=>qc($t,Tn=>{if(Tn.flags&Ym(c)&&_r(Tn)===qs(Q))return Tn})):void 0,Dt=Tt?[Tt,...Ie,Q]:[...Ie,Q];return Dt=Bn(Dt,Ze),Dt=Xr(Dt,Te),Dt}function H(Q){return p&&iA(Q,p)}}function LT(n,a){let c=!!et(n.declarations)&&$a(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(Wa(c)&&c===c.parent.initializer||ku(c)&&c===c.parent.type))return Wr(c.parent)}function iA(n,a){let c=aA(n),p=c&&c.exports&&c.exports.get("export=");return p&&me(p,a)?c:void 0}function D(n,a){if(n===$c(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&me(c,a))return n;let p=Up(n),h=p.get(a.escapedName);return h&&me(h,a)?h:qc(p,b=>{if(me(b,a))return b})}function me(n,a){if(os(hc(os(n)))===os(hc(os(a))))return n}function Et(n){return os(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function An(n,a){return!!(n.flags&111551||n.flags&2097152&&lp(n,!a)&111551)}function vi(n){var a;let c=new l(ir,n);return d++,c.id=d,(a=xr)==null||a.recordType(c),c}function wi(n,a){let c=vi(n);return c.symbol=a,c}function Ao(n){return new l(ir,n)}function Li(n,a,c=0,p){Ja(a,p);let h=vi(n);return h.intrinsicName=a,h.debugIntrinsicName=p,h.objectFlags=c|524288|2097152|33554432|16777216,h}function Ja(n,a){let c=`${n},${a??""}`;Lt.has(c)&&C.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),Lt.add(c)}function _c(n,a){let c=wi(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 Kd(){return pi(Co(iae.keys(),Tp))}function Gu(n){return wi(262144,n)}function kT(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function Vu(n){let a;return n.forEach((c,p)=>{t0(c,p)&&(a||(a=[])).push(c)}),a||ae}function t0(n,a){return!kT(a)&&An(n)}function Ox(n){let a=Vu(n),c=JX(n);return c?so(a,[c]):a}function Cm(n,a,c,p,h){let b=n;return b.members=a,b.properties=ae,b.callSignatures=c,b.constructSignatures=p,b.indexInfos=h,a!==k&&(b.properties=Vu(a)),b}function bl(n,a,c,p,h){return Cm(_c(16,n),a,c,p,h)}function oA(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Un(n.constructSignatures,p=>!(p.flags&4));if(n.constructSignatures===a)return n;let c=bl(n.symbol,n.members,n.callSignatures,vt(a)?a:ae,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function Cv(n,a){let c;for(let p=n;p;p=p.parent){if(R_(p)&&p.locals&&!$y(p)&&(c=a(p.locals,void 0,!0,p)))return c;switch(p.kind){case 308:if(!Np(p))break;case 268:let h=Wr(p);if(c=a(h?.exports||k,void 0,!0,p))return c;break;case 264:case 232:case 265:let b;if((Wr(p).members||k).forEach((I,w)=>{I.flags&788968&&(b||(b=da())).set(w,I)}),b&&(c=a(b,void 0,!1,p)))return c;break}}return a(lt,void 0,!0)}function Ym(n){return n===111551?111551:1920}function Nv(n,a,c,p,h=new Map){if(!(n&&!x5(n)))return;let b=Jr(n),I=b.accessibleChainCache||(b.accessibleChainCache=new Map),w=Cv(a,(Tn,nr,yr,Sn)=>Sn),U=`${p?0:1}|${w?ss(w):0}|${c}`;if(I.has(U))return I.get(U);let H=Ta(n),Q=h.get(H);Q||h.set(H,Q=[]);let Ie=Cv(a,Te);return I.set(U,Ie),Ie;function Te(Tn,nr,yr){if(!Pf(Q,Tn))return;let Sn=Dt(Tn,nr,yr);return Q.pop(),Sn}function Ze(Tn,nr){return!dS(Tn,a,nr)||!!Nv(Tn.parent,a,Ym(nr),p,h)}function Tt(Tn,nr,yr){return(n===(nr||Tn)||os(n)===os(nr||Tn))&&!vt(Tn.declarations,uS)&&(yr||Ze(os(Tn),c))}function Dt(Tn,nr,yr){return Tt(Tn.get(n.escapedName),void 0,nr)?[n]:qc(Tn,vn=>{if(vn.flags&2097152&&vn.escapedName!=="export="&&vn.escapedName!=="default"&&!(vW(vn)&&a&&Gc(Wn(a)))&&(!p||vt(vn.declarations,M0))&&(!yr||!vt(vn.declarations,rne))&&(nr||!al(vn,282))){let Er=ud(vn),fi=$t(vn,Er,nr);if(fi)return fi}if(vn.escapedName===n.escapedName&&vn.exportSymbol&&Tt(os(vn.exportSymbol),void 0,nr))return[n]})||(Tn===lt?$t(De,De,nr):void 0)}function $t(Tn,nr,yr){if(Tt(Tn,nr,yr))return[Tn];let Sn=Up(nr),vn=Sn&&Te(Sn,!0);if(vn&&Ze(Tn,Ym(c)))return[Tn].concat(vn)}}function dS(n,a,c){let p=!1;return Cv(a,h=>{let b=os(h.get(n.escapedName));if(!b)return!1;if(b===n)return!0;let I=b.flags&2097152&&!al(b,282);return b=I?ud(b):b,(I?lp(b):b.flags)&c?(p=!0,!0):!1}),p}function x5(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}function i2(n,a){return Fx(n,a,788968,!1,!0).accessibility===0}function Wx(n,a){return Fx(n,a,111551,!1,!0).accessibility===0}function o2(n,a,c){return Fx(n,a,c,!1,!1).accessibility===0}function c4(n,a,c,p,h,b){if(!et(n))return;let I,w=!1;for(let U of n){let H=Nv(U,a,p,!1);if(H){I=U;let Te=sA(H[0],h);if(Te)return Te}if(b&&vt(U.declarations,uS)){if(h){w=!0;continue}return{accessibility:0}}let Q=cS(U,a,p),Ie=c4(Q,a,c,c===U?Ym(p):p,h,b);if(Ie)return Ie}if(w)return{accessibility:0};if(I)return{accessibility:1,errorSymbolName:uo(c,a,p),errorModuleName:I!==c?uo(I,a,1920):void 0}}function n0(n,a,c,p){return Fx(n,a,c,p,!0)}function Fx(n,a,c,p,h){if(n&&a){let b=c4([n],a,n,c,p,h);if(b)return b;let I=Je(n.declarations,aA);if(I){let w=aA(a);if(I!==w)return{accessibility:2,errorSymbolName:uo(n,a,c),errorModuleName:uo(I),errorNode:Ir(a)?a:void 0}}return{accessibility:1,errorSymbolName:uo(n,a,c)}}return{accessibility:0}}function aA(n){let a=Dn(n,R5);return a&&Wr(a)}function R5(n){return gu(n)||n.kind===308&&Np(n)}function uS(n){return x6(n)||n.kind===308&&Np(n)}function sA(n,a){let c;if(!Vn(Un(n.declarations,b=>b.kind!==80),p))return;return{accessibility:0,aliasesToMakeVisible:c};function p(b){var I,w;if(!K_(b)){let U=Yf(b);if(U&&!di(U,32)&&K_(U.parent))return h(b,U);if(yi(b)&&ac(b.parent.parent)&&!di(b.parent.parent,32)&&K_(b.parent.parent.parent))return h(b,b.parent.parent);if(R6(b)&&!di(b,32)&&K_(b.parent))return h(b,b);if(Ha(b)){if(n.flags&2097152&&Ir(b)&&((I=b.parent)!=null&&I.parent)&&yi(b.parent.parent)&&((w=b.parent.parent.parent)!=null&&w.parent)&&ac(b.parent.parent.parent.parent)&&!di(b.parent.parent.parent.parent,32)&&b.parent.parent.parent.parent.parent&&K_(b.parent.parent.parent.parent.parent))return h(b,b.parent.parent.parent.parent);if(n.flags&2){let H=WS(b);if(H.kind===170)return!1;let Q=H.parent.parent;return Q.kind!==244?!1:di(Q,32)?!0:K_(Q.parent)?h(b,Q):!1}}return!1}return!0}function h(b,I){return a&&(Vr(b).isVisible=!0,c=$g(c,I)),!0}}function a2(n){let a;return n.parent.kind===187||n.parent.kind===234&&!Uh(n.parent)||n.parent.kind===168||n.parent.kind===183&&n.parent.parameterName===n?a=1160127:n.kind===167||n.kind===212||n.parent.kind===272||n.parent.kind===167&&n.parent.left===n||n.parent.kind===212&&n.parent.expression===n||n.parent.kind===213&&n.parent.expression===n?a=1920:a=788968,a}function zx(n,a,c=!0){let p=a2(n),h=Pu(n),b=_t(a,h.escapedText,p,void 0,!1);return b&&b.flags&262144&&p&788968?{accessibility:0}:!b&&bb(h)&&n0(Wr(yu(h,!1,!1)),h,p,!1).accessibility===0?{accessibility:0}:b?sA(b,c)||{accessibility:1,errorSymbolName:Al(h),errorNode:h}:{accessibility:3,errorSymbolName:Al(h),errorNode:h}}function uo(n,a,c,p=4,h){let b=70221824,I=0;p&2&&(b|=128),p&1&&(b|=512),p&8&&(b|=16384),p&32&&(I|=4),p&16&&(I|=1);let w=p&4?be.symbolToNode:be.symbolToEntityName;return h?U(h).getText():kR(U);function U(H){let Q=w(n,c,a,b,I),Ie=a?.kind===308?ese():V1(),Te=a&&Wn(a);return Ie.writeNode(4,Q,Te,H),H}}function r0(n,a,c=0,p,h,b,I,w){return h?U(h).getText():kR(U);function U(H){let Q;c&262144?Q=p===1?186:185:Q=p===1?181:180;let Ie=be.signatureToSignatureDeclaration(n,Q,a,pS(c)|70221824|512,void 0,void 0,b,I,w),Te=$U(),Ze=a&&Wn(a);return Te.writeNode(4,Ie,Ze,VG(H)),H}}function ar(n,a,c=1064960,p=Ek(""),h,b,I){let w=!h&&O.noErrorTruncation||c&1,U=be.typeToTypeNode(n,a,pS(c)|70221824|(w?1:0),void 0,void 0,h,b,I);if(U===void 0)return C.fail("should always get typenode");let H=n!==Kt?V1():Zae(),Q=a&&Wn(a);H.writeNode(4,U,Q,p);let Ie=p.getText(),Te=h||(w?KB*2:FN*2);return Ie&&Ie.length>=Te?Ie.substr(0,Te-3)+"...":Ie}function s2(n,a){let c=AC(n.symbol)?ar(n,n.symbol.valueDeclaration):ar(n),p=AC(a.symbol)?ar(a,a.symbol.valueDeclaration):ar(a);return c===p&&(c=EC(n),p=EC(a)),[c,p]}function EC(n){return ar(n,void 0,64)}function AC(n){return n&&!!n.valueDeclaration&&St(n.valueDeclaration)&&!Df(n.valueDeclaration)}function pS(n=0){return n&848330095}function d4(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Zf(n.symbol)||!!(n.flags&524288)&&!!(Hr(n)&16777216))}function lA(n){return Ji(n)}function D5(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:C3e,isExpandoFunctionDeclaration:Y3e,hasLateBindableName:DC,shouldRemoveDeclaration(we,se){return!(we.internalFlags&8&&Ds(se.name.expression)&&eh(se.name).flags&1)},createRecoveryBoundary(we){return zi(we)},isDefinitelyReferenceToGlobalSymbolObject:H_,getAllAccessorDeclarations:Iye,requiresAddingImplicitUndefined(we,se,on){var pn;switch(we.kind){case 173:case 172:case 349:se??(se=Wr(we));let Pe=_r(se);return!!(se.flags&4&&se.flags&16777216&&II(we)&&((pn=se.links)!=null&&pn.mappedType)&&Oct(Pe));case 170:case 342:return K9(we,on);default:C.assertNever(we)}},isOptionalParameter:v4,isUndefinedIdentifierExpression(we){return om(we)===ce},isEntityNameVisible(we,se,on){return zx(se,we.enclosingDeclaration,on)},serializeExistingTypeNode(we,se,on){return dp(we,se,!!on)},serializeReturnTypeForSignature(we,se,on){let pn=we,Pe=Rf(se);on??(on=Wr(se));let qe=pn.enclosingSymbolTypes.get(Ta(on))??io(ps(Pe),pn.mapper);return Oa(pn,Pe,qe)},serializeTypeOfExpression(we,se){let on=we,pn=io(Xp(V3e(se)),on.mapper);return $t(pn,on)},serializeTypeOfDeclaration(we,se,on){var pn;let Pe=we;on??(on=Wr(se));let qe=(pn=Pe.enclosingSymbolTypes)==null?void 0:pn.get(Ta(on));return qe===void 0&&(qe=on.flags&98304&&se.kind===179?io(kv(on),Pe.mapper):on&&!(on.flags&133120)?io(qT(_r(on)),Pe.mapper):nt),se&&(to(se)||ff(se))&&K9(se,Pe.enclosingDeclaration)&&(qe=p0(qe)),hr(on,Pe,qe)},serializeNameOfParameter(we,se){return Hi(Wr(se),se,we)},serializeEntityName(we,se){let on=we,pn=om(se,!0);if(pn&&Wx(pn,on.enclosingDeclaration))return am(pn,on,1160127)},serializeTypeName(we,se,on,pn){return Zc(we,se,on,pn)},getJsDocPropertyOverride(we,se,on){let pn=we,Pe=He(on.name)?on.name:on.name.right,qe=_n(a(pn,se),Pe.escapedText);return qe&&on.typeExpression&&a(pn,on.typeExpression.type)!==qe?$t(qe,pn):void 0},enterNewScope(we,se){if(Yo(se)||dv(se)){let on=Rf(se);return Ko(we,se,on.parameters,on.typeParameters)}else{let on=M1(se)?Qhe(se):[WT(Wr(se.typeParameter))];return Ko(we,se,void 0,on)}},markNodeReuse(we,se,on){return c(we,se,on)},trackExistingEntityName(we,se){return Gs(se,we)},trackComputedName(we,se){vr(se,we.enclosingDeclaration,we)},getModuleSpecifierOverride(we,se,on){let pn=we;if(pn.bundled||pn.enclosingFile!==Wn(on)){let Pe=on.text,qe=Pe,ct=Vr(se).resolvedSymbol,Gt=se.isTypeOf?111551:788968,sn=ct&&n0(ct,pn.enclosingDeclaration,Gt,!1).accessibility===0&&wo(ct,pn,Gt,!0)[0];if(sn&&eI(sn))Pe=lc(sn,pn);else{let Ut=Dye(se);Ut&&(Pe=lc(Ut.symbol,pn))}if(Pe.includes("/node_modules/")&&(pn.encounteredError=!0,pn.tracker.reportLikelyUnsafeImportRequiredError&&pn.tracker.reportLikelyUnsafeImportRequiredError(Pe)),Pe!==qe)return Pe}},canReuseTypeNode(we,se){return mu(we,se)},canReuseTypeNodeAnnotation(we,se,on,pn,Pe){var qe;let ct=we;if(ct.enclosingDeclaration===void 0)return!1;pn??(pn=Wr(se));let Gt=(qe=ct.enclosingSymbolTypes)==null?void 0:qe.get(Ta(pn));Gt===void 0&&(pn.flags&98304?Gt=se.kind===179?kv(pn):p2(pn):ZS(se)?Gt=ps(Rf(se)):Gt=_r(pn));let sn=lA(on);return pr(sn)?!0:(Pe&&sn&&(sn=uu(sn,!to(se))),!!sn&&gi(se,Gt,sn)&&Nn(on,Gt))}},typeToTypeNode:(we,se,on,pn,Pe,qe,ct,Gt)=>H(se,on,pn,Pe,qe,ct,sn=>$t(we,sn),Gt),typePredicateToTypePredicateNode:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,qe=>fu(we,qe)),serializeTypeForDeclaration:(we,se,on,pn,Pe,qe)=>H(on,pn,Pe,qe,void 0,void 0,ct=>Ne.serializeTypeOfDeclaration(we,se,ct)),serializeReturnTypeForSignature:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,qe=>Ne.serializeReturnTypeForSignature(we,Wr(we),qe)),serializeTypeForExpression:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,qe=>Ne.serializeTypeOfExpression(we,qe)),indexInfoToIndexSignatureDeclaration:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,qe=>oo(we,qe,void 0)),signatureToSignatureDeclaration:(we,se,on,pn,Pe,qe,ct,Gt,sn)=>H(on,pn,Pe,qe,ct,Gt,Ut=>ii(we,se,Ut),sn),symbolToEntityName:(we,se,on,pn,Pe,qe)=>H(on,pn,Pe,qe,void 0,void 0,ct=>tc(we,ct,se,!1)),symbolToExpression:(we,se,on,pn,Pe,qe)=>H(on,pn,Pe,qe,void 0,void 0,ct=>am(we,ct,se)),symbolToTypeParameterDeclarations:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,qe=>il(we,qe)),symbolToParameterDeclaration:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,qe=>rr(we,qe)),typeParameterToDeclaration:(we,se,on,pn,Pe,qe,ct,Gt)=>H(se,on,pn,Pe,qe,ct,sn=>Kl(we,sn),Gt),symbolTableToDeclarationStatements:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,qe=>$T(we,qe)),symbolToNode:(we,se,on,pn,Pe,qe)=>H(on,pn,Pe,qe,void 0,void 0,ct=>p(we,ct,se)),symbolToDeclarations:h};function a(we,se,on){let pn=lA(se);if(!we.mapper)return pn;let Pe=io(pn,we.mapper);return on&&Pe!==pn?void 0:Pe}function c(we,se,on){if((!Os(se)||!(se.flags&16)||!we.enclosingFile||we.enclosingFile!==Wn(yl(se)))&&(se=L.cloneNode(se)),se===on||!on)return se;let pn=se.original;for(;pn&&pn!==on;)pn=pn.original;return pn||jr(se,on),we.enclosingFile&&we.enclosingFile===Wn(yl(on))?bt(se,on):se}function p(we,se,on){if(se.internalFlags&1){if(we.valueDeclaration){let Pe=Oo(we.valueDeclaration);if(Pe&&va(Pe))return Pe}let pn=Jr(we).nameType;if(pn&&pn.flags&9216)return se.enclosingDeclaration=pn.symbol.valueDeclaration,L.createComputedPropertyName(am(pn.symbol,se,on))}return am(we,se,on)}function h(we,se,on,pn,Pe,qe){let ct=H(void 0,on,void 0,void 0,pn,Pe,Gt=>U(we,Gt),qe);return Ui(ct,Gt=>{switch(Gt.kind){case 264:return b(Gt,we);case 267:return I(Gt,q0,we);case 265:return w(Gt,we,se);case 268:return I(Gt,pc,we);default:return}})}function b(we,se){let on=Un(se.declarations,ui),pn=on&&on.length>0?on[0]:we,Pe=Gd(pn)&-161;return uc(pn)&&(we=L.updateClassDeclaration(we,we.modifiers,void 0,we.typeParameters,we.heritageClauses,we.members)),L.replaceModifiers(we,Pe)}function I(we,se,on){let pn=Un(on.declarations,se),Pe=pn&&pn.length>0?pn[0]:we,qe=Gd(Pe)&-161;return L.replaceModifiers(we,qe)}function w(we,se,on){if(on&64)return I(we,gd,se)}function U(we,se){let on=qs(we);se.typeStack.push(on.id),se.typeStack.push(-1);let pn=da([we]),Pe=$T(pn,se);return se.typeStack.pop(),se.typeStack.pop(),Pe}function H(we,se,on,pn,Pe,qe,ct,Gt){let sn=pn?.trackSymbol?pn.moduleResolverHost:(on||0)&4?Qje(e):void 0;se=se||0;let Ut=Pe||(se&1?KB:FN),un={enclosingDeclaration:we,enclosingFile:we&&Wn(we),flags:se,internalFlags:on||0,tracker:void 0,maxTruncationLength:Ut,maxExpansionDepth:qe??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!O.outFile&&!!we&&Np(Wn(we)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};un.tracker=new aae(un,pn,sn);let Zn=ct(un);return un.truncating&&un.flags&1&&un.tracker.reportTruncationError(),Gt&&(Gt.canIncreaseExpansionDepth=un.out.canIncreaseExpansionDepth,Gt.truncated=un.out.truncated),un.encounteredError?void 0:Zn}function Q(we,se,on){let pn=Ta(se),Pe=we.enclosingSymbolTypes.get(pn);return we.enclosingSymbolTypes.set(pn,on),qe;function qe(){Pe?we.enclosingSymbolTypes.set(pn,Pe):we.enclosingSymbolTypes.delete(pn)}}function Ie(we){let se=we.flags,on=we.internalFlags,pn=we.depth;return Pe;function Pe(){we.flags=se,we.internalFlags=on,we.depth=pn}}function Te(we){return we.maxExpansionDepth>=0&&Ze(we)}function Ze(we){return we.truncating?we.truncating:we.truncating=we.approximateLength>we.maxTruncationLength}function Tt(we,se){for(let on=0;on<se.typeStack.length-1;on++)if(se.typeStack[on]===we.id)return!1;return se.depth<se.maxExpansionDepth||se.depth===se.maxExpansionDepth&&!se.out.canIncreaseExpansionDepth}function Dt(we,se,on=!1){if(!on&&IC(we))return!1;for(let Pe=0;Pe<se.typeStack.length-1;Pe++)if(se.typeStack[Pe]===we.id)return!1;let pn=se.depth<se.maxExpansionDepth;return pn||(se.out.canIncreaseExpansionDepth=!0),pn}function $t(we,se){let on=Ie(se);we&&se.typeStack.push(we.id);let pn=Tn(we,se);return we&&se.typeStack.pop(),on(),pn}function Tn(we,se){var on,pn;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Pe=se.flags&8388608;se.flags&=-8388609;let qe=!1;if(!we){if(!(se.flags&262144)){se.encounteredError=!0;return}return se.approximateLength+=3,L.createKeywordTypeNode(133)}if(se.flags&536870912||(we=Mm(we)),we.flags&1)return we.aliasSymbol?L.createTypeReferenceNode(gc(we.aliasSymbol),Er(we.aliasTypeArguments,se)):we===Kt?xb(L.createKeywordTypeNode(133),3,"unresolved"):(se.approximateLength+=3,L.createKeywordTypeNode(we===Oe?141:133));if(we.flags&2)return L.createKeywordTypeNode(159);if(we.flags&4)return se.approximateLength+=6,L.createKeywordTypeNode(154);if(we.flags&8)return se.approximateLength+=6,L.createKeywordTypeNode(150);if(we.flags&64)return se.approximateLength+=6,L.createKeywordTypeNode(163);if(we.flags&16&&!we.aliasSymbol)return se.approximateLength+=7,L.createKeywordTypeNode(136);if(we.flags&1056){if(we.symbol.flags&8){let bn=$c(we.symbol),Yr=Ts(bn,se,788968);if(qs(bn)===we)return Yr;let Fo=wl(we.symbol);return pp(Fo,1)?sr(Yr,L.createTypeReferenceNode(Fo,void 0)):Zh(Yr)?(Yr.isTypeOf=!0,L.createIndexedAccessTypeNode(Yr,L.createLiteralTypeNode(L.createStringLiteral(Fo)))):wp(Yr)?L.createIndexedAccessTypeNode(L.createTypeQueryNode(Yr.typeName),L.createLiteralTypeNode(L.createStringLiteral(Fo))):C.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(Dt(we,se))qe=!0;else return Ts(we.symbol,se,788968)}if(we.flags&128)return se.approximateLength+=we.value.length+2,L.createLiteralTypeNode(Cr(L.createStringLiteral(we.value,!!(se.flags&268435456)),16777216));if(we.flags&256){let bn=we.value;return se.approximateLength+=(""+bn).length,L.createLiteralTypeNode(bn<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-bn)):L.createNumericLiteral(bn))}if(we.flags&2048)return se.approximateLength+=R1(we.value).length+1,L.createLiteralTypeNode(L.createBigIntLiteral(we.value));if(we.flags&512)return se.approximateLength+=we.intrinsicName.length,L.createLiteralTypeNode(we.intrinsicName==="true"?L.createTrue():L.createFalse());if(we.flags&8192){if(!(se.flags&1048576)){if(Wx(we.symbol,se.enclosingDeclaration))return se.approximateLength+=6,Ts(we.symbol,se,111551);se.tracker.reportInaccessibleUniqueSymbolError&&se.tracker.reportInaccessibleUniqueSymbolError()}return se.approximateLength+=13,L.createTypeOperatorNode(158,L.createKeywordTypeNode(155))}if(we.flags&16384)return se.approximateLength+=4,L.createKeywordTypeNode(116);if(we.flags&32768)return se.approximateLength+=9,L.createKeywordTypeNode(157);if(we.flags&65536)return se.approximateLength+=4,L.createLiteralTypeNode(L.createNull());if(we.flags&131072)return se.approximateLength+=5,L.createKeywordTypeNode(146);if(we.flags&4096)return se.approximateLength+=6,L.createKeywordTypeNode(155);if(we.flags&67108864)return se.approximateLength+=6,L.createKeywordTypeNode(151);if(DM(we))return se.flags&4194304&&(!se.encounteredError&&!(se.flags&32768)&&(se.encounteredError=!0),(pn=(on=se.tracker).reportInaccessibleThisError)==null||pn.call(on)),se.approximateLength+=4,L.createThisTypeNode();if(!Pe&&we.aliasSymbol&&(se.flags&16384||i2(we.aliasSymbol,se.enclosingDeclaration))){if(!Dt(we,se,!0)){let bn=Er(we.aliasTypeArguments,se);return kT(we.aliasSymbol.escapedName)&&!(we.aliasSymbol.flags&32)?L.createTypeReferenceNode(L.createIdentifier(""),bn):et(bn)===1&&we.aliasSymbol===es.symbol?L.createArrayTypeNode(bn[0]):Ts(we.aliasSymbol,se,788968,bn)}se.depth+=1}let ct=Hr(we);if(ct&4)return C.assert(!!(we.flags&524288)),Dt(we,se)?(se.depth+=1,fr(we,!0,!0)):we.node?Br(we,mi):mi(we);if(we.flags&262144||ct&3){if(we.flags&262144&&jn(se.inferTypeParameters,we)){se.approximateLength+=wl(we.symbol).length+6;let Yr,Fo=ju(we);if(Fo){let vo=hOe(we,!0);vo&&Ug(Fo,vo)||(se.approximateLength+=9,Yr=Fo&&$t(Fo,se))}return L.createInferTypeNode(fo(we,se,Yr))}if(se.flags&4&&we.flags&262144){let Yr=Sl(we,se);return se.approximateLength+=Kr(Yr).length,L.createTypeReferenceNode(L.createIdentifier(Kr(Yr)),void 0)}if(ct&3&&Dt(we,se))return se.depth+=1,fr(we,!0,!0);if(we.symbol)return Ts(we.symbol,se,788968);let bn=(we===pt||we===qt)&&N&&N.symbol?(we===qt?"sub-":"super-")+wl(N.symbol):"?";return L.createTypeReferenceNode(L.createIdentifier(bn),void 0)}if(we.flags&1048576&&we.origin&&(we=we.origin),we.flags&3145728){let bn=we.flags&1048576?u4(we.types,qe):we.types;if(et(bn)===1)return $t(bn[0],se);let Yr=Er(bn,se,!0);if(Yr&&Yr.length>0)return we.flags&1048576?L.createUnionTypeNode(Yr):L.createIntersectionTypeNode(Yr);!se.encounteredError&&!(se.flags&262144)&&(se.encounteredError=!0);return}if(ct&48)return C.assert(!!(we.flags&524288)),fr(we);if(we.flags&4194304){let bn=we.type;se.approximateLength+=6;let Yr=$t(bn,se);return L.createTypeOperatorNode(143,Yr)}if(we.flags&134217728){let bn=we.texts,Yr=we.types,Fo=L.createTemplateHead(bn[0]),vo=L.createNodeArray(Vt(Yr,(Ya,ms)=>L.createTemplateLiteralTypeSpan($t(Ya,se),(ms<Yr.length-1?L.createTemplateMiddle:L.createTemplateTail)(bn[ms+1]))));return se.approximateLength+=2,L.createTemplateLiteralType(Fo,vo)}if(we.flags&268435456){let bn=$t(we.type,se);return Ts(we.symbol,se,788968,[bn])}if(we.flags&8388608){let bn=$t(we.objectType,se),Yr=$t(we.indexType,se);return se.approximateLength+=2,L.createIndexedAccessTypeNode(bn,Yr)}if(we.flags&16777216)return Br(we,bn=>Gt(bn));if(we.flags&33554432){let bn=$t(we.baseType,se),Yr=kC(we)&&Lhe("NoInfer",!1);return Yr?Ts(Yr,se,788968,[bn]):bn}return C.fail("Should be unreachable.");function Gt(bn){let Yr=$t(bn.checkType,se);if(se.approximateLength+=15,se.flags&4&&bn.root.isDistributive&&!(bn.checkType.flags&262144)){let No=Gu(ja(262144,"T")),Lc=Sl(No,se),kc=L.createTypeReferenceNode(Lc);se.approximateLength+=37;let Od=yA(bn.root.checkType,No,bn.mapper),hu=se.inferTypeParameters;se.inferTypeParameters=bn.root.inferTypeParameters;let Hu=$t(io(bn.root.extendsType,Od),se);se.inferTypeParameters=hu;let Hy=sn(io(a(se,bn.root.node.trueType),Od)),ZT=sn(io(a(se,bn.root.node.falseType),Od));return L.createConditionalTypeNode(Yr,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(kc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(Lc)),$t(bn.checkType,se),L.createConditionalTypeNode(kc,Hu,Hy,ZT),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}let Fo=se.inferTypeParameters;se.inferTypeParameters=bn.root.inferTypeParameters;let vo=$t(bn.extendsType,se);se.inferTypeParameters=Fo;let Ya=sn(c0(bn)),ms=sn(d0(bn));return L.createConditionalTypeNode(Yr,vo,Ya,ms)}function sn(bn){var Yr,Fo,vo;return bn.flags&1048576?(Yr=se.visitedTypes)!=null&&Yr.has(pd(bn))?(se.flags&131072||(se.encounteredError=!0,(vo=(Fo=se.tracker)==null?void 0:Fo.reportCyclicStructureError)==null||vo.call(Fo)),nr(se)):Br(bn,Ya=>$t(Ya,se)):$t(bn,se)}function Ut(bn){return!!R4(bn)}function un(bn){return!!bn.target&&Ut(bn.target)&&!Ut(bn)}function Zn(bn){var Yr;C.assert(!!(bn.flags&524288));let Fo=bn.declaration.readonlyToken?L.createToken(bn.declaration.readonlyToken.kind):void 0,vo=bn.declaration.questionToken?L.createToken(bn.declaration.questionToken.kind):void 0,Ya,ms,No=Bg(bn),Lc=Zm(bn),kc=!NC(bn)&&!(FT(bn).flags&2)&&se.flags&4&&!(xf(bn).flags&262144&&((Yr=ju(xf(bn)))==null?void 0:Yr.flags)&4194304);if(NC(bn)){if(un(bn)&&se.flags&4){let g0=Gu(ja(262144,"T")),sR=Sl(g0,se),V2=bn.target;ms=L.createTypeReferenceNode(sR),No=io(Bg(V2),v4e([Zm(V2),FT(V2)],[Lc,g0]))}Ya=L.createTypeOperatorNode(143,ms||$t(FT(bn),se))}else if(kc){let g0=Gu(ja(262144,"T")),sR=Sl(g0,se);ms=L.createTypeReferenceNode(sR),Ya=ms}else Ya=$t(xf(bn),se);let Od=fo(Lc,se,Ya),hu=Ko(se,bn.declaration,void 0,[WT(Wr(bn.declaration.typeParameter))]),Hu=bn.declaration.nameType?$t(wv(bn),se):void 0,Hy=$t(Gy(No,!!($_(bn)&4)),se);hu();let ZT=L.createMappedTypeNode(Fo,Od,Hu,vo,Hy,void 0);se.approximateLength+=10;let DS=Cr(ZT,1);if(un(bn)&&se.flags&4){let g0=io(ju(a(se,bn.declaration.typeParameter.constraint.type))||Nt,bn.mapper);return L.createConditionalTypeNode($t(FT(bn),se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(ms.typeName),g0.flags&2?void 0:$t(g0,se))),DS,L.createKeywordTypeNode(146))}else if(kc)return L.createConditionalTypeNode($t(xf(bn),se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(ms.typeName),L.createTypeOperatorNode(143,$t(FT(bn),se)))),DS,L.createKeywordTypeNode(146));return DS}function fr(bn,Yr=!1,Fo=!1){var vo,Ya;let ms=bn.id,No=bn.symbol;if(No){if(!!(Hr(bn)&8388608)){let Hu=bn.node;if(N1(Hu)&&a(se,Hu)===bn){let Hy=Ne.tryReuseExistingTypeNode(se,Hu);if(Hy)return Hy}return(vo=se.visitedTypes)!=null&&vo.has(ms)?nr(se):Br(bn,li)}let Od=d4(bn)?788968:111551;if(S_(No.valueDeclaration))return Ts(No,se,Od);if(!Fo&&(No.flags&32&&!Yr&&!m4(No)&&!(No.valueDeclaration&&ui(No.valueDeclaration)&&se.flags&2048&&(!Cc(No.valueDeclaration)||n0(No,se.enclosingDeclaration,Od,!1).accessibility!==0))||No.flags&896||Lc()))if(Dt(bn,se))se.depth+=1;else return Ts(No,se,Od);if((Ya=se.visitedTypes)!=null&&Ya.has(ms)){let hu=C5(bn);return hu?Ts(hu,se,788968):nr(se)}else return Br(bn,li)}else return li(bn);function Lc(){var kc;let Od=!!(No.flags&8192)&&vt(No.declarations,Hu=>ua(Hu)&&!Owe(Oo(Hu))),hu=!!(No.flags&16)&&(No.parent||Je(No.declarations,Hu=>Hu.parent.kind===308||Hu.parent.kind===269));if(Od||hu)return(!!(se.flags&4096)||((kc=se.visitedTypes)==null?void 0:kc.has(ms)))&&(!(se.flags&8)||Wx(No,se.enclosingDeclaration))}}function Br(bn,Yr){var Fo,vo,Ya;let ms=bn.id,No=Hr(bn)&16&&bn.symbol&&bn.symbol.flags&32,Lc=Hr(bn)&4&&bn.node?"N"+ss(bn.node):bn.flags&16777216?"N"+ss(bn.root.node):bn.symbol?(No?"+":"")+Ta(bn.symbol):void 0;se.visitedTypes||(se.visitedTypes=new Set),Lc&&!se.symbolDepth&&(se.symbolDepth=new Map);let kc=se.maxExpansionDepth>=0?void 0:se.enclosingDeclaration&&Vr(se.enclosingDeclaration),Od=`${pd(bn)}|${se.flags}|${se.internalFlags}`;kc&&(kc.serializedTypes||(kc.serializedTypes=new Map));let hu=(Fo=kc?.serializedTypes)==null?void 0:Fo.get(Od);if(hu)return(vo=hu.trackedSymbols)==null||vo.forEach(([ng,KC,$9])=>se.tracker.trackSymbol(ng,KC,$9)),hu.truncating&&(se.truncating=!0),se.approximateLength+=hu.addedLength,sR(hu.node);let Hu;if(Lc){if(Hu=se.symbolDepth.get(Lc)||0,Hu>10)return nr(se);se.symbolDepth.set(Lc,Hu+1)}se.visitedTypes.add(ms);let Hy=se.trackedSymbols;se.trackedSymbols=void 0;let ZT=se.approximateLength,DS=Yr(bn),g0=se.approximateLength-ZT;return!se.reportedDiagnostic&&!se.encounteredError&&((Ya=kc?.serializedTypes)==null||Ya.set(Od,{node:DS,truncating:se.truncating,addedLength:g0,trackedSymbols:se.trackedSymbols})),se.visitedTypes.delete(ms),Lc&&se.symbolDepth.set(Lc,Hu),se.trackedSymbols=Hy,DS;function sR(ng){return!Os(ng)&&jo(ng)===ng?ng:c(se,L.cloneNode(kn(ng,sR,void 0,V2,sR)),ng)}function V2(ng,KC,$9,kye,wye){return ng&&ng.length===0?bt(L.createNodeArray(void 0,ng.hasTrailingComma),ng):Xn(ng,KC,$9,kye,wye)}}function li(bn){if(cp(bn)||bn.containsError)return Zn(bn);let Yr=Dh(bn);if(!Yr.properties.length&&!Yr.indexInfos.length){if(!Yr.callSignatures.length&&!Yr.constructSignatures.length)return se.approximateLength+=2,Cr(L.createTypeLiteralNode(void 0),1);if(Yr.callSignatures.length===1&&!Yr.constructSignatures.length){let No=Yr.callSignatures[0];return ii(No,185,se)}if(Yr.constructSignatures.length===1&&!Yr.callSignatures.length){let No=Yr.constructSignatures[0];return ii(No,186,se)}}let Fo=Un(Yr.constructSignatures,No=>!!(No.flags&4));if(vt(Fo)){let No=Vt(Fo,pA);return Yr.callSignatures.length+(Yr.constructSignatures.length-Fo.length)+Yr.indexInfos.length+(se.flags&2048?Io(Yr.properties,kc=>!(kc.flags&4194304)):et(Yr.properties))&&No.push(oA(Yr)),$t(Ma(No),se)}let vo=Ie(se);se.flags|=4194304;let Ya=ts(Yr);vo();let ms=L.createTypeLiteralNode(Ya);return se.approximateLength+=2,Cr(ms,se.flags&1024?0:1),ms}function mi(bn){let Yr=rl(bn);if(bn.target===es||bn.target===Va){if(se.flags&2){let Ya=$t(Yr[0],se);return L.createTypeReferenceNode(bn.target===es?"Array":"ReadonlyArray",[Ya])}let Fo=$t(Yr[0],se),vo=L.createArrayTypeNode(Fo);return bn.target===es?vo:L.createTypeOperatorNode(148,vo)}else if(bn.target.objectFlags&8){if(Yr=Zi(Yr,(Fo,vo)=>Gy(Fo,!!(bn.target.elementFlags[vo]&2))),Yr.length>0){let Fo=Fv(bn),vo=Er(Yr.slice(0,Fo),se);if(vo){let{labeledElementDeclarations:Ya}=bn.target;for(let No=0;No<vo.length;No++){let Lc=bn.target.elementFlags[No],kc=Ya?.[No];kc?vo[No]=L.createNamedTupleMember(Lc&12?L.createToken(26):void 0,L.createIdentifier(Vi(zge(kc))),Lc&2?L.createToken(58):void 0,Lc&4?L.createArrayTypeNode(vo[No]):vo[No]):vo[No]=Lc&12?L.createRestTypeNode(Lc&4?L.createArrayTypeNode(vo[No]):vo[No]):Lc&2?L.createOptionalTypeNode(vo[No]):vo[No]}let ms=Cr(L.createTupleTypeNode(vo),1);return bn.target.readonly?L.createTypeOperatorNode(148,ms):ms}}if(se.encounteredError||se.flags&524288){let Fo=Cr(L.createTupleTypeNode([]),1);return bn.target.readonly?L.createTypeOperatorNode(148,Fo):Fo}se.encounteredError=!0;return}else{if(se.flags&2048&&bn.symbol.valueDeclaration&&ui(bn.symbol.valueDeclaration)&&!Wx(bn.symbol,se.enclosingDeclaration))return fr(bn);{let Fo=bn.target.outerTypeParameters,vo=0,Ya;if(Fo){let kc=Fo.length;for(;vo<kc;){let Od=vo,hu=_Oe(Fo[vo]);do vo++;while(vo<kc&&_Oe(Fo[vo])===hu);if(!Iz(Fo,Yr,Od,vo)){let Hu=Er(Yr.slice(Od,vo),se),Hy=Ie(se);se.flags|=16;let ZT=Ts(hu,se,788968,Hu);Hy(),Ya=Ya?sr(Ya,ZT):ZT}}}let ms;if(Yr.length>0){let kc=0;if(bn.target.typeParameters&&(kc=Math.min(bn.target.typeParameters.length,Yr.length),(Hp(bn,nY(!1))||Hp(bn,wOe(!1))||Hp(bn,G5(!1))||Hp(bn,kOe(!1)))&&(!bn.node||!wp(bn.node)||!bn.node.typeArguments||bn.node.typeArguments.length<kc)))for(;kc>0;){let Od=Yr[kc-1],hu=bn.target.typeParameters[kc-1],Hu=hS(hu);if(!Hu||!Ug(Od,Hu))break;kc--}ms=Er(Yr.slice(vo,kc),se)}let No=Ie(se);se.flags|=16;let Lc=Ts(bn.symbol,se,788968,ms);return No(),Ya?sr(Ya,Lc):Lc}}}function sr(bn,Yr){if(Zh(bn)){let Fo=bn.typeArguments,vo=bn.qualifier;vo&&(He(vo)?Fo!==sE(vo)&&(vo=av(L.cloneNode(vo),Fo)):Fo!==sE(vo.right)&&(vo=L.updateQualifiedName(vo,vo.left,av(L.cloneNode(vo.right),Fo)))),Fo=Yr.typeArguments;let Ya=xi(Yr);for(let ms of Ya)vo=vo?L.createQualifiedName(vo,ms):ms;return L.updateImportTypeNode(bn,bn.argument,bn.attributes,vo,Fo,bn.isTypeOf)}else{let Fo=bn.typeArguments,vo=bn.typeName;He(vo)?Fo!==sE(vo)&&(vo=av(L.cloneNode(vo),Fo)):Fo!==sE(vo.right)&&(vo=L.updateQualifiedName(vo,vo.left,av(L.cloneNode(vo.right),Fo))),Fo=Yr.typeArguments;let Ya=xi(Yr);for(let ms of Ya)vo=L.createQualifiedName(vo,ms);return L.updateTypeReferenceNode(bn,vo,Fo)}}function xi(bn){let Yr=bn.typeName,Fo=[];for(;!He(Yr);)Fo.unshift(Yr.right),Yr=Yr.left;return Fo.unshift(Yr),Fo}function mo(bn,Yr,Fo){if(bn.components&&Vn(bn.components,Ya=>{var ms;return!!(Ya.name&&va(Ya.name)&&Ds(Ya.name.expression)&&Yr.enclosingDeclaration&&((ms=zx(Ya.name.expression,Yr.enclosingDeclaration,!1))==null?void 0:ms.accessibility)===0)})){let Ya=Un(bn.components,ms=>!DC(ms));return Vt(Ya,ms=>(vr(ms.name.expression,Yr.enclosingDeclaration,Yr),c(Yr,L.createPropertySignature(bn.isReadonly?[L.createModifier(148)]:void 0,ms.name,(Tu(ms)||Po(ms)||Bm(ms)||Nl(ms)||dg(ms)||Gh(ms))&&ms.questionToken?L.createToken(58):void 0,Fo||$t(_r(ms.symbol),Yr)),ms)))}return[oo(bn,Yr,Fo)]}function ts(bn){if(Ze(se))return se.out.truncated=!0,se.flags&1?[LM(L.createNotEmittedTypeElement(),3,"elided")]:[L.createPropertySignature(void 0,"...",void 0,void 0)];se.typeStack.push(-1);let Yr=[];for(let Ya of bn.callSignatures)Yr.push(ii(Ya,180,se));for(let Ya of bn.constructSignatures)Ya.flags&4||Yr.push(ii(Ya,181,se));for(let Ya of bn.indexInfos)Yr.push(...mo(Ya,se,bn.objectFlags&1024?nr(se):void 0));let Fo=bn.properties;if(!Fo)return se.typeStack.pop(),Yr;let vo=0;for(let Ya of Fo)if(!(QT(se)&&Ya.flags&4194304)){if(vo++,se.flags&2048){if(Ya.flags&4194304)continue;Bf(Ya)&6&&se.tracker.reportPrivateInBaseOfClassExpression&&se.tracker.reportPrivateInBaseOfClassExpression(Vi(Ya.escapedName))}if(Ze(se)&&vo+2<Fo.length-1){if(se.out.truncated=!0,se.flags&1){let ms=Yr.pop();Yr.push(LM(ms,3,`... ${Fo.length-vo} more elided ...`))}else Yr.push(L.createPropertySignature(void 0,`... ${Fo.length-vo} more ...`,void 0,void 0));Sn(Fo[Fo.length-1],se,Yr);break}Sn(Ya,se,Yr)}return se.typeStack.pop(),Yr.length?Yr:void 0}}function nr(we){return we.approximateLength+=3,we.flags&1?xb(L.createKeywordTypeNode(133),3,"elided"):L.createTypeReferenceNode(L.createIdentifier("..."),void 0)}function yr(we,se){var on;return!!(Wl(we)&8192)&&(jn(se.reverseMappedStack,we)||((on=se.reverseMappedStack)==null?void 0:on[0])&&!(Hr(Ba(se.reverseMappedStack).links.propertyType)&16)||Pe());function Pe(){var qe;if((((qe=se.reverseMappedStack)==null?void 0:qe.length)??0)<3)return!1;for(let ct=0;ct<3;ct++)if(se.reverseMappedStack[se.reverseMappedStack.length-1-ct].links.mappedType.symbol!==we.links.mappedType.symbol)return!1;return!0}}function Sn(we,se,on){var pn;let Pe=!!(Wl(we)&8192),qe=yr(we,se)?Ue:xh(we),ct=se.enclosingDeclaration;if(se.enclosingDeclaration=void 0,se.tracker.canTrackSymbol&&h4(we.escapedName))if(we.declarations){let Br=$a(we.declarations);if(DC(Br))if(Nr(Br)){let li=Oo(Br);li&&Ws(li)&&Rk(li.argumentExpression)&&vr(li.argumentExpression,ct,se)}else vr(Br.name.expression,ct,se)}else se.tracker.reportNonSerializableProperty(uo(we));se.enclosingDeclaration=we.valueDeclaration||((pn=we.declarations)==null?void 0:pn[0])||ct;let Gt=G2(we,se);if(se.enclosingDeclaration=ct,se.approximateLength+=wl(we).length+1,we.flags&98304){let Br=kv(we);if(!pr(qe)&&!pr(Br)){let li=Jr(we).mapper,mi=al(we,173);if(qe!==Br||we.parent.flags&32&&!mi){let sr=al(we,178);if(sr){let mo=Rf(sr);on.push(vn(se,ii(li?vA(mo,li):mo,178,se,{name:Gt}),sr))}let xi=al(we,179);if(xi){let mo=Rf(xi);on.push(vn(se,ii(li?vA(mo,li):mo,179,se,{name:Gt}),xi))}return}if(we.parent.flags&32&&mi&&hn(mi.modifiers,aj)){let sr=g_(void 0,void 0,void 0,ae,qe,void 0,0,0);on.push(vn(se,ii(sr,178,se,{name:Gt}),mi));let xi=ja(1,"arg");xi.links.type=Br;let mo=g_(void 0,void 0,void 0,[xi],In,void 0,0,0);on.push(ii(mo,179,se,{name:Gt}));return}}}let sn=we.flags&16777216?L.createToken(58):void 0;if(we.flags&8208&&!Ov(qe).length&&!wh(we)){let Br=na(Ac(qe,li=>!(li.flags&32768)),0);for(let li of Br){let mi=ii(li,174,se,{name:Gt,questionToken:sn});on.push(fr(mi,li.declaration||we.valueDeclaration))}if(Br.length||!sn)return}let Ut;yr(we,se)?Ut=nr(se):(Pe&&(se.reverseMappedStack||(se.reverseMappedStack=[]),se.reverseMappedStack.push(we)),Ut=qe?Gr(se,void 0,qe,we):L.createKeywordTypeNode(133),Pe&&se.reverseMappedStack.pop());let un=wh(we)?[L.createToken(148)]:void 0;un&&(se.approximateLength+=9);let Zn=L.createPropertySignature(un,Gt,sn,Ut);on.push(fr(Zn,we.valueDeclaration));function fr(Br,li){var mi;let sr=(mi=we.declarations)==null?void 0:mi.find(xi=>xi.kind===349);if(sr){let xi=IL(sr.comment);xi&&B0(Br,[{kind:3,text:`*
* `+xi.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else li&&vn(se,Br,li);return Br}}function vn(we,se,on){return we.enclosingFile&&we.enclosingFile===Wn(on)?Dc(se,on):se}function Er(we,se,on){if(vt(we)){if(Ze(se))if(se.out.truncated=!0,on){if(we.length>2)return[$t(we[0],se),se.flags&1?xb(L.createKeywordTypeNode(133),3,`... ${we.length-2} more elided ...`):L.createTypeReferenceNode(`... ${we.length-2} more ...`,void 0),$t(we[we.length-1],se)]}else return[se.flags&1?xb(L.createKeywordTypeNode(133),3,"elided"):L.createTypeReferenceNode("...",void 0)];let Pe=!(se.flags&64)?lm():void 0,qe=[],ct=0;for(let Gt of we){if(ct++,Ze(se)&&ct+2<we.length-1){se.out.truncated=!0,qe.push(se.flags&1?xb(L.createKeywordTypeNode(133),3,`... ${we.length-ct} more elided ...`):L.createTypeReferenceNode(`... ${we.length-ct} more ...`,void 0));let Ut=$t(we[we.length-1],se);Ut&&qe.push(Ut);break}se.approximateLength+=2;let sn=$t(Gt,se);sn&&(qe.push(sn),Pe&&Ire(sn)&&Pe.add(sn.typeName.escapedText,[Gt,qe.length-1]))}if(Pe){let Gt=Ie(se);se.flags|=64,Pe.forEach(sn=>{if(!xre(sn,([Ut],[un])=>fi(Ut,un)))for(let[Ut,un]of sn)qe[un]=$t(Ut,se)}),Gt()}return qe}}function fi(we,se){return we===se||!!we.symbol&&we.symbol===se.symbol||!!we.aliasSymbol&&we.aliasSymbol===se.aliasSymbol}function oo(we,se,on){let pn=Fte(we)||"x",Pe=$t(we.keyType,se),qe=L.createParameterDeclaration(void 0,void 0,pn,void 0,Pe,void 0);return on||(on=$t(we.type||Ue,se)),!we.type&&!(se.flags&2097152)&&(se.encounteredError=!0),se.approximateLength+=pn.length+4,L.createIndexSignature(we.isReadonly?[L.createToken(148)]:void 0,[qe],on)}function ii(we,se,on,pn){var Pe;let qe,ct,Gt=jwe(we,!0)[0],sn=Ko(on,we.declaration,Gt,we.typeParameters,we.parameters,we.mapper);on.approximateLength+=3,on.flags&32&&we.target&&we.mapper&&we.target.typeParameters?ct=we.target.typeParameters.map(mi=>$t(io(mi,we.mapper),on)):qe=we.typeParameters&&we.typeParameters.map(mi=>Kl(mi,on));let Ut=Ie(on);on.flags&=-257;let un=(vt(Gt,mi=>mi!==Gt[Gt.length-1]&&!!(Wl(mi)&32768))?we.parameters:Gt).map(mi=>rr(mi,on,se===177)),Zn=on.flags&33554432?void 0:fs(we,on);Zn&&un.unshift(Zn),Ut();let fr=Pa(on,we),Br=pn?.modifiers;if(se===186&&we.flags&4){let mi=Kh(Br);Br=L.createModifiersFromModifierFlags(mi|64)}let li=se===180?L.createCallSignature(qe,un,fr):se===181?L.createConstructSignature(qe,un,fr):se===174?L.createMethodSignature(Br,pn?.name??L.createIdentifier(""),pn?.questionToken,qe,un,fr):se===175?L.createMethodDeclaration(Br,void 0,pn?.name??L.createIdentifier(""),void 0,qe,un,fr,void 0):se===177?L.createConstructorDeclaration(Br,un,void 0):se===178?L.createGetAccessorDeclaration(Br,pn?.name??L.createIdentifier(""),un,fr,void 0):se===179?L.createSetAccessorDeclaration(Br,pn?.name??L.createIdentifier(""),un,void 0):se===182?L.createIndexSignature(Br,un,fr):se===318?L.createJSDocFunctionType(un,fr):se===185?L.createFunctionTypeNode(qe,un,fr??L.createTypeReferenceNode(L.createIdentifier(""))):se===186?L.createConstructorTypeNode(Br,qe,un,fr??L.createTypeReferenceNode(L.createIdentifier(""))):se===263?L.createFunctionDeclaration(Br,void 0,pn?.name?ma(pn.name,He):L.createIdentifier(""),qe,un,fr,void 0):se===219?L.createFunctionExpression(Br,void 0,pn?.name?ma(pn.name,He):L.createIdentifier(""),qe,un,fr,L.createBlock([])):se===220?L.createArrowFunction(Br,qe,un,fr,void 0,L.createBlock([])):C.assertNever(se);if(ct&&(li.typeArguments=L.createNodeArray(ct)),((Pe=we.declaration)==null?void 0:Pe.kind)===324&&we.declaration.parent.kind===340){let mi=Al(we.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(sr=>sr.replace(/^\s+/," ")).join(`
`);xb(li,3,mi,!0)}return sn?.(),li}function zi(we){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let se,on,pn=!1,Pe=we.tracker,qe=we.trackedSymbols;we.trackedSymbols=void 0;let ct=we.encounteredError;return we.tracker=new aae(we,{...Pe.inner,reportCyclicStructureError(){Gt(()=>Pe.reportCyclicStructureError())},reportInaccessibleThisError(){Gt(()=>Pe.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){Gt(()=>Pe.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(un){Gt(()=>Pe.reportLikelyUnsafeImportRequiredError(un))},reportNonSerializableProperty(un){Gt(()=>Pe.reportNonSerializableProperty(un))},reportPrivateInBaseOfClassExpression(un){Gt(()=>Pe.reportPrivateInBaseOfClassExpression(un))},trackSymbol(un,Zn,fr){return(se??(se=[])).push([un,Zn,fr]),!1},moduleResolverHost:we.tracker.moduleResolverHost},we.tracker.moduleResolverHost),{startRecoveryScope:sn,finalizeBoundary:Ut,markError:Gt,hadError:()=>pn};function Gt(un){pn=!0,un&&(on??(on=[])).push(un)}function sn(){let un=se?.length??0,Zn=on?.length??0;return()=>{pn=!1,se&&(se.length=un),on&&(on.length=Zn)}}function Ut(){return we.tracker=Pe,we.trackedSymbols=qe,we.encounteredError=ct,on?.forEach(un=>un()),pn?!1:(se?.forEach(([un,Zn,fr])=>we.tracker.trackSymbol(un,Zn,fr)),!0)}}function Ko(we,se,on,pn,Pe,qe){let ct=u8(we),Gt,sn,Ut=we.enclosingDeclaration,un=we.mapper;if(qe&&(we.mapper=qe),we.enclosingDeclaration&&se){let Zn=function(fr,Br){C.assert(we.enclosingDeclaration);let li;Vr(we.enclosingDeclaration).fakeScopeForSignatureDeclaration===fr?li=we.enclosingDeclaration:we.enclosingDeclaration.parent&&Vr(we.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===fr&&(li=we.enclosingDeclaration.parent),C.assertOptionalNode(li,ea);let mi=li?.locals??da(),sr,xi;if(Br((mo,ts)=>{if(li){let bn=mi.get(mo);bn?xi=Bn(xi,{name:mo,oldSymbol:bn}):sr=Bn(sr,mo)}mi.set(mo,ts)}),li)return function(){Je(sr,ts=>mi.delete(ts)),Je(xi,ts=>mi.set(ts.name,ts.oldSymbol))};{let mo=L.createBlock(ae);Vr(mo).fakeScopeForSignatureDeclaration=fr,mo.locals=mi,us(mo,we.enclosingDeclaration),we.enclosingDeclaration=mo}};Gt=vt(on)?Zn("params",fr=>{if(on)for(let Br=0;Br<on.length;Br++){let li=on[Br],mi=Pe?.[Br];Pe&&mi!==li?(fr(li.escapedName,ne),mi&&fr(mi.escapedName,ne)):Je(li.declarations,sr=>{if(to(sr)&&Qo(sr.name))return xi(sr.name),!0;return;function xi(ts){Je(ts.elements,bn=>{switch(bn.kind){case 233:return;case 209:return mo(bn);default:return C.assertNever(bn)}})}function mo(ts){if(Qo(ts.name))return xi(ts.name);let bn=Wr(ts);fr(bn.escapedName,bn)}})||fr(li.escapedName,li)}}):void 0,we.flags&4&&vt(pn)&&(sn=Zn("typeParams",fr=>{for(let Br of pn??ae){let li=Sl(Br,we).escapedText;fr(li,Br.symbol)}}))}return()=>{Gt?.(),sn?.(),ct(),we.enclosingDeclaration=Ut,we.mapper=un}}function fs(we,se){if(we.thisParameter)return rr(we.thisParameter,se);if(we.declaration&&Ir(we.declaration)){let on=e6(we.declaration);if(on&&on.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,$t(a(se,on.typeExpression),se))}}function fo(we,se,on){let pn=Ie(se);se.flags&=-513;let Pe=L.createModifiersFromModifierFlags(y_e(we)),qe=Sl(we,se),ct=hS(we),Gt=ct&&$t(ct,se);return pn(),L.createTypeParameterDeclaration(Pe,qe,on,Gt)}function dl(we,se,on){return!Tt(we,on)&&se&&a(on,se)===we&&Ne.tryReuseExistingTypeNode(on,se)||$t(we,on)}function Kl(we,se,on=ju(we)){let pn=on&&dl(on,YX(we),se);return fo(we,se,pn)}function fu(we,se){let on=we.kind===2||we.kind===3?L.createToken(131):void 0,pn=we.kind===1||we.kind===3?Cr(L.createIdentifier(we.parameterName),16777216):L.createThisTypeNode(),Pe=we.type&&$t(we.type,se);return L.createTypePredicateNode(on,pn,Pe)}function qn(we){let se=al(we,170);if(se)return se;if(!ug(we))return al(we,342)}function rr(we,se,on){let pn=qn(we),Pe=_r(we),qe=Gr(se,pn,Pe,we),ct=!(se.flags&8192)&&on&&pn&&bm(pn)?Vt(a1(pn),L.cloneNode):void 0,sn=pn&&D_(pn)||Wl(we)&32768?L.createToken(26):void 0,Ut=Hi(we,pn,se),Zn=pn&&v4(pn)||Wl(we)&16384?L.createToken(58):void 0,fr=L.createParameterDeclaration(ct,sn,Ut,Zn,qe,void 0);return se.approximateLength+=wl(we).length+3,fr}function Hi(we,se,on){return se&&se.name?se.name.kind===80?Cr(L.cloneNode(se.name),16777216):se.name.kind===167?Cr(L.cloneNode(se.name.right),16777216):pn(se.name):wl(we);function pn(Pe){return qe(Pe);function qe(ct){on.tracker.canTrackSymbol&&va(ct)&&che(ct)&&vr(ct.expression,on.enclosingDeclaration,on);let Gt=kn(ct,qe,void 0,void 0,qe);return Ha(Gt)&&(Gt=L.updateBindingElement(Gt,Gt.dotDotDotToken,Gt.propertyName,Gt.name,void 0)),Os(Gt)||(Gt=L.cloneNode(Gt)),Cr(Gt,16777217)}}}function vr(we,se,on){if(!on.tracker.canTrackSymbol)return;let pn=Pu(we),Pe=_t(se,pn.escapedText,1160127,void 0,!0);if(Pe)on.tracker.trackSymbol(Pe,se,111551);else{let qe=_t(pn,pn.escapedText,1160127,void 0,!0);qe&&on.tracker.trackSymbol(qe,se,111551)}}function wo(we,se,on,pn){return se.tracker.trackSymbol(we,se.enclosingDeclaration,on),ys(we,se,on,pn)}function ys(we,se,on,pn){let Pe;return!(we.flags&262144)&&(se.enclosingDeclaration||se.flags&64)&&!(se.internalFlags&4)?(Pe=C.checkDefined(ct(we,on,!0)),C.assert(Pe&&Pe.length>0)):Pe=[we],Pe;function ct(Gt,sn,Ut){let un=Nv(Gt,se.enclosingDeclaration,sn,!!(se.flags&128)),Zn;if(!un||dS(un[0],se.enclosingDeclaration,un.length===1?sn:Ym(sn))){let Br=cS(un?un[0]:Gt,se.enclosingDeclaration,sn);if(et(Br)){Zn=Br.map(sr=>vt(sr.declarations,uS)?lc(sr,se):void 0);let li=Br.map((sr,xi)=>xi);li.sort(fr);let mi=li.map(sr=>Br[sr]);for(let sr of mi){let xi=ct(sr,Ym(sn),!1);if(xi){if(sr.exports&&sr.exports.get("export=")&&me(sr.exports.get("export="),Gt)){un=xi;break}un=xi.concat(un||[D(sr,Gt)||Gt]);break}}}}if(un)return un;if(Ut||!(Gt.flags&6144))return!Ut&&!pn&&Je(Gt.declarations,uS)?void 0:[Gt];function fr(Br,li){let mi=Zn[Br],sr=Zn[li];if(mi&&sr){let xi=Qp(sr);return Qp(mi)===xi?eF(mi)-eF(sr):xi?-1:1}return 0}}}function il(we,se){let on;return JC(we).flags&524384&&(on=L.createNodeArray(Vt(Na(we),Pe=>Kl(Pe,se)))),on}function md(we,se,on){var pn;C.assert(we&&0<=se&&se<we.length);let Pe=we[se],qe=Ta(Pe);if((pn=on.typeParameterSymbolList)!=null&&pn.has(qe))return;on.mustCreateTypeParameterSymbolList&&(on.mustCreateTypeParameterSymbolList=!1,on.typeParameterSymbolList=new Set(on.typeParameterSymbolList)),on.typeParameterSymbolList.add(qe);let ct;if(on.flags&512&&se<we.length-1){let Gt=Pe,sn=we[se+1];if(Wl(sn)&1){let Ut=Bs(Gt.flags&2097152?ud(Gt):Gt);ct=Er(Vt(Ut,un=>zv(un,sn.links.mapper)),on)}else ct=il(Pe,on)}return ct}function Xa(we){return P1(we.objectType)?Xa(we.objectType):we}function lc(we,se,on){let pn=al(we,308);if(!pn){let Zn=Hn(we.declarations,fr=>iA(fr,we));Zn&&(pn=al(Zn,308))}if(pn&&pn.moduleName!==void 0)return pn.moduleName;if(!pn&&rae.test(we.escapedName))return we.escapedName.substring(1,we.escapedName.length-1);if(!se.enclosingFile||!se.tracker.moduleResolverHost)return rae.test(we.escapedName)?we.escapedName.substring(1,we.escapedName.length-1):Wn(aG(we)).fileName;let Pe=yl(se.enclosingDeclaration),qe=cne(Pe)?sI(Pe):void 0,ct=se.enclosingFile,Gt=on||qe&&e.getModeForUsageLocation(ct,qe)||ct&&e.getDefaultResolutionModeForFile(ct),sn=eP(ct.path,Gt),Ut=Jr(we),un=Ut.specifierCache&&Ut.specifierCache.get(sn);if(!un){let Zn=!!O.outFile,{moduleResolverHost:fr}=se.tracker,Br=Zn?{...O,baseUrl:fr.getCommonSourceDirectory()}:O;un=$a(hSe(we,ir,Br,ct,fr,{importModuleSpecifierPreference:Zn?"non-relative":"project-relative",importModuleSpecifierEnding:Zn?"minimal":Gt===99?"js":void 0},{overrideImportMode:on})),Ut.specifierCache??(Ut.specifierCache=new Map),Ut.specifierCache.set(sn,un)}return un}function gc(we){let se=L.createIdentifier(Vi(we.escapedName));return we.parent?L.createQualifiedName(gc(we.parent),se):se}function Ts(we,se,on,pn){let Pe=wo(we,se,on,!(se.flags&16384)),qe=on===111551;if(vt(Pe[0].declarations,uS)){let sn=Pe.length>1?Gt(Pe,Pe.length-1,1):void 0,Ut=pn||md(Pe,0,se),un=Wn(yl(se.enclosingDeclaration)),Zn=FL(Pe[0]),fr,Br;if((ru(O)===3||ru(O)===99)&&Zn?.impliedNodeFormat===99&&Zn.impliedNodeFormat!==un?.impliedNodeFormat&&(fr=lc(Pe[0],se,99),Br=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),fr||(fr=lc(Pe[0],se)),!(se.flags&67108864)&&ru(O)!==1&&fr.includes("/node_modules/")){let mi=fr;if(ru(O)===3||ru(O)===99){let sr=un?.impliedNodeFormat===99?1:99;fr=lc(Pe[0],se,sr),fr.includes("/node_modules/")?fr=mi:Br=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(sr===99?"import":"require"))]))}Br||(se.encounteredError=!0,se.tracker.reportLikelyUnsafeImportRequiredError&&se.tracker.reportLikelyUnsafeImportRequiredError(mi))}let li=L.createLiteralTypeNode(L.createStringLiteral(fr));if(se.approximateLength+=fr.length+10,!sn||Nu(sn)){if(sn){let mi=He(sn)?sn:sn.right;av(mi,void 0)}return L.createImportTypeNode(li,Br,sn,Ut,qe)}else{let mi=Xa(sn),sr=mi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(li,Br,sr,Ut,qe),mi.indexType)}}let ct=Gt(Pe,Pe.length-1,0);if(P1(ct))return ct;if(qe)return L.createTypeQueryNode(ct);{let sn=He(ct)?ct:ct.right,Ut=sE(sn);return av(sn,void 0),L.createTypeReferenceNode(ct,Ut)}function Gt(sn,Ut,un){let Zn=Ut===sn.length-1?pn:md(sn,Ut,se),fr=sn[Ut],Br=sn[Ut-1],li;if(Ut===0)se.flags|=16777216,li=OT(fr,se),se.approximateLength+=(li?li.length:0)+1,se.flags^=16777216;else if(Br&&Up(Br)){let sr=Up(Br);qc(sr,(xi,mo)=>{if(me(xi,fr)&&!h4(mo)&&mo!=="export=")return li=Vi(mo),!0})}if(li===void 0){let sr=Hn(fr.declarations,Oo);if(sr&&va(sr)&&Nu(sr.expression)){let xi=Gt(sn,Ut-1,un);return Nu(xi)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(xi)),L.createTypeQueryNode(sr.expression)):xi}li=OT(fr,se)}if(se.approximateLength+=li.length+1,!(se.flags&16)&&Br&&Y_(Br)&&Y_(Br).get(fr.escapedName)&&me(Y_(Br).get(fr.escapedName),fr)){let sr=Gt(sn,Ut-1,un);return P1(sr)?L.createIndexedAccessTypeNode(sr,L.createLiteralTypeNode(L.createStringLiteral(li))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(sr,Zn),L.createLiteralTypeNode(L.createStringLiteral(li)))}let mi=Cr(L.createIdentifier(li),16777216);if(Zn&&av(mi,L.createNodeArray(Zn)),mi.symbol=fr,Ut>un){let sr=Gt(sn,Ut-1,un);return Nu(sr)?L.createQualifiedName(sr,mi):C.fail("Impossible construct - an export of an indexed access cannot be reachable")}return mi}}function Cf(we,se,on){let pn=_t(se.enclosingDeclaration,we,788968,void 0,!1);return pn&&pn.flags&262144?pn!==on.symbol:!1}function Sl(we,se){var on,pn,Pe,qe;if(se.flags&4&&se.typeParameterNames){let sn=se.typeParameterNames.get(pd(we));if(sn)return sn}let ct=tc(we.symbol,se,788968,!0);if(!(ct.kind&80))return L.createIdentifier("(Missing type parameter)");let Gt=(pn=(on=we.symbol)==null?void 0:on.declarations)==null?void 0:pn[0];if(Gt&&sl(Gt)&&(ct=c(se,ct,Gt.name)),se.flags&4){let sn=ct.escapedText,Ut=((Pe=se.typeParameterNamesByTextNextNameCount)==null?void 0:Pe.get(sn))||0,un=sn;for(;(qe=se.typeParameterNamesByText)!=null&&qe.has(un)||Cf(un,se,we);)Ut++,un=`${sn}_${Ut}`;if(un!==sn){let Zn=sE(ct);ct=L.createIdentifier(un),av(ct,Zn)}se.mustCreateTypeParametersNamesLookups&&(se.mustCreateTypeParametersNamesLookups=!1,se.typeParameterNames=new Map(se.typeParameterNames),se.typeParameterNamesByTextNextNameCount=new Map(se.typeParameterNamesByTextNextNameCount),se.typeParameterNamesByText=new Set(se.typeParameterNamesByText)),se.typeParameterNamesByTextNextNameCount.set(sn,Ut),se.typeParameterNames.set(pd(we),ct),se.typeParameterNamesByText.add(un)}return ct}function tc(we,se,on,pn){let Pe=wo(we,se,on);return pn&&Pe.length!==1&&!se.encounteredError&&!(se.flags&65536)&&(se.encounteredError=!0),qe(Pe,Pe.length-1);function qe(ct,Gt){let sn=md(ct,Gt,se),Ut=ct[Gt];Gt===0&&(se.flags|=16777216);let un=OT(Ut,se);Gt===0&&(se.flags^=16777216);let Zn=Cr(L.createIdentifier(un),16777216);return sn&&av(Zn,L.createNodeArray(sn)),Zn.symbol=Ut,Gt>0?L.createQualifiedName(qe(ct,Gt-1),Zn):Zn}}function am(we,se,on){let pn=wo(we,se,on);return Pe(pn,pn.length-1);function Pe(qe,ct){let Gt=md(qe,ct,se),sn=qe[ct];ct===0&&(se.flags|=16777216);let Ut=OT(sn,se);ct===0&&(se.flags^=16777216);let un=Ut.charCodeAt(0);if(rk(un)&&vt(sn.declarations,uS)){let Zn=lc(sn,se);return se.approximateLength+=2+Zn.length,L.createStringLiteral(Zn)}if(ct===0||kV(Ut,G)){let Zn=Cr(L.createIdentifier(Ut),16777216);return Gt&&av(Zn,L.createNodeArray(Gt)),Zn.symbol=sn,se.approximateLength+=1+Ut.length,ct>0?L.createPropertyAccessExpression(Pe(qe,ct-1),Zn):Zn}else{un===91&&(Ut=Ut.substring(1,Ut.length-1),un=Ut.charCodeAt(0));let Zn;if(rk(un)&&!(sn.flags&8)){let fr=hm(Ut).replace(/\\./g,Br=>Br.substring(1));se.approximateLength+=fr.length+2,Zn=L.createStringLiteral(fr,un===39)}else""+ +Ut===Ut&&(se.approximateLength+=Ut.length,Zn=L.createNumericLiteral(+Ut));if(!Zn){let fr=Cr(L.createIdentifier(Ut),16777216);Gt&&av(fr,L.createNodeArray(Gt)),fr.symbol=sn,se.approximateLength+=Ut.length,Zn=fr}return se.approximateLength+=2,L.createElementAccessExpression(Pe(qe,ct-1),Zn)}}}function B2(we){let se=Oo(we);return se?va(se)?!!(_o(se.expression).flags&402653316):Ws(se)?!!(_o(se.argumentExpression).flags&402653316):ka(se):!1}function d8(we){let se=Oo(we);return!!(se&&ka(se)&&(se.singleQuote||!Os(se)&&po(Al(se,!1),"'")))}function G2(we,se){let on=z$(we);if(on)if(!!se.tracker.reportPrivateInBaseOfClassExpression&&se.flags&2048){let Ut=Vi(we.escapedName);return Ut=Ut.replace(/__#\d+@#/g,"__#private@#"),Uk(Ut,Ga(O),!1,!0,!!(we.flags&8192))}else return on;let pn=!!et(we.declarations)&&Vn(we.declarations,B2),Pe=!!et(we.declarations)&&Vn(we.declarations,d8),qe=!!(we.flags&8192),ct=of(we,se,Pe,pn,qe);if(ct)return ct;let Gt=Vi(we.escapedName);return Uk(Gt,Ga(O),Pe,pn,qe)}function of(we,se,on,pn,Pe){let qe=Jr(we).nameType;if(qe){if(qe.flags&384){let ct=""+qe.value;return!pp(ct,Ga(O))&&(pn||!Sg(ct))?L.createStringLiteral(ct,!!on):Sg(ct)&&po(ct,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-ct))):Uk(ct,Ga(O),on,pn,Pe)}if(qe.flags&8192)return L.createComputedPropertyName(am(qe.symbol,se,111551))}}function u8(we){let se=we.mustCreateTypeParameterSymbolList,on=we.mustCreateTypeParametersNamesLookups;we.mustCreateTypeParameterSymbolList=!0,we.mustCreateTypeParametersNamesLookups=!0;let pn=we.typeParameterNames,Pe=we.typeParameterNamesByText,qe=we.typeParameterNamesByTextNextNameCount,ct=we.typeParameterSymbolList;return()=>{we.typeParameterNames=pn,we.typeParameterNamesByText=Pe,we.typeParameterNamesByTextNextNameCount=qe,we.typeParameterSymbolList=ct,we.mustCreateTypeParameterSymbolList=se,we.mustCreateTypeParametersNamesLookups=on}}function Ht(we,se){return we.declarations&&hn(we.declarations,on=>!!Q3e(on)&&(!se||!!Dn(on,pn=>pn===se)))}function Nn(we,se){if(!(Hr(se)&4)||!wp(we))return!0;eY(we);let on=Vr(we).resolvedSymbol,pn=on&&qs(on);return!pn||pn!==se.target?!0:et(we.typeArguments)>=Q_(se.target.typeParameters)}function $n(we){for(;Vr(we).fakeScopeForSignatureDeclaration;)we=we.parent;return we}function hr(we,se,on){return on.flags&8192&&on.symbol===we&&(!se.enclosingDeclaration||vt(we.declarations,Pe=>Wn(Pe)===se.enclosingFile))&&(se.flags|=1048576),$t(on,se)}function Gr(we,se,on,pn){var Pe;let qe,ct=se&&(to(se)||ff(se))&&K9(se,we.enclosingDeclaration),Gt=se??pn.valueDeclaration??Ht(pn)??((Pe=pn.declarations)==null?void 0:Pe[0]);if(!Tt(on,we)&&Gt){let sn=Q(we,pn,on);db(Gt)?qe=Ne.serializeTypeOfAccessor(Gt,pn,we):JW(Gt)&&!Os(Gt)&&!(Hr(on)&196608)&&(qe=Ne.serializeTypeOfDeclaration(Gt,pn,we)),sn()}return qe||(ct&&(on=p0(on)),qe=hr(pn,we,on)),qe??L.createKeywordTypeNode(133)}function gi(we,se,on){return on===se?!0:we&&((Tu(we)||Po(we))&&we.questionToken||to(we)&&jX(we))?rm(se,524288)===on:!1}function Pa(we,se){let on=we.flags&256,pn=Ie(we);on&&(we.flags&=-257);let Pe,qe=ps(se);if(!(on&&wr(qe))){if(se.declaration&&!Os(se.declaration)&&!Tt(qe,we)){let ct=Wr(se.declaration),Gt=Q(we,ct,qe);Pe=Ne.serializeReturnTypeForSignature(se.declaration,ct,we),Gt()}Pe||(Pe=Oa(we,se,qe))}return!Pe&&!on&&(Pe=L.createKeywordTypeNode(133)),pn(),Pe}function Oa(we,se,on){let pn=we.suppressReportInferenceFallback;we.suppressReportInferenceFallback=!0;let Pe=em(se),qe=Pe?fu(we.mapper?S4e(Pe,we.mapper):Pe,we):$t(on,we);return we.suppressReportInferenceFallback=pn,qe}function Gs(we,se,on=se.enclosingDeclaration){let pn=!1,Pe=Pu(we);if(Ir(we)&&(XS(Pe)||_g(Pe.parent)||Lu(Pe.parent)&&TG(Pe.parent.left)&&XS(Pe.parent.right)))return pn=!0,{introducesError:pn,node:we};let qe=a2(we),ct;if(bb(Pe))return ct=Wr(yu(Pe,!1,!1)),n0(ct,Pe,qe,!1).accessibility!==0&&(pn=!0,se.tracker.reportInaccessibleThisError()),{introducesError:pn,node:Gt(we)};if(ct=Gl(Pe,qe,!0,!0),se.enclosingDeclaration&&!(ct&&ct.flags&262144)){ct=Et(ct);let sn=Gl(Pe,qe,!0,!0,se.enclosingDeclaration);if(sn===ne||sn===void 0&&ct!==void 0||sn&&ct&&!me(Et(sn),ct))return sn!==ne&&se.tracker.reportInferenceFallback(we),pn=!0,{introducesError:pn,node:we,sym:ct};ct=sn}if(ct)return ct.flags&1&&ct.valueDeclaration&&(O0(ct.valueDeclaration)||ff(ct.valueDeclaration))?{introducesError:pn,node:Gt(we)}:(!(ct.flags&262144)&&!P_(we)&&n0(ct,on,qe,!1).accessibility!==0?(se.tracker.reportInferenceFallback(we),pn=!0):se.tracker.trackSymbol(ct,on,qe),{introducesError:pn,node:Gt(we)});return{introducesError:pn,node:we};function Gt(sn){if(sn===Pe){let un=qs(ct),Zn=ct.flags&262144?Sl(un,se):L.cloneNode(sn);return Zn.symbol=ct,c(se,Cr(Zn,16777216),sn)}let Ut=kn(sn,un=>Gt(un),void 0);return c(se,Ut,sn)}}function Zc(we,se,on,pn){let Pe=on?111551:788968,qe=Gl(se,Pe,!0);if(!qe)return;let ct=qe.flags&2097152?ud(qe):qe;if(n0(qe,we.enclosingDeclaration,Pe,!1).accessibility===0)return Ts(ct,we,Pe,pn)}function mu(we,se){let on=a(we,se,!0);if(!on)return!1;if(Ir(se)&&ry(se)){f4e(se);let pn=Vr(se).resolvedSymbol;return!pn||!(!se.isTypeOf&&!(pn.flags&788968)||!(et(se.typeArguments)>=Q_(Na(pn))))}if(wp(se)){if(wm(se))return!1;let pn=Vr(se).resolvedSymbol;if(!pn)return!1;if(pn.flags&262144){let Pe=qs(pn);return!(we.mapper&&zv(Pe,we.mapper)!==Pe)}if(JN(se))return Nn(se,on)&&!AOe(se)&&!!(pn.flags&788968)}if(G0(se)&&se.operator===158&&se.type.kind===155){let pn=we.enclosingDeclaration&&$n(we.enclosingDeclaration);return!!Dn(se,Pe=>Pe===pn)}return!0}function dp(we,se,on){let pn=a(we,se);if(on&&!im(pn,Pe=>!!(Pe.flags&32768))&&mu(we,se)){let Pe=Ne.tryReuseExistingTypeNode(we,se);if(Pe)return L.createUnionTypeNode([Pe,L.createKeywordTypeNode(157)])}return $t(pn,we)}function $T(we,se){var on;let pn=mFe(L.createPropertyDeclaration,175,!0),Pe=mFe((Ct,mr,bi,Ei)=>L.createPropertySignature(Ct,mr,bi,Ei),174,!1),qe=se.enclosingDeclaration,ct=[],Gt=new Set,sn=[],Ut=se;se={...Ut,usedSymbolNames:new Set(Ut.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((on=Ut.remappedSymbolReferences)==null?void 0:on.entries()),tracker:void 0};let un={...Ut.tracker.inner,trackSymbol:(Ct,mr,bi)=>{var Ei,kr;if((Ei=se.remappedSymbolNames)!=null&&Ei.has(Ta(Ct)))return!1;if(n0(Ct,mr,bi,!1).accessibility===0){let Fa=ys(Ct,se,bi);if(!(Ct.flags&4)){let Xo=Fa[0],Pi=Wn(Ut.enclosingDeclaration);vt(Xo.declarations,ba=>Wn(ba)===Pi)&&Ya(Xo)}}else if((kr=Ut.tracker.inner)!=null&&kr.trackSymbol)return Ut.tracker.inner.trackSymbol(Ct,mr,bi);return!1}};se.tracker=new aae(se,un,Ut.tracker.moduleResolverHost),qc(we,(Ct,mr)=>{let bi=Vi(mr);rg(Ct,bi)});let Zn=!se.bundled,fr=we.get("export=");return fr&&we.size>1&&fr.flags&2098688&&(we=da(),we.set("export=",fr)),Yr(we),mo(ct);function Br(Ct){return!!Ct&&Ct.kind===80}function li(Ct){return ac(Ct)?Un(Vt(Ct.declarationList.declarations,Oo),Br):Un([Oo(Ct)],Br)}function mi(Ct){let mr=hn(Ct,ll),bi=ho(Ct,pc),Ei=bi!==-1?Ct[bi]:void 0;if(Ei&&mr&&mr.isExportEquals&&He(mr.expression)&&He(Ei.name)&&Kr(Ei.name)===Kr(mr.expression)&&Ei.body&&e_(Ei.body)){let kr=Un(Ct,Xo=>!!(Gd(Xo)&32)),xa=Ei.name,Fa=Ei.body;if(et(kr)&&(Ei=L.updateModuleDeclaration(Ei,Ei.modifiers,Ei.name,Fa=L.updateModuleBlock(Fa,L.createNodeArray([...Ei.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(Vt(Ki(kr,Xo=>li(Xo)),Xo=>L.createExportSpecifier(!1,void 0,Xo))),void 0)]))),Ct=[...Ct.slice(0,bi),Ei,...Ct.slice(bi+1)]),!hn(Ct,Xo=>Xo!==Ei&&EL(Xo,xa))){ct=[];let Xo=!vt(Fa.statements,Pi=>di(Pi,32)||ll(Pi)||fc(Pi));Je(Fa.statements,Pi=>{No(Pi,Xo?32:0)}),Ct=[...Un(Ct,Pi=>Pi!==Ei&&Pi!==mr),...ct]}}return Ct}function sr(Ct){let mr=Un(Ct,Ei=>fc(Ei)&&!Ei.moduleSpecifier&&!!Ei.exportClause&&Hf(Ei.exportClause));et(mr)>1&&(Ct=[...Un(Ct,kr=>!fc(kr)||!!kr.moduleSpecifier||!kr.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(Ki(mr,kr=>ma(kr.exportClause,Hf).elements)),void 0)]);let bi=Un(Ct,Ei=>fc(Ei)&&!!Ei.moduleSpecifier&&!!Ei.exportClause&&Hf(Ei.exportClause));if(et(bi)>1){let Ei=_R(bi,kr=>ka(kr.moduleSpecifier)?">"+kr.moduleSpecifier.text:">");if(Ei.length!==bi.length)for(let kr of Ei)kr.length>1&&(Ct=[...Un(Ct,xa=>!kr.includes(xa)),L.createExportDeclaration(void 0,!1,L.createNamedExports(Ki(kr,xa=>ma(xa.exportClause,Hf).elements)),kr[0].moduleSpecifier)])}return Ct}function xi(Ct){let mr=ho(Ct,bi=>fc(bi)&&!bi.moduleSpecifier&&!bi.attributes&&!!bi.exportClause&&Hf(bi.exportClause));if(mr>=0){let bi=Ct[mr],Ei=Ui(bi.exportClause.elements,kr=>{if(!kr.propertyName&&kr.name.kind!==11){let xa=kr.name,Fa=D8(Ct),Xo=Un(Fa,Pi=>EL(Ct[Pi],xa));if(et(Xo)&&Vn(Xo,Pi=>Hk(Ct[Pi]))){for(let Pi of Xo)Ct[Pi]=ts(Ct[Pi]);return}}return kr});et(Ei)?Ct[mr]=L.updateExportDeclaration(bi,bi.modifiers,bi.isTypeOnly,L.updateNamedExports(bi.exportClause,Ei),bi.moduleSpecifier,bi.attributes):tb(Ct,mr)}return Ct}function mo(Ct){return Ct=mi(Ct),Ct=sr(Ct),Ct=xi(Ct),qe&&(Yi(qe)&&Np(qe)||pc(qe))&&(!vt(Ct,LL)||!lte(Ct)&&vt(Ct,d6))&&Ct.push(cw(L)),Ct}function ts(Ct){let mr=(Gd(Ct)|32)&-129;return L.replaceModifiers(Ct,mr)}function bn(Ct){let mr=Gd(Ct)&-33;return L.replaceModifiers(Ct,mr)}function Yr(Ct,mr,bi){mr||sn.push(new Map);let Ei=0,kr=Array.from(Ct.values());for(let xa of kr){if(Ei++,Te(se)&&Ei+2<Ct.size-1){se.out.truncated=!0,ct.push(sR(`... (${Ct.size-Ei} more ...)`)),Fo(kr[kr.length-1],!1,!!bi);break}Fo(xa,!1,!!bi)}mr||(sn[sn.length-1].forEach(xa=>{Fo(xa,!0,!!bi)}),sn.pop())}function Fo(Ct,mr,bi){bs(_r(Ct));let Ei=os(Ct);if(Gt.has(Ta(Ei)))return;if(Gt.add(Ta(Ei)),!mr||et(Ct.declarations)&&vt(Ct.declarations,xa=>!!Dn(xa,Fa=>Fa===qe))){let xa=u8(se);se.tracker.pushErrorFallbackNode(hn(Ct.declarations,Fa=>Wn(Fa)===se.enclosingFile)),vo(Ct,mr,bi),se.tracker.popErrorFallbackNode(),xa()}}function vo(Ct,mr,bi,Ei=Ct.escapedName){var kr,xa,Fa,Xo,Pi,ba,wc;let _l=Vi(Ei),Qd=Ei==="default";if(mr&&!(se.flags&131072)&&pI(_l)&&!Qd){se.encounteredError=!0;return}let Xl=Qd&&!!(Ct.flags&-113||Ct.flags&16&&et(bs(_r(Ct))))&&!(Ct.flags&2097152),ol=!Xl&&!mr&&pI(_l)&&!Qd;(Xl||ol)&&(mr=!0);let kl=(mr?0:32)|(Qd&&!Xl?2048:0),jl=Ct.flags&1536&&Ct.flags&7&&Ei!=="export=",Nf=jl&&Oye(_r(Ct),Ct);if((Ct.flags&8208||Nf)&&g0(_r(Ct),Ct,rg(Ct,_l),kl),Ct.flags&524288&&Lc(Ct,_l,kl),Ct.flags&98311&&Ei!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!Nf)if(bi)Q9(Ct)&&(ol=!1,Xl=!1);else{let yc=_r(Ct),qu=rg(Ct,_l);if(yc.symbol&&yc.symbol!==Ct&&yc.symbol.flags&16&&vt(yc.symbol.declarations,Ab)&&((kr=yc.symbol.members)!=null&&kr.size||(xa=yc.symbol.exports)!=null&&xa.size))se.remappedSymbolReferences||(se.remappedSymbolReferences=new Map),se.remappedSymbolReferences.set(Ta(yc.symbol),Ct),vo(yc.symbol,mr,bi,Ei),se.remappedSymbolReferences.delete(Ta(yc.symbol));else if(!(Ct.flags&16)&&Oye(yc,Ct))g0(yc,Ct,qu,kl);else{let Uv=Ct.flags&2?Qx(Ct)?2:1:(Fa=Ct.parent)!=null&&Fa.valueDeclaration&&Yi((Xo=Ct.parent)==null?void 0:Xo.valueDeclaration)?2:void 0,Mf=Xl||!(Ct.flags&4)?qu:ez(qu,Ct),Kg=Ct.declarations&&hn(Ct.declarations,v0=>yi(v0));Kg&&_d(Kg.parent)&&Kg.parent.declarations.length===1&&(Kg=Kg.parent.parent);let y0=(Pi=Ct.declarations)==null?void 0:Pi.find(qr);if(y0&&Nr(y0.parent)&&He(y0.parent.right)&&((ba=yc.symbol)!=null&&ba.valueDeclaration)&&Yi(yc.symbol.valueDeclaration)){let v0=qu===y0.parent.right.escapedText?void 0:y0.parent.right;se.approximateLength+=12+(((wc=v0?.escapedText)==null?void 0:wc.length)??0),No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,v0,qu)])),0),se.tracker.trackSymbol(yc.symbol,se.enclosingDeclaration,111551)}else{let v0=c(se,L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Mf,void 0,Gr(se,void 0,yc,Ct))],Uv)),Kg);se.approximateLength+=7+Mf.length,No(v0,Mf!==qu?kl&-33:kl),Mf!==qu&&!mr&&(se.approximateLength+=16+Mf.length+qu.length,No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Mf,qu)])),0),ol=!1,Xl=!1)}}}if(Ct.flags&384&&DS(Ct,_l,kl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&Nr(Ct.valueDeclaration.parent)&&uc(Ct.valueDeclaration.parent.right)?fFe(Ct,rg(Ct,_l),kl):kye(Ct,rg(Ct,_l),kl)),(Ct.flags&1536&&(!jl||Hy(Ct))||Nf)&&ZT(Ct,_l,kl),Ct.flags&64&&!(Ct.flags&32)&&kc(Ct,_l,kl),Ct.flags&2097152&&fFe(Ct,rg(Ct,_l),kl),Ct.flags&4&&Ct.escapedName==="export="&&Q9(Ct),Ct.flags&8388608&&Ct.declarations)for(let yc of Ct.declarations){let qu=du(yc,yc.moduleSpecifier);if(!qu)continue;let Uv=yc.isTypeOnly,Mf=lc(qu,se);se.approximateLength+=17+Mf.length,No(L.createExportDeclaration(void 0,Uv,void 0,L.createStringLiteral(Mf)),0)}if(Xl){let yc=rg(Ct,_l);se.approximateLength+=16+yc.length,No(L.createExportAssignment(void 0,!1,L.createIdentifier(yc)),0)}else if(ol){let yc=rg(Ct,_l);se.approximateLength+=22+_l.length+yc.length,No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,yc,_l)])),0)}}function Ya(Ct){if(vt(Ct.declarations,O0))return;C.assertIsDefined(sn[sn.length-1]),ez(Vi(Ct.escapedName),Ct);let mr=!!(Ct.flags&2097152)&&!vt(Ct.declarations,bi=>!!Dn(bi,fc)||w_(bi)||Bc(bi)&&!uy(bi.moduleReference));sn[mr?0:sn.length-1].set(Ta(Ct),Ct)}function ms(Ct){return Yi(Ct)&&(Np(Ct)||Of(Ct))||gu(Ct)&&!N_(Ct)}function No(Ct,mr){if(bm(Ct)){let bi=Gd(Ct),Ei=0,kr=se.enclosingDeclaration&&(mm(se.enclosingDeclaration)?Wn(se.enclosingDeclaration):se.enclosingDeclaration);mr&32&&kr&&(ms(kr)||pc(kr))&&Hk(Ct)&&(Ei|=32),Zn&&!(Ei&32)&&(!kr||!(kr.flags&33554432))&&(q0(Ct)||ac(Ct)||Ql(Ct)||Cc(Ct)||pc(Ct))&&(Ei|=128),mr&2048&&(Cc(Ct)||gd(Ct)||Ql(Ct))&&(Ei|=2048),Ei&&(Ct=L.replaceModifiers(Ct,Ei|bi)),se.approximateLength+=Z9(Ei|bi)}ct.push(Ct)}function Lc(Ct,mr,bi){var Ei;let kr=Rwe(Ct),xa=Jr(Ct).typeParameters,Fa=Vt(xa,Xl=>Kl(Xl,se)),Xo=(Ei=Ct.declarations)==null?void 0:Ei.find(mm),Pi=IL(Xo?Xo.comment||Xo.parent.comment:void 0),ba=Ie(se);se.flags|=8388608;let wc=se.enclosingDeclaration;se.enclosingDeclaration=Xo;let _l=Xo&&Xo.typeExpression&&K0(Xo.typeExpression)&&Ne.tryReuseExistingTypeNode(se,Xo.typeExpression.type)||$t(kr,se),Qd=rg(Ct,mr);se.approximateLength+=8+(Pi?.length??0)+Qd.length,No(B0(L.createTypeAliasDeclaration(void 0,Qd,Fa,_l),Pi?[{kind:3,text:`*
* `+Pi.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),bi),ba(),se.enclosingDeclaration=wc}function kc(Ct,mr,bi){let Ei=rg(Ct,mr);se.approximateLength+=14+Ei.length;let kr=Zf(Ct),xa=Na(Ct),Fa=Vt(xa,ol=>Kl(ol,se)),Xo=Qm(kr),Pi=et(Xo)?Ma(Xo):void 0,ba=Od(bs(kr),!1,Pi),wc=Wye(0,kr,Pi,180),_l=Wye(1,kr,Pi,181),Qd=_Fe(kr,Pi),Xl=et(Xo)?[L.createHeritageClause(96,Ui(Xo,ol=>Fye(ol,111551)))]:void 0;No(L.createInterfaceDeclaration(void 0,Ei,Fa,Xl,[...Qd,..._l,...wc,...ba]),bi)}function Od(Ct,mr,bi,Ei){let kr=[],xa=0;for(let Fa of Ct){if(xa++,Te(se)&&xa+2<Ct.length-1){se.out.truncated=!0;let Pi=hu(`... ${Ct.length-xa} more ... `,mr);kr.push(Pi);let ba=mr?pn(Ct[Ct.length-1],Ei,bi):hFe(Ct[Ct.length-1],bi);Mo(ba)?kr.push(...ba):kr.push(ba);break}se.approximateLength+=1;let Xo=mr?pn(Fa,Ei,bi):hFe(Fa,bi);Mo(Xo)?kr.push(...Xo):kr.push(Xo)}return kr}function hu(Ct,mr){return se.flags&1?xb(L.createNotEmittedTypeElement(),3,Ct):mr?L.createPropertyDeclaration(void 0,Ct,void 0,void 0,void 0):L.createPropertySignature(void 0,Ct,void 0,void 0)}function Hu(Ct){let mr=Co(Up(Ct).values()),bi=os(Ct);if(bi!==Ct){let Ei=new Set(mr);for(let kr of Up(bi).values())lp(hc(kr))&111551||Ei.add(kr);mr=Co(Ei)}return Un(mr,Ei=>KC(Ei)&&pp(Ei.escapedName,99))}function Hy(Ct){return Vn(Hu(Ct),mr=>!(lp(hc(mr))&111551))}function ZT(Ct,mr,bi){let Ei=Hu(Ct),kr=QT(se),xa=oL(Ei,Pi=>Pi.parent&&Pi.parent===Ct||kr?"real":"merged"),Fa=xa.get("real")||ae,Xo=xa.get("merged")||ae;if(et(Fa)||kr){let Pi;if(kr){let ba=se.flags;se.flags|=514,Pi=p(Ct,se,-1),se.flags=ba}else{let ba=rg(Ct,mr);Pi=L.createIdentifier(ba),se.approximateLength+=ba.length}ng(Fa,Pi,bi,!!(Ct.flags&67108880))}if(et(Xo)){let Pi=Wn(se.enclosingDeclaration),ba=rg(Ct,mr),wc=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(Ui(Un(Xo,_l=>_l.escapedName!=="export="),_l=>{var Qd,Xl;let ol=Vi(_l.escapedName),kl=rg(_l,ol),jl=_l.declarations&&sp(_l);if(Pi&&(jl?Pi!==Wn(jl):!vt(_l.declarations,qu=>Wn(qu)===Pi))){(Xl=(Qd=se.tracker)==null?void 0:Qd.reportNonlocalAugmentation)==null||Xl.call(Qd,Pi,Ct,_l);return}let Nf=jl&&NT(jl,!0);Ya(Nf||_l);let yc=Nf?rg(Nf,Vi(Nf.escapedName)):kl;return L.createExportSpecifier(!1,ol===yc?void 0:yc,ol)})))]);No(L.createModuleDeclaration(void 0,L.createIdentifier(ba),wc,32),0)}}function DS(Ct,mr,bi){let Ei=rg(Ct,mr);se.approximateLength+=9+Ei.length;let kr=[],xa=Un(bs(_r(Ct)),Xo=>!!(Xo.flags&8)),Fa=0;for(let Xo of xa){if(Fa++,Te(se)&&Fa+2<xa.length-1){se.out.truncated=!0,kr.push(L.createEnumMember(` ... ${xa.length-Fa} more ... `));let Xl=xa[xa.length-1],ol=Xl.declarations&&Xl.declarations[0]&&py(Xl.declarations[0])?L$(Xl.declarations[0]):void 0,kl=ol===void 0?void 0:typeof ol=="string"?L.createStringLiteral(ol):L.createNumericLiteral(ol),jl=Vi(Xl.escapedName),Nf=L.createEnumMember(jl,kl);kr.push(Nf);break}let Pi=Xo.declarations&&Xo.declarations[0]&&py(Xo.declarations[0])?Xo.declarations[0]:void 0,ba,wc;if(QT(se)&&Pi&&Pi.initializer)ba=_s(Pi.initializer),wc=Pi.initializer.end-Pi.initializer.pos;else{let Xl=Pi&&L$(Pi);ba=Xl===void 0?void 0:typeof Xl=="string"?L.createStringLiteral(Xl):L.createNumericLiteral(Xl),wc=ba?.text.length??0}let _l=Vi(Xo.escapedName);se.approximateLength+=4+_l.length+wc;let Qd=L.createEnumMember(_l,ba);kr.push(Qd)}No(L.createEnumDeclaration(L.createModifiersFromModifierFlags(Jge(Ct)?4096:0),Ei,kr),bi)}function g0(Ct,mr,bi,Ei){let kr=na(Ct,0);for(let xa of kr){se.approximateLength+=1;let Fa=ii(xa,263,se,{name:L.createIdentifier(bi)});No(c(se,Fa,V2(xa)),Ei)}if(!(mr.flags&1536&&mr.exports&&mr.exports.size)){let xa=Un(bs(Ct),KC);se.approximateLength+=bi.length,ng(xa,L.createIdentifier(bi),Ei,!0)}}function sR(Ct){return se.flags&1?xb(L.createEmptyStatement(),3,Ct):L.createExpressionStatement(L.createIdentifier(Ct))}function V2(Ct){if(Ct.declaration&&Ct.declaration.parent){if(Nr(Ct.declaration.parent)&&oc(Ct.declaration.parent)===5)return Ct.declaration.parent;if(yi(Ct.declaration.parent)&&Ct.declaration.parent.parent)return Ct.declaration.parent.parent}return Ct.declaration}function ng(Ct,mr,bi,Ei){let kr=He(mr)?32:0,xa=QT(se);if(et(Ct)){se.approximateLength+=14;let Xo=oL(Ct,jl=>!et(jl.declarations)||vt(jl.declarations,Nf=>Wn(Nf)===Wn(se.enclosingDeclaration))||xa?"local":"remote").get("local")||ae,Pi=$0.createModuleDeclaration(void 0,mr,L.createModuleBlock([]),kr);us(Pi,qe),Pi.locals=da(Ct),Pi.symbol=Ct[0].parent;let ba=ct;ct=[];let wc=Zn;Zn=!1;let _l={...se,enclosingDeclaration:Pi},Qd=se;se=_l,Yr(da(Xo),Ei,!0),se=Qd,Zn=wc;let Xl=ct;ct=ba;let ol=Vt(Xl,jl=>ll(jl)&&!jl.isExportEquals&&He(jl.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,jl.expression,L.createIdentifier("default"))])):jl),kl=Vn(ol,jl=>di(jl,32))?Vt(ol,bn):ol;Pi=L.updateModuleDeclaration(Pi,Pi.modifiers,Pi.name,L.createModuleBlock(kl)),No(Pi,bi)}else xa&&(se.approximateLength+=14,No(L.createModuleDeclaration(void 0,mr,L.createModuleBlock([]),kr),bi))}function KC(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&ua(Ct.valueDeclaration)&&ui(Ct.valueDeclaration.parent))}function $9(Ct){let mr=Ui(Ct,bi=>{let Ei=se.enclosingDeclaration;se.enclosingDeclaration=bi;let kr=bi.expression;if(Ds(kr)){if(He(kr)&&Kr(kr)==="")return xa(void 0);let Fa;if({introducesError:Fa,node:kr}=Gs(kr,se),Fa)return xa(void 0)}return xa(L.createExpressionWithTypeArguments(kr,Vt(bi.typeArguments,Fa=>Ne.tryReuseExistingTypeNode(se,Fa)||$t(a(se,Fa),se))));function xa(Fa){return se.enclosingDeclaration=Ei,Fa}});if(mr.length===Ct.length)return mr}function kye(Ct,mr,bi){var Ei,kr;se.approximateLength+=9+mr.length;let xa=(Ei=Ct.declarations)==null?void 0:Ei.find(ui),Fa=se.enclosingDeclaration;se.enclosingDeclaration=xa||Fa;let Xo=Na(Ct),Pi=Vt(Xo,Hv=>Kl(Hv,se));Je(Xo,Hv=>se.approximateLength+=wl(Hv.symbol).length);let ba=qp(Zf(Ct)),wc=Qm(ba),_l=xa&&JR(xa),Qd=_l&&$9(_l)||Ui(RC(ba),gvt),Xl=_r(Ct),ol=!!((kr=Xl.symbol)!=null&&kr.valueDeclaration)&&ui(Xl.symbol.valueDeclaration),kl=ol?Py(Xl):Ue;se.approximateLength+=(et(wc)?8:0)+(et(Qd)?11:0);let jl=[...et(wc)?[L.createHeritageClause(96,Vt(wc,Hv=>_vt(Hv,kl,mr)))]:[],...et(Qd)?[L.createHeritageClause(119,Qd)]:[]],Nf=egt(ba,wc,bs(ba)),yc=Un(Nf,Hv=>!Y9(Hv)),qu=vt(Nf,Y9),Uv=qu?QT(se)?Od(Un(Nf,Y9),!0,wc[0],!1):[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:ae;qu&&!QT(se)&&(se.approximateLength+=9);let Mf=Od(yc,!0,wc[0],!1),Kg=Od(Un(bs(Xl),Hv=>!(Hv.flags&4194304)&&Hv.escapedName!=="prototype"&&!KC(Hv)),!0,kl,!0),y0=!ol&&!!Ct.valueDeclaration&&Ir(Ct.valueDeclaration)&&!vt(na(Xl,1));y0&&(se.approximateLength+=21);let v0=y0?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Wye(1,Xl,kl,177),yvt=_Fe(ba,wc[0]);se.enclosingDeclaration=Fa,No(c(se,L.createClassDeclaration(void 0,mr,Pi,jl,[...yvt,...Kg,...v0,...Mf,...Uv]),Ct.declarations&&Un(Ct.declarations,Hv=>Cc(Hv)||uc(Hv))[0]),bi)}function wye(Ct){return Hn(Ct,mr=>{if(Su(mr)||iu(mr))return hb(mr.propertyName||mr.name);if(Nr(mr)||ll(mr)){let bi=ll(mr)?mr.expression:mr.right;if(qr(bi))return Kr(bi.name)}if(Iv(mr)){let bi=Oo(mr);if(bi&&He(bi))return Kr(bi)}})}function fFe(Ct,mr,bi){var Ei,kr,xa,Fa,Xo;let Pi=sp(Ct);if(!Pi)return C.fail();let ba=os(NT(Pi,!0));if(!ba)return;let wc=GL(ba)&&wye(Ct.declarations)||Vi(ba.escapedName);wc==="export="&&ye&&(wc="default");let _l=rg(ba,wc);switch(Ya(ba),Pi.kind){case 209:if(((kr=(Ei=Pi.parent)==null?void 0:Ei.parent)==null?void 0:kr.kind)===261){let ol=lc(ba.parent||ba,se),{propertyName:kl}=Pi,jl=kl&&He(kl)?Kr(kl):void 0;se.approximateLength+=24+mr.length+ol.length+(jl?.length??0),No(L.createImportDeclaration(void 0,L.createImportClause(void 0,void 0,L.createNamedImports([L.createImportSpecifier(!1,jl?L.createIdentifier(jl):void 0,L.createIdentifier(mr))])),L.createStringLiteral(ol),void 0),0);break}C.failBadSyntaxKind(((xa=Pi.parent)==null?void 0:xa.parent)||Pi,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:((Xo=(Fa=Pi.parent)==null?void 0:Fa.parent)==null?void 0:Xo.kind)===227&&j2(Vi(Ct.escapedName),_l);break;case 261:if(qr(Pi.initializer)){let ol=Pi.initializer,kl=L.createUniqueName(mr),jl=lc(ba.parent||ba,se);se.approximateLength+=22+jl.length+Kr(kl).length,No(L.createImportEqualsDeclaration(void 0,!1,kl,L.createExternalModuleReference(L.createStringLiteral(jl))),0),se.approximateLength+=12+mr.length+Kr(kl).length+Kr(ol.name).length,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(mr),L.createQualifiedName(kl,ol.name)),bi);break}case 272:if(ba.escapedName==="export="&&vt(ba.declarations,ol=>Yi(ol)&&Of(ol))){Q9(Ct);break}let Qd=!(ba.flags&512)&&!yi(Pi);se.approximateLength+=11+mr.length+Vi(ba.escapedName).length,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(mr),Qd?tc(ba,se,-1,!1):L.createExternalModuleReference(L.createStringLiteral(lc(ba,se)))),Qd?bi:0);break;case 271:No(L.createNamespaceExportDeclaration(Kr(Pi.name)),0);break;case 274:{let ol=lc(ba.parent||ba,se),kl=se.bundled?L.createStringLiteral(ol):Pi.parent.moduleSpecifier,jl=vl(Pi.parent)?Pi.parent.attributes:void 0,Nf=i_(Pi.parent);se.approximateLength+=14+mr.length+3+(Nf?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(Nf?156:void 0,L.createIdentifier(mr),void 0),kl,jl),0);break}case 275:{let ol=lc(ba.parent||ba,se),kl=se.bundled?L.createStringLiteral(ol):Pi.parent.parent.moduleSpecifier,jl=i_(Pi.parent.parent);se.approximateLength+=19+mr.length+3+(jl?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(jl?156:void 0,void 0,L.createNamespaceImport(L.createIdentifier(mr))),kl,Pi.parent.attributes),0);break}case 281:se.approximateLength+=19+mr.length+3,No(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(mr)),L.createStringLiteral(lc(ba,se))),0);break;case 277:{let ol=lc(ba.parent||ba,se),kl=se.bundled?L.createStringLiteral(ol):Pi.parent.parent.parent.moduleSpecifier,jl=i_(Pi.parent.parent.parent);se.approximateLength+=19+mr.length+3+(jl?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(jl?156:void 0,void 0,L.createNamedImports([L.createImportSpecifier(!1,mr!==wc?L.createIdentifier(wc):void 0,L.createIdentifier(mr))])),kl,Pi.parent.parent.parent.attributes),0);break}case 282:let Xl=Pi.parent.parent.moduleSpecifier;if(Xl){let ol=Pi.propertyName;ol&&C_(ol)&&(wc="default")}j2(Vi(Ct.escapedName),Xl?wc:_l,Xl&&cs(Xl)?L.createStringLiteral(Xl.text):void 0);break;case 278:Q9(Ct);break;case 227:case 212:case 213:Ct.escapedName==="default"||Ct.escapedName==="export="?Q9(Ct):j2(mr,_l);break;default:return C.failBadSyntaxKind(Pi,"Unhandled alias declaration kind in symbol serializer!")}}function j2(Ct,mr,bi){se.approximateLength+=16+Ct.length+(Ct!==mr?mr.length:0),No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ct!==mr?mr:void 0,Ct)]),bi),0)}function Q9(Ct){var mr;if(Ct.flags&4194304)return!1;let bi=Vi(Ct.escapedName),Ei=bi==="export=",xa=Ei||bi==="default",Fa=Ct.declarations&&sp(Ct),Xo=Fa&&NT(Fa,!0);if(Xo&&et(Xo.declarations)&&vt(Xo.declarations,Pi=>Wn(Pi)===Wn(qe))){let Pi=Fa&&(ll(Fa)||Nr(Fa)?NG(Fa):gne(Fa)),ba=Pi&&Ds(Pi)?hgt(Pi):void 0,wc=ba&&Gl(ba,-1,!0,!0,qe);(wc||Xo)&&Ya(wc||Xo);let _l=se.tracker.disableTrackSymbol;if(se.tracker.disableTrackSymbol=!0,xa)se.approximateLength+=10,ct.push(L.createExportAssignment(void 0,Ei,am(Xo,se,-1)));else if(ba===Pi&&ba)j2(bi,Kr(ba));else if(Pi&&uc(Pi))j2(bi,rg(Xo,wl(Xo)));else{let Qd=ez(bi,Ct);se.approximateLength+=Qd.length+10,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Qd),tc(Xo,se,-1,!1)),0),j2(bi,Qd)}return se.tracker.disableTrackSymbol=_l,!0}else{let Pi=ez(bi,Ct),ba=Xp(_r(os(Ct)));if(Oye(ba,Ct))g0(ba,Ct,Pi,xa?0:32);else{let wc=((mr=se.enclosingDeclaration)==null?void 0:mr.kind)===268&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2;se.approximateLength+=Pi.length+5;let _l=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Pi,void 0,Gr(se,void 0,ba,Ct))],wc));No(_l,Xo&&Xo.flags&4&&Xo.escapedName==="export="?128:bi===Pi?32:0)}return xa?(se.approximateLength+=Pi.length+10,ct.push(L.createExportAssignment(void 0,Ei,L.createIdentifier(Pi))),!0):bi!==Pi?(j2(bi,Pi),!0):!1}}function Oye(Ct,mr){var bi;let Ei=Wn(se.enclosingDeclaration);return Hr(Ct)&48&&!vt((bi=Ct.symbol)==null?void 0:bi.declarations,Ri)&&!et(Xd(Ct))&&!d4(Ct)&&!!(et(Un(bs(Ct),KC))||et(na(Ct,0)))&&!et(na(Ct,1))&&!Ht(mr,qe)&&!(Ct.symbol&&vt(Ct.symbol.declarations,kr=>Wn(kr)!==Ei))&&!vt(bs(Ct),kr=>h4(kr.escapedName))&&!vt(bs(Ct),kr=>vt(kr.declarations,xa=>Wn(xa)!==Ei))&&Vn(bs(Ct),kr=>pp(wl(kr),G)?kr.flags&98304?xh(kr)===kv(kr):!0:!1)}function mFe(Ct,mr,bi){return function(kr,xa,Fa){var Xo,Pi,ba,wc,_l,Qd;let Xl=Bf(kr),ol=!!(Xl&2)&&!QT(se);if(xa&&kr.flags&2887656)return[];if(kr.flags&4194304||kr.escapedName==="constructor"||Fa&&Ea(Fa,kr.escapedName)&&wh(Ea(Fa,kr.escapedName))===wh(kr)&&(kr.flags&16777216)===(Ea(Fa,kr.escapedName).flags&16777216)&&Ug(_r(kr),_n(Fa,kr.escapedName)))return[];let kl=Xl&-1025|(xa?256:0),jl=G2(kr,se),Nf=(Xo=kr.declarations)==null?void 0:Xo.find(Ip(Po,db,yi,Tu,Nr,qr));if(kr.flags&98304&&bi){let yc=[];if(kr.flags&65536){let qu=kr.declarations&&Je(kr.declarations,Kg=>{if(Kg.kind===179)return Kg;if(Zo(Kg)&&YS(Kg))return Je(Kg.arguments[2].properties,y0=>{let v0=Oo(y0);if(v0&&He(v0)&&Kr(v0)==="set")return y0})});C.assert(!!qu);let Uv=Ms(qu)?Rf(qu).parameters[0]:void 0,Mf=(Pi=kr.declarations)==null?void 0:Pi.find(Gh);se.approximateLength+=Z9(kl)+7+(Uv?wl(Uv).length:5)+(ol?0:2),yc.push(c(se,L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(kl),jl,[L.createParameterDeclaration(void 0,void 0,Uv?Hi(Uv,qn(Uv),se):"value",void 0,ol?void 0:Gr(se,Mf,kv(kr),kr))],void 0),Mf??Nf))}if(kr.flags&32768){let qu=(ba=kr.declarations)==null?void 0:ba.find(dg);se.approximateLength+=Z9(kl)+8+(ol?0:2),yc.push(c(se,L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(kl),jl,[],ol?void 0:Gr(se,qu,_r(kr),kr),void 0),qu??Nf))}return yc}else if(kr.flags&98311){let yc=(wh(kr)?8:0)|kl;return se.approximateLength+=2+(ol?0:2)+Z9(yc),c(se,Ct(L.createModifiersFromModifierFlags(yc),jl,kr.flags&16777216?L.createToken(58):void 0,ol?void 0:Gr(se,(wc=kr.declarations)==null?void 0:wc.find(_p),kv(kr),kr),void 0),((_l=kr.declarations)==null?void 0:_l.find(Ip(Po,yi)))||Nf)}if(kr.flags&8208){let yc=_r(kr),qu=na(yc,0);if(ol){let Mf=(wh(kr)?8:0)|kl;return se.approximateLength+=1+Z9(Mf),c(se,Ct(L.createModifiersFromModifierFlags(Mf),jl,kr.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Qd=kr.declarations)==null?void 0:Qd.find(Ms))||qu[0]&&qu[0].declaration||kr.declarations&&kr.declarations[0])}let Uv=[];for(let Mf of qu){se.approximateLength+=1;let Kg=ii(Mf,mr,se,{name:jl,questionToken:kr.flags&16777216?L.createToken(58):void 0,modifiers:kl?L.createModifiersFromModifierFlags(kl):void 0}),y0=Mf.declaration&&lk(Mf.declaration.parent)?Mf.declaration.parent:Mf.declaration;Uv.push(c(se,Kg,y0))}return Uv}return C.fail(`Unhandled class member kind! ${kr.__debugFlags||kr.flags}`)}}function Z9(Ct){let mr=0;return Ct&32&&(mr+=7),Ct&128&&(mr+=8),Ct&2048&&(mr+=8),Ct&4096&&(mr+=6),Ct&1&&(mr+=7),Ct&2&&(mr+=8),Ct&4&&(mr+=10),Ct&64&&(mr+=9),Ct&256&&(mr+=7),Ct&16&&(mr+=9),Ct&8&&(mr+=9),Ct&512&&(mr+=9),Ct&1024&&(mr+=6),Ct&8192&&(mr+=3),Ct&16384&&(mr+=4),mr}function hFe(Ct,mr){return Pe(Ct,!1,mr)}function Wye(Ct,mr,bi,Ei){let kr=na(mr,Ct);if(Ct===1){if(!bi&&Vn(kr,Xo=>et(Xo.parameters)===0))return[];if(bi){let Xo=na(bi,1);if(!et(Xo)&&Vn(kr,Pi=>et(Pi.parameters)===0))return[];if(Xo.length===kr.length){let Pi=!1;for(let ba=0;ba<Xo.length;ba++)if(!t9(kr[ba],Xo[ba],!1,!1,!0,C4)){Pi=!0;break}if(!Pi)return[]}}let Fa=0;for(let Xo of kr)Xo.declaration&&(Fa|=mI(Xo.declaration,6));if(Fa)return[c(se,L.createConstructorDeclaration(L.createModifiersFromModifierFlags(Fa),[],void 0),kr[0].declaration)]}let xa=[];for(let Fa of kr){se.approximateLength+=1;let Xo=ii(Fa,Ei,se);xa.push(c(se,Xo,Fa.declaration))}return xa}function _Fe(Ct,mr){let bi=[];for(let Ei of Xd(Ct)){if(mr){let kr=Gg(mr,Ei.keyType);if(kr&&Ug(Ei.type,kr.type))continue}bi.push(oo(Ei,se,void 0))}return bi}function _vt(Ct,mr,bi){let Ei=Fye(Ct,111551);if(Ei)return Ei;let kr=ez(`${bi}_base`),xa=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(kr,void 0,$t(mr,se))],2));return No(xa,0),L.createExpressionWithTypeArguments(L.createIdentifier(kr),void 0)}function Fye(Ct,mr){let bi,Ei;if(Ct.target&&o2(Ct.target.symbol,qe,mr)?(bi=Vt(rl(Ct),kr=>$t(kr,se)),Ei=am(Ct.target.symbol,se,788968)):Ct.symbol&&o2(Ct.symbol,qe,mr)&&(Ei=am(Ct.symbol,se,788968)),Ei)return L.createExpressionWithTypeArguments(Ei,bi)}function gvt(Ct){let mr=Fye(Ct,788968);if(mr)return mr;if(Ct.symbol)return L.createExpressionWithTypeArguments(am(Ct.symbol,se,788968),void 0)}function ez(Ct,mr){var bi,Ei;let kr=mr?Ta(mr):void 0;if(kr&&se.remappedSymbolNames.has(kr))return se.remappedSymbolNames.get(kr);mr&&(Ct=gFe(mr,Ct));let xa=0,Fa=Ct;for(;(bi=se.usedSymbolNames)!=null&&bi.has(Ct);)xa++,Ct=`${Fa}_${xa}`;return(Ei=se.usedSymbolNames)==null||Ei.add(Ct),kr&&se.remappedSymbolNames.set(kr,Ct),Ct}function gFe(Ct,mr){if(mr==="default"||mr==="__class"||mr==="__function"){let bi=Ie(se);se.flags|=16777216;let Ei=OT(Ct,se);bi(),mr=Ei.length>0&&rk(Ei.charCodeAt(0))?hm(Ei):Ei}return mr==="default"?mr="_default":mr==="export="&&(mr="_exports"),mr=pp(mr,G)&&!pI(mr)?mr:"_"+mr.replace(/[^a-z0-9]/gi,"_"),mr}function rg(Ct,mr){let bi=Ta(Ct);return se.remappedSymbolNames.has(bi)?se.remappedSymbolNames.get(bi):(mr=gFe(Ct,mr),se.remappedSymbolNames.set(bi,mr),mr)}}function QT(we){return we.maxExpansionDepth!==-1}function Y9(we){return!!we.valueDeclaration&&nd(we.valueDeclaration)&&eo(we.valueDeclaration.name)}function z$(we){if(we.valueDeclaration&&nd(we.valueDeclaration)&&eo(we.valueDeclaration.name))return L.cloneNode(we.valueDeclaration.name)}}function IC(n){var a;let c=(Hr(n)&4)!==0?n.target.symbol:n.symbol;return Ka(n)||!!((a=c?.declarations)!=null&&a.some(p=>e.isSourceFileDefaultLibrary(Wn(p))))}function J_(n,a,c=16384,p){return p?h(p).getText():kR(h);function h(b){let I=pS(c)|70221824|512,w=be.typePredicateToTypePredicateNode(n,a,I),U=V1(),H=a&&Wn(a);return U.writeNode(4,w,H,b),b}}function u4(n,a){let c=[],p=0;for(let h=0;h<n.length;h++){let b=n[h];if(p|=b.flags,!(b.flags&98304)){if(b.flags&512||!a&&b.flags|1056){let I=b.flags&512?jt:BX(b);if(I.flags&1048576){let w=I.types.length;if(h+w<=n.length&&Du(n[h+w-1])===Du(I.types[w-1])){c.push(I),h+=w-1;continue}}}c.push(b)}}return p&65536&&c.push(Xt),p&32768&&c.push(_e),c||n}function wT(n){return n===2?"private":n===4?"protected":"public"}function C5(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){let a=mk(n.symbol.declarations[0].parent);if(ym(a))return Wr(a)}}function l2(n){return n&&n.parent&&n.parent.kind===269&&f1(n.parent.parent)}function p4(n){return n.kind===308||gu(n)}function c2(n,a){let c=Jr(n).nameType;if(c){if(c.flags&384){let p=""+c.value;return!pp(p,Ga(O))&&!Sg(p)?`"${L_(p,34)}"`:Sg(p)&&po(p,"-")?`[${p}]`:p}if(c.flags&8192)return`[${OT(c.symbol,a)}]`}}function OT(n,a){var c;if((c=a?.remappedSymbolReferences)!=null&&c.has(Ta(n))&&(n=a.remappedSymbolReferences.get(Ta(n))),a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&Dn(n.declarations[0],p4)!==Dn(a.enclosingDeclaration,p4)))return"default";if(n.declarations&&n.declarations.length){let h=Hn(n.declarations,I=>Oo(I)?I:void 0),b=h&&Oo(h);if(h&&b){if(Zo(h)&&YS(h))return wl(n);if(va(b)&&!(Wl(n)&4096)){let I=Jr(n).nameType;if(I&&I.flags&384){let w=c2(n,a);if(w!==void 0)return w}}return ws(b)}if(h||(h=n.declarations[0]),h.parent&&h.parent.kind===261)return ws(h.parent.name);switch(h.kind){case 232:case 219:case 220:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),h.kind===232?"(Anonymous class)":"(Anonymous function)"}}let p=c2(n,a);return p!==void 0?p:wl(n)}function K_(n){if(n){let c=Vr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 339:case 347:case 341:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Yi(n.parent.parent.parent));case 209:return K_(n.parent.parent);case 261:if(Qo(n.name)&&!n.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(f1(n))return!0;let c=Pt(n);return!(F$(n)&32)&&!(n.kind!==272&&c.kind!==308&&c.flags&33554432)?$y(c):K_(c);case 173:case 172:case 178:case 179:case 175:case 174:if(Lp(n,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return K_(n.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;case 278:return!1;default:return!1}}}function xC(n,a){let c;n.kind!==11&&n.parent&&n.parent.kind===278?c=_t(n,n,2998271,void 0,!1):n.parent.kind===282&&(c=Dx(n.parent,2998271));let p,h;return c&&(h=new Set,h.add(Ta(c)),b(c.declarations)),p;function b(I){Je(I,w=>{let U=Yf(w)||w;if(a?Vr(w).isVisible=!0:(p=p||[],Pf(p,U)),KS(w)){let H=w.moduleReference,Q=Pu(H),Ie=_t(w,Q.escapedText,901119,void 0,!1);Ie&&h&&rh(h,Ta(Ie))&&b(Ie.declarations)}})}}function __(n,a){let c=ee(n,a);if(c>=0){let{length:p}=Ng;for(let h=c;h<p;h++)hT[h]=!1;return!1}return Ng.push(n),hT.push(!0),WE.push(a),!0}function ee(n,a){for(let c=Ng.length-1;c>=vv;c--){if(ke(Ng[c],WE[c]))return-1;if(Ng[c]===n&&WE[c]===a)return c}return-1}function ke(n,a){switch(a){case 0:return!!Jr(n).type;case 2:return!!Jr(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 5:return!!n.resolvedTypeArguments;case 6:return!!n.baseTypesResolved;case 7:return!!Jr(n).writeType;case 8:return Vr(n).parameterInitializerContainsUndefined!==void 0}return C.assertNever(a)}function rt(){return Ng.pop(),WE.pop(),hT.pop()}function Pt(n){return Dn(qh(n),a=>{switch(a.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function nn(n){let a=qs($c(n));return a.typeParameters?Ly(a,Vt(a.typeParameters,c=>Ue)):a}function _n(n,a){let c=Ea(n,a);return c?_r(c):void 0}function ei(n,a){var c;let p;return _n(n,a)||(p=(c=Hx(n,a))==null?void 0:c.type)&&uu(p,!0,!0)}function wr(n){return n&&(n.flags&1)!==0}function pr(n){return n===nt||!!(n.flags&1&&n.aliasSymbol)}function Si(n,a){if(a!==0)return Bx(n,!1,a);let c=Wr(n);return c&&Jr(c).type||Bx(n,!1,a)}function ao(n,a,c){if(n=Ac(n,U=>!(U.flags&98304)),n.flags&131072)return Ra;if(n.flags&1048576)return Tl(n,U=>ao(U,a,c));let p=pi(Vt(a,ky)),h=[],b=[];for(let U of bs(n)){let H=qx(U,8576);!aa(H,p)&&!(Bf(U)&6)&&aY(U)?h.push(U):b.push(H)}if(_A(n)||gA(p)){if(b.length&&(p=pi([p,...b])),p.flags&131072)return n;let U=rlt();return U?LC(U,[n,p]):nt}let I=da();for(let U of h)I.set(U.escapedName,t_e(U,!1));let w=bl(c,I,ae,ae,Xd(n));return w.objectFlags|=4194304,w}function zs(n){return!!(n.flags&465829888)&&ec(Ld(n)||Nt,32768)}function Is(n){let a=im(n,zs)?Tl(n,c=>c.flags&465829888?y_(c):c):n;return rm(a,524288)}function as(n,a){let c=Qf(n);return c?Vy(c,a):a}function Qf(n){let a=If(n);if(a&&HR(a)&&a.flowNode){let c=Mv(n);if(c){let p=bt($0.createStringLiteral(c),n),h=Xu(a)?a:$0.createParenthesizedExpression(a),b=bt($0.createElementAccessExpression(h,p),n);return us(p,b),us(b,n),h!==a&&us(h,b),b.flowNode=a.flowNode,b}}}function If(n){let a=n.parent.parent;switch(a.kind){case 209:case 304:return Qf(a);case 210:return Qf(n.parent);case 261:return a.initializer;case 227:return a.right}}function Mv(n){let a=n.parent;return n.kind===209&&a.kind===207?Pv(n.propertyName||n.name):n.kind===304||n.kind===305?Pv(n.name):""+a.elements.indexOf(n)}function Pv(n){let a=ky(n);return a.flags&384?""+a.value:void 0}function Wg(n){let a=n.dotDotDotToken?32:0,c=Si(n.parent.parent,a);return c&&i0(n,c,!1)}function i0(n,a,c){if(wr(a))return a;let p=n.parent;ie&&n.flags&33554432&&O0(n)?a=By(a):ie&&p.parent.initializer&&!Mh(T8e(p.parent.initializer),65536)&&(a=rm(a,524288));let h=32|(c||eR(n)?16:0),b;if(p.kind===207)if(n.dotDotDotToken){if(a=Mm(a),a.flags&2||!y9(a))return Qe(n,f.Rest_types_may_only_be_created_from_object_types),nt;let I=[];for(let w of p.elements)w.dotDotDotToken||I.push(w.propertyName||w.name);b=ao(a,I,n.symbol)}else{let I=n.propertyName||n.name,w=ky(I),U=Jp(a,w,h,I);b=as(n,U)}else{let I=Vv(65|(n.dotDotDotToken?0:128),a,_e,p),w=p.elements.indexOf(n);if(n.dotDotDotToken){let U=Tl(a,H=>H.flags&58982400?y_(H):H);b=Sp(U,Ka)?Tl(U,H=>S2(H,w)):Yd(I)}else if(Bv(a)){let U=Ch(w),H=l0(a,U,h,n.name)||nt;b=as(n,H)}else b=I}return n.initializer?Rc(WS(n))?ie&&!Mh(P2(n,0),16777216)?Is(b):b:Yge(n,pi([Is(b),P2(n,0)],2)):b}function ls(n){let a=Ky(n);if(a)return Ji(a)}function jc(n){let a=ds(n,!0);return a.kind===106||a.kind===80&&pu(a)===ce}function Lv(n){let a=ds(n,!0);return a.kind===210&&a.elements.length===0}function uu(n,a=!1,c=!0){return ie&&c?p0(n,a):n}function Bx(n,a,c){if(yi(n)&&n.parent.parent.kind===250){let I=v_(gge(_o(n.parent.parent.expression,c)));return I.flags&4456448?t4e(I):gt}if(yi(n)&&n.parent.parent.kind===251){let I=n.parent.parent;return j9(I)||Ue}if(Qo(n.parent))return Wg(n);let p=Po(n)&&!Jh(n)||Tu(n)||Pie(n),h=a&&II(n),b=a0(n);if(rG(n))return b?wr(b)||b===Nt?b:nt:Y?Nt:Ue;if(b)return uu(b,p,h);if((ve||Ir(n))&&yi(n)&&!Qo(n.name)&&!(F$(n)&32)&&!(n.flags&33554432)){if(!(RS(n)&6)&&(!n.initializer||jc(n.initializer)))return Rt;if(n.initializer&&Lv(n.initializer))return ld}if(to(n)){if(!n.symbol)return;let I=n.parent;if(I.kind===179&&CC(I)){let H=al(Wr(n.parent),178);if(H){let Q=Rf(H),Ie=Mye(I);return Ie&&n===Ie?(C.assert(!Ie.type),_r(Q.thisParameter)):ps(Q)}}let w=Rst(I,n);if(w)return w;let U=n.symbol.escapedName==="this"?rge(I):Q8e(n);if(U)return uu(U,!1,h)}if(US(n)&&n.initializer){if(Ir(n)&&!to(n)){let w=rn(n,Wr(n),XN(n));if(w)return w}let I=Yge(n,P2(n,c));return uu(I,p,h)}if(Po(n)&&(ve||Ir(n)))if(Wc(n)){let I=Un(n.parent.members,$l),w=I.length?M(n.symbol,I):Gd(n)&128?gY(n.symbol):void 0;return w&&uu(w,!0,h)}else{let I=Kk(n.parent),w=I?V(n.symbol,I):Gd(n)&128?gY(n.symbol):void 0;return w&&uu(w,!0,h)}if(r_(n))return ft;if(Qo(n.name))return d2(n.name,!1,!0)}function Fg(n){if(n.valueDeclaration&&Nr(n.valueDeclaration)){let a=Jr(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!br(n)&&Vn(n.declarations,c=>Nr(c)&&VY(c)&&(c.left.kind!==213||df(c.left.argumentExpression))&&!Or(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function X_(n){let a=n.valueDeclaration;return a&&Po(a)&&!Rc(a)&&!a.initializer&&(ve||Ir(a))}function br(n){if(n.declarations)for(let a of n.declarations){let c=yu(a,!1,!1);if(c&&(c.kind===177||S_(c)))return c}}function T(n){let a=Wn(n.declarations[0]),c=Vi(n.escapedName),p=n.declarations.every(b=>Ir(b)&&Ks(b)&&_g(b.expression)),h=p?L.createPropertyAccessExpression(L.createPropertyAccessExpression(L.createIdentifier("module"),L.createIdentifier("exports")),c):L.createPropertyAccessExpression(L.createIdentifier("exports"),c);return p&&us(h.expression.expression,h.expression),us(h.expression,h),us(h,a),h.flowNode=a.endFlowNode,Vy(h,Rt,_e)}function M(n,a){let c=po(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName);for(let p of a){let h=L.createPropertyAccessExpression(L.createThis(),c);us(h.expression,h),us(h,p),h.flowNode=p.returnFlowNode;let b=ue(h,n);if(ve&&(b===Rt||b===ld)&&Qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,uo(n),ar(b)),!Sp(b,T9))return o8(b)}}function V(n,a){let c=po(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),p=L.createPropertyAccessExpression(L.createThis(),c);us(p.expression,p),us(p,a),p.flowNode=a.returnFlowNode;let h=ue(p,n);return ve&&(h===Rt||h===ld)&&Qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,uo(n),ar(h)),Sp(h,T9)?void 0:o8(h)}function ue(n,a){let c=a?.valueDeclaration&&(!X_(a)||Gd(a.valueDeclaration)&128)&&gY(a)||_e;return Vy(n,Rt,c)}function tt(n,a){let c=aI(n.valueDeclaration);if(c){let w=Ir(c)?x0(c):void 0;return w&&w.typeExpression?Ji(w.typeExpression):n.valueDeclaration&&rn(n.valueDeclaration,n,c)||qT(Vl(c))}let p,h=!1,b=!1;if(Fg(n)&&(p=V(n,br(n))),!p){let w;if(n.declarations){let U;for(let H of n.declarations){let Q=Nr(H)||Zo(H)?H:Ks(H)?Nr(H.parent)?H.parent:H:void 0;if(!Q)continue;let Ie=Ks(Q)?sk(Q):oc(Q);(Ie===4||Nr(Q)&&VY(Q,Ie))&&(rf(Q)?h=!0:b=!0),Zo(Q)||(U=Or(U,Q,n,H)),U||(w||(w=[])).push(Nr(Q)||Zo(Q)?ko(n,a,Q,Ie):yn)}p=U}if(!p){if(!et(w))return nt;let U=h&&n.declarations?o0(w,n.declarations):void 0;if(b){let Q=gY(n);Q&&((U||(U=[])).push(Q),h=!0)}let H=vt(U,Q=>!!(Q.flags&-98305))?U:w;p=pi(H)}}let I=Xp(uu(p,!1,b&&!h));return n.valueDeclaration&&Ir(n.valueDeclaration)&&Ac(I,w=>!!(w.flags&-98305))===yn?(JT(n.valueDeclaration,Ue),Ue):I}function rn(n,a,c){var p,h;if(!Ir(n)||!c||!Wa(c)||c.properties.length)return;let b=da();for(;Nr(n)||qr(n);){let U=Af(n);(p=U?.exports)!=null&&p.size&&f_(b,U.exports),n=Nr(n)?n.parent:n.parent.parent}let I=Af(n);(h=I?.exports)!=null&&h.size&&f_(b,I.exports);let w=bl(a,b,ae,ae,ae);return w.objectFlags|=4096,w}function Or(n,a,c,p){var h;let b=Rc(a.parent);if(b){let I=Xp(Ji(b));if(n)!pr(n)&&!pr(I)&&!Ug(n,I)&&a3e(void 0,n,p,I);else return I}if((h=c.parent)!=null&&h.valueDeclaration){let I=PT(c.parent);if(I.valueDeclaration){let w=Rc(I.valueDeclaration);if(w){let U=Ea(Ji(w),c.escapedName);if(U)return xh(U)}}}return n}function ko(n,a,c,p){if(Zo(c)){if(a)return _r(a);let I=Vl(c.arguments[2]),w=_n(I,"value");if(w)return w;let U=_n(I,"get");if(U){let Q=CA(U);if(Q)return ps(Q)}let H=_n(I,"set");if(H){let Q=CA(H);if(Q)return Bge(Q)}return Ue}if(nl(c.left,c.right))return Ue;let h=p===1&&(qr(c.left)||Ws(c.left))&&(_g(c.left.expression)||He(c.left.expression)&&XS(c.left.expression)),b=a?_r(a):h?Du(Vl(c.right)):qT(Vl(c.right));if(b.flags&524288&&p===2&&n.escapedName==="export="){let I=Dh(b),w=da();v6(I.members,w);let U=w.size;a&&!a.exports&&(a.exports=da()),(a||n).exports.forEach((Q,Ie)=>{var Te;let Ze=w.get(Ie);if(Ze&&Ze!==Q&&!(Q.flags&2097152))if(Q.flags&111551&&Ze.flags&111551){if(Q.valueDeclaration&&Ze.valueDeclaration&&Wn(Q.valueDeclaration)!==Wn(Ze.valueDeclaration)){let Dt=Vi(Q.escapedName),$t=((Te=ni(Ze.valueDeclaration,nd))==null?void 0:Te.name)||Ze.valueDeclaration;pa(Qe(Q.valueDeclaration,f.Duplicate_identifier_0,Dt),Ar($t,f._0_was_also_declared_here,Dt)),pa(Qe($t,f.Duplicate_identifier_0,Dt),Ar(Q.valueDeclaration,f._0_was_also_declared_here,Dt))}let Tt=ja(Q.flags|Ze.flags,Ie);Tt.links.type=pi([_r(Q),_r(Ze)]),Tt.valueDeclaration=Ze.valueDeclaration,Tt.declarations=so(Ze.declarations,Q.declarations),w.set(Ie,Tt)}else w.set(Ie,Xf(Q,Ze));else w.set(Ie,Q)});let H=bl(U!==w.size?void 0:I.symbol,w,I.callSignatures,I.constructSignatures,I.indexInfos);if(U===w.size&&(b.aliasSymbol&&(H.aliasSymbol=b.aliasSymbol,H.aliasTypeArguments=b.aliasTypeArguments),Hr(b)&4)){H.aliasSymbol=b.symbol;let Q=rl(b);H.aliasTypeArguments=et(Q)?Q:void 0}return H.objectFlags|=F5([b])|Hr(b)&20608,H.symbol&&H.symbol.flags&32&&b===Zf(H.symbol)&&(H.objectFlags|=16777216),H}return vY(b)?(JT(c,bd),bd):b}function nl(n,a){return qr(n)&&n.expression.kind===110&&UI(a,c=>Ad(n,c))}function rf(n){let a=yu(n,!1,!1);return a.kind===177||a.kind===263||a.kind===219&&!lk(a.parent)}function o0(n,a){return C.assert(n.length===a.length),n.filter((c,p)=>{let h=a[p],b=Nr(h)?h:Nr(h.parent)?h.parent:void 0;return b&&rf(b)})}function Ih(n,a,c){if(n.initializer){let p=Qo(n.name)?d2(n.name,!0,!1):Nt;return uu(PWe(n,P2(n,0,p)))}return Qo(n.name)?d2(n.name,a,c):(c&&!LX(n)&&JT(n,Ue),a?Sr:Ue)}function Gx(n,a,c){let p=da(),h,b=131200;Je(n.elements,w=>{let U=w.propertyName||w.name;if(w.dotDotDotToken){h=Vg(gt,Ue,!1);return}let H=ky(U);if(!Gf(H)){b|=512;return}let Q=Vf(H),Ie=4|(w.initializer?16777216:0),Te=ja(Ie,Q);Te.links.type=Ih(w,a,c),p.set(Te.escapedName,Te)});let I=bl(void 0,p,ae,ae,h?[h]:ae);return I.objectFlags|=b,a&&(I.pattern=n,I.objectFlags|=131072),I}function Qme(n,a,c){let p=n.elements,h=Zs(p),b=h&&h.kind===209&&h.dotDotDotToken?h:void 0;if(p.length===0||p.length===1&&b)return G>=2?zOe(Ue):bd;let I=Vt(p,Q=>Kc(Q)?Ue:Ih(Q,a,c)),w=gl(p,Q=>!(Q===b||Kc(Q)||eR(Q)),p.length-1)+1,U=Vt(p,(Q,Ie)=>Q===b?4:Ie>=w?2:1),H=Z_(I,U);return a&&(H=gOe(H),H.pattern=n,H.objectFlags|=131072),H}function d2(n,a=!1,c=!1){a&&xm.push(n);let p=n.kind===207?Gx(n,a,c):Qme(n,a,c);return a&&xm.pop(),p}function Vx(n,a){return f4(Bx(n,!0,0),n,a)}function Zme(n){let a=Vr(n);if(!a.resolvedType){let c=ja(4096,"__importAttributes"),p=da();Je(n.elements,b=>{let I=ja(4,HW(b));I.parent=c,I.links.type=_gt(b),I.links.target=I,p.set(I.escapedName,I)});let h=bl(c,p,ae,ae,ae);h.objectFlags|=262272,a.resolvedType=h}return a.resolvedType}function ehe(n){let a=Af(n),c=jst(!1);return c&&a&&a===c}function f4(n,a,c){return n?(n.flags&4096&&ehe(a.parent)&&(n=n_e(a)),c&&RY(a,n),n.flags&8192&&(Ha(a)||!a0(a))&&n.symbol!==Wr(a)&&(n=Qt),Xp(n)):(n=to(a)&&a.dotDotDotToken?bd:Ue,c&&(LX(a)||JT(a,n)),n)}function LX(n){let a=qh(n),c=a.kind===170?a.parent:a;return W9(c)}function a0(n){let a=Rc(n);if(a)return Ji(a)}function the(n){let a=n.valueDeclaration;return a?(Ha(a)&&(a=WS(a)),to(a)?dY(a.parent):!1):!1}function nhe(n){let a=Jr(n);if(!a.type){let c=rhe(n);return!a.type&&!the(n)&&(a.type=c),c}return a.type}function rhe(n){if(n.flags&4194304)return nn(n);if(n===je)return Ue;if(n.flags&134217728&&n.valueDeclaration){let p=Wr(Wn(n.valueDeclaration)),h=ja(p.flags,"exports");h.declarations=p.declarations?p.declarations.slice():[],h.parent=n,h.links.target=p,p.valueDeclaration&&(h.valueDeclaration=p.valueDeclaration),p.members&&(h.members=new Map(p.members)),p.exports&&(h.exports=new Map(p.exports));let b=da();return b.set("exports",h),bl(n,b,ae,ae,ae)}C.assertIsDefined(n.valueDeclaration);let a=n.valueDeclaration;if(Yi(a)&&Of(a))return a.statements.length?Xp(qT(_o(a.statements[0].expression))):Ra;if(db(a))return p2(n);if(!__(n,0))return n.flags&512&&!(n.flags&67108864)?f2(n):cA(n);let c;if(a.kind===278)c=f4(a0(a)||Vl(a.expression),a);else if(Nr(a)||Ir(a)&&(Zo(a)||(qr(a)||J6(a))&&Nr(a.parent)))c=tt(n);else if(qr(a)||Ws(a)||He(a)||cs(a)||ep(a)||Cc(a)||Ql(a)||Nl(a)&&!fm(a)||Bm(a)||Yi(a)){if(n.flags&9136)return f2(n);c=Nr(a.parent)?tt(n):a0(a)||Ue}else if(Nc(a))c=a0(a)||LWe(a);else if(r_(a))c=a0(a)||f6e(a);else if(Ud(a))c=a0(a)||k2(a.name,0);else if(fm(a))c=a0(a)||kWe(a,0);else if(to(a)||Po(a)||Tu(a)||yi(a)||Ha(a)||PN(a))c=Vx(a,!0);else if(q0(a))c=f2(n);else if(py(a))c=WX(n);else return C.fail("Unhandled declaration kind! "+C.formatSyntaxKind(a.kind)+" for "+C.formatSymbol(n));return rt()?c:n.flags&512&&!(n.flags&67108864)?f2(n):cA(n)}function fS(n){if(n)switch(n.kind){case 178:return Pp(n);case 179:return XG(n);case 173:return C.assert(Jh(n)),Rc(n)}}function u2(n){let a=fS(n);return a&&Ji(a)}function jx(n){let a=Mye(n);return a&&a.symbol}function kX(n){return BT(Rf(n))}function p2(n){let a=Jr(n);if(!a.type){if(!__(n,0))return nt;let c=al(n,178),p=al(n,179),h=ni(al(n,173),Ku),b=c&&Ir(c)&&ls(c)||u2(c)||u2(p)||u2(h)||c&&c.body&&l$(c)||h&&Vx(h,!0);b||(p&&!W9(p)?qm(ve,p,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,uo(n)):c&&!W9(c)?qm(ve,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,uo(n)):h&&!W9(h)&&qm(ve,h,f.Member_0_implicitly_has_an_1_type,uo(n),"any"),b=Ue),rt()||(fS(c)?Qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,uo(n)):fS(p)||fS(h)?Qe(p,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,uo(n)):c&&ve&&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,uo(n)),b=Ue),a.type??(a.type=b)}return a.type}function wX(n){let a=Jr(n);if(!a.writeType){if(!__(n,7))return nt;let c=al(n,179)??ni(al(n,173),Ku),p=u2(c);rt()||(fS(c)&&Qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,uo(n)),p=Ue),a.writeType??(a.writeType=p||p2(n))}return a.writeType}function m4(n){let a=Py(Zf(n));return a.flags&8650752?a:a.flags&2097152?hn(a.types,c=>!!(c.flags&8650752)):void 0}function f2(n){let a=Jr(n),c=a;if(!a.type){let p=n.valueDeclaration&&a$(n.valueDeclaration,!1);if(p){let h=Lge(n,p);h&&(n=h,a=h.links)}c.type=a.type=OX(n)}return a.type}function OX(n){let a=n.valueDeclaration;if(n.flags&1536&&GL(n))return Ue;if(a&&(a.kind===227||Ks(a)&&a.parent.kind===227))return tt(n);if(n.flags&512&&a&&Yi(a)&&a.commonJsModuleIndicator){let p=bp(n);if(p!==n){if(!__(n,0))return nt;let h=os(n.exports.get("export=")),b=tt(h,h===p?void 0:p);return rt()?b:cA(n)}}let c=_c(16,n);if(n.flags&32){let p=m4(n);return p?Ma([c,p]):c}else return ie&&n.flags&16777216?p0(c,!0):c}function WX(n){let a=Jr(n);return a.type||(a.type=Nwe(n))}function ihe(n){let a=Jr(n);if(!a.type){if(!__(n,0))return nt;let c=ud(n),p=n.declarations&&NT(sp(n),!0),h=Hn(p?.declarations,b=>ll(b)?a0(b):void 0);if(a.type??(a.type=p?.declarations&&D$(p.declarations)&&n.declarations.length?T(p):D$(n.declarations)?Rt:h||(lp(c)&111551?_r(c):nt)),!rt())return cA(p??n),a.type??(a.type=nt)}return a.type}function ohe(n){let a=Jr(n);return a.type||(a.type=io(_r(a.target),a.mapper))}function ahe(n){let a=Jr(n);return a.writeType||(a.writeType=io(kv(a.target),a.mapper))}function cA(n){let a=n.valueDeclaration;if(a){if(Rc(a))return Qe(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,uo(n)),nt;ve&&(a.kind!==170||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,uo(n))}else if(n.flags&2097152){let c=sp(n);c&&Qe(c,f.Circular_definition_of_import_alias_0,uo(n))}return Ue}function FX(n){let a=Jr(n);return a.type||(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?pi(a.deferralConstituents):Ma(a.deferralConstituents)),a.type}function she(n){let a=Jr(n);return!a.writeType&&a.deferralWriteConstituents&&(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?pi(a.deferralWriteConstituents):Ma(a.deferralWriteConstituents)),a.writeType}function kv(n){let a=Wl(n);return a&2?a&65536?she(n)||FX(n):n.links.writeType||n.links.type:n.flags&4?Gy(_r(n),!!(n.flags&16777216)):n.flags&98304?a&1?ahe(n):wX(n):_r(n)}function _r(n){let a=Wl(n);return a&65536?FX(n):a&1?ohe(n):a&262144?lst(n):a&8192?Idt(n):n.flags&7?nhe(n):n.flags&9136?f2(n):n.flags&8?WX(n):n.flags&98304?p2(n):n.flags&2097152?ihe(n):nt}function xh(n){return Gy(_r(n),!!(n.flags&16777216))}function zX(n,a){if(n===void 0||(Hr(n)&4)===0)return!1;for(let c of a)if(n.target===c)return!0;return!1}function Hp(n,a){return n!==void 0&&a!==void 0&&(Hr(n)&4)!==0&&n.target===a}function zn(n){return Hr(n)&4?n.target:n}function Ur(n,a){return c(n);function c(p){if(Hr(p)&7){let h=zn(p);return h===a||vt(Qm(h),c)}else if(p.flags&2097152)return vt(p.types,c);return!1}}function $r(n,a){for(let c of a)n=$g(n,WT(Wr(c)));return n}function Mi(n,a){for(;;){if(n=n.parent,n&&Nr(n)){let p=oc(n);if(p===6||p===3){let h=Wr(n.left);h&&h.parent&&!Dn(h.parent.valueDeclaration,b=>n===b)&&(n=h.parent.valueDeclaration)}}if(!n)return;let c=n.kind;switch(c){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{let h=Mi(n,a);if((c===219||c===220||fm(n))&&Df(n)){let w=Ic(na(_r(Wr(n)),0));if(w&&w.typeParameters)return[...h||ae,...w.typeParameters]}if(c===201)return Bn(h,WT(Wr(n.typeParameter)));if(c===195)return so(h,Qhe(n));let b=$r(h,ab(n)),I=a&&(c===264||c===232||c===265||S_(n))&&Zf(Wr(n)).thisType;return I?Bn(b,I):b}case 342:let p=fk(n);p&&(n=p.valueDeclaration);break;case 321:{let h=Mi(n,a);return n.tags?$r(h,Ki(n.tags,b=>vm(b)?b.typeParameters:void 0)):h}}}}function Wi(n){var a;let c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(p=>{if(p.kind===265)return!0;if(p.kind!==261)return!1;let h=p.initializer;return!!h&&(h.kind===219||h.kind===220)});return C.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Mi(c)}function Na(n){if(!n.declarations)return;let a;for(let c of n.declarations)(c.kind===265||c.kind===264||c.kind===232||S_(c)||uk(c))&&(a=$r(a,ab(c)));return a}function Bs(n){return so(Wi(n),Na(n))}function Ed(n){let a=na(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&au(c)){let p=D9(c.parameters[0]);return wr(p)||r9(p)===Ue}}return!1}function Rh(n){if(na(n,1).length>0)return!0;if(n.flags&8650752){let a=Ld(n);return!!a&&Ed(a)}return!1}function Nm(n){let a=cy(n.symbol);return a&&lh(a)}function $m(n,a,c){let p=et(a),h=Ir(c);return Un(na(n,1),b=>(h||p>=Q_(b.typeParameters))&&p<=et(b.typeParameters))}function zg(n,a,c){let p=$m(n,a,c),h=Vt(a,Ji);return Zi(p,b=>vt(b.typeParameters)?T4(b,h,Ir(c)):b)}function Py(n){if(!n.resolvedBaseConstructorType){let a=cy(n.symbol),c=a&&lh(a),p=Nm(n);if(!p)return n.resolvedBaseConstructorType=_e;if(!__(n,1))return nt;let h=_o(p.expression);if(c&&p!==c&&(C.assert(!c.typeArguments),_o(c.expression)),h.flags&2621440&&Dh(h),!rt())return Qe(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,uo(n.symbol)),n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=nt);if(!(h.flags&1)&&h!==Le&&!Rh(h)){let b=Qe(p.expression,f.Type_0_is_not_a_constructor_function_type,ar(h));if(h.flags&262144){let I=v2(h),w=Nt;if(I){let U=na(I,1);U[0]&&(w=ps(U[0]))}h.symbol.declarations&&pa(b,Ar(h.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,uo(h.symbol),ar(w)))}return n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=nt)}n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=h)}return n.resolvedBaseConstructorType}function RC(n){let a=ae;if(n.symbol.declarations)for(let c of n.symbol.declarations){let p=JR(c);if(p)for(let h of p){let b=Ji(h);pr(b)||(a===ae?a=[b]:a.push(b))}}return a}function m2(n,a){Qe(n,f.Type_0_recursively_references_itself_as_a_base_type,ar(a,void 0,2))}function Qm(n){if(!n.baseTypesResolved){if(__(n,6)&&(n.objectFlags&8?n.resolvedBaseTypes=[Lat(n)]:n.symbol.flags&96?(n.symbol.flags&32&&kat(n),n.symbol.flags&64&&Oat(n)):C.fail("type must be class or interface"),!rt()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===264||a.kind===265)&&m2(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function Lat(n){let a=Zi(n.typeParameters,(c,p)=>n.elementFlags[p]&8?Jp(c,Bt):c);return Yd(pi(a||ae),n.readonly)}function kat(n){n.resolvedBaseTypes=JB;let a=Ru(Py(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=ae;let c=Nm(n),p,h=a.symbol?qs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&wat(h))p=yOe(c,a.symbol);else if(a.flags&1)p=a;else{let I=zg(a,c.typeArguments,c);if(!I.length)return Qe(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=ae;p=ps(I[0])}if(pr(p))return n.resolvedBaseTypes=ae;let b=Mm(p);if(!N5(b)){let I=bhe(void 0,p),w=qo(I,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ar(b));return ns.add(mg(Wn(c.expression),c.expression,w)),n.resolvedBaseTypes=ae}return n===b||Ur(b,n)?(Qe(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,ar(n,void 0,2)),n.resolvedBaseTypes=ae):(n.resolvedBaseTypes===JB&&(n.members=void 0),n.resolvedBaseTypes=[b])}function wat(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,p=rl(n);return a[c].symbol!==p[c].symbol}return!0}function N5(n){if(n.flags&262144){let a=Ld(n);if(a)return N5(a)}return!!(n.flags&67633153&&!cp(n)||n.flags&2097152&&Vn(n.types,N5))}function Oat(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||ae,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===265&&tM(a))for(let c of tM(a)){let p=Mm(Ji(c));pr(p)||(N5(p)?n!==p&&!Ur(p,n)?n.resolvedBaseTypes===ae?n.resolvedBaseTypes=[p]:n.resolvedBaseTypes.push(p):m2(a,n):Qe(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Wat(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===265){if(a.flags&256)return!1;let c=tM(a);if(c){for(let p of c)if(Ds(p.expression)){let h=Gl(p.expression,788968,!0);if(!h||!(h.flags&64)||Zf(h).thisType)return!1}}}return!0}function Zf(n){let a=Jr(n),c=a;if(!a.declaredType){let p=n.flags&32?1:2,h=Lge(n,n.valueDeclaration&&Wft(n.valueDeclaration));h&&(n=h,a=h.links);let b=c.declaredType=a.declaredType=_c(p,n),I=Wi(n),w=Na(n);(I||w||p===1||!Wat(n))&&(b.objectFlags|=4,b.typeParameters=so(I,w),b.outerTypeParameters=I,b.localTypeParameters=w,b.instantiations=new Map,b.instantiations.set(Pm(b.typeParameters),b),b.target=b,b.resolvedTypeArguments=b.typeParameters,b.thisType=Gu(n),b.thisType.isThisType=!0,b.thisType.constraint=b)}return a.declaredType}function Rwe(n){var a;let c=Jr(n);if(!c.declaredType){if(!__(n,2))return nt;let p=C.checkDefined((a=n.declarations)==null?void 0:a.find(uk),"Type alias symbol with no valid declaration found"),h=mm(p)?p.typeExpression:p.type,b=h?Ji(h):nt;if(rt()){let I=Na(n);I&&(c.typeParameters=I,c.instantiations=new Map,c.instantiations.set(Pm(I),b)),b===Oe&&n.escapedName==="BuiltinIteratorReturn"&&(b=Ohe())}else b=nt,p.kind===341?Qe(p.typeExpression.type,f.Type_alias_0_circularly_references_itself,uo(n)):Qe(nd(p)&&p.name||p,f.Type_alias_0_circularly_references_itself,uo(n));c.declaredType??(c.declaredType=b)}return c.declaredType}function BX(n){return n.flags&1056&&n.symbol.flags&8?qs($c(n.symbol)):n}function Dwe(n){let a=Jr(n);if(!a.declaredType){let c=[];if(n.declarations){for(let h of n.declarations)if(h.kind===267){for(let b of h.members)if(CC(b)){let I=Wr(b),w=MA(b).value,U=Xx(w!==void 0?oct(w,Ta(n),I):Cwe(I));Jr(I).declaredType=U,c.push(Du(U))}}}let p=c.length?pi(c,1,n,void 0):Cwe(n);p.flags&1048576&&(p.flags|=1024,p.symbol=n),a.declaredType=p}return a.declaredType}function Cwe(n){let a=wi(32,n),c=wi(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function Nwe(n){let a=Jr(n);if(!a.declaredType){let c=Dwe($c(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function WT(n){let a=Jr(n);return a.declaredType||(a.declaredType=Gu(n))}function Fat(n){let a=Jr(n);return a.declaredType||(a.declaredType=qs(ud(n)))}function qs(n){return Mwe(n)||nt}function Mwe(n){if(n.flags&96)return Zf(n);if(n.flags&524288)return Rwe(n);if(n.flags&262144)return WT(n);if(n.flags&384)return Dwe(n);if(n.flags&8)return Nwe(n);if(n.flags&2097152)return Fat(n)}function M5(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 202:return!0;case 189:return M5(n.elementType);case 184:return!n.typeArguments||n.typeArguments.every(M5)}return!1}function zat(n){let a=DR(n);return!a||M5(a)}function Pwe(n){let a=Rc(n);return a?M5(a):!Yy(n)}function Bat(n){let a=Pp(n),c=ab(n);return(n.kind===177||!!a&&M5(a))&&n.parameters.every(Pwe)&&c.every(zat)}function Gat(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 173:case 172:return Pwe(a);case 175:case 174:case 177:case 178:case 179:return Bat(a)}}return!1}function Lwe(n,a,c){let p=da();for(let h of n)p.set(h.escapedName,c&&Gat(h)?h:a_e(h,a));return p}function kwe(n,a){for(let c of a){if(wwe(c))continue;let p=n.get(c.escapedName);(!p||p.valueDeclaration&&Nr(p.valueDeclaration)&&!Fg(p)&&!Zte(p.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function wwe(n){return!!n.valueDeclaration&&tu(n.valueDeclaration)&&ua(n.valueDeclaration)}function lhe(n){if(!n.declaredProperties){let a=n.symbol,c=Y_(a);n.declaredProperties=Vu(c),n.declaredCallSignatures=ae,n.declaredConstructSignatures=ae,n.declaredIndexInfos=ae,n.declaredCallSignatures=_S(c.get("__call")),n.declaredConstructSignatures=_S(c.get("__new")),n.declaredIndexInfos=mOe(a)}return n}function che(n){return Wwe(n)&&Gf(va(n)?eh(n):Vl(n.argumentExpression))}function Owe(n){return Wwe(n)&&Vat(va(n)?eh(n):Vl(n.argumentExpression))}function Wwe(n){if(!va(n)&&!Ws(n))return!1;let a=va(n)?n.expression:n.argumentExpression;return Ds(a)}function Vat(n){return aa(n,Ii)}function h4(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function DC(n){let a=Oo(n);return!!a&&che(a)}function Fwe(n){let a=Oo(n);return!!a&&Owe(a)}function CC(n){return!oy(n)||DC(n)}function zwe(n){return eW(n)&&!che(n)}function jat(n,a,c){C.assert(!!(Wl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Jr(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&YN(n,a)}function Bwe(n,a,c,p){C.assert(!!p.symbol,"The member is expected to have a symbol.");let h=Vr(p);if(!h.resolvedSymbol){h.resolvedSymbol=p.symbol;let b=Nr(p)?p.left:p.name,I=Ws(b)?Vl(b.argumentExpression):eh(b);if(Gf(I)){let w=Vf(I),U=p.symbol.flags,H=c.get(w);H||c.set(w,H=ja(0,w,4096));let Q=a&&a.get(w);if(!(n.flags&32)&&H.flags&UE(U)){let Ie=Q?so(Q.declarations,H.declarations):H.declarations,Te=!(I.flags&8192)&&Vi(w)||ws(b);Je(Ie,Ze=>Qe(Oo(Ze)||Ze,f.Property_0_was_also_declared_here,Te)),Qe(b||p,f.Duplicate_property_0,Te),H=ja(0,w,4096)}return H.links.nameType=I,jat(H,p,U),H.parent?C.assert(H.parent===n,"Existing symbol parent should match new one"):H.parent=n,h.resolvedSymbol=H}}return h.resolvedSymbol}function Uat(n,a,c,p){let h=c.get("__index");if(!h){let b=a?.get("__index");b?(h=rS(b),h.links.checkFlags|=4096):h=ja(0,"__index",4096),c.set("__index",h)}h.declarations?p.symbol.isReplaceableByMethod||h.declarations.push(p):h.declarations=[p]}function dhe(n,a){let c=Jr(n);if(!c[a]){let p=a==="resolvedExports",h=p?n.flags&1536?nA(n).exports:n.exports:n.members;c[a]=h||k;let b=da();for(let U of n.declarations||ae){let H=qte(U);if(H)for(let Q of H)p===Wc(Q)&&(DC(Q)?Bwe(n,h,b,Q):Fwe(Q)&&Uat(n,h,b,Q))}let I=PT(n).assignmentDeclarationMembers;if(I){let U=Co(I.values());for(let H of U){let Q=oc(H),Ie=Q===3||Nr(H)&&VY(H,Q)||Q===9||Q===6;p===!Ie&&DC(H)&&Bwe(n,h,b,H)}}let w=Av(h,b);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let U of n.declarations){let H=Jr(U.symbol)[a];if(!w){w=H;continue}H&&H.forEach((Q,Ie)=>{let Te=w.get(Ie);if(!Te)w.set(Ie,Q);else{if(Te===Q)return;w.set(Ie,Xf(Te,Q))}})}c[a]=w||k}return c[a]}function Y_(n){return n.flags&6256?dhe(n,"resolvedMembers"):n.members||k}function GX(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=Jr(n);if(!a.lateSymbol&&vt(n.declarations,DC)){let c=os(n.parent);vt(n.declarations,Wc)?Up(c):Y_(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function qp(n,a,c){if(Hr(n)&4){let p=n.target,h=rl(n);return et(p.typeParameters)===et(h)?Ly(p,so(h,[a||p.thisType])):n}else if(n.flags&2097152){let p=Zi(n.types,h=>qp(h,a,c));return p!==n.types?Ma(p):n}return c?Ru(n):n}function Gwe(n,a,c,p){let h,b,I,w,U;Iz(c,p,0,c.length)?(b=a.symbol?Y_(a.symbol):da(a.declaredProperties),I=a.declaredCallSignatures,w=a.declaredConstructSignatures,U=a.declaredIndexInfos):(h=Kp(c,p),b=Lwe(a.declaredProperties,h,c.length===1),I=lY(a.declaredCallSignatures,h),w=lY(a.declaredConstructSignatures,h),U=y4e(a.declaredIndexInfos,h));let H=Qm(a);if(H.length){if(a.symbol&&b===Y_(a.symbol)){let Ie=da(a.declaredProperties),Te=qX(a.symbol);Te&&Ie.set("__index",Te),b=Ie}Cm(n,b,I,w,U);let Q=Zs(p);for(let Ie of H){let Te=Q?qp(io(Ie,h),Q):Ie;kwe(b,bs(Te)),I=so(I,na(Te,0)),w=so(w,na(Te,1));let Ze=Te!==Ue?Xd(Te):[So];U=so(U,Un(Ze,Tt=>!g2(U,Tt.keyType)))}}Cm(n,b,I,w,U)}function Hat(n){Gwe(n,lhe(n),ae,ae)}function qat(n){let a=lhe(n.target),c=so(a.typeParameters,[a.thisType]),p=rl(n),h=p.length===c.length?p:so(p,[n]);Gwe(n,a,c,h)}function g_(n,a,c,p,h,b,I,w){let U=new u(ir,w);return U.declaration=n,U.typeParameters=a,U.parameters=p,U.thisParameter=c,U.resolvedReturnType=h,U.resolvedTypePredicate=b,U.minArgumentCount=I,U.resolvedMinArgumentCount=void 0,U.target=void 0,U.mapper=void 0,U.compositeSignatures=void 0,U.compositeKind=void 0,U}function _4(n){let a=g_(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 Vwe(n,a){let c=_4(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Jat(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Kat(n,a))}function Kat(n,a){C.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.");let c=_4(n);return c.flags|=a,c}function jwe(n,a){if(au(n)){let h=n.parameters.length-1,b=n.parameters[h],I=_r(b);if(Ka(I))return[c(I,h,b)];if(!a&&I.flags&1048576&&Vn(I.types,Ka))return Vt(I.types,w=>c(w,h,b))}return[n.parameters];function c(h,b,I){let w=rl(h),U=p(h,I),H=Vt(w,(Q,Ie)=>{let Te=U&&U[Ie]?U[Ie]:M2(n,b+Ie,h),Ze=h.target.elementFlags[Ie],Tt=Ze&12?32768:Ze&2?16384:0,Dt=ja(1,Te,Tt);return Dt.links.type=Ze&4?Yd(Q):Q,Dt});return so(n.parameters.slice(0,b),H)}function p(h,b){let I=Vt(h.target.labeledElementDeclarations,(w,U)=>zge(w,U,h.target.elementFlags[U],b));if(I){let w=[],U=new Set;for(let Q=0;Q<I.length;Q++){let Ie=I[Q];rh(U,Ie)||w.push(Q)}let H=new Map;for(let Q of w){let Ie=H.get(I[Q])??1,Te;for(;!rh(U,Te=`${I[Q]}_${Ie}`);)Ie++;I[Q]=Te,H.set(I[Q],Ie+1)}}return I}}function Xat(n){let a=Py(n),c=na(a,1),p=cy(n.symbol),h=!!p&&di(p,64);if(c.length===0)return[g_(void 0,n.localTypeParameters,void 0,ae,n,void 0,0,h?4:0)];let b=Nm(n),I=Ir(b),w=z5(b),U=et(w),H=[];for(let Q of c){let Ie=Q_(Q.typeParameters),Te=et(Q.typeParameters);if(I||U>=Ie&&U<=Te){let Ze=Te?HX(Q,Wv(w,Q.typeParameters,Ie,I)):_4(Q);Ze.typeParameters=n.localTypeParameters,Ze.resolvedReturnType=n,Ze.flags=h?Ze.flags|4:Ze.flags&-5,H.push(Ze)}}return H}function VX(n,a,c,p,h){for(let b of n)if(t9(b,a,c,p,h,c?Sct:C4))return b}function Yat(n,a,c){if(a.typeParameters){if(c>0)return;for(let h=1;h<n.length;h++)if(!VX(n[h],a,!1,!1,!1))return;return[a]}let p;for(let h=0;h<n.length;h++){let b=h===c?a:VX(n[h],a,!1,!1,!0)||VX(n[h],a,!0,!1,!0);if(!b)return;p=$g(p,b)}return p}function uhe(n){let a,c;for(let p=0;p<n.length;p++){if(n[p].length===0)return ae;n[p].length>1&&(c=c===void 0?p:-1);for(let h of n[p])if(!a||!VX(a,h,!1,!1,!0)){let b=Yat(n,h,p);if(b){let I=h;if(b.length>1){let w=h.thisParameter,U=Je(b,H=>H.thisParameter);if(U){let H=Ma(Ui(b,Q=>Q.thisParameter&&_r(Q.thisParameter)));w=TA(U,H)}I=Vwe(h,b),I.thisParameter=w}(a||(a=[])).push(I)}}}if(!et(a)&&c!==-1){let p=n[c!==void 0?c:0],h=p.slice();for(let b of n)if(b!==p){let I=b[0];if(C.assert(!!I,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),h=I.typeParameters&&vt(h,w=>!!w.typeParameters&&!Uwe(I.typeParameters,w.typeParameters))?void 0:Vt(h,w=>Zat(w,I)),!h)break}a=h}return a||ae}function Uwe(n,a){if(et(n)!==et(a))return!1;if(!n||!a)return!0;let c=Kp(a,n);for(let p=0;p<n.length;p++){let h=n[p],b=a[p];if(h!==b&&!Ug(v2(h)||Nt,io(v2(b)||Nt,c)))return!1}return!0}function $at(n,a,c){if(!n||!a)return n||a;let p=Ma([_r(n),io(_r(a),c)]);return TA(n,p)}function Qat(n,a,c){let p=Ep(n),h=Ep(a),b=p>=h?n:a,I=b===n?a:n,w=b===n?p:h,U=tg(n)||tg(a),H=U&&!tg(b),Q=new Array(w+(H?1:0));for(let Ie=0;Ie<w;Ie++){let Te=xS(b,Ie);b===a&&(Te=io(Te,c));let Ze=xS(I,Ie)||Nt;I===a&&(Ze=io(Ze,c));let Tt=Ma([Te,Ze]),Dt=U&&!H&&Ie===w-1,$t=Ie>=kh(b)&&Ie>=kh(I),Tn=Ie>=p?void 0:M2(n,Ie),nr=Ie>=h?void 0:M2(a,Ie),yr=Tn===nr?Tn:Tn?nr?void 0:Tn:nr,Sn=ja(1|($t&&!Dt?16777216:0),yr||`arg${Ie}`,Dt?32768:$t?16384:0);Sn.links.type=Dt?Yd(Tt):Tt,Q[Ie]=Sn}if(H){let Ie=ja(1,"args",32768);Ie.links.type=Yd(Lh(I,w)),I===a&&(Ie.links.type=io(Ie.links.type,c)),Q[w]=Ie}return Q}function Zat(n,a){let c=n.typeParameters||a.typeParameters,p;n.typeParameters&&a.typeParameters&&(p=Kp(a.typeParameters,n.typeParameters));let h=(n.flags|a.flags)&166,b=n.declaration,I=Qat(n,a,p),w=Zs(I);w&&Wl(w)&32768&&(h|=1);let U=$at(n.thisParameter,a.thisParameter,p),H=Math.max(n.minArgumentCount,a.minArgumentCount),Q=g_(b,c,U,I,void 0,void 0,H,h);return Q.compositeKind=1048576,Q.compositeSignatures=so(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),p?Q.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?jT(n.mapper,p):p:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(Q.mapper=n.mapper),Q}function Hwe(n){let a=Xd(n[0]);if(a){let c=[];for(let p of a){let h=p.keyType;Vn(n,b=>!!Gg(b,h))&&c.push(Vg(h,pi(Vt(n,b=>zT(b,h))),vt(n,b=>Gg(b,h).isReadonly)))}return c}return ae}function est(n){let a=uhe(Vt(n.types,h=>h===er?[si]:na(h,0))),c=uhe(Vt(n.types,h=>na(h,1))),p=Hwe(n.types);Cm(n,k,a,c,p)}function P5(n,a){return n?a?Ma([n,a]):n:a}function qwe(n){let a=Io(n,p=>na(p,1).length>0),c=Vt(n,Ed);if(a>0&&a===Io(c,p=>p)){let p=c.indexOf(!0);c[p]=!1}return c}function tst(n,a,c,p){let h=[];for(let b=0;b<a.length;b++)b===p?h.push(n):c[b]&&h.push(ps(na(a[b],1)[0]));return Ma(h)}function nst(n){let a,c,p,h=n.types,b=qwe(h),I=Io(b,w=>w);for(let w=0;w<h.length;w++){let U=n.types[w];if(!b[w]){let H=na(U,1);H.length&&I>0&&(H=Vt(H,Q=>{let Ie=_4(Q);return Ie.resolvedReturnType=tst(ps(Q),h,b,w),Ie})),c=Jwe(c,H)}a=Jwe(a,na(U,0)),p=_u(Xd(U),(H,Q)=>Kwe(H,Q,!1),p)}Cm(n,k,a||ae,c||ae,p||ae)}function Jwe(n,a){for(let c of a)(!n||Vn(n,p=>!t9(p,c,!1,!1,!1,C4)))&&(n=Bn(n,c));return n}function Kwe(n,a,c){if(n)for(let p=0;p<n.length;p++){let h=n[p];if(h.keyType===a.keyType)return n[p]=Vg(h.keyType,c?pi([h.type,a.type]):Ma([h.type,a.type]),c?h.isReadonly||a.isReadonly:h.isReadonly&&a.isReadonly),n}return Bn(n,a)}function rst(n){if(n.target){Cm(n,k,ae,ae,ae);let I=Lwe(Ov(n.target),n.mapper,!1),w=lY(na(n.target,0),n.mapper),U=lY(na(n.target,1),n.mapper),H=y4e(Xd(n.target),n.mapper);Cm(n,I,w,U,H);return}let a=os(n.symbol);if(a.flags&2048){Cm(n,k,ae,ae,ae);let I=Y_(a),w=_S(I.get("__call")),U=_S(I.get("__new")),H=mOe(a);Cm(n,I,w,U,H);return}let c=Up(a),p;if(a===De){let I=new Map;c.forEach(w=>{var U;!(w.flags&418)&&!(w.flags&512&&((U=w.declarations)!=null&&U.length)&&Vn(w.declarations,gu))&&I.set(w.escapedName,w)}),c=I}let h;if(Cm(n,c,ae,ae,ae),a.flags&32){let I=Zf(a),w=Py(I);w.flags&11272192?(c=da(Ox(c)),kwe(c,bs(w))):w===Ue&&(h=So)}let b=JX(c);if(b?p=KX(b,Co(c.values())):(h&&(p=Bn(p,h)),a.flags&384&&(qs(a).flags&32||vt(n.properties,I=>!!(_r(I).flags&296)))&&(p=Bn(p,ro))),Cm(n,c,ae,ae,p||ae),a.flags&8208&&(n.callSignatures=_S(a)),a.flags&32){let I=Zf(a),w=a.members?_S(a.members.get("__constructor")):ae;a.flags&16&&(w=Xr(w.slice(),Ui(n.callSignatures,U=>S_(U.declaration)?g_(U.declaration,U.typeParameters,U.thisParameter,U.parameters,I,void 0,U.minArgumentCount,U.flags&167):void 0))),w.length||(w=Xat(I)),n.constructSignatures=w}}function ist(n,a,c){return io(n,Kp([a.indexType,a.objectType],[Ch(0),Z_([c])]))}function ost(n){let a=xf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;let c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;let p=Ma(c.types.filter(h=>h!==n.constraintType));return p!==yn?p:void 0}function ast(n){let a=Gg(n.source,gt),c=$_(n.mappedType),p=!(c&1),h=c&4?0:16777216,b=a?[Vg(gt,CY(a.type,n.mappedType,n.constraintType)||Nt,p&&a.isReadonly)]:ae,I=da(),w=ost(n);for(let U of bs(n.source)){if(w){let Ie=qx(U,8576);if(!aa(Ie,w))continue}let H=8192|(p&&wh(U)?8:0),Q=ja(4|U.flags&h,U.escapedName,H);if(Q.declarations=U.declarations,Q.links.nameType=Jr(U).nameType,Q.links.propertyType=_r(U),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let Ie=n.constraintType.type.objectType,Te=ist(n.mappedType,n.constraintType.type,Ie);Q.links.mappedType=Te,Q.links.constraintType=v_(Ie)}else Q.links.mappedType=n.mappedType,Q.links.constraintType=n.constraintType;I.set(U.escapedName,Q)}Cm(n,I,ae,ae,b)}function L5(n){if(n.flags&4194304){let a=Ru(n.type);return u0(a)?jOe(a):v_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=L5(a);if(c!==a)return l_e(n,yA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return Tl(n,L5,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===fa?n:Ma(Zi(n.types,L5))}return n}function phe(n){return Wl(n)&4096}function fhe(n,a,c,p){for(let h of bs(n))p(qx(h,a));if(n.flags&1)p(gt);else for(let h of Xd(n))(!c||h.keyType.flags&134217732)&&p(h.keyType)}function sst(n){let a=da(),c;Cm(n,k,ae,ae,ae);let p=Zm(n),h=xf(n),b=n.target||n,I=wv(b),w=g4(b)!==2,U=Bg(b),H=Ru(FT(n)),Q=$_(n);NC(n)?fhe(H,8576,!1,Te):IA(L5(h),Te),Cm(n,a,ae,ae,c||ae);function Te(Tt){let Dt=I?io(I,x4(n.mapper,p,Tt)):Tt;IA(Dt,$t=>Ze(Tt,$t))}function Ze(Tt,Dt){if(Gf(Dt)){let $t=Vf(Dt),Tn=a.get($t);if(Tn)Tn.links.nameType=pi([Tn.links.nameType,Dt]),Tn.links.keyType=pi([Tn.links.keyType,Tt]);else{let nr=Gf(Tt)?Ea(H,Vf(Tt)):void 0,yr=!!(Q&4||!(Q&8)&&nr&&nr.flags&16777216),Sn=!!(Q&1||!(Q&2)&&nr&&wh(nr)),vn=ie&&!yr&&nr&&nr.flags&16777216,Er=nr?phe(nr):0,fi=ja(4|(yr?16777216:0),$t,Er|262144|(Sn?8:0)|(vn?524288:0));fi.links.mappedType=n,fi.links.nameType=Dt,fi.links.keyType=Tt,nr&&(fi.links.syntheticOrigin=nr,fi.declarations=w?nr.declarations:void 0),a.set($t,fi)}}else if(XX(Dt)||Dt.flags&33){let $t=Dt.flags&5?gt:Dt.flags&40?Bt:Dt,Tn=io(U,x4(n.mapper,p,Tt)),nr=y4(H,Dt),yr=!!(Q&1||!(Q&2)&&nr?.isReadonly),Sn=Vg($t,Tn,yr);c=Kwe(c,Sn,!0)}}}function lst(n){var a;if(!n.links.type){let c=n.links.mappedType;if(!__(n,0))return c.containsError=!0,nt;let p=Bg(c.target||c),h=x4(c.mapper,Zm(c),n.links.keyType),b=io(p,h),I=ie&&n.flags&16777216&&!ec(b,49152)?p0(b,!0):n.links.checkFlags&524288?AY(b):b;rt()||(Qe(R,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,uo(n),ar(c)),I=nt),(a=n.links).type??(a.type=I)}return n.links.type}function Zm(n){return n.typeParameter||(n.typeParameter=WT(Wr(n.declaration.typeParameter)))}function xf(n){return n.constraintType||(n.constraintType=ju(Zm(n))||nt)}function wv(n){return n.declaration.nameType?n.nameType||(n.nameType=io(Ji(n.declaration.nameType),n.mapper)):void 0}function Bg(n){return n.templateType||(n.templateType=n.declaration.type?io(uu(Ji(n.declaration.type),!0,!!($_(n)&4)),n.mapper):nt)}function Xwe(n){return DR(n.declaration.typeParameter)}function NC(n){let a=Xwe(n);return a.kind===199&&a.operator===143}function FT(n){if(!n.modifiersType)if(NC(n))n.modifiersType=io(Ji(Xwe(n).type),n.mapper);else{let a=Yhe(n.declaration),c=xf(a),p=c&&c.flags&262144?ju(c):c;n.modifiersType=p&&p.flags&4194304?io(p.type,n.mapper):Nt}return n.modifiersType}function $_(n){let a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function Ywe(n){let a=$_(n);return a&8?-1:a&4?1:0}function h2(n){if(Hr(n)&32)return Ywe(n)||h2(FT(n));if(n.flags&2097152){let a=h2(n.types[0]);return Vn(n.types,(c,p)=>p===0||h2(c)===a)?a:0}return 0}function cst(n){return!!(Hr(n)&32&&$_(n)&4)}function cp(n){if(Hr(n)&32){let a=xf(n);if(gA(a))return!0;let c=wv(n);if(c&&gA(io(c,bS(Zm(n),a))))return!0}return!1}function g4(n){let a=wv(n);return a?aa(a,Zm(n))?1:2:0}function Dh(n){return n.members||(n.flags&524288?n.objectFlags&4?qat(n):n.objectFlags&3?Hat(n):n.objectFlags&1024?ast(n):n.objectFlags&16?rst(n):n.objectFlags&32?sst(n):C.fail("Unhandled object type "+C.formatObjectFlags(n.objectFlags)):n.flags&1048576?est(n):n.flags&2097152?nst(n):C.fail("Unhandled type "+C.formatTypeFlags(n.flags))),n}function Ov(n){return n.flags&524288?Dh(n).properties:ae}function mS(n,a){if(n.flags&524288){let p=Dh(n).members.get(a);if(p&&An(p))return p}}function k5(n){if(!n.resolvedProperties){let a=da();for(let c of n.types){for(let p of bs(c))if(!a.has(p.escapedName)){let h=O5(n,p.escapedName,!!(n.flags&2097152));h&&a.set(p.escapedName,h)}if(n.flags&1048576&&Xd(c).length===0)break}n.resolvedProperties=Vu(a)}return n.resolvedProperties}function bs(n){return n=_2(n),n.flags&3145728?k5(n):Ov(n)}function dst(n,a){n=_2(n),n.flags&3670016&&Dh(n).members.forEach((c,p)=>{t0(c,p)&&a(c,p)})}function ust(n,a){return a.properties.some(p=>{let h=p.name&&(fh(p.name)?Tp(Jk(p.name)):ky(p.name)),b=h&&Gf(h)?Vf(h):void 0,I=b===void 0?void 0:_n(n,b);return!!I&&P4(I)&&!aa(iR(p),I)})}function pst(n){let a=pi(n);if(!(a.flags&1048576))return Sye(a);let c=da();for(let p of n)for(let{escapedName:h}of Sye(p))if(!c.has(h)){let b=rOe(a,h);b&&c.set(h,b)}return Co(c.values())}function dA(n){return n.flags&262144?ju(n):n.flags&8388608?mst(n):n.flags&16777216?Zwe(n):Ld(n)}function ju(n){return w5(n)?v2(n):void 0}function fst(n,a){let c=R4(n);return!!c&&uA(c,a)}function uA(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&vt((c=n.symbol)==null?void 0:c.declarations,p=>di(p,4096))||n.flags&3145728&&vt(n.types,p=>uA(p,a))||n.flags&8388608&&uA(n.objectType,a+1)||n.flags&16777216&&uA(Zwe(n),a+1)||n.flags&33554432&&uA(n.baseType,a)||Hr(n)&32&&fst(n,a)||u0(n)&&ho(gS(n),(p,h)=>!!(n.target.elementFlags[h]&8)&&uA(p,a))>=0))}function mst(n){return w5(n)?hst(n):void 0}function mhe(n){let a=wy(n,!1);return a!==n?a:dA(n)}function hst(n){if(yhe(n))return iY(n.objectType,n.indexType);let a=mhe(n.indexType);if(a&&a!==n.indexType){let p=l0(n.objectType,a,n.accessFlags);if(p)return p}let c=mhe(n.objectType);if(c&&c!==n.objectType)return l0(c,n.indexType,n.accessFlags)}function hhe(n){if(!n.resolvedDefaultConstraint){let a=ect(n),c=d0(n);n.resolvedDefaultConstraint=wr(a)?c:wr(c)?a:pi([a,c])}return n.resolvedDefaultConstraint}function $we(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=wy(n.checkType,!1),c=a===n.checkType?dA(a):a;if(c&&c!==n.checkType){let p=l_e(n,yA(n.root.checkType,c,n.mapper),!0);if(!(p.flags&131072))return n.resolvedConstraintOfDistributive=p,p}}n.resolvedConstraintOfDistributive=!1}function Qwe(n){return $we(n)||hhe(n)}function Zwe(n){return w5(n)?Qwe(n):void 0}function _st(n,a){let c,p=!1;for(let h of n)if(h.flags&465829888){let b=dA(h);for(;b&&b.flags&21233664;)b=dA(b);b&&(c=Bn(c,b),a&&(c=Bn(c,h)))}else(h.flags&469892092||eg(h))&&(p=!0);if(c&&(a||p)){if(p)for(let h of n)(h.flags&469892092||eg(h))&&(c=Bn(c,h));return Q5(Ma(c,2),!1)}}function Ld(n){if(n.flags&464781312||u0(n)){let a=_he(n);return a!==Hl&&a!==sc?a:void 0}return n.flags&4194304?Ii:void 0}function y_(n){return Ld(n)||n}function w5(n){return _he(n)!==sc}function _he(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(b){if(!b.immediateBaseConstraint){if(!__(b,4))return sc;let I,w=yY(b);if((a.length<10||a.length<50&&!jn(a,w))&&(a.push(w),I=h(wy(b,!1)),a.pop()),!rt()){if(b.flags&262144){let U=YX(b);if(U){let H=Qe(U,f.Type_parameter_0_has_a_circular_constraint,ar(b));R&&!y1(U,R)&&!y1(R,U)&&pa(H,Ar(R,f.Circularity_originates_in_type_at_this_location))}}I=sc}b.immediateBaseConstraint??(b.immediateBaseConstraint=I||Hl)}return b.immediateBaseConstraint}function p(b){let I=c(b);return I!==Hl&&I!==sc?I:void 0}function h(b){if(b.flags&262144){let I=v2(b);return b.isThisType||!I?I:p(I)}if(b.flags&3145728){let I=b.types,w=[],U=!1;for(let H of I){let Q=p(H);Q?(Q!==H&&(U=!0),w.push(Q)):U=!0}return U?b.flags&1048576&&w.length===I.length?pi(w):b.flags&2097152&&w.length?Ma(w):void 0:b}if(b.flags&4194304)return Ii;if(b.flags&134217728){let I=b.types,w=Ui(I,p);return w.length===I.length?mA(b.texts,w):gt}if(b.flags&268435456){let I=p(b.type);return I&&I!==b.type?Jx(b.symbol,I):gt}if(b.flags&8388608){if(yhe(b))return p(iY(b.objectType,b.indexType));let I=p(b.objectType),w=p(b.indexType),U=I&&w&&l0(I,w,b.accessFlags);return U&&p(U)}if(b.flags&16777216){let I=Qwe(b);return I&&p(I)}if(b.flags&33554432)return p(Mhe(b));if(u0(b)){let I=Vt(gS(b),(w,U)=>{let H=w.flags&262144&&b.target.elementFlags[U]&8&&p(w)||w;return H!==w&&Sp(H,Q=>HT(Q)&&!u0(Q))?H:w});return Z_(I,b.target.elementFlags,b.target.readonly,b.target.labeledElementDeclarations)}return b}}function gst(n,a){if(n===a)return n.resolvedApparentType||(n.resolvedApparentType=qp(n,a,!0));let c=`I${pd(n)},${pd(a)}`;return Bu(c)??Rm(c,qp(n,a,!0))}function ghe(n){if(n.default)n.default===vd&&(n.default=sc);else if(n.target){let a=ghe(n.target);n.default=a?io(a,n.mapper):Hl}else{n.default=vd;let a=n.symbol&&Je(n.symbol.declarations,p=>sl(p)&&p.default),c=a?Ji(a):Hl;n.default===vd&&(n.default=c)}return n.default}function hS(n){let a=ghe(n);return a!==Hl&&a!==sc?a:void 0}function yst(n){return ghe(n)!==sc}function eOe(n){return!!(n.symbol&&Je(n.symbol.declarations,a=>sl(a)&&a.default))}function tOe(n){return n.resolvedApparentType||(n.resolvedApparentType=vst(n))}function vst(n){let a=n.target??n,c=R4(a);if(c&&!a.declaration.nameType){let p=FT(n),h=cp(p)?tOe(p):Ld(p);if(h&&Sp(h,b=>HT(b)||nOe(b)))return io(a,yA(c,h,n.mapper))}return n}function nOe(n){return!!(n.flags&2097152)&&Vn(n.types,HT)}function yhe(n){let a;return!!(n.flags&8388608&&Hr(a=n.objectType)&32&&!cp(a)&&gA(n.indexType)&&!($_(a)&8)&&!a.declaration.nameType)}function Ru(n){let a=n.flags&465829888?Ld(n)||Nt:n,c=Hr(a);return c&32?tOe(a):c&4&&a!==n?qp(a,n):a.flags&2097152?gst(a,n):a.flags&402653316?Pc:a.flags&296?tl:a.flags&2112?ilt():a.flags&528?Ll:a.flags&12288?POe():a.flags&67108864?Ra:a.flags&4194304?Ii:a.flags&2&&!ie?Ra:a}function _2(n){return Mm(Ru(Mm(n)))}function rOe(n,a,c){var p,h,b;let I=0,w,U,H,Q=n.flags&1048576,Ie,Te=4,Ze=Q?0:8,Tt=!1;for(let oo of n.types){let ii=Ru(oo);if(!(pr(ii)||ii.flags&131072)){let zi=Ea(ii,a,c),Ko=zi?Bf(zi):0;if(zi){if(zi.flags&106500&&(Ie??(Ie=Q?0:16777216),Q?Ie|=zi.flags&16777216:Ie&=zi.flags),!w)w=zi,I=zi.flags&98304||4;else if(zi!==w){if((JC(zi)||zi)===(JC(w)||w)&&v_e(w,zi,(fo,dl)=>fo===dl?-1:0)===-1)Tt=!!w.parent&&!!et(Na(w.parent));else{U||(U=new Map,U.set(Ta(w),w));let fo=Ta(zi);U.has(fo)||U.set(fo,zi)}I&98304&&(zi.flags&98304)!==(I&98304)&&(I=I&-98305|4)}Q&&wh(zi)?Ze|=8:!Q&&!wh(zi)&&(Ze&=-9),Ze|=(Ko&6?0:256)|(Ko&4?512:0)|(Ko&2?1024:0)|(Ko&256?2048:0),hge(zi)||(Te=2)}else if(Q){let fs=!h4(a)&&Hx(ii,a);fs?(I=I&-98305|4,Ze|=32|(fs.isReadonly?8:0),H=Bn(H,Ka(ii)?TY(ii)||_e:fs.type)):Gv(ii)&&!(Hr(ii)&2097152)?(Ze|=32,H=Bn(H,_e)):Ze|=16}}}if(!w||Q&&(U||Ze&48)&&Ze&1536&&!(U&&bst(U.values())))return;if(!U&&!(Ze&16)&&!H)if(Tt){let oo=(p=ni(w,ug))==null?void 0:p.links,ii=TA(w,oo?.type);return ii.parent=(b=(h=w.valueDeclaration)==null?void 0:h.symbol)==null?void 0:b.parent,ii.links.containingType=n,ii.links.mapper=oo?.mapper,ii.links.writeType=kv(w),ii}else return w;let Dt=U?Co(U.values()):[w],$t,Tn,nr,yr=[],Sn,vn,Er=!1;for(let oo of Dt){vn?oo.valueDeclaration&&oo.valueDeclaration!==vn&&(Er=!0):vn=oo.valueDeclaration,$t=Xr($t,oo.declarations);let ii=_r(oo);Tn||(Tn=ii,nr=Jr(oo).nameType);let zi=kv(oo);(Sn||zi!==ii)&&(Sn=Bn(Sn||yr.slice(),zi)),ii!==Tn&&(Ze|=64),(P4(ii)||hA(ii))&&(Ze|=128),ii.flags&131072&&ii!==Ps&&(Ze|=131072),yr.push(ii)}Xr(yr,H);let fi=ja(I|(Ie??0),a,Te|Ze);return fi.links.containingType=n,!Er&&vn&&(fi.valueDeclaration=vn,vn.symbol.parent&&(fi.parent=vn.symbol.parent)),fi.declarations=$t,fi.links.nameType=nr,yr.length>2?(fi.links.checkFlags|=65536,fi.links.deferralParent=n,fi.links.deferralConstituents=yr,fi.links.deferralWriteConstituents=Sn):(fi.links.type=Q?pi(yr):Ma(yr),Sn&&(fi.links.writeType=Q?pi(Sn):Ma(Sn))),fi}function iOe(n,a,c){var p,h,b;let I=c?(p=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:p.get(a):(h=n.propertyCache)==null?void 0:h.get(a);return I||(I=rOe(n,a,c),I&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=da()):n.propertyCache||(n.propertyCache=da())).set(a,I),c&&!(Wl(I)&48)&&!((b=n.propertyCache)!=null&&b.get(a))&&(n.propertyCache||(n.propertyCache=da())).set(a,I))),I}function bst(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(p=>{jn(c.declarations,p)||a.delete(p)}),a.size===0)return}return a}function O5(n,a,c){let p=iOe(n,a,c);return p&&!(Wl(p)&16)?p:void 0}function Mm(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=Tst(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(vt(k5(n),Sst)?33554432:0)),n.objectFlags&33554432?yn:n):n}function Tst(n){let a=Zi(n.types,Mm);if(a===n.types)return n;let c=pi(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function Sst(n){return oOe(n)||aOe(n)}function oOe(n){return!(n.flags&16777216)&&(Wl(n)&131264)===192&&!!(_r(n).flags&131072)}function aOe(n){return!n.valueDeclaration&&!!(Wl(n)&1024)}function vhe(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&vt(n.types,vhe)||n.flags&2097152&&Est(n))}function Est(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,co));return Mm(a)!==a}function bhe(n,a){if(a.flags&2097152&&Hr(a)&33554432){let c=hn(k5(a),oOe);if(c)return qo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ar(a,void 0,536870912),uo(c));let p=hn(k5(a),aOe);if(p)return qo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ar(a,void 0,536870912),uo(p))}return n}function Ea(n,a,c,p){var h,b;if(n=_2(n),n.flags&524288){let I=Dh(n),w=I.members.get(a);if(w&&!p&&((h=n.symbol)==null?void 0:h.flags)&512&&((b=Jr(n.symbol).typeOnlyExportStarMap)!=null&&b.has(a)))return;if(w&&An(w,p))return w;if(c)return;let U=I===As?er:I.callSignatures.length?go:I.constructSignatures.length?Za:void 0;if(U){let H=mS(U,a);if(H)return H}return mS(Jt,a)}if(n.flags&2097152){let I=O5(n,a,!0);return I||(c?void 0:O5(n,a,c))}if(n.flags&1048576)return O5(n,a,c)}function W5(n,a){if(n.flags&3670016){let c=Dh(n);return a===0?c.callSignatures:c.constructSignatures}return ae}function na(n,a){let c=W5(_2(n),a);if(a===0&&!et(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let p;if(Sp(n,h=>{var b;return!!((b=h.symbol)!=null&&b.parent)&&Ast(h.symbol.parent)&&(p?p===h.symbol.escapedName:(p=h.symbol.escapedName,!0))})){let h=Tl(n,I=>zv((sOe(I.symbol.parent)?Va:es).typeParameters[0],I.mapper)),b=Yd(h,im(n,I=>sOe(I.symbol.parent)));return n.arrayFallbackSignatures=na(_n(b,p),a)}n.arrayFallbackSignatures=c}return c}function Ast(n){return!n||!es.symbol||!Va.symbol?!1:!!me(n,es.symbol)||!!me(n,Va.symbol)}function sOe(n){return!n||!Va.symbol?!1:!!me(n,Va.symbol)}function g2(n,a){return hn(n,c=>c.keyType===a)}function The(n,a){let c,p,h;for(let b of n)b.keyType===gt?c=b:Ux(a,b.keyType)&&(p?(h||(h=[p])).push(b):p=b);return h?Vg(Nt,Ma(Vt(h,b=>b.type)),_u(h,(b,I)=>b&&I.isReadonly,!0)):p||(c&&Ux(a,gt)?c:void 0)}function Ux(n,a){return aa(n,a)||a===gt&&aa(n,Bt)||a===Bt&&(n===zo||!!(n.flags&128)&&Sg(n.value))}function She(n){return n.flags&3670016?Dh(n).indexInfos:ae}function Xd(n){return She(_2(n))}function Gg(n,a){return g2(Xd(n),a)}function zT(n,a){var c;return(c=Gg(n,a))==null?void 0:c.type}function Ehe(n,a){return Xd(n).filter(c=>Ux(a,c.keyType))}function y4(n,a){return The(Xd(n),a)}function Hx(n,a){return y4(n,h4(a)?Qt:Tp(Vi(a)))}function lOe(n){var a;let c;for(let p of ab(n))c=$g(c,WT(p.symbol));return c?.length?c:Ql(n)?(a=y2(n))==null?void 0:a.typeParameters:void 0}function Ahe(n){let a=[];return n.forEach((c,p)=>{kT(p)||a.push(c)}),a}function cOe(n,a){if(td(n))return;let c=Sd(lt,'"'+n+'"',512);return c&&a?os(c):c}function jX(n){return cI(n)||qk(n)||to(n)&&jW(n)}function v4(n){if(jX(n))return!0;if(!to(n))return!1;if(n.initializer){let c=Rf(n.parent),p=n.parent.parameters.indexOf(n);return C.assert(p>=0),p>=kh(c,3)}let a=N0(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=i$(a).length:!1}function Ist(n){return Po(n)&&!Jh(n)&&n.questionToken}function b4(n,a,c,p){return{kind:n,parameterName:a,parameterIndex:c,type:p}}function Q_(n){let a=0;if(n)for(let c=0;c<n.length;c++)eOe(n[c])||(a=c+1);return a}function Wv(n,a,c,p){let h=et(a);if(!h)return[];let b=et(n);if(p||b>=c&&b<=h){let I=n?n.slice():[];for(let U=b;U<h;U++)I[U]=nt;let w=F_e(p);for(let U=b;U<h;U++){let H=hS(a[U]);p&&H&&(Ug(H,Nt)||Ug(H,Ra))&&(H=Ue),I[U]=H?io(H,Kp(a,I)):w}return I.length=a.length,I}return n&&n.slice()}function Rf(n){let a=Vr(n);if(!a.resolvedSignature){let c=[],p=0,h=0,b,I=Ir(n)?e6(n):void 0,w=!1,U=N0(n),H=dI(n);!U&&Ir(n)&&ZS(n)&&!Vee(n)&&!vt(n.parameters,Tt=>!!Ky(Tt))&&!Ky(n)&&!qY(n)&&(p|=32);for(let Tt=H?1:0;Tt<n.parameters.length;Tt++){let Dt=n.parameters[Tt];if(Ir(Dt)&&vj(Dt)){I=Dt;continue}let $t=Dt.symbol,Tn=ff(Dt)?Dt.typeExpression&&Dt.typeExpression.type:Dt.type;$t&&$t.flags&4&&!Qo(Dt.name)&&($t=_t(Dt,$t.escapedName,111551,void 0,!1)),Tt===0&&$t.escapedName==="this"?(w=!0,b=Dt.symbol):c.push($t),Tn&&Tn.kind===202&&(p|=2),jX(Dt)||to(Dt)&&Dt.initializer||D_(Dt)||U&&c.length>U.arguments.length&&!Tn||(h=c.length)}if((n.kind===178||n.kind===179)&&CC(n)&&(!w||!b)){let Tt=n.kind===178?179:178,Dt=al(Wr(n),Tt);Dt&&(b=jx(Dt))}I&&I.typeExpression&&(b=TA(ja(1,"this"),Ji(I.typeExpression)));let Ie=dv(n)?k0(n):n,Te=Ie&&Ml(Ie)?Zf(os(Ie.parent.symbol)):void 0,Ze=Te?Te.localTypeParameters:lOe(n);(qB(n)||Ir(n)&&xst(n,c))&&(p|=1),(dD(n)&&di(n,64)||Ml(n)&&di(n.parent,64))&&(p|=4),a.resolvedSignature=g_(n,Ze,b,c,void 0,void 0,h,p)}return a.resolvedSignature}function xst(n,a){if(dv(n)||!Ihe(n))return!1;let c=Zs(n.parameters),p=c?RR(c):R0(n).filter(ff),h=Hn(p,I=>I.typeExpression&&f3(I.typeExpression.type)?I.typeExpression.type:void 0),b=ja(3,"args",32768);return h?b.links.type=Yd(Ji(h.type)):(b.links.checkFlags|=65536,b.links.deferralParent=yn,b.links.deferralConstituents=[bd],b.links.deferralWriteConstituents=[bd]),h&&a.pop(),a.push(b),!0}function y2(n){if(!(Ir(n)&&Ms(n)))return;let a=x0(n);return a?.typeExpression&&CA(Ji(a.typeExpression))}function Rst(n,a){let c=y2(n);if(!c)return;let p=n.parameters.indexOf(a);return a.dotDotDotToken?C9(c,p):Lh(c,p)}function Dst(n){let a=y2(n);return a&&ps(a)}function Ihe(n){let a=Vr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(p){if(!p)return!1;switch(p.kind){case 80:return p.escapedText===ge.escapedName&&l8(p)===ge;case 173:case 175:case 178:case 179:return p.name.kind===168&&c(p.name);case 212:case 213:return c(p.expression);case 304:return c(p.initializer);default:return!OG(p)&&!Uh(p)&&!!Jo(p,c)}}}function _S(n){if(!n||!n.declarations)return ae;let a=[];for(let c=0;c<n.declarations.length;c++){let p=n.declarations[c];if(Yo(p)){if(c>0&&p.body){let h=n.declarations[c-1];if(p.parent===h.parent&&p.kind===h.kind&&p.pos===h.end)continue}if(Ir(p)&&p.jsDoc){let h=xG(p);if(et(h)){for(let b of h){let I=b.typeExpression;I.type===void 0&&!Ml(p)&&JT(I,Ue),a.push(Rf(I))}continue}}a.push(!Ab(p)&&!fm(p)&&y2(p)||Rf(p))}}return a}function dOe(n){let a=du(n,n);if(a){let c=bp(a);if(c)return _r(c)}return Ue}function BT(n){if(n.thisParameter)return _r(n.thisParameter)}function em(n){if(!n.resolvedTypePredicate){if(n.target){let a=em(n.target);n.resolvedTypePredicate=a?S4e(a,n.mapper):fn}else if(n.compositeSignatures)n.resolvedTypePredicate=Clt(n.compositeSignatures,n.compositeKind)||fn;else{let a=n.declaration&&Pp(n.declaration),c;if(!a){let p=y2(n.declaration);p&&n!==p&&(c=em(p))}if(a||c)n.resolvedTypePredicate=a&&wI(a)?Cst(a,n):c||fn;else if(n.declaration&&Ms(n.declaration)&&(!n.resolvedReturnType||n.resolvedReturnType.flags&16)&&Ep(n)>0){let{declaration:p}=n;n.resolvedTypePredicate=fn,n.resolvedTypePredicate=hmt(p)||fn}else n.resolvedTypePredicate=fn}C.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===fn?void 0:n.resolvedTypePredicate}function Cst(n,a){let c=n.parameterName,p=n.type&&Ji(n.type);return c.kind===198?b4(n.assertsModifier?2:0,void 0,void 0,p):b4(n.assertsModifier?3:1,c.escapedText,ho(a.parameters,h=>h.escapedName===c.escapedText),p)}function uOe(n,a,c){return a!==2097152?pi(n,c):Ma(n)}function ps(n){if(!n.resolvedReturnType){if(!__(n,3))return nt;let a=n.target?io(ps(n.target),n.mapper):n.compositeSignatures?io(uOe(Vt(n.compositeSignatures,ps),n.compositeKind,2),n.mapper):MC(n.declaration)||(Ol(n.declaration.body)?Ue:l$(n.declaration));if(n.flags&8?a=$4e(a):n.flags&16&&(a=p0(a)),!rt()){if(n.declaration){let c=Pp(n.declaration);if(c)Qe(c,f.Return_type_annotation_circularly_references_itself);else if(ve){let p=n.declaration,h=Oo(p);h?Qe(h,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,ws(h)):Qe(p,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=Ue}n.resolvedReturnType??(n.resolvedReturnType=a)}return n.resolvedReturnType}function MC(n){if(n.kind===177)return Zf(os(n.parent.symbol));let a=Pp(n);if(dv(n)){let c=qR(n);if(c&&Ml(c.parent)&&!a)return Zf(os(c.parent.parent.symbol))}if(dI(n))return Ji(n.parameters[0].type);if(a)return Ji(a);if(n.kind===178&&CC(n)){let c=Ir(n)&&ls(n);if(c)return c;let p=al(Wr(n),179),h=u2(p);if(h)return h}return Dst(n)}function UX(n){return n.compositeSignatures&&vt(n.compositeSignatures,UX)||!n.resolvedReturnType&&ee(n,3)>=0}function Nst(n){return pOe(n)||Ue}function pOe(n){if(au(n)){let a=_r(n.parameters[n.parameters.length-1]),c=Ka(a)?TY(a):a;return c&&zT(c,Bt)}}function T4(n,a,c,p){let h=xhe(n,Wv(a,n.typeParameters,Q_(n.typeParameters),c));if(p){let b=V6e(ps(h));if(b){let I=_4(b);I.typeParameters=p;let w=pA(I);w.mapper=h.mapper;let U=_4(h);return U.resolvedReturnType=w,U}}return h}function xhe(n,a){let c=n.instantiations||(n.instantiations=new Map),p=Pm(a),h=c.get(p);return h||c.set(p,h=HX(n,a)),h}function HX(n,a){return vA(n,Mst(n,a),!0)}function fOe(n){return Zi(n.typeParameters,a=>a.mapper?io(a,a.mapper):a)}function Mst(n,a){return Kp(fOe(n),a)}function S4(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Pst(n)):n}function Pst(n){return vA(n,b4e(n.typeParameters),!0)}function Lst(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=kst(n)):n}function kst(n){return T4(n,Vt(n.typeParameters,a=>a.target&&!ju(a.target)?a.target:a),Ir(n.declaration))}function wst(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=b4e(a),p=Kp(a,Vt(a,b=>ju(b)||Nt)),h=Vt(a,b=>io(b,p)||Nt);for(let b=0;b<a.length-1;b++)h=Wy(h,p);return h=Wy(h,c),n.baseSignatureCache=vA(n,Kp(a,h),!0)}return n}function pA(n){var a,c;if(!n.isolatedSignatureType){let p=(a=n.declaration)==null?void 0:a.kind,h=p===void 0||p===177||p===181||p===186,b=_c(134217744,(c=n.declaration)==null?void 0:c.symbol);b.members=k,b.properties=ae,b.callSignatures=h?ae:[n],b.constructSignatures=h?[n]:ae,b.indexInfos=ae,n.isolatedSignatureType=b}return n.isolatedSignatureType}function qX(n){return n.members?JX(Y_(n)):void 0}function JX(n){return n.get("__index")}function Vg(n,a,c,p,h){return{keyType:n,type:a,isReadonly:c,declaration:p,components:h}}function mOe(n){let a=qX(n);return a?KX(a,Co(Y_(n).values())):ae}function KX(n,a=n.parent?Co(Y_(n.parent).values()):void 0){if(n.declarations){let c=[],p=!1,h=!0,b=!1,I=!0,w=!1,U=!0,H=[];for(let Ie of n.declarations)if(Db(Ie)){if(Ie.parameters.length===1){let Te=Ie.parameters[0];Te.type&&IA(Ji(Te.type),Ze=>{XX(Ze)&&!g2(c,Ze)&&c.push(Vg(Ze,Ie.type?Ji(Ie.type):Ue,Lp(Ie,8),Ie))})}}else if(Fwe(Ie)){let Te=Nr(Ie)?Ie.left:Ie.name,Ze=Ws(Te)?Vl(Te.argumentExpression):eh(Te);if(g2(c,Ze))continue;aa(Ze,Ii)&&(aa(Ze,Bt)?(p=!0,nE(Ie)||(h=!1)):aa(Ze,Qt)?(b=!0,nE(Ie)||(I=!1)):(w=!0,nE(Ie)||(U=!1)),H.push(Ie.symbol))}let Q=so(H,Un(a,Ie=>Ie!==n));return w&&!g2(c,gt)&&c.push(j4(U,0,Q,gt)),p&&!g2(c,Bt)&&c.push(j4(h,0,Q,Bt)),b&&!g2(c,Qt)&&c.push(j4(I,0,Q,Qt)),c}return ae}function XX(n){return!!(n.flags&4108)||hA(n)||!!(n.flags&2097152)&&!VT(n)&&vt(n.types,XX)}function YX(n){return Ui(Un(n.symbol&&n.symbol.declarations,sl),DR)[0]}function hOe(n,a){var c;let p;if((c=n.symbol)!=null&&c.declarations){for(let h of n.symbol.declarations)if(h.parent.kind===196){let[b=h.parent,I]=hne(h.parent.parent);if(I.kind===184&&!a){let w=I,U=tye(w);if(U){let H=w.typeArguments.indexOf(b);if(H<U.length){let Q=ju(U[H]);if(Q){let Ie=i_e(U,U.map((Ze,Tt)=>()=>mht(w,U,Tt))),Te=io(Q,Ie);Te!==n&&(p=Bn(p,Te))}}}}else if(I.kind===170&&I.dotDotDotToken||I.kind===192||I.kind===203&&I.dotDotDotToken)p=Bn(p,Yd(Nt));else if(I.kind===205)p=Bn(p,gt);else if(I.kind===169&&I.parent.kind===201)p=Bn(p,Ii);else if(I.kind===201&&I.type&&ds(I.type)===h.parent&&I.parent.kind===195&&I.parent.extendsType===I&&I.parent.checkType.kind===201&&I.parent.checkType.type){let w=I.parent.checkType,U=Ji(w.type);p=Bn(p,io(U,bS(WT(Wr(w.typeParameter)),w.typeParameter.constraint?Ji(w.typeParameter.constraint):Ii)))}}}return p&&Ma(p)}function v2(n){if(!n.constraint)if(n.target){let a=ju(n.target);n.constraint=a?io(a,n.mapper):Hl}else{let a=YX(n);if(!a)n.constraint=hOe(n)||Hl;else{let c=Ji(a);c.flags&1&&!pr(c)&&(c=a.parent.parent.kind===201?Ii:Nt),n.constraint=c}}return n.constraint===Hl?void 0:n.constraint}function _Oe(n){let a=al(n.symbol,169),c=vm(a.parent)?X6(a.parent):a.parent;return c&&Af(c)}function Pm(n){let a="";if(n){let c=n.length,p=0;for(;p<c;){let h=n[p].id,b=1;for(;p+b<c&&n[p+b].id===h+b;)b++;a.length&&(a+=","),a+=h,b>1&&(a+=":"+b),p+=b}}return a}function fA(n,a){return n?`@${Ta(n)}`+(a?`:${Pm(a)}`:""):""}function F5(n,a){let c=0;for(let p of n)(a===void 0||!(p.flags&a))&&(c|=Hr(p));return c&458752}function PC(n,a){return vt(a)&&n===Zt?Nt:Ly(n,a)}function Ly(n,a){let c=Pm(a),p=n.instantiations.get(c);return p||(p=_c(4,n.symbol),n.instantiations.set(c,p),p.objectFlags|=a?F5(a):0,p.target=n,p.resolvedTypeArguments=a),p}function gOe(n){let a=wi(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Rhe(n,a,c,p,h){if(!p){p=Kx(a);let I=OC(p);h=c?Wy(I,c):I}let b=_c(4,n.symbol);return b.target=n,b.node=a,b.mapper=c,b.aliasSymbol=p,b.aliasTypeArguments=h,b}function rl(n){var a,c;if(!n.resolvedTypeArguments){if(!__(n,5))return so(n.target.outerTypeParameters,(a=n.target.localTypeParameters)==null?void 0:a.map(()=>nt))||ae;let p=n.node,h=p?p.kind===184?so(n.target.outerTypeParameters,m$(p,n.target.localTypeParameters)):p.kind===189?[Ji(p.elementType)]:Vt(p.elements,Ji):ae;rt()?n.resolvedTypeArguments??(n.resolvedTypeArguments=n.mapper?Wy(h,n.mapper):h):(n.resolvedTypeArguments??(n.resolvedTypeArguments=so(n.target.outerTypeParameters,((c=n.target.localTypeParameters)==null?void 0:c.map(()=>nt))||ae)),Qe(n.node||R,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&uo(n.target.symbol)))}return n.resolvedTypeArguments}function Fv(n){return et(n.target.typeParameters)}function yOe(n,a){let c=qs(os(a)),p=c.localTypeParameters;if(p){let h=et(n.typeArguments),b=Q_(p),I=Ir(n);if(!(!ve&&I)&&(h<b||h>p.length)){let H=I&&dy(n)&&!VI(n.parent),Q=b===p.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,Ie=ar(c,void 0,2);if(Qe(n,Q,Ie,b,p.length),!I)return nt}if(n.kind===184&&GOe(n,et(n.typeArguments)!==p.length))return Rhe(c,n,void 0);let U=so(c.outerTypeParameters,Wv(z5(n),p,b,I));return Ly(c,U)}return GT(n,a)?c:nt}function LC(n,a,c,p){let h=qs(n);if(h===Oe){let H=EU.get(n.escapedName);if(H!==void 0&&a&&a.length===1)return H===4?Dhe(a[0]):Jx(n,a[0])}let b=Jr(n),I=b.typeParameters,w=Pm(a)+fA(c,p),U=b.instantiations.get(w);return U||b.instantiations.set(w,U=I4e(h,Kp(I,Wv(a,I,Q_(I),Ir(n.valueDeclaration))),c,p)),U}function Ost(n,a){if(Wl(a)&1048576){let h=z5(n),b=fA(a,h),I=dt.get(b);return I||(I=Li(1,"error",void 0,`alias ${b}`),I.aliasSymbol=a,I.aliasTypeArguments=h,dt.set(b,I)),I}let c=qs(a),p=Jr(a).typeParameters;if(p){let h=et(n.typeArguments),b=Q_(p);if(h<b||h>p.length)return Qe(n,b===p.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,uo(a),b,p.length),nt;let I=Kx(n),w=I&&(vOe(a)||!vOe(I))?I:void 0,U;if(w)U=OC(w);else if(_6(n)){let H=b2(n,2097152,!0);if(H&&H!==ne){let Q=ud(H);Q&&Q.flags&524288&&(w=Q,U=z5(n)||(p?[]:void 0))}}return LC(a,z5(n),w,U)}return GT(n,a)?c:nt}function vOe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(uk);return!!(c&&cf(c))}function Wst(n){switch(n.kind){case 184:return n.typeName;case 234:let a=n.expression;if(Ds(a))return a}}function bOe(n){return n.parent?`${bOe(n.parent)}.${n.escapedName}`:n.escapedName}function $X(n){let c=(n.kind===167?n.right:n.kind===212?n.name:n).escapedText;if(c){let p=n.kind===167?$X(n.left):n.kind===212?$X(n.expression):void 0,h=p?`${bOe(p)}.${c}`:c,b=it.get(h);return b||(it.set(h,b=ja(524288,c,1048576)),b.parent=p,b.links.declaredType=Kt),b}return ne}function b2(n,a,c){let p=Wst(n);if(!p)return ne;let h=Gl(p,a,c);return h&&h!==ne?h:c?ne:$X(p)}function QX(n,a){if(a===ne)return nt;if(a=Mx(a)||a,a.flags&96)return yOe(n,a);if(a.flags&524288)return Ost(n,a);let c=Mwe(a);if(c)return GT(n,a)?Du(c):nt;if(a.flags&111551&&ZX(n)){let p=Fst(n,a);return p||(b2(n,788968),_r(a))}return nt}function Fst(n,a){let c=Vr(n);if(!c.resolvedJSDocType){let p=_r(a),h=p;if(a.valueDeclaration){let b=n.kind===206&&n.qualifier;p.symbol&&p.symbol!==a&&b&&(h=QX(n,p.symbol))}c.resolvedJSDocType=h}return c.resolvedJSDocType}function Dhe(n){return Che(n)?TOe(n,Nt):n}function Che(n){return!!(n.flags&3145728&&vt(n.types,Che)||n.flags&33554432&&!kC(n)&&Che(n.baseType)||n.flags&524288&&!eg(n)||n.flags&432275456&&!hA(n))}function kC(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function Nhe(n,a){return a.flags&3||a===n||n.flags&1?n:TOe(n,a)}function TOe(n,a){let c=`${pd(n)}>${pd(a)}`,p=Ia.get(c);if(p)return p;let h=vi(33554432);return h.baseType=n,h.constraint=a,Ia.set(c,h),h}function Mhe(n){return kC(n)?n.baseType:Ma([n.constraint,n.baseType])}function SOe(n){return n.kind===190&&n.elements.length===1}function EOe(n,a,c){return SOe(a)&&SOe(c)?EOe(n,a.elements[0],c.elements[0]):Oy(Ji(a))===Oy(n)?Ji(c):void 0}function zst(n,a){let c,p=!0;for(;a&&!ji(a)&&a.kind!==321;){let h=a.parent;if(h.kind===170&&(p=!p),(p||n.flags&8650752)&&h.kind===195&&a===h.trueType){let b=EOe(n,h.checkType,h.extendsType);b&&(c=Bn(c,b))}else if(n.flags&262144&&h.kind===201&&!h.nameType&&a===h.type){let b=Ji(h);if(Zm(b)===Oy(n)){let I=R4(b);if(I){let w=ju(I);w&&Sp(w,HT)&&(c=Bn(c,pi([Bt,zo])))}}}a=h}return c?Nhe(n,Ma(c)):n}function ZX(n){return!!(n.flags&16777216)&&(n.kind===184||n.kind===206)}function GT(n,a){return n.typeArguments?(Qe(n,f.Type_0_is_not_generic,a?uo(a):n.typeName?ws(n.typeName):vU),!1):!0}function AOe(n){if(He(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return GT(n),gt;case"Number":return GT(n),Bt;case"BigInt":return GT(n),gr;case"Boolean":return GT(n),jt;case"Void":return GT(n),In;case"Undefined":return GT(n),_e;case"Null":return GT(n),Xt;case"Function":case"function":return GT(n),er;case"array":return(!a||!a.length)&&!ve?bd:void 0;case"promise":return(!a||!a.length)&&!ve?M9(Ue):void 0;case"Object":if(a&&a.length===2){if(H6(n)){let c=Ji(a[0]),p=Ji(a[1]),h=c===gt||c===Bt?[Vg(c,p,!1)]:ae;return bl(void 0,k,ae,ae,h)}return Ue}return GT(n),ve?void 0:Ue}}}function Bst(n){let a=Ji(n.type);return ie?i9(a,65536):a}function eY(n){let a=Vr(n);if(!a.resolvedType){if(wm(n)&&d1(n.parent))return a.resolvedSymbol=ne,a.resolvedType=Vl(n.parent.expression);let c,p,h=788968;ZX(n)&&(p=AOe(n),p||(c=b2(n,h,!0),c===ne?c=b2(n,h|111551):b2(n,h),p=QX(n,c))),p||(c=b2(n,h),p=QX(n,c)),a.resolvedSymbol=c,a.resolvedType=p}return a.resolvedType}function z5(n){return Vt(n.typeArguments,Ji)}function IOe(n){let a=Vr(n);if(!a.resolvedType){let c=cWe(n);a.resolvedType=Du(Xp(c))}return a.resolvedType}function xOe(n,a){function c(h){let b=h.declarations;if(b)for(let I of b)switch(I.kind){case 264:case 265:case 267:return I}}if(!n)return a?Zt:Ra;let p=qs(n);return p.flags&524288?et(p.typeParameters)!==a?(Qe(c(n),f.Global_type_0_must_have_1_type_parameter_s,wl(n),a),a?Zt:Ra):p:(Qe(c(n),f.Global_type_0_must_be_a_class_or_interface_type,wl(n)),a?Zt:Ra)}function Phe(n,a){return wC(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Lhe(n,a){return wC(n,788968,a?f.Cannot_find_global_type_0:void 0)}function tY(n,a,c){let p=wC(n,788968,c?f.Cannot_find_global_type_0:void 0);if(p&&(qs(p),et(Jr(p).typeParameters)!==a)){let h=p.declarations&&hn(p.declarations,ym);Qe(h,f.Global_type_0_must_have_1_type_parameter_s,wl(p),a);return}return p}function wC(n,a,c){return _t(void 0,n,a,c,!1,!1)}function Jl(n,a,c){let p=Lhe(n,c);return p||c?xOe(p,a):void 0}function ROe(n,a){let c;for(let p of n)c=Bn(c,Jl(p,a,!1));return c??ae}function Gst(){return Cg||(Cg=Jl("TypedPropertyDescriptor",1,!0)||Zt)}function Vst(){return yo||(yo=Jl("TemplateStringsArray",0,!0)||Ra)}function DOe(){return ta||(ta=Jl("ImportMeta",0,!0)||Ra)}function COe(){if(!Eo){let n=ja(0,"ImportMetaExpression"),a=DOe(),c=ja(4,"meta",8);c.parent=n,c.links.type=a;let p=da([c]);n.members=p,Eo=bl(n,p,ae,ae,ae)}return Eo}function NOe(n){return Vo||(Vo=Jl("ImportCallOptions",0,n))||Ra}function khe(n){return ml||(ml=Jl("ImportAttributes",0,n))||Ra}function MOe(n){return Jf||(Jf=Phe("Symbol",n))}function jst(n){return B_||(B_=Lhe("SymbolConstructor",n))}function POe(){return Dg||(Dg=Jl("Symbol",0,!1))||Ra}function B5(n){return ip||(ip=Jl("Promise",1,n))||Zt}function LOe(n){return Yc||(Yc=Jl("PromiseLike",1,n))||Zt}function whe(n){return bh||(bh=Phe("Promise",n))}function Ust(n){return bf||(bf=Jl("PromiseConstructorLike",0,n))||Ra}function G5(n){return ti||(ti=Jl("AsyncIterable",3,n))||Zt}function Hst(n){return Ti||(Ti=Jl("AsyncIterator",3,n))||Zt}function kOe(n){return $i||($i=Jl("AsyncIterableIterator",3,n))||Zt}function qst(){return Ve??(Ve=ROe(["ReadableStreamAsyncIterator"],1))}function Jst(n){return kt||(kt=Jl("AsyncIteratorObject",3,n))||Zt}function Kst(n){return On||(On=Jl("AsyncGenerator",3,n))||Zt}function nY(n){return u_||(u_=Jl("Iterable",3,n))||Zt}function Xst(n){return oe||(oe=Jl("Iterator",3,n))||Zt}function wOe(n){return ut||(ut=Jl("IterableIterator",3,n))||Zt}function Ohe(){return fe?_e:Ue}function Yst(){return z??(z=ROe(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function $st(n){return tn||(tn=Jl("IteratorObject",3,n))||Zt}function Qst(n){return an||(an=Jl("Generator",3,n))||Zt}function Zst(n){return wn||(wn=Jl("IteratorYieldResult",1,n))||Zt}function elt(n){return or||(or=Jl("IteratorReturnResult",1,n))||Zt}function OOe(n){return Ca||(Ca=Jl("Disposable",0,n))||Ra}function tlt(n){return cd||(cd=Jl("AsyncDisposable",0,n))||Ra}function WOe(n,a=0){let c=wC(n,788968,void 0);return c&&xOe(c,a)}function nlt(){return Vp||(Vp=tY("Extract",2,!0)||ne),Vp===ne?void 0:Vp}function rlt(){return Tf||(Tf=tY("Omit",2,!0)||ne),Tf===ne?void 0:Tf}function Whe(n){return Kf||(Kf=tY("Awaited",1,n)||(n?ne:void 0)),Kf===ne?void 0:Kf}function ilt(){return Ty||(Ty=Jl("BigInt",0,!1))||Ra}function olt(n){return G_??(G_=Jl("ClassDecoratorContext",1,n))??Zt}function alt(n){return Th??(Th=Jl("ClassMethodDecoratorContext",2,n))??Zt}function slt(n){return Am??(Am=Jl("ClassGetterDecoratorContext",2,n))??Zt}function llt(n){return Vb??(Vb=Jl("ClassSetterDecoratorContext",2,n))??Zt}function clt(n){return Ye??(Ye=Jl("ClassAccessorDecoratorContext",2,n))??Zt}function dlt(n){return mt??(mt=Jl("ClassAccessorDecoratorTarget",2,n))??Zt}function ult(n){return Yt??(Yt=Jl("ClassAccessorDecoratorResult",2,n))??Zt}function plt(n){return Rn??(Rn=Jl("ClassFieldDecoratorContext",2,n))??Zt}function flt(){return yv||(yv=Phe("NaN",!1))}function mlt(){return zu||(zu=tY("Record",2,!0)||ne),zu===ne?void 0:zu}function T2(n,a){return n!==Zt?Ly(n,a):Ra}function FOe(n){return T2(Gst(),[n])}function zOe(n){return T2(nY(!0),[n,In,_e])}function Yd(n,a){return T2(a?Va:es,[n])}function Fhe(n){switch(n.kind){case 191:return 2;case 192:return BOe(n);case 203:return n.questionToken?2:n.dotDotDotToken?BOe(n):1;default:return 1}}function BOe(n){return J5(n.type)?4:8}function hlt(n){let a=ylt(n.parent);if(J5(n))return a?Va:es;let p=Vt(n.elements,Fhe);return zhe(p,a,Vt(n.elements,_lt))}function _lt(n){return uD(n)||to(n)?n:void 0}function GOe(n,a){return!!Kx(n)||VOe(n)&&(n.kind===189?s0(n.elementType):n.kind===190?vt(n.elements,s0):a||vt(n.typeArguments,s0))}function VOe(n){let a=n.parent;switch(a.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return VOe(a);case 266:return!0}return!1}function s0(n){switch(n.kind){case 184:return ZX(n)||!!(b2(n,788968).flags&524288);case 187:return!0;case 199:return n.operator!==158&&s0(n.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return s0(n.type);case 192:return n.type.kind!==189||s0(n.type.elementType);case 193:case 194:return vt(n.types,s0);case 200:return s0(n.objectType)||s0(n.indexType);case 195:return s0(n.checkType)||s0(n.extendsType)||s0(n.trueType)||s0(n.falseType)}return!1}function glt(n){let a=Vr(n);if(!a.resolvedType){let c=hlt(n);if(c===Zt)a.resolvedType=Ra;else if(!(n.kind===190&&vt(n.elements,p=>!!(Fhe(p)&8)))&&GOe(n))a.resolvedType=n.kind===190&&n.elements.length===0?c:Rhe(c,n,void 0);else{let p=n.kind===189?[Ji(n.elementType)]:Vt(n.elements,Ji);a.resolvedType=Bhe(c,p)}}return a.resolvedType}function ylt(n){return G0(n)&&n.operator===148}function Z_(n,a,c=!1,p=[]){let h=zhe(a||Vt(n,b=>1),c,p);return h===Zt?Ra:n.length?Bhe(h,n):h}function zhe(n,a,c){if(n.length===1&&n[0]&4)return a?Va:es;let p=Vt(n,b=>b&1?"#":b&2?"?":b&4?".":"*").join()+(a?"R":"")+(vt(c,b=>!!b)?","+Vt(c,b=>b?ss(b):"_").join(","):""),h=Ni.get(p);return h||Ni.set(p,h=vlt(n,a,c)),h}function vlt(n,a,c){let p=n.length,h=Io(n,Ie=>!!(Ie&9)),b,I=[],w=0;if(p){b=new Array(p);for(let Ie=0;Ie<p;Ie++){let Te=b[Ie]=Gu(),Ze=n[Ie];if(w|=Ze,!(w&12)){let Tt=ja(4|(Ze&2?16777216:0),""+Ie,a?8:0);Tt.links.tupleLabelDeclaration=c?.[Ie],Tt.links.type=Te,I.push(Tt)}}}let U=I.length,H=ja(4,"length",a?8:0);if(w&12)H.links.type=Bt;else{let Ie=[];for(let Te=h;Te<=p;Te++)Ie.push(Ch(Te));H.links.type=pi(Ie)}I.push(H);let Q=_c(12);return Q.typeParameters=b,Q.outerTypeParameters=void 0,Q.localTypeParameters=b,Q.instantiations=new Map,Q.instantiations.set(Pm(Q.typeParameters),Q),Q.target=Q,Q.resolvedTypeArguments=Q.typeParameters,Q.thisType=Gu(),Q.thisType.isThisType=!0,Q.thisType.constraint=Q,Q.declaredProperties=I,Q.declaredCallSignatures=ae,Q.declaredConstructSignatures=ae,Q.declaredIndexInfos=ae,Q.elementFlags=n,Q.minLength=h,Q.fixedLength=U,Q.hasRestElement=!!(w&12),Q.combinedFlags=w,Q.readonly=a,Q.labeledElementDeclarations=c,Q}function Bhe(n,a){return n.objectFlags&8?Ghe(n,a):Ly(n,a)}function Ghe(n,a){var c,p,h,b;if(!(n.combinedFlags&14))return Ly(n,a);if(n.combinedFlags&8){let Tt=ho(a,(Dt,$t)=>!!(n.elementFlags[$t]&8&&Dt.flags&1179648));if(Tt>=0)return j5(Vt(a,(Dt,$t)=>n.elementFlags[$t]&8?Dt:Nt))?Tl(a[Tt],Dt=>Ghe(n,Dz(a,Tt,Dt))):nt}let I=[],w=[],U=[],H=-1,Q=-1,Ie=-1;for(let Tt=0;Tt<a.length;Tt++){let Dt=a[Tt],$t=n.elementFlags[Tt];if($t&8)if(Dt.flags&1)Ze(Dt,4,(c=n.labeledElementDeclarations)==null?void 0:c[Tt]);else if(Dt.flags&58982400||cp(Dt))Ze(Dt,8,(p=n.labeledElementDeclarations)==null?void 0:p[Tt]);else if(Ka(Dt)){let Tn=gS(Dt);if(Tn.length+I.length>=1e4)return Qe(R,Uh(R)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),nt;Je(Tn,(nr,yr)=>{var Sn;return Ze(nr,Dt.target.elementFlags[yr],(Sn=Dt.target.labeledElementDeclarations)==null?void 0:Sn[yr])})}else Ze(Bv(Dt)&&zT(Dt,Bt)||nt,4,(h=n.labeledElementDeclarations)==null?void 0:h[Tt]);else Ze(Dt,$t,(b=n.labeledElementDeclarations)==null?void 0:b[Tt])}for(let Tt=0;Tt<H;Tt++)w[Tt]&2&&(w[Tt]=1);Q>=0&&Q<Ie&&(I[Q]=pi(Zi(I.slice(Q,Ie+1),(Tt,Dt)=>w[Q+Dt]&8?Jp(Tt,Bt):Tt)),I.splice(Q+1,Ie-Q),w.splice(Q+1,Ie-Q),U.splice(Q+1,Ie-Q));let Te=zhe(w,n.readonly,U);return Te===Zt?Ra:w.length?Ly(Te,I):Te;function Ze(Tt,Dt,$t){Dt&1&&(H=w.length),Dt&4&&Q<0&&(Q=w.length),Dt&6&&(Ie=w.length),I.push(Dt&2?uu(Tt,!0):Tt),w.push(Dt),U.push($t)}}function S2(n,a,c=0){let p=n.target,h=Fv(n)-c;return a>p.fixedLength?adt(n)||Z_(ae):Z_(rl(n).slice(a,h),p.elementFlags.slice(a,h),!1,p.labeledElementDeclarations&&p.labeledElementDeclarations.slice(a,h))}function jOe(n){return pi(Bn(zQ(n.target.fixedLength,a=>Tp(""+a)),v_(n.target.readonly?Va:es)))}function blt(n,a){let c=ho(n.elementFlags,p=>!(p&a));return c>=0?c:n.elementFlags.length}function E4(n,a){return n.elementFlags.length-gl(n.elementFlags,c=>!(c&a))-1}function Vhe(n){return n.fixedLength+E4(n,3)}function gS(n){let a=rl(n),c=Fv(n);return a.length===c?a:a.slice(0,c)}function Tlt(n){return uu(Ji(n.type),!0)}function pd(n){return n.id}function jg(n,a){return Yv(n,a,pd,js)>=0}function V5(n,a){let c=Yv(n,a,pd,js);return c<0?(n.splice(~c,0,a),!0):!1}function Slt(n,a,c){let p=c.flags;if(!(p&131072))if(a|=p&473694207,p&465829888&&(a|=33554432),p&2097152&&Hr(c)&67108864&&(a|=536870912),c===It&&(a|=8388608),pr(c)&&(a|=1073741824),!ie&&p&98304)Hr(c)&65536||(a|=4194304);else{let h=n.length,b=h&&c.id>n[h-1].id?~h:Yv(n,c,pd,js);b<0&&n.splice(~b,0,c)}return a}function UOe(n,a,c){let p;for(let h of c)h!==p&&(a=h.flags&1048576?UOe(n,a|(Dlt(h)?1048576:0),h.types):Slt(n,a,h),p=h);return a}function Elt(n,a){var c;if(n.length<2)return n;let p=Pm(n),h=Mn.get(p);if(h)return h;let b=a&&vt(n,H=>!!(H.flags&524288)&&!cp(H)&&p_e(Dh(H))),I=n.length,w=I,U=0;for(;w>0;){w--;let H=n[w];if(b||H.flags&469499904){if(H.flags&262144&&y_(H).flags&1048576){b_(H,pi(Vt(n,Te=>Te===H?yn:Te)),cl)&&tb(n,w);continue}let Q=H.flags&61603840?hn(bs(H),Te=>Nh(_r(Te))):void 0,Ie=Q&&Du(_r(Q));for(let Te of n)if(H!==Te){if(U===1e5&&U/(I-w)*I>1e6){(c=xr)==null||c.instant(xr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(Tt=>Tt.id)}),Qe(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(U++,Q&&Te.flags&61603840){let Ze=_n(Te,Q.escapedName);if(Ze&&Nh(Ze)&&Du(Ze)!==Ie)continue}if(b_(H,Te,cl)&&(!(Hr(zn(H))&1)||!(Hr(zn(Te))&1)||UT(H,Te))){tb(n,w);break}}}}return Mn.set(p,n),n}function Alt(n,a,c){let p=n.length;for(;p>0;){p--;let h=n[p],b=h.flags;(b&402653312&&a&4||b&256&&a&8||b&2048&&a&64||b&8192&&a&4096||c&&b&32768&&a&16384||vS(h)&&jg(n,h.regularType))&&tb(n,p)}}function Ilt(n){let a=Un(n,hA);if(a.length){let c=n.length;for(;c>0;){c--;let p=n[c];p.flags&128&&vt(a,h=>xlt(p,h))&&tb(n,c)}}}function xlt(n,a){return a.flags&134217728?MY(n,a):NY(n,a)}function Rlt(n){let a=[];for(let c of n)if(c.flags&2097152&&Hr(c)&67108864){let p=c.types[0].flags&8650752?0:1;Pf(a,c.types[p])}for(let c of a){let p=[];for(let b of n)if(b.flags&2097152&&Hr(b)&67108864){let I=b.types[0].flags&8650752?0:1;b.types[I]===c&&V5(p,b.types[1-I])}let h=Ld(c);if(Sp(h,b=>jg(p,b))){let b=n.length;for(;b>0;){b--;let I=n[b];if(I.flags&2097152&&Hr(I)&67108864){let w=I.types[0].flags&8650752?0:1;I.types[w]===c&&jg(p,I.types[1-w])&&tb(n,b)}}V5(n,c)}}}function Dlt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function HOe(n,a){for(let c of a)if(c.flags&1048576){let p=c.origin;c.aliasSymbol||p&&!(p.flags&1048576)?Pf(n,c):p&&p.flags&1048576&&HOe(n,p.types)}}function jhe(n,a){let c=Ao(n);return c.types=a,c}function pi(n,a=1,c,p,h){if(n.length===0)return yn;if(n.length===1)return n[0];if(n.length===2&&!h&&(n[0].flags&1048576||n[1].flags&1048576)){let b=a===0?"N":a===2?"S":"L",I=n[0].id<n[1].id?0:1,w=n[I].id+b+n[1-I].id+fA(c,p),U=Ci.get(w);return U||(U=qOe(n,a,c,p,void 0),Ci.set(w,U)),U}return qOe(n,a,c,p,h)}function qOe(n,a,c,p,h){let b=[],I=UOe(b,0,n);if(a!==0){if(I&3)return I&1?I&8388608?It:I&1073741824?nt:Ue:Nt;if(I&32768&&b.length>=2&&b[0]===_e&&b[1]===Ae&&tb(b,1),(I&402664352||I&16384&&I&32768)&&Alt(b,I,!!(a&2)),I&128&&I&402653184&&Ilt(b),I&536870912&&Rlt(b),a===2&&(b=Elt(b,!!(I&524288)),!b))return nt;if(b.length===0)return I&65536?I&4194304?Xt:Le:I&32768?I&4194304?_e:B:yn}if(!h&&I&1048576){let U=[];HOe(U,n);let H=[];for(let Ie of b)vt(U,Te=>jg(Te.types,Ie))||H.push(Ie);if(!c&&U.length===1&&H.length===0)return U[0];if(_u(U,(Ie,Te)=>Ie+Te.types.length,0)+H.length===b.length){for(let Ie of U)V5(H,Ie);h=jhe(1048576,H)}}let w=(I&36323331?0:32768)|(I&2097152?16777216:0);return Hhe(b,w,c,p,h)}function Clt(n,a){let c,p=[];for(let b of n){let I=em(b);if(I){if(I.kind!==0&&I.kind!==1||c&&!Uhe(c,I))return;c=I,p.push(I.type)}else{let w=a!==2097152?ps(b):void 0;if(w!==tr&&w!==Jn)return}}if(!c)return;let h=uOe(p,a);return b4(c.kind,c.parameterName,c.parameterIndex,h)}function Uhe(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Hhe(n,a,c,p,h){if(n.length===0)return yn;if(n.length===1)return n[0];let I=(h?h.flags&1048576?`|${Pm(h.types)}`:h.flags&2097152?`&${Pm(h.types)}`:`#${h.type.id}|${Pm(n)}`:Pm(n))+fA(c,p),w=Pr.get(I);return w||(w=vi(1048576),w.objectFlags=a|F5(n,98304),w.types=n,w.origin=h,w.aliasSymbol=c,w.aliasTypeArguments=p,n.length===2&&n[0].flags&512&&n[1].flags&512&&(w.flags|=16,w.intrinsicName="boolean"),Pr.set(I,w)),w}function Nlt(n){let a=Vr(n);if(!a.resolvedType){let c=Kx(n);a.resolvedType=pi(Vt(n.types,Ji),1,c,OC(c))}return a.resolvedType}function Mlt(n,a,c){let p=c.flags;return p&2097152?JOe(n,a,c.types):(eg(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(p&3?(c===It&&(a|=8388608),pr(c)&&(a|=1073741824)):(ie||!(p&98304))&&(c===Ae&&(a|=262144,c=_e),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=p&473694207),a)}function JOe(n,a,c){for(let p of c)a=Mlt(n,a,Du(p));return a}function Plt(n,a){let c=n.length;for(;c>0;){c--;let p=n[c];(p.flags&4&&a&402653312||p.flags&8&&a&256||p.flags&64&&a&2048||p.flags&4096&&a&8192||p.flags&16384&&a&32768||eg(p)&&a&470302716)&&tb(n,c)}}function Llt(n,a){for(let c of n)if(!jg(c.types,a)){if(a===Ae)return jg(c.types,_e);if(a===_e)return jg(c.types,Ae);let p=a.flags&128?gt:a.flags&288?Bt:a.flags&2048?gr:a.flags&8192?Qt:void 0;if(!p||!jg(c.types,p))return!1}return!0}function klt(n){let a=n.length,c=Un(n,p=>!!(p.flags&128));for(;a>0;){a--;let p=n[a];if(p.flags&402653184){for(let h of c)if(TS(h,p)){tb(n,a);break}else if(hA(p))return!0}}return!1}function KOe(n,a){for(let c=0;c<n.length;c++)n[c]=Ac(n[c],p=>!(p.flags&a))}function wlt(n){let a,c=ho(n,I=>!!(Hr(I)&32768));if(c<0)return!1;let p=c+1;for(;p<n.length;){let I=n[p];Hr(I)&32768?((a||(a=[n[c]])).push(I),tb(n,p)):p++}if(!a)return!1;let h=[],b=[];for(let I of a)for(let w of I.types)if(V5(h,w)&&Llt(a,w)){if(w===_e&&b.length&&b[0]===Ae)continue;if(w===Ae&&b.length&&b[0]===_e){b[0]=Ae;continue}V5(b,w)}return n[c]=Hhe(b,32768),!0}function Olt(n,a,c,p){let h=vi(2097152);return h.objectFlags=a|F5(n,98304),h.types=n,h.aliasSymbol=c,h.aliasTypeArguments=p,h}function Ma(n,a=0,c,p){let h=new Map,b=JOe(h,0,n),I=Co(h.values()),w=0;if(b&131072)return jn(I,wt)?wt:yn;if(ie&&b&98304&&b&84410368||b&67108864&&b&402783228||b&402653316&&b&67238776||b&296&&b&469891796||b&2112&&b&469889980||b&12288&&b&469879804||b&49152&&b&469842940||b&402653184&&b&128&&klt(I))return yn;if(b&1)return b&8388608?It:b&1073741824?nt:Ue;if(!ie&&b&98304)return b&16777216?yn:b&32768?_e:Xt;if((b&4&&b&402653312||b&8&&b&256||b&64&&b&2048||b&4096&&b&8192||b&16384&&b&32768||b&16777216&&b&470302716)&&(a&1||Plt(I,b)),b&262144&&(I[I.indexOf(_e)]=Ae),I.length===0)return Nt;if(I.length===1)return I[0];if(I.length===2&&!(a&2)){let Q=I[0].flags&8650752?0:1,Ie=I[Q],Te=I[1-Q];if(Ie.flags&8650752&&(Te.flags&469893116&&!o4e(Te)||b&16777216)){let Ze=Ld(Ie);if(Ze&&Sp(Ze,Tt=>!!(Tt.flags&469893116)||eg(Tt))){if(E2(Ze,Te))return Ie;if(!(Ze.flags&1048576&&im(Ze,Tt=>E2(Tt,Te)))&&!E2(Te,Ze))return yn;w=67108864}}}let U=Pm(I)+(a&2?"*":fA(c,p)),H=$e.get(U);if(!H){if(b&1048576)if(wlt(I))H=Ma(I,a,c,p);else if(Vn(I,Q=>!!(Q.flags&1048576&&Q.types[0].flags&32768))){let Q=vt(I,k4)?Ae:_e;KOe(I,32768),H=pi([Ma(I,a),Q],1,c,p)}else if(Vn(I,Q=>!!(Q.flags&1048576&&(Q.types[0].flags&65536||Q.types[1].flags&65536))))KOe(I,65536),H=pi([Ma(I,a),Xt],1,c,p);else if(I.length>=3&&n.length>2){let Q=Math.floor(I.length/2);H=Ma([Ma(I.slice(0,Q),a),Ma(I.slice(Q),a)],a,c,p)}else{if(!j5(I))return nt;let Q=Wlt(I,a),Ie=vt(Q,Te=>!!(Te.flags&2097152))&&qhe(Q)>qhe(I)?jhe(2097152,I):void 0;H=pi(Q,1,c,p,Ie)}else H=Olt(I,w,c,p);$e.set(U,H)}return H}function XOe(n){return _u(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function j5(n){var a;let c=XOe(n);return c>=1e5?((a=xr)==null||a.instant(xr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(p=>p.id),size:c}),Qe(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Wlt(n,a){let c=XOe(n),p=[];for(let h=0;h<c;h++){let b=n.slice(),I=h;for(let U=n.length-1;U>=0;U--)if(n[U].flags&1048576){let H=n[U].types,Q=H.length;b[U]=H[I%Q],I=Math.floor(I/Q)}let w=Ma(b,a);w.flags&131072||p.push(w)}return p}function YOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?YOe(n.origin):qhe(n.types)}function qhe(n){return _u(n,(a,c)=>a+YOe(c),0)}function Flt(n){let a=Vr(n);if(!a.resolvedType){let c=Kx(n),p=Vt(n.types,Ji),h=p.length===2?p.indexOf(fa):-1,b=h>=0?p[1-h]:Nt,I=!!(b.flags&76||b.flags&134217728&&hA(b));a.resolvedType=Ma(p,I?1:0,c,OC(c))}return a.resolvedType}function $Oe(n,a){let c=vi(4194304);return c.type=n,c.indexFlags=a,c}function zlt(n){let a=Ao(4194304);return a.type=n,a}function QOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=$Oe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=$Oe(n,0))}function ZOe(n,a){let c=Zm(n),p=xf(n),h=wv(n.target||n);if(!h&&!(a&2))return p;let b=[];if(gA(p)){if(NC(n))return QOe(n,a);IA(p,w)}else if(NC(n)){let U=Ru(FT(n));fhe(U,8576,!!(a&1),w)}else IA(L5(p),w);let I=a&2?Ac(pi(b),U=>!(U.flags&5)):pi(b);if(I.flags&1048576&&p.flags&1048576&&Pm(I.types)===Pm(p.types))return p;return I;function w(U){let H=h?io(h,x4(n.mapper,c,U)):U;b.push(H===gt?ln:H)}}function Blt(n){let a=Zm(n);return c(wv(n)||a);function c(p){return p.flags&470810623?!0:p.flags&16777216?p.root.isDistributive&&p.checkType===a:p.flags&137363456?Vn(p.types,c):p.flags&8388608?c(p.objectType)&&c(p.indexType):p.flags&33554432?c(p.baseType)&&c(p.constraint):p.flags&268435456?c(p.type):!1}}function ky(n){if(eo(n))return yn;if(ep(n))return Du(_o(n));if(va(n))return Du(eh(n));let a=eE(n);return a!==void 0?Tp(Vi(a)):St(n)?Du(_o(n)):yn}function qx(n,a,c){if(c||!(Bf(n)&6)){let p=Jr(GX(n)).nameType;if(!p){let h=Oo(n.valueDeclaration);p=n.escapedName==="default"?Tp("default"):h&&ky(h)||(iM(n)?void 0:Tp(wl(n)))}if(p&&p.flags&a)return p}return yn}function e4e(n,a){return!!(n.flags&a||n.flags&2097152&&vt(n.types,c=>e4e(c,a)))}function Glt(n,a,c){let p=c&&(Hr(n)&7||n.aliasSymbol)?zlt(n):void 0,h=Vt(bs(n),I=>qx(I,a)),b=Vt(Xd(n),I=>I!==ro&&e4e(I.keyType,a)?I.keyType===gt&&a&8?ln:I.keyType:yn);return pi(so(h,b),1,void 0,void 0,p)}function Jhe(n,a=0){return!!(n.flags&58982400||u0(n)||cp(n)&&(!Blt(n)||g4(n)===2)||n.flags&1048576&&!(a&4)&&vhe(n)||n.flags&2097152&&ec(n,465829888)&&vt(n.types,eg))}function v_(n,a=0){return n=Mm(n),kC(n)?Dhe(v_(n.baseType,a)):Jhe(n,a)?QOe(n,a):n.flags&1048576?Ma(Vt(n.types,c=>v_(c,a))):n.flags&2097152?pi(Vt(n.types,c=>v_(c,a))):Hr(n)&32?ZOe(n,a):n===It?It:n.flags&2?yn:n.flags&131073?Ii:Glt(n,(a&2?128:402653316)|(a&1?0:12584),a===0)}function t4e(n){let a=nlt();return a?LC(a,[n,gt]):gt}function Vlt(n){let a=t4e(v_(n));return a.flags&131072?gt:a}function jlt(n){let a=Vr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=v_(Ji(n.type));break;case 158:a.resolvedType=n.type.kind===155?n_e(mk(n.parent)):nt;break;case 148:a.resolvedType=Ji(n.type);break;default:C.assertNever(n.operator)}return a.resolvedType}function Ult(n){let a=Vr(n);return a.resolvedType||(a.resolvedType=mA([n.head.text,...Vt(n.templateSpans,c=>c.literal.text)],Vt(n.templateSpans,c=>Ji(c.type)))),a.resolvedType}function mA(n,a){let c=ho(a,H=>!!(H.flags&1179648));if(c>=0)return j5(a)?Tl(a[c],H=>mA(n,Dz(a,c,H))):nt;if(jn(a,It))return It;let p=[],h=[],b=n[0];if(!U(n,a))return gt;if(p.length===0)return Tp(b);if(h.push(b),Vn(h,H=>H==="")){if(Vn(p,H=>!!(H.flags&4)))return gt;if(p.length===1&&hA(p[0]))return p[0]}let I=`${Pm(p)}|${Vt(h,H=>H.length).join(",")}|${h.join("")}`,w=qi.get(I);return w||qi.set(I,w=qlt(h,p)),w;function U(H,Q){for(let Ie=0;Ie<Q.length;Ie++){let Te=Q[Ie];if(Te.flags&101248)b+=Hlt(Te)||"",b+=H[Ie+1];else if(Te.flags&134217728){if(b+=Te.texts[0],!U(Te.texts,Te.types))return!1;b+=H[Ie+1]}else if(gA(Te)||U5(Te))p.push(Te),h.push(b),b=H[Ie+1];else return!1}return!0}}function Hlt(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?R1(n.value):n.flags&98816?n.intrinsicName:void 0}function qlt(n,a){let c=vi(134217728);return c.texts=n,c.types=a,c}function Jx(n,a){return a.flags&1179648?Tl(a,c=>Jx(n,c)):a.flags&128?Tp(n4e(n,a.value)):a.flags&134217728?mA(...Jlt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||gA(a)?r4e(n,a):U5(a)?r4e(n,mA(["",""],[a])):a}function n4e(n,a){switch(EU.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 Jlt(n,a,c){switch(EU.get(n.escapedName)){case 0:return[a.map(p=>p.toUpperCase()),c.map(p=>Jx(n,p))];case 1:return[a.map(p=>p.toLowerCase()),c.map(p=>Jx(n,p))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[Jx(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]===""?[Jx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function r4e(n,a){let c=`${Ta(n)},${pd(a)}`,p=$o.get(c);return p||$o.set(c,p=Klt(n,a)),p}function Klt(n,a){let c=wi(268435456,n);return c.type=a,c}function Xlt(n,a,c,p,h){let b=vi(8388608);return b.objectType=n,b.indexType=a,b.accessFlags=c,b.aliasSymbol=p,b.aliasTypeArguments=h,b}function A4(n){if(ve)return!1;if(Hr(n)&4096)return!0;if(n.flags&1048576)return Vn(n.types,A4);if(n.flags&2097152)return vt(n.types,A4);if(n.flags&465829888){let a=_he(n);return a!==n&&A4(a)}return!1}function rY(n,a){return Gf(n)?Vf(n):a&&bc(a)?eE(a):void 0}function Khe(n,a){if(a.flags&8208){let c=Dn(n.parent,p=>!Ks(p))||n.parent;return c1(c)?Bh(c)&&He(n)&&h8e(c,n):Vn(a.declarations,p=>!Yo(p)||Sh(p))}return!0}function i4e(n,a,c,p,h,b){let I=h&&h.kind===213?h:void 0,w=h&&eo(h)?void 0:rY(c,h);if(w!==void 0){if(b&256)return KT(a,w)||Ue;let H=Ea(a,w);if(H){if(b&64&&h&&H.declarations&&Iu(H)&&Khe(h,H)){let Ie=I?.argumentExpression??(P1(h)?h.indexType:h);Dm(Ie,H.declarations,w)}if(I){if(A9(H,I,O6e(I.expression,a.symbol)),AWe(I,H,gb(I))){Qe(I.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,uo(H));return}if(b&8&&(Vr(h).resolvedSymbol=H),D6e(I,H))return Rt}let Q=b&4?kv(H):_r(H);return I&&gb(I)!==1?Vy(I,Q):h&&P1(h)&&k4(Q)?pi([Q,_e]):Q}if(Sp(a,Ka)&&Sg(w)){let Q=+w;if(h&&Sp(a,Ie=>!(Ie.target.combinedFlags&12))&&!(b&16)){let Ie=Xhe(h);if(Ka(a)){if(Q<0)return Qe(Ie,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),_e;Qe(Ie,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,ar(a),Fv(a),Vi(w))}else Qe(Ie,f.Property_0_does_not_exist_on_type_1,Vi(w),ar(a))}if(Q>=0)return U(Gg(a,Bt)),K4e(a,Q,b&1?Ae:void 0)}}if(!(c.flags&98304)&&kd(c,402665900)){if(a.flags&131073)return a;let H=y4(a,c)||Gg(a,gt);if(H){if(b&2&&H.keyType!==Bt){I&&(b&4?Qe(I,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,ar(n)):Qe(I,f.Type_0_cannot_be_used_to_index_type_1,ar(c),ar(n)));return}if(h&&H.keyType===gt&&!kd(c,12)){let Q=Xhe(h);return Qe(Q,f.Type_0_cannot_be_used_as_an_index_type,ar(c)),b&1?pi([H.type,Ae]):H.type}return U(H),b&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&$c(c.symbol)===a.symbol)?pi([H.type,Ae]):H.type}if(c.flags&131072)return yn;if(A4(a))return Ue;if(I&&!u$(a)){if(Gv(a)){if(ve&&c.flags&384)return ns.add(Ar(I,f.Property_0_does_not_exist_on_type_1,c.value,ar(a))),_e;if(c.flags&12){let Q=Vt(a.properties,Ie=>_r(Ie));return pi(Bn(Q,_e))}}if(a.symbol===De&&w!==void 0&&De.exports.has(w)&&De.exports.get(w).flags&418)Qe(I,f.Property_0_does_not_exist_on_type_1,Vi(w),ar(a));else if(ve&&!(b&128))if(w!==void 0&&M6e(w,a)){let Q=ar(a);Qe(I,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,w,Q,Q+"["+Al(I.argumentExpression)+"]")}else if(zT(a,Bt))Qe(I.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Q;if(w!==void 0&&(Q=k6e(w,a)))Q!==void 0&&Qe(I.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,w,ar(a),Q);else{let Ie=nft(a,I,c);if(Ie!==void 0)Qe(I,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ar(a),Ie);else{let Te;if(c.flags&1024)Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,"["+ar(c)+"]",ar(a));else if(c.flags&8192){let Ze=Rv(c.symbol,I);Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Ze+"]",ar(a))}else c.flags&128||c.flags&256?Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,ar(a)):c.flags&12&&(Te=qo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ar(c),ar(a)));Te=qo(Te,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ar(p),ar(a)),ns.add(mg(Wn(I),I,Te))}}}return}}if(b&16&&Gv(a))return _e;if(A4(a))return Ue;if(h){let H=Xhe(h);if(H.kind!==10&&c.flags&384)Qe(H,f.Property_0_does_not_exist_on_type_1,""+c.value,ar(a));else if(c.flags&12)Qe(H,f.Type_0_has_no_matching_index_signature_for_type_1,ar(a),ar(c));else{let Q=H.kind===10?"bigint":ar(c);Qe(H,f.Type_0_cannot_be_used_as_an_index_type,Q)}}if(wr(c))return c;return;function U(H){H&&H.isReadonly&&I&&(yb(I)||DG(I))&&Qe(I,f.Index_signature_in_type_0_only_permits_reading,ar(a))}}function Xhe(n){return n.kind===213?n.argumentExpression:n.kind===200?n.indexType:n.kind===168?n.expression:n}function U5(n){if(n.flags&2097152){let a=!1;for(let c of n.types)if(c.flags&101248||U5(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||hA(n)}function hA(n){return!!(n.flags&134217728)&&Vn(n.types,U5)||!!(n.flags&268435456)&&U5(n.type)}function o4e(n){return!!(n.flags&402653184)&&!hA(n)}function VT(n){return!!I4(n)}function _A(n){return!!(I4(n)&4194304)}function gA(n){return!!(I4(n)&8388608)}function I4(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|_u(n.types,(a,c)=>a|I4(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|I4(n.baseType)|I4(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||cp(n)||u0(n)?4194304:0)|(n.flags&63176704||o4e(n)?8388608:0)}function wy(n,a){return n.flags&8388608?$lt(n,a):n.flags&16777216?Qlt(n,a):n}function a4e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Jhe(n)){let p=Vt(n.types,h=>wy(Jp(h,a),c));return n.flags&2097152||c?Ma(p):pi(p)}}function Ylt(n,a,c){if(a.flags&1048576){let p=Vt(a.types,h=>wy(Jp(n,h),c));return c?Ma(p):pi(p)}}function $lt(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===sc?n:n[c];n[c]=sc;let p=wy(n.objectType,a),h=wy(n.indexType,a),b=Ylt(p,h,a);if(b)return n[c]=b;if(!(h.flags&465829888)){let I=a4e(p,h,a);if(I)return n[c]=I}if(u0(p)&&h.flags&296){let I=x2(p,h.flags&8?0:p.target.fixedLength,0,a);if(I)return n[c]=I}return cp(p)&&g4(p)!==2?n[c]=Tl(iY(p,n.indexType),I=>wy(I,a)):n[c]=n}function Qlt(n,a){let c=n.checkType,p=n.extendsType,h=c0(n),b=d0(n);if(b.flags&131072&&Oy(h)===Oy(c)){if(c.flags&1||aa(bA(c),bA(p)))return wy(h,a);if(s4e(c,p))return yn}else if(h.flags&131072&&Oy(b)===Oy(c)){if(!(c.flags&1)&&aa(bA(c),bA(p)))return yn;if(c.flags&1||s4e(c,p))return wy(b,a)}return n}function s4e(n,a){return!!(pi([P5(n,a),yn]).flags&131072)}function iY(n,a){let c=Kp([Zm(n)],[a]),p=jT(n.mapper,c),h=io(Bg(n.target||n),p),b=Ywe(n)>0||(VT(n)?h2(FT(n))>0:Zlt(n,a));return uu(h,!0,b)}function Zlt(n,a){let c=Ld(a);return!!c&&vt(bs(n),p=>!!(p.flags&16777216)&&aa(qx(p,8576),c))}function Jp(n,a,c=0,p,h,b){return l0(n,a,c,p,h,b)||(p?nt:Nt)}function l4e(n,a){return Sp(n,c=>{if(c.flags&384){let p=Vf(c);if(Sg(p)){let h=+p;return h>=0&&h<a}}return!1})}function l0(n,a,c=0,p,h,b){if(n===It||a===It)return It;if(n=Mm(n),k4e(n)&&!(a.flags&98304)&&kd(a,12)&&(a=gt),O.noUncheckedIndexedAccess&&c&32&&(c|=1),gA(a)||(p&&p.kind!==200?u0(n)&&!l4e(a,Vhe(n.target)):_A(n)&&!(Ka(n)&&l4e(a,Vhe(n.target)))||vhe(n))){if(n.flags&3)return n;let w=c&1,U=n.id+","+a.id+","+w+fA(h,b),H=ai.get(U);return H||ai.set(U,H=Xlt(n,a,w,h,b)),H}let I=_2(n);if(a.flags&1048576&&!(a.flags&16)){let w=[],U=!1;for(let H of a.types){let Q=i4e(n,I,H,a,p,c|(U?128:0));if(Q)w.push(Q);else if(p)U=!0;else return}return U?void 0:c&4?Ma(w,0,h,b):pi(w,1,h,b)}return i4e(n,I,a,a,p,c|8|64)}function c4e(n){let a=Vr(n);if(!a.resolvedType){let c=Ji(n.objectType),p=Ji(n.indexType),h=Kx(n);a.resolvedType=Jp(c,p,0,n,h,OC(h))}return a.resolvedType}function Yhe(n){let a=Vr(n);if(!a.resolvedType){let c=_c(32,n.symbol);c.declaration=n,c.aliasSymbol=Kx(n),c.aliasTypeArguments=OC(c.aliasSymbol),a.resolvedType=c,xf(c)}return a.resolvedType}function Oy(n){return n.flags&33554432?Oy(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?Jp(Oy(n.objectType),Oy(n.indexType)):n}function d4e(n){return OI(n)&&et(n.elements)>0&&!vt(n.elements,a=>a3(a)||s3(a)||uD(a)&&!!(a.questionToken||a.dotDotDotToken))}function u4e(n,a){return VT(n)||a&&Ka(n)&&vt(gS(n),VT)}function $he(n,a,c,p,h){let b,I,w=0;for(;;){if(w===1e3)return Qe(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;let H=io(Oy(n.checkType),a),Q=io(n.extendsType,a);if(H===nt||Q===nt)return nt;if(H===It||Q===It)return It;let Ie=QN(n.node.checkType),Te=QN(n.node.extendsType),Ze=d4e(Ie)&&d4e(Te)&&et(Ie.elements)===et(Te.elements),Tt=u4e(H,Ze),Dt;if(n.inferTypeParameters){let Tn=O4(n.inferTypeParameters,void 0,0);a&&(Tn.nonFixingMapper=jT(Tn.nonFixingMapper,a)),Tt||Hg(Tn.inferences,H,Q,1536),Dt=a?jT(Tn.mapper,a):Tn.mapper}let $t=Dt?io(n.extendsType,Dt):Q;if(!Tt&&!u4e($t,Ze)){if(!($t.flags&3)&&(H.flags&1||!aa(D4(H),D4($t)))){(H.flags&1||c&&!($t.flags&131072)&&im(D4($t),nr=>aa(nr,D4(H))))&&(I||(I=[])).push(io(Ji(n.node.trueType),Dt||a));let Tn=Ji(n.node.falseType);if(Tn.flags&16777216){let nr=Tn.root;if(nr.node.parent===n.node&&(!nr.isDistributive||nr.checkType===n.checkType)){n=nr;continue}if(U(Tn,a))continue}b=io(Tn,a);break}if($t.flags&3||aa(bA(H),bA($t))){let Tn=Ji(n.node.trueType),nr=Dt||a;if(U(Tn,nr))continue;b=io(Tn,nr);break}}b=vi(16777216),b.root=n,b.checkType=io(n.checkType,a),b.extendsType=io(n.extendsType,a),b.mapper=a,b.combinedMapper=Dt,b.aliasSymbol=p||n.aliasSymbol,b.aliasTypeArguments=p?h:Wy(n.aliasTypeArguments,a);break}return I?pi(Bn(I,b)):b;function U(H,Q){if(H.flags&16777216&&Q){let Ie=H.root;if(Ie.outerTypeParameters){let Te=jT(H.mapper,Q),Ze=Vt(Ie.outerTypeParameters,$t=>zv($t,Te)),Tt=Kp(Ie.outerTypeParameters,Ze),Dt=Ie.isDistributive?zv(Ie.checkType,Tt):void 0;if(!Dt||Dt===Ie.checkType||!(Dt.flags&1179648))return n=Ie,a=Tt,p=void 0,h=void 0,Ie.aliasSymbol&&w++,!0}}return!1}}function c0(n){return n.resolvedTrueType||(n.resolvedTrueType=io(Ji(n.root.node.trueType),n.mapper))}function d0(n){return n.resolvedFalseType||(n.resolvedFalseType=io(Ji(n.root.node.falseType),n.mapper))}function ect(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(Ji(n.root.node.trueType),n.combinedMapper):c0(n))}function Qhe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Bn(a,qs(c)))}),a}function tct(n){return n.isDistributive&&(X5(n.checkType,n.node.trueType)||X5(n.checkType,n.node.falseType))}function nct(n){let a=Vr(n);if(!a.resolvedType){let c=Ji(n.checkType),p=Kx(n),h=OC(p),b=Mi(n,!0),I=h?b:Un(b,U=>X5(U,n)),w={node:n,checkType:c,extendsType:Ji(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:Qhe(n),outerTypeParameters:I,instantiations:void 0,aliasSymbol:p,aliasTypeArguments:h};a.resolvedType=$he(w,void 0,!1),I&&(w.instantiations=new Map,w.instantiations.set(Pm(I),a.resolvedType))}return a.resolvedType}function rct(n){let a=Vr(n);return a.resolvedType||(a.resolvedType=WT(Wr(n.typeParameter))),a.resolvedType}function p4e(n){return He(n)?[n]:Bn(p4e(n.left),n.right)}function f4e(n){var a;let c=Vr(n);if(!c.resolvedType){if(!ry(n))return Qe(n.argument,f.String_literal_expected),c.resolvedSymbol=ne,c.resolvedType=nt;let p=n.isTypeOf?111551:n.flags&16777216?900095:788968,h=du(n,n.argument.literal);if(!h)return c.resolvedSymbol=ne,c.resolvedType=nt;let b=!!((a=h.exports)!=null&&a.get("export=")),I=bp(h,!1);if(Ol(n.qualifier))if(I.flags&p)c.resolvedType=m4e(n,c,I,p);else{let w=p===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,w,n.argument.literal.text),c.resolvedSymbol=ne,c.resolvedType=nt}else{let w=p4e(n.qualifier),U=I,H;for(;H=w.shift();){let Q=w.length?1920:p,Ie=os(hc(U)),Te=n.isTypeOf||Ir(n)&&b?Ea(_r(Ie),H.escapedText,!1,!0):void 0,Tt=(n.isTypeOf?void 0:Sd(Up(Ie),H.escapedText,Q))??Te;if(!Tt)return Qe(H,f.Namespace_0_has_no_exported_member_1,Rv(U),ws(H)),c.resolvedType=nt;Vr(H).resolvedSymbol=Tt,Vr(H.parent).resolvedSymbol=Tt,U=Tt}c.resolvedType=m4e(n,c,U,p)}}return c.resolvedType}function m4e(n,a,c,p){let h=hc(c);return a.resolvedSymbol=h,p===111551?dWe(_r(c),n):QX(n,h)}function h4e(n){let a=Vr(n);if(!a.resolvedType){let c=Kx(n);if(!n.symbol||Y_(n.symbol).size===0&&!c)a.resolvedType=fa;else{let p=_c(16,n.symbol);p.aliasSymbol=c,p.aliasTypeArguments=OC(c),gE(n)&&n.isArrayType&&(p=Yd(p)),a.resolvedType=p}}return a.resolvedType}function Kx(n){let a=n.parent;for(;dE(a)||K0(a)||G0(a)&&a.operator===148;)a=a.parent;return uk(a)?Wr(a):void 0}function OC(n){return n?Na(n):void 0}function oY(n){return!!(n.flags&524288)&&!cp(n)}function Zhe(n){return Fy(n)||!!(n.flags&474058748)}function e_e(n,a){if(!(n.flags&1048576))return n;if(Vn(n.types,Zhe))return hn(n.types,Fy)||Ra;let c=hn(n.types,b=>!Zhe(b));if(!c||hn(n.types,b=>b!==c&&!Zhe(b)))return n;return h(c);function h(b){let I=da();for(let U of bs(b))if(!(Bf(U)&6)){if(aY(U)){let H=U.flags&65536&&!(U.flags&32768),Ie=ja(16777220,U.escapedName,phe(U)|(a?8:0));Ie.links.type=H?_e:uu(_r(U),!0),Ie.declarations=U.declarations,Ie.links.nameType=Jr(U).nameType,Ie.links.syntheticOrigin=U,I.set(U.escapedName,Ie)}}let w=bl(b.symbol,I,ae,ae,Xd(b));return w.objectFlags|=131200,w}}function yS(n,a,c,p,h){if(n.flags&1||a.flags&1)return Ue;if(n.flags&2||a.flags&2)return Nt;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=e_e(n,h),n.flags&1048576)return j5([n,a])?Tl(n,H=>yS(H,a,c,p,h)):nt;if(a=e_e(a,h),a.flags&1048576)return j5([n,a])?Tl(a,H=>yS(n,H,c,p,h)):nt;if(a.flags&473960444)return n;if(_A(n)||_A(a)){if(Fy(n))return a;if(n.flags&2097152){let H=n.types,Q=H[H.length-1];if(oY(Q)&&oY(a))return Ma(so(H.slice(0,H.length-1),[yS(Q,a,c,p,h)]))}return Ma([n,a])}let b=da(),I=new Set,w=n===Ra?Xd(a):Hwe([n,a]);for(let H of bs(a))Bf(H)&6?I.add(H.escapedName):aY(H)&&b.set(H.escapedName,t_e(H,h));for(let H of bs(n))if(!(I.has(H.escapedName)||!aY(H)))if(b.has(H.escapedName)){let Q=b.get(H.escapedName),Ie=_r(Q);if(Q.flags&16777216){let Te=so(H.declarations,Q.declarations),Ze=4|H.flags&16777216,Tt=ja(Ze,H.escapedName),Dt=_r(H),$t=AY(Dt),Tn=AY(Ie);Tt.links.type=$t===Tn?Dt:pi([Dt,Tn],2),Tt.links.leftSpread=H,Tt.links.rightSpread=Q,Tt.declarations=Te,Tt.links.nameType=Jr(H).nameType,b.set(H.escapedName,Tt)}}else b.set(H.escapedName,t_e(H,h));let U=bl(c,b,ae,ae,Zi(w,H=>ict(H,h)));return U.objectFlags|=2228352|p,U}function aY(n){var a;return!vt(n.declarations,tu)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>ui(c.parent))))}function t_e(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===wh(n))return n;let p=4|n.flags&16777216,h=ja(p,n.escapedName,phe(n)|(a?8:0));return h.links.type=c?_e:_r(n),h.declarations=n.declarations,h.links.nameType=Jr(n).nameType,h.links.syntheticOrigin=n,h}function ict(n,a){return n.isReadonly!==a?Vg(n.keyType,n.type,a,n.declaration,n.components):n}function H5(n,a,c,p){let h=wi(n,c);return h.value=a,h.regularType=p||h,h}function Xx(n){if(n.flags&2976){if(!n.freshType){let a=H5(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function Du(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Tl(n,Du)):n}function vS(n){return!!(n.flags&2976)&&n.freshType===n}function Tp(n){let a;return At.get(n)||(At.set(n,a=H5(128,n)),a)}function Ch(n){let a;return mn.get(n)||(mn.set(n,a=H5(256,n)),a)}function q5(n){let a,c=R1(n);return dr.get(c)||(dr.set(c,a=H5(2048,n)),a)}function oct(n,a,c){let p,h=`${a}${typeof n=="string"?"@":"#"}${n}`,b=1024|(typeof n=="string"?128:256);return ri.get(h)||(ri.set(h,p=H5(b,n,c)),p)}function act(n){if(n.literal.kind===106)return Xt;let a=Vr(n);return a.resolvedType||(a.resolvedType=Du(_o(n.literal))),a.resolvedType}function sct(n){let a=wi(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ta(a.symbol)}`,a}function n_e(n){if(Ir(n)&&K0(n)){let a=g1(n);a&&(n=uI(a)||a)}if(Kte(n)){let a=L6(n)?Af(n.left):Af(n);if(a){let c=Jr(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=sct(a))}}return Qt}function lct(n){let a=yu(n,!1,!1),c=a&&a.parent;if(c&&(ui(c)||c.kind===265)&&!ua(a)&&(!Ml(a)||y1(n,a.body)))return Zf(Wr(c)).thisType;if(c&&Wa(c)&&Nr(c.parent)&&oc(c.parent)===6)return Zf(Af(c.parent.left).parent).thisType;let p=n.flags&16777216?L0(n):void 0;return p&&Us(p)&&Nr(p.parent)&&oc(p.parent)===3?Zf(Af(p.parent.left).parent).thisType:S_(a)&&y1(n,a.body)?Zf(Wr(a)).thisType:(Qe(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),nt)}function r_e(n){let a=Vr(n);return a.resolvedType||(a.resolvedType=lct(n)),a.resolvedType}function _4e(n){return Ji(J5(n.type)||n.type)}function J5(n){switch(n.kind){case 197:return J5(n.type);case 190:if(n.elements.length===1&&(n=n.elements[0],n.kind===192||n.kind===203&&n.dotDotDotToken))return J5(n.type);break;case 189:return n.elementType}}function cct(n){let a=Vr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?_4e(n):uu(Ji(n.type),!0,!!n.questionToken))}function Ji(n){return zst(g4e(n),n)}function g4e(n){switch(n.kind){case 133:case 313:case 314:return Ue;case 159:return Nt;case 154:return gt;case 150:return Bt;case 163:return gr;case 136:return jt;case 155:return Qt;case 116:return In;case 157:return _e;case 106:return Xt;case 146:return yn;case 151:return n.flags&524288&&!ve?Ue:Ln;case 141:return Oe;case 198:case 110:return r_e(n);case 202:return act(n);case 184:return eY(n);case 183:return n.assertsModifier?In:jt;case 234:return eY(n);case 187:return IOe(n);case 189:case 190:return glt(n);case 191:return Tlt(n);case 193:return Nlt(n);case 194:return Flt(n);case 315:return Bst(n);case 317:return uu(Ji(n.type));case 203:return cct(n);case 197:case 316:case 310:return Ji(n.type);case 192:return _4e(n);case 319:return Rgt(n);case 185:case 186:case 188:case 323:case 318:case 324:return h4e(n);case 199:return jlt(n);case 200:return c4e(n);case 201:return Yhe(n);case 195:return nct(n);case 196:return rct(n);case 204:return Ult(n);case 206:return f4e(n);case 80:case 167:case 212:let a=om(n);return a?qs(a):nt;default:return nt}}function sY(n,a,c){if(n&&n.length)for(let p=0;p<n.length;p++){let h=n[p],b=c(h,a);if(h!==b){let I=p===0?[]:n.slice(0,p);for(I.push(b),p++;p<n.length;p++)I.push(c(n[p],a));return I}}return n}function Wy(n,a){return sY(n,a,io)}function lY(n,a){return sY(n,a,vA)}function y4e(n,a){return sY(n,a,bct)}function Kp(n,a){return n.length===1?bS(n[0],a?a[0]:Ue):v4e(n,a)}function zv(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{let p=a.sources,h=a.targets;for(let b=0;b<p.length;b++)if(n===p[b])return h?h[b]:Ue;return n}case 2:{let p=a.sources,h=a.targets;for(let b=0;b<p.length;b++)if(n===p[b])return h[b]();return n}case 3:return a.func(n);case 4:case 5:let c=zv(n,a.mapper1);return c!==n&&a.kind===4?io(c,a.mapper2):zv(c,a.mapper2)}}function bS(n,a){return C.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function v4e(n,a){return C.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function K5(n,a){return C.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:C.isDebugging?a:void 0})}function i_e(n,a){return C.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function cY(n,a,c){return C.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:c})}function b4e(n){return Kp(n,void 0)}function dct(n,a){let c=n.inferences.slice(a);return Kp(Vt(c,p=>p.typeParameter),Vt(c,()=>Nt))}function uct(n){return n.outerReturnMapper??(n.outerReturnMapper=T4e(n.returnMapper,e8e(n).mapper))}function jT(n,a){return n?cY(4,n,a):a}function T4e(n,a){return n?cY(5,n,a):a}function yA(n,a,c){return c?cY(5,bS(n,a),c):bS(n,a)}function x4(n,a,c){return n?cY(5,n,bS(a,c)):bS(a,c)}function pct(n){return!n.constraint&&!YX(n)||n.constraint===Hl?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Gu(n.symbol),n.restrictiveInstantiation.constraint=Hl,n.restrictiveInstantiation)}function o_e(n){let a=Gu(n.symbol);return a.target=n,a}function S4e(n,a){return b4(n.kind,n.parameterName,n.parameterIndex,io(n.type,a))}function vA(n,a,c){let p;if(n.typeParameters&&!c){p=Vt(n.typeParameters,o_e),a=jT(Kp(n.typeParameters,p),a);for(let b of p)b.mapper=a}let h=g_(n.declaration,p,n.thisParameter&&a_e(n.thisParameter,a),sY(n.parameters,a,a_e),void 0,void 0,n.minArgumentCount,n.flags&167);return h.target=n,h.mapper=a,h}function a_e(n,a){let c=Jr(n);if(c.type&&!f0(c.type)&&(!(n.flags&65536)||c.writeType&&!f0(c.writeType)))return n;Wl(n)&1&&(n=c.target,a=jT(c.mapper,a));let p=ja(n.flags,n.escapedName,1|Wl(n)&53256);return p.declarations=n.declarations,p.parent=n.parent,p.links.target=n,p.links.mapper=a,n.valueDeclaration&&(p.valueDeclaration=n.valueDeclaration),c.nameType&&(p.links.nameType=c.nameType),p}function fct(n,a,c,p){let h=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],b=Vr(h),I=n.objectFlags&4?b.resolvedType:n.objectFlags&64?n.target:n,w=b.outerTypeParameters;if(!w){let U=Mi(h,!0);if(S_(h)){let Q=lOe(h);U=Xr(U,Q)}w=U||ae;let H=n.objectFlags&8388612?[h]:n.symbol.declarations;w=(I.objectFlags&8388612||I.symbol.flags&8192||I.symbol.flags&2048)&&!I.aliasTypeArguments?Un(w,Q=>vt(H,Ie=>X5(Q,Ie))):w,b.outerTypeParameters=w}if(w.length){let U=jT(n.mapper,a),H=Vt(w,Tt=>zv(Tt,U)),Q=c||n.aliasSymbol,Ie=c?p:Wy(n.aliasTypeArguments,a),Te=Pm(H)+fA(Q,Ie);I.instantiations||(I.instantiations=new Map,I.instantiations.set(Pm(w)+fA(I.aliasSymbol,I.aliasTypeArguments),I));let Ze=I.instantiations.get(Te);if(!Ze){let Tt=Kp(w,H);I.objectFlags&134217728&&a&&(Tt=jT(Tt,a)),Ze=I.objectFlags&4?Rhe(n.target,n.node,Tt,Q,Ie):I.objectFlags&32?hct(I,Tt,Q,Ie):s_e(I,Tt,Q,Ie),I.instantiations.set(Te,Ze);let Dt=Hr(Ze);if(Ze.flags&3899393&&!(Dt&524288)){let $t=vt(H,f0);Hr(Ze)&524288||(Dt&52?Ze.objectFlags|=524288|($t?1048576:0):Ze.objectFlags|=$t?0:524288)}}return Ze}return n}function mct(n){return!(n.parent.kind===184&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===206&&n.parent.typeArguments&&n===n.parent.qualifier)}function X5(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let p=n.symbol.declarations[0].parent;for(let h=a;h!==p;h=h.parent)if(!h||h.kind===242||h.kind===195&&Jo(h.extendsType,c))return!0;return c(a)}return!0;function c(p){switch(p.kind){case 198:return!!n.isThisType;case 80:return!n.isThisType&&Uh(p)&&mct(p)&&g4e(p)===n;case 187:let h=p.exprName,b=Pu(h);if(!bb(b)){let I=pu(b),w=n.symbol.declarations[0],U=w.kind===169?w.parent:n.isThisType?w:void 0;if(I.declarations&&U)return vt(I.declarations,H=>y1(H,U))||vt(p.typeArguments,c)}return!0;case 175:case 174:return!p.type&&!!p.body||vt(p.typeParameters,c)||vt(p.parameters,c)||!!p.type&&c(p.type)}return!!Jo(p,c)}}function R4(n){let a=xf(n);if(a.flags&4194304){let c=Oy(a.type);if(c.flags&262144)return c}}function hct(n,a,c,p){let h=R4(n);if(h){let I=io(h,a);if(h!==I)return I8e(Mm(I),b,c,p)}return io(xf(n),a)===It?It:s_e(n,a,c,p);function b(I){if(I.flags&61603843&&I!==It&&!pr(I)){if(!n.declaration.nameType){let w;if(nm(I)||I.flags&1&&ee(h,4)<0&&(w=ju(h))&&Sp(w,HT))return gct(I,n,yA(h,I,a));if(Ka(I))return _ct(I,n,h,a);if(nOe(I))return Ma(Vt(I.types,b))}return s_e(n,yA(h,I,a))}return I}}function E4e(n,a){return a&1?!0:a&2?!1:n}function _ct(n,a,c,p){let h=n.target.elementFlags,b=n.target.fixedLength,I=b?yA(c,n,p):p,w=Vt(gS(n),(Ie,Te)=>{let Ze=h[Te];return Te<b?A4e(a,Tp(""+Te),!!(Ze&2),I):Ze&8?io(a,yA(c,Ie,p)):r9(io(a,yA(c,Yd(Ie),p)))??Nt}),U=$_(a),H=U&4?Vt(h,Ie=>Ie&1?2:Ie):U&8?Vt(h,Ie=>Ie&2?1:Ie):h,Q=E4e(n.target.readonly,$_(a));return jn(w,nt)?nt:Z_(w,H,Q,n.target.labeledElementDeclarations)}function gct(n,a,c){let p=A4e(a,Bt,!0,c);return pr(p)?nt:Yd(p,E4e(A2(n),$_(a)))}function A4e(n,a,c,p){let h=x4(p,Zm(n),a),b=io(Bg(n.target||n),h),I=$_(n);return ie&&I&4&&!ec(b,49152)?p0(b,!0):ie&&I&8&&c?rm(b,524288):b}function s_e(n,a,c,p){C.assert(n.symbol,"anonymous type must have symbol to be instantiated");let h=_c(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){h.declaration=n.declaration;let b=Zm(n),I=o_e(b);h.typeParameter=I,a=jT(bS(b,I),a),I.mapper=a}return n.objectFlags&8388608&&(h.node=n.node),h.target=n,h.mapper=a,h.aliasSymbol=c||n.aliasSymbol,h.aliasTypeArguments=c?p:Wy(n.aliasTypeArguments,a),h.objectFlags|=h.aliasTypeArguments?F5(h.aliasTypeArguments):0,h}function l_e(n,a,c,p,h){let b=n.root;if(b.outerTypeParameters){let I=Vt(b.outerTypeParameters,H=>zv(H,a)),w=(c?"C":"")+Pm(I)+fA(p,h),U=b.instantiations.get(w);if(!U){let H=Kp(b.outerTypeParameters,I),Q=b.checkType,Ie=b.isDistributive?Mm(zv(Q,H)):void 0;U=Ie&&Q!==Ie&&Ie.flags&1179648?I8e(Ie,Te=>$he(b,yA(Q,Te,H),c),p,h):$he(b,H,c,p,h),b.instantiations.set(w,U)}return U}return n}function io(n,a){return n&&a?I4e(n,a,void 0,void 0):n}function I4e(n,a,c,p){var h;if(!f0(n))return n;if(E===100||v>=5e6)return(h=xr)==null||h.instant(xr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:E,instantiationCount:v}),Qe(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;let b=rpt(a);b===-1&&tpt(a);let I=n.id+fA(c,p),w=mT[b!==-1?b:j_-1],U=w.get(I);if(U)return U;_++,v++,E++;let H=yct(n,a,c,p);return b===-1?npt():w.set(I,H),E--,H}function yct(n,a,c,p){let h=n.flags;if(h&262144)return zv(n,a);if(h&524288){let b=n.objectFlags;if(b&52){if(b&4&&!n.node){let I=n.resolvedTypeArguments,w=Wy(I,a);return w!==I?Bhe(n.target,w):n}return b&1024?vct(n,a):fct(n,a,c,p)}return n}if(h&3145728){let b=n.flags&1048576?n.origin:void 0,I=b&&b.flags&3145728?b.types:n.types,w=Wy(I,a);if(w===I&&c===n.aliasSymbol)return n;let U=c||n.aliasSymbol,H=c?p:Wy(n.aliasTypeArguments,a);return h&2097152||b&&b.flags&2097152?Ma(w,0,U,H):pi(w,1,U,H)}if(h&4194304)return v_(io(n.type,a));if(h&134217728)return mA(n.texts,Wy(n.types,a));if(h&268435456)return Jx(n.symbol,io(n.type,a));if(h&8388608){let b=c||n.aliasSymbol,I=c?p:Wy(n.aliasTypeArguments,a);return Jp(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,b,I)}if(h&16777216)return l_e(n,jT(n.mapper,a),!1,c,p);if(h&33554432){let b=io(n.baseType,a);if(kC(n))return Dhe(b);let I=io(n.constraint,a);return b.flags&8650752&&VT(I)?Nhe(b,I):I.flags&3||aa(bA(b),bA(I))?b:b.flags&8650752?Nhe(b,I):Ma([I,b])}return n}function vct(n,a){let c=io(n.mappedType,a);if(!(Hr(c)&32))return n;let p=io(n.constraintType,a);if(!(p.flags&4194304))return n;let h=r8e(io(n.source,a),c,p);return h||n}function D4(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,xl))}function bA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,Bl),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function bct(n,a){return Vg(n.keyType,io(n.type,a),n.isReadonly,n.declaration,n.components)}function Df(n){switch(C.assert(n.kind!==175||fm(n)),n.kind){case 219:case 220:case 175:case 263:return x4e(n);case 211:return vt(n.properties,Df);case 210:return vt(n.elements,Df);case 228:return Df(n.whenTrue)||Df(n.whenFalse);case 227:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Df(n.left)||Df(n.right));case 304:return Df(n.initializer);case 218:return Df(n.expression);case 293:return vt(n.properties,Df)||ph(n.parent)&&vt(n.parent.parent.children,Df);case 292:{let{initializer:a}=n;return!!a&&Df(a)}case 295:{let{expression:a}=n;return!!a&&Df(a)}}return!1}function x4e(n){return GW(n)||Tct(n)}function Tct(n){return n.typeParameters||Pp(n)||!n.body?!1:n.body.kind!==242?Df(n.body):!!_b(n.body,a=>!!a.expression&&Df(a.expression))}function dY(n){return(Ab(n)||fm(n))&&x4e(n)}function R4e(n){if(n.flags&524288){let a=Dh(n);if(a.constructSignatures.length||a.callSignatures.length){let c=_c(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=ae,c.constructSignatures=ae,c.indexInfos=ae,c}}else if(n.flags&2097152)return Ma(Vt(n.types,R4e));return n}function Ug(n,a){return b_(n,a,Jd)}function C4(n,a){return b_(n,a,Jd)?-1:0}function c_e(n,a){return b_(n,a,qd)?-1:0}function Sct(n,a){return b_(n,a,U_)?-1:0}function TS(n,a){return b_(n,a,U_)}function E2(n,a){return b_(n,a,cl)}function aa(n,a){return b_(n,a,qd)}function UT(n,a){return n.flags&1048576?Vn(n.types,c=>UT(c,a)):a.flags&1048576?vt(a.types,c=>UT(n,c)):n.flags&2097152?vt(n.types,c=>UT(c,a)):n.flags&58982400?UT(Ld(n)||Nt,a):eg(a)?!!(n.flags&67633152):a===Jt?!!(n.flags&67633152)&&!eg(n):a===er?!!(n.flags&524288)&&j_e(n):Ur(n,zn(a))||nm(a)&&!A2(a)&&UT(n,Va)}function uY(n,a){return b_(n,a,ap)}function Y5(n,a){return uY(n,a)||uY(a,n)}function $d(n,a,c,p,h,b){return tm(n,a,qd,c,p,h,b)}function SS(n,a,c,p,h,b){return d_e(n,a,qd,c,p,h,b,void 0)}function d_e(n,a,c,p,h,b,I,w){return b_(n,a,c)?!0:!p||!N4(h,n,a,c,b,I,w)?tm(n,a,c,p,b,I,w):!1}function D4e(n){return!!(n.flags&16777216||n.flags&2097152&&vt(n.types,D4e))}function N4(n,a,c,p,h,b,I){if(!n||D4e(c))return!1;if(!tm(a,c,p,void 0)&&Ect(n,a,c,p,h,b,I))return!0;switch(n.kind){case 235:if(!FV(n))break;case 295:case 218:return N4(n.expression,a,c,p,h,b,I);case 227:switch(n.operatorToken.kind){case 64:case 28:return N4(n.right,a,c,p,h,b,I)}break;case 211:return Mct(n,a,c,p,b,I);case 210:return Cct(n,a,c,p,b,I);case 293:return Dct(n,a,c,p,b,I);case 220:return Act(n,a,c,p,b,I)}return!1}function Ect(n,a,c,p,h,b,I){let w=na(a,0),U=na(a,1);for(let H of[U,w])if(vt(H,Q=>{let Ie=ps(Q);return!(Ie.flags&131073)&&tm(Ie,c,p,void 0)})){let Q=I||{};$d(a,c,n,h,b,Q);let Ie=Q.errors[Q.errors.length-1];return pa(Ie,Ar(n,H===U?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function Act(n,a,c,p,h,b){if(ea(n.body)||vt(n.parameters,h6))return!1;let I=CA(a);if(!I)return!1;let w=na(c,0);if(!et(w))return!1;let U=n.body,H=ps(I),Q=pi(Vt(w,ps));if(!tm(H,Q,p,void 0)){let Ie=U&&N4(U,H,Q,p,void 0,h,b);if(Ie)return Ie;let Te=b||{};if(tm(H,Q,p,U,void 0,h,Te),Te.errors)return c.symbol&&et(c.symbol.declarations)&&pa(Te.errors[Te.errors.length-1],Ar(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),(dc(n)&2)===0&&!_n(H,"then")&&tm(M9(H),Q,p,void 0)&&pa(Te.errors[Te.errors.length-1],Ar(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function C4e(n,a,c){let p=l0(a,c);if(p)return p;if(a.flags&1048576){let h=W4e(n,a);if(h)return l0(h,c)}}function N4e(n,a){g9(n,a,!1);let c=k2(n,1);return G4(),c}function $5(n,a,c,p,h,b){let I=!1;for(let w of n){let{errorNode:U,innerExpression:H,nameType:Q,errorMessage:Ie}=w,Te=C4e(a,c,Q);if(!Te||Te.flags&8388608)continue;let Ze=l0(a,Q);if(!Ze)continue;let Tt=rY(Q,void 0);if(!tm(Ze,Te,p,void 0)){let Dt=H&&N4(H,Ze,Te,p,void 0,h,b);if(I=!0,!Dt){let $t=b||{},Tn=H?N4e(H,Ze):Ze;if(Ce&&fY(Tn,Te)){let nr=Ar(U,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ar(Tn),ar(Te));ns.add(nr),$t.errors=[nr]}else{let nr=!!(Tt&&(Ea(c,Tt)||ne).flags&16777216),yr=!!(Tt&&(Ea(a,Tt)||ne).flags&16777216);Te=Gy(Te,nr),Ze=Gy(Ze,nr&&yr),tm(Tn,Te,p,U,Ie,h,$t)&&Tn!==Ze&&tm(Ze,Te,p,U,Ie,h,$t)}if($t.errors){let nr=$t.errors[$t.errors.length-1],yr=Gf(Q)?Vf(Q):void 0,Sn=yr!==void 0?Ea(c,yr):void 0,vn=!1;if(!Sn){let Er=y4(c,Q);Er&&Er.declaration&&!Wn(Er.declaration).hasNoDefaultLib&&(vn=!0,pa(nr,Ar(Er.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!vn&&(Sn&&et(Sn.declarations)||c.symbol&&et(c.symbol.declarations))){let Er=Sn&&et(Sn.declarations)?Sn.declarations[0]:c.symbol.declarations[0];Wn(Er).hasNoDefaultLib||pa(nr,Ar(Er,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,yr&&!(Q.flags&8192)?Vi(yr):ar(Q),ar(c)))}}}}}return I}function Ict(n,a,c,p,h,b){let I=Ac(c,bY),w=Ac(c,Q=>!bY(Q)),U=w!==yn?uye(13,0,w,void 0):void 0,H=!1;for(let Q=n.next();!Q.done;Q=n.next()){let{errorNode:Ie,innerExpression:Te,nameType:Ze,errorMessage:Tt}=Q.value,Dt=U,$t=I!==yn?C4e(a,I,Ze):void 0;if($t&&!($t.flags&8388608)&&(Dt=U?pi([U,$t]):$t),!Dt)continue;let Tn=l0(a,Ze);if(!Tn)continue;let nr=rY(Ze,void 0);if(!tm(Tn,Dt,p,void 0)){let yr=Te&&N4(Te,Tn,Dt,p,void 0,h,b);if(H=!0,!yr){let Sn=b||{},vn=Te?N4e(Te,Tn):Tn;if(Ce&&fY(vn,Dt)){let Er=Ar(Ie,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ar(vn),ar(Dt));ns.add(Er),Sn.errors=[Er]}else{let Er=!!(nr&&(Ea(I,nr)||ne).flags&16777216),fi=!!(nr&&(Ea(a,nr)||ne).flags&16777216);Dt=Gy(Dt,Er),Tn=Gy(Tn,Er&&fi),tm(vn,Dt,p,Ie,Tt,h,Sn)&&vn!==Tn&&tm(Tn,Dt,p,Ie,Tt,h,Sn)}}}}return H}function*xct(n){if(et(n.properties))for(let a of n.properties)GI(a)||pge(Jk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Tp(Jk(a.name))})}function*Rct(n,a){if(!et(n.children))return;let c=0;for(let p=0;p<n.children.length;p++){let h=n.children[p],b=Ch(p-c),I=M4e(h,b,a);I?yield I:c++}}function M4e(n,a,c){switch(n.kind){case 295: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 285:case 286:case 289:return{errorNode:n,innerExpression:n,nameType:a};default:return C.assertNever(n,"Found invalid jsx child")}}function Dct(n,a,c,p,h,b){let I=$5(xct(n),a,c,p,h,b),w;if(ph(n.parent)&&n_(n.parent.parent)){let H=n.parent.parent,Q=v9(RA(n)),Ie=Q===void 0?"children":Vi(Q),Te=Tp(Ie),Ze=Jp(c,Te),Tt=XR(H.children);if(!et(Tt))return I;let Dt=et(Tt)>1,$t,Tn;if(nY(!1)!==Zt){let yr=zOe(Ue);$t=Ac(Ze,Sn=>aa(Sn,yr)),Tn=Ac(Ze,Sn=>!aa(Sn,yr))}else $t=Ac(Ze,bY),Tn=Ac(Ze,yr=>!bY(yr));if(Dt){if($t!==yn){let yr=Z_(KY(H,0)),Sn=Rct(H,U);I=Ict(Sn,yr,$t,p,h,b)||I}else if(!b_(Jp(a,Te),Ze,p)){I=!0;let yr=Qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ie,ar(Ze));b&&b.skipLogging&&(b.errors||(b.errors=[])).push(yr)}}else if(Tn!==yn){let yr=Tt[0],Sn=M4e(yr,Te,U);Sn&&(I=$5(function*(){yield Sn}(),a,c,p,h,b)||I)}else if(!b_(Jp(a,Te),Ze,p)){I=!0;let yr=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,Ie,ar(Ze));b&&b.skipLogging&&(b.errors||(b.errors=[])).push(yr)}}return I;function U(){if(!w){let H=Al(n.parent.tagName),Q=v9(RA(n)),Ie=Q===void 0?"children":Vi(Q),Te=Jp(c,Tp(Ie)),Ze=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;w={...Ze,key:"!!ALREADY FORMATTED!!",message:TI(Ze,H,Ie,ar(Te))}}return w}}function*P4e(n,a){let c=et(n.elements);if(c)for(let p=0;p<c;p++){if(I2(a)&&!Ea(a,""+p))continue;let h=n.elements[p];if(Kc(h))continue;let b=Ch(p),I=r$(h);yield{errorNode:I,innerExpression:I,nameType:b}}}function Cct(n,a,c,p,h,b){if(c.flags&402915324)return!1;if(I2(a))return $5(P4e(n,c),a,c,p,h,b);g9(n,c,!1);let I=d6e(n,1,!0);return G4(),I2(I)?$5(P4e(n,c),I,c,p,h,b):!1}function*Nct(n){if(et(n.properties))for(let a of n.properties){if(Ig(a))continue;let c=qx(Wr(a),8576);if(!(!c||c.flags&131072))switch(a.kind){case 179:case 178:case 175:case 305:yield{errorNode:a.name,innerExpression:void 0,nameType:c};break;case 304:yield{errorNode:a.name,innerExpression:a.initializer,nameType:c,errorMessage:jL(a.name)?f.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:C.assertNever(a)}}}function Mct(n,a,c,p,h,b){return c.flags&402915324?!1:$5(Nct(n),a,c,p,h,b)}function L4e(n,a,c,p,h){return tm(n,a,ap,c,p,h)}function Pct(n,a,c){return u_e(n,a,4,!1,void 0,void 0,c_e,void 0)!==0}function pY(n){if(!n.typeParameters&&(!n.thisParameter||wr(D9(n.thisParameter)))&&n.parameters.length===1&&au(n)){let a=D9(n.parameters[0]);return!!((nm(a)?rl(a)[0]:a).flags&131073&&ps(n).flags&3)}return!1}function u_e(n,a,c,p,h,b,I,w){if(n===a||!(c&16&&pY(n))&&pY(a))return-1;if(c&16&&pY(n)&&!pY(a))return 0;let U=Ep(a);if(!tg(a)&&(c&8?tg(n)||Ep(n)>U:kh(n)>U))return p&&!(c&8)&&h(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,kh(n),U),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Lst(a),n=j6e(n,a,void 0,I));let Q=Ep(n),Ie=X4(n),Te=X4(a);(Ie||Te)&&io(Ie||Te,w);let Ze=a.declaration?a.declaration.kind:0,Tt=!(c&3)&&K&&Ze!==175&&Ze!==174&&Ze!==177,Dt=-1,$t=BT(n);if($t&&$t!==In){let yr=BT(a);if(yr){let Sn=!Tt&&I($t,yr,!1)||I(yr,$t,p);if(!Sn)return p&&h(f.The_this_types_of_each_signature_are_incompatible),0;Dt&=Sn}}let Tn=Ie||Te?Math.min(Q,U):Math.max(Q,U),nr=Ie||Te?Tn-1:-1;for(let yr=0;yr<Tn;yr++){let Sn=yr===nr?mWe(n,yr):xS(n,yr),vn=yr===nr?mWe(a,yr):xS(a,yr);if(Sn&&vn&&(Sn!==vn||c&8)){let Er=c&3||G6e(n,yr)?void 0:CA(By(Sn)),fi=c&3||G6e(a,yr)?void 0:CA(By(vn)),ii=Er&&fi&&!em(Er)&&!em(fi)&&FC(Sn,50331648)===FC(vn,50331648)?u_e(fi,Er,c&8|(Tt?2:1),p,h,b,I,w):!(c&3)&&!Tt&&I(Sn,vn,!1)||I(vn,Sn,p);if(ii&&c&8&&yr>=kh(n)&&yr<kh(a)&&I(Sn,vn,!1)&&(ii=0),!ii)return p&&h(f.Types_of_parameters_0_and_1_are_incompatible,Vi(M2(n,yr)),Vi(M2(a,yr))),0;Dt&=ii}}if(!(c&4)){let yr=UX(a)?Ue:a.declaration&&S_(a.declaration)?Zf(os(a.declaration.symbol)):ps(a);if(yr===In||yr===Ue)return Dt;let Sn=UX(n)?Ue:n.declaration&&S_(n.declaration)?Zf(os(n.declaration.symbol)):ps(n),vn=em(a);if(vn){let Er=em(n);if(Er)Dt&=Lct(Er,vn,p,h,I);else if(Yte(vn)||$te(vn))return p&&h(f.Signature_0_must_be_a_type_predicate,r0(n)),0}else Dt&=c&1&&I(yr,Sn,!1)||I(Sn,yr,p),!Dt&&p&&b&&b(Sn,yr)}return Dt}function Lct(n,a,c,p,h){if(n.kind!==a.kind)return c&&(p(f.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),p(f.Type_predicate_0_is_not_assignable_to_1,J_(n),J_(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return c&&(p(f.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),p(f.Type_predicate_0_is_not_assignable_to_1,J_(n),J_(a))),0;let b=n.type===a.type?-1:n.type&&a.type?h(n.type,a.type,c):0;return b===0&&c&&p(f.Type_predicate_0_is_not_assignable_to_1,J_(n),J_(a)),b}function kct(n,a){let c=S4(n),p=S4(a),h=ps(c),b=ps(p);return b===In||b_(b,h,qd)||b_(h,b,qd)?Pct(c,p):!1}function p_e(n){return n!==As&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function Fy(n){return n.flags&524288?!cp(n)&&p_e(Dh(n)):n.flags&67108864?!0:n.flags&1048576?vt(n.types,Fy):n.flags&2097152?Vn(n.types,Fy):!1}function eg(n){return!!(Hr(n)&16&&(n.members&&p_e(n)||n.symbol&&n.symbol.flags&2048&&Y_(n.symbol).size===0))}function wct(n){if(ie&&n.flags&1048576){if(!(n.objectFlags&33554432)){let a=n.types;n.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&vt(a,eg)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function WC(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function Oct(n){let a=n.flags&1048576?n.types[0]:n;return!!(a.flags&32768)&&a!==Ae}function k4e(n){return n.flags&524288&&!cp(n)&&bs(n).length===0&&Xd(n).length===1&&!!Gg(n,gt)||n.flags&3145728&&Vn(n.types,k4e)||!1}function f_e(n,a,c){let p=n.flags&8?$c(n):n,h=a.flags&8?$c(a):a;if(p===h)return!0;if(p.escapedName!==h.escapedName||!(p.flags&256)||!(h.flags&256))return!1;let b=Ta(p)+","+Ta(h),I=vT.get(b);if(I!==void 0&&!(I&2&&c))return!!(I&1);let w=_r(h);for(let U of bs(_r(p)))if(U.flags&8){let H=Ea(w,U.escapedName);if(!H||!(H.flags&8))return c&&c(f.Property_0_is_missing_in_type_1,wl(U),ar(qs(h),void 0,64)),vT.set(b,2),!1;let Q=MA(al(U,307)).value,Ie=MA(al(H,307)).value;if(Q!==Ie){let Te=typeof Q=="string",Ze=typeof Ie=="string";if(Q!==void 0&&Ie!==void 0){if(c){let Tt=Te?`"${L_(Q)}"`:Q,Dt=Ze?`"${L_(Ie)}"`:Ie;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,wl(h),wl(H),Dt,Tt)}return vT.set(b,2),!1}if(Te||Ze){if(c){let Tt=Q??Ie;C.assert(typeof Tt=="string");let Dt=`"${L_(Tt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,wl(h),wl(H),Dt)}return vT.set(b,2),!1}}}return vT.set(b,1),!0}function M4(n,a,c,p){let h=n.flags,b=a.flags;return b&1||h&131072||n===It||b&2&&!(c===cl&&h&1)?!0:b&131072?!1:!!(h&402653316&&b&4||h&128&&h&1024&&b&128&&!(b&1024)&&n.value===a.value||h&296&&b&8||h&256&&h&1024&&b&256&&!(b&1024)&&n.value===a.value||h&2112&&b&64||h&528&&b&16||h&12288&&b&4096||h&32&&b&32&&n.symbol.escapedName===a.symbol.escapedName&&f_e(n.symbol,a.symbol,p)||h&1024&&b&1024&&(h&1048576&&b&1048576&&f_e(n.symbol,a.symbol,p)||h&2944&&b&2944&&n.value===a.value&&f_e(n.symbol,a.symbol,p))||h&32768&&(!ie&&!(b&3145728)||b&49152)||h&65536&&(!ie&&!(b&3145728)||b&65536)||h&524288&&b&67108864&&!(c===cl&&eg(n)&&!(Hr(n)&8192))||(c===qd||c===ap)&&(h&1||h&8&&(b&32||b&256&&b&1024)||h&256&&!(h&1024)&&(b&32||b&256&&b&1024&&n.value===a.value)||wct(a)))}function b_(n,a,c){if(vS(n)&&(n=n.regularType),vS(a)&&(a=a.regularType),n===a)return!0;if(c!==Jd){if(c===ap&&!(a.flags&131072)&&M4(a,n,c)||M4(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){let p=c.get(_Y(n,a,0,c,!1));if(p!==void 0)return!!(p&1)}return n.flags&469499904||a.flags&469499904?tm(n,a,c,void 0):!1}function w4e(n,a){return Hr(n)&2048&&pge(a.escapedName)}function Q5(n,a){for(;;){let c=vS(n)?n.regularType:u0(n)?zct(n,a):Hr(n)&4?n.node?Ly(n.target,rl(n)):T_e(n)||n:n.flags&3145728?Wct(n,a):n.flags&33554432?a?n.baseType:Mhe(n):n.flags&25165824?wy(n,a):n;if(c===n)return c;n=c}}function Wct(n,a){let c=Mm(n);if(c!==n)return c;if(n.flags&2097152&&Fct(n)){let p=Zi(n.types,h=>Q5(h,a));if(p!==n.types)return Ma(p)}return n}function Fct(n){let a=!1,c=!1;for(let p of n.types)if(a||(a=!!(p.flags&465829888)),c||(c=!!(p.flags&98304)||eg(p)),a&&c)return!0;return!1}function zct(n,a){let c=gS(n),p=Zi(c,h=>h.flags&25165824?wy(h,a):h);return c!==p?Ghe(n.target,p):n}function tm(n,a,c,p,h,b,I){var w;let U,H,Q,Ie,Te,Ze,Tt=0,Dt=0,$t=0,Tn=0,nr=!1,yr=0,Sn=0,vn,Er,fi=16e6-c.size>>3;C.assert(c!==Jd||!p,"no error reporting in identity checking");let oo=vr(n,a,3,!!p,h);if(Er&&fs(),nr){let Pe=_Y(n,a,0,c,!1);c.set(Pe,2|(fi<=0?32:64)),(w=xr)==null||w.instant(xr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Dt,targetDepth:$t});let qe=fi<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,ct=Qe(p||R,qe,ar(n),ar(a));I&&(I.errors||(I.errors=[])).push(ct)}else if(U){if(b){let ct=b();ct&&(tre(ct,U),U=ct)}let Pe;if(h&&p&&!oo&&n.symbol){let ct=Jr(n.symbol);if(ct.originatingImport&&!Yu(ct.originatingImport)&&tm(_r(ct.target),a,c,void 0)){let sn=Ar(ct.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);Pe=Bn(Pe,sn)}}let qe=mg(Wn(p),p,U,Pe);H&&pa(qe,...H),I&&(I.errors||(I.errors=[])).push(qe),(!I||!I.skipLogging)&&ns.add(qe)}return p&&I&&I.skipLogging&&oo===0&&C.assert(!!I.errors,"missed opportunity to interact with error."),oo!==0;function ii(Pe){U=Pe.errorInfo,vn=Pe.lastSkippedInfo,Er=Pe.incompatibleStack,yr=Pe.overrideNextErrorInfo,Sn=Pe.skipParentCounter,H=Pe.relatedInfo}function zi(){return{errorInfo:U,lastSkippedInfo:vn,incompatibleStack:Er?.slice(),overrideNextErrorInfo:yr,skipParentCounter:Sn,relatedInfo:H?.slice()}}function Ko(Pe,...qe){yr++,vn=void 0,(Er||(Er=[])).push([Pe,...qe])}function fs(){let Pe=Er||[];Er=void 0;let qe=vn;if(vn=void 0,Pe.length===1){fo(...Pe[0]),qe&&fu(void 0,...qe);return}let ct="",Gt=[];for(;Pe.length;){let[sn,...Ut]=Pe.pop();switch(sn.code){case f.Types_of_property_0_are_incompatible.code:{ct.indexOf("new ")===0&&(ct=`(${ct})`);let un=""+Ut[0];ct.length===0?ct=`${un}`:pp(un,Ga(O))?ct=`${ct}.${un}`:un[0]==="["&&un[un.length-1]==="]"?ct=`${ct}${un}`:ct=`${ct}[${un}]`;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(ct.length===0){let un=sn;sn.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?un=f.Call_signature_return_types_0_and_1_are_incompatible:sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(un=f.Construct_signature_return_types_0_and_1_are_incompatible),Gt.unshift([un,Ut[0],Ut[1]])}else{let un=sn.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Zn=sn.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";ct=`${un}${ct}(${Zn})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Gt.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ut[0],Ut[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Gt.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ut[0],Ut[1],Ut[2]]);break}default:return C.fail(`Unhandled Diagnostic: ${sn.code}`)}}ct?fo(ct[ct.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,ct):Gt.shift();for(let[sn,...Ut]of Gt){let un=sn.elidedInCompatabilityPyramid;sn.elidedInCompatabilityPyramid=!1,fo(sn,...Ut),sn.elidedInCompatabilityPyramid=un}qe&&fu(void 0,...qe)}function fo(Pe,...qe){C.assert(!!p),Er&&fs(),!Pe.elidedInCompatabilityPyramid&&(Sn===0?U=qo(U,Pe,...qe):Sn--)}function dl(Pe,...qe){fo(Pe,...qe),Sn++}function Kl(Pe){C.assert(!!U),H?H.push(Pe):H=[Pe]}function fu(Pe,qe,ct){Er&&fs();let[Gt,sn]=s2(qe,ct),Ut=qe,un=Gt;if(!(ct.flags&131072)&&P4(qe)&&!m_e(ct)&&(Ut=zy(qe),C.assert(!aa(Ut,ct),"generalized source shouldn't be assignable"),un=EC(Ut)),(ct.flags&8388608&&!(qe.flags&8388608)?ct.objectType.flags:ct.flags)&262144&&ct!==pt&&ct!==qt){let fr=Ld(ct),Br;fr&&(aa(Ut,fr)||(Br=aa(qe,fr)))?fo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Br?Gt:un,sn,ar(fr)):(U=void 0,fo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,sn,un))}if(Pe)Pe===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ce&&O4e(qe,ct).length&&(Pe=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===ap)Pe=f.Type_0_is_not_comparable_to_type_1;else if(Gt===sn)Pe=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ce&&O4e(qe,ct).length)Pe=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(qe.flags&128&&ct.flags&1048576){let fr=rft(qe,ct);if(fr){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,un,sn,ar(fr));return}}Pe=f.Type_0_is_not_assignable_to_type_1}fo(Pe,un,sn)}function qn(Pe,qe){let ct=AC(Pe.symbol)?ar(Pe,Pe.symbol.valueDeclaration):ar(Pe),Gt=AC(qe.symbol)?ar(qe,qe.symbol.valueDeclaration):ar(qe);(Pc===Pe&&gt===qe||tl===Pe&&Bt===qe||Ll===Pe&&jt===qe||POe()===Pe&&Qt===qe)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Gt,ct)}function rr(Pe,qe,ct){return Ka(Pe)?Pe.target.readonly&&n9(qe)?(ct&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ar(Pe),ar(qe)),!1):HT(qe):A2(Pe)&&n9(qe)?(ct&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ar(Pe),ar(qe)),!1):Ka(qe)?nm(Pe):!0}function Hi(Pe,qe,ct){return vr(Pe,qe,3,ct)}function vr(Pe,qe,ct=3,Gt=!1,sn,Ut=0){if(Pe===qe)return-1;if(Pe.flags&524288&&qe.flags&402784252)return c===ap&&!(qe.flags&131072)&&M4(qe,Pe,c)||M4(Pe,qe,c,Gt?fo:void 0)?-1:(Gt&&wo(Pe,qe,Pe,qe,sn),0);let un=Q5(Pe,!1),Zn=Q5(qe,!0);if(un===Zn)return-1;if(c===Jd)return un.flags!==Zn.flags?0:un.flags&67358815?-1:(ys(un,Zn),d8(un,Zn,!1,0,ct));if(un.flags&262144&&dA(un)===Zn)return-1;if(un.flags&470302716&&Zn.flags&1048576){let fr=Zn.types,Br=fr.length===2&&fr[0].flags&98304?fr[1]:fr.length===3&&fr[0].flags&98304&&fr[1].flags&98304?fr[2]:void 0;if(Br&&!(Br.flags&98304)&&(Zn=Q5(Br,!0),un===Zn))return-1}if(c===ap&&!(Zn.flags&131072)&&M4(Zn,un,c)||M4(un,Zn,c,Gt?fo:void 0))return-1;if(un.flags&469499904||Zn.flags&469499904){if(!(Ut&2)&&Gv(un)&&Hr(un)&8192&&md(un,Zn,Gt))return Gt&&fu(sn,un,qe.aliasSymbol?qe:Zn),0;let Br=(c!==ap||Nh(un))&&!(Ut&2)&&un.flags&405405692&&un!==Jt&&Zn.flags&2621440&&__e(Zn)&&(bs(un).length>0||M$(un)),li=!!(Hr(un)&2048);if(Br&&!Gct(un,Zn,li)){if(Gt){let xi=ar(Pe.aliasSymbol?Pe:un),mo=ar(qe.aliasSymbol?qe:Zn),ts=na(un,0),bn=na(un,1);ts.length>0&&vr(ps(ts[0]),Zn,1,!1)||bn.length>0&&vr(ps(bn[0]),Zn,1,!1)?fo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,xi,mo):fo(f.Type_0_has_no_properties_in_common_with_type_1,xi,mo)}return 0}ys(un,Zn);let sr=un.flags&1048576&&un.types.length<4&&!(Zn.flags&1048576)||Zn.flags&1048576&&Zn.types.length<4&&!(un.flags&469499904)?lc(un,Zn,Gt,Ut):d8(un,Zn,Gt,Ut,ct);if(sr)return sr}return Gt&&wo(Pe,qe,un,Zn,sn),0}function wo(Pe,qe,ct,Gt,sn){var Ut,un;let Zn=!!T_e(Pe),fr=!!T_e(qe);ct=Pe.aliasSymbol||Zn?Pe:ct,Gt=qe.aliasSymbol||fr?qe:Gt;let Br=yr>0;if(Br&&yr--,ct.flags&524288&&Gt.flags&524288){let li=U;rr(ct,Gt,!0),U!==li&&(Br=!!U)}if(ct.flags&524288&&Gt.flags&402784252)qn(ct,Gt);else if(ct.symbol&&ct.flags&524288&&Jt===ct)fo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Hr(ct)&2048&&Gt.flags&2097152){let li=Gt.types,mi=IS(hf.IntrinsicAttributes,p),sr=IS(hf.IntrinsicClassAttributes,p);if(!pr(mi)&&!pr(sr)&&(jn(li,mi)||jn(li,sr)))return}else U=bhe(U,qe);if(!sn&&Br){let li=zi();fu(sn,ct,Gt);let mi;U&&U!==li.errorInfo&&(mi={code:U.code,messageText:U.messageText}),ii(li),mi&&U&&(U.canonicalHead=mi),vn=[ct,Gt];return}if(fu(sn,ct,Gt),ct.flags&262144&&((un=(Ut=ct.symbol)==null?void 0:Ut.declarations)!=null&&un[0])&&!dA(ct)){let li=o_e(ct);if(li.constraint=io(Gt,bS(ct,li)),w5(li)){let mi=ar(Gt,ct.symbol.declarations[0]);Kl(Ar(ct.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,mi))}}}function ys(Pe,qe){if(xr&&Pe.flags&3145728&&qe.flags&3145728){let ct=Pe,Gt=qe;if(ct.objectFlags&Gt.objectFlags&32768)return;let sn=ct.types.length,Ut=Gt.types.length;sn*Ut>1e6&&xr.instant(xr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Pe.id,sourceSize:sn,targetId:qe.id,targetSize:Ut,pos:p?.pos,end:p?.end})}}function il(Pe,qe){return pi(_u(Pe,(Gt,sn)=>{var Ut;sn=Ru(sn);let un=sn.flags&3145728?O5(sn,qe):mS(sn,qe),Zn=un&&_r(un)||((Ut=Hx(sn,qe))==null?void 0:Ut.type)||_e;return Bn(Gt,Zn)},void 0)||ae)}function md(Pe,qe,ct){var Gt;if(!U4(qe)||!ve&&Hr(qe)&4096)return!1;let sn=!!(Hr(Pe)&2048);if((c===qd||c===ap)&&(D2(Jt,qe)||!sn&&Fy(qe)))return!1;let Ut=qe,un;qe.flags&1048576&&(Ut=pFe(Pe,qe,vr)||fvt(qe),un=Ut.flags&1048576?Ut.types:[Ut]);for(let Zn of bs(Pe))if(Xa(Zn,Pe.symbol)&&!w4e(Pe,Zn)){if(!$Y(Ut,Zn.escapedName,sn)){if(ct){let fr=Ac(Ut,U4);if(!p)return C.fail();if(w1(p)||nu(p)||nu(p.parent)){Zn.valueDeclaration&&r_(Zn.valueDeclaration)&&Wn(p)===Wn(Zn.valueDeclaration.name)&&(p=Zn.valueDeclaration.name);let Br=uo(Zn),li=L6e(Br,fr),mi=li?uo(li):void 0;mi?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Br,ar(fr),mi):fo(f.Property_0_does_not_exist_on_type_1,Br,ar(fr))}else{let Br=((Gt=Pe.symbol)==null?void 0:Gt.declarations)&&Ic(Pe.symbol.declarations),li;if(Zn.valueDeclaration&&Dn(Zn.valueDeclaration,mi=>mi===Br)&&Wn(Br)===Wn(p)){let mi=Zn.valueDeclaration;C.assertNode(mi,ny);let sr=mi.name;p=sr,He(sr)&&(li=k6e(sr,fr))}li!==void 0?dl(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,uo(Zn),ar(fr),li):dl(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,uo(Zn),ar(fr))}}return!0}if(un&&!vr(_r(Zn),il(un,Zn.escapedName),3,ct))return ct&&Ko(f.Types_of_property_0_are_incompatible,uo(Zn)),!0}return!1}function Xa(Pe,qe){return Pe.valueDeclaration&&qe.valueDeclaration&&Pe.valueDeclaration.parent===qe.valueDeclaration}function lc(Pe,qe,ct,Gt){if(Pe.flags&1048576){if(qe.flags&1048576){let sn=Pe.origin;if(sn&&sn.flags&2097152&&qe.aliasSymbol&&jn(sn.types,qe))return-1;let Ut=qe.origin;if(Ut&&Ut.flags&1048576&&Pe.aliasSymbol&&jn(Ut.types,Pe))return-1}return c===ap?Sl(Pe,qe,ct&&!(Pe.flags&402784252),Gt):am(Pe,qe,ct&&!(Pe.flags&402784252),Gt)}if(qe.flags&1048576)return Ts(w4(Pe),qe,ct&&!(Pe.flags&402784252)&&!(qe.flags&402784252),Gt);if(qe.flags&2097152)return Cf(Pe,qe,ct,2);if(c===ap&&qe.flags&402784252){let sn=Zi(Pe.types,Ut=>Ut.flags&465829888?Ld(Ut)||Nt:Ut);if(sn!==Pe.types){if(Pe=Ma(sn),Pe.flags&131072)return 0;if(!(Pe.flags&2097152))return vr(Pe,qe,1,!1)||vr(qe,Pe,1,!1)}}return Sl(Pe,qe,!1,1)}function gc(Pe,qe){let ct=-1,Gt=Pe.types;for(let sn of Gt){let Ut=Ts(sn,qe,!1,0);if(!Ut)return 0;ct&=Ut}return ct}function Ts(Pe,qe,ct,Gt){let sn=qe.types;if(qe.flags&1048576){if(jg(sn,Pe))return-1;if(c!==ap&&Hr(qe)&32768&&!(Pe.flags&1024)&&(Pe.flags&2688||(c===U_||c===cl)&&Pe.flags&256)){let un=Pe===Pe.regularType?Pe.freshType:Pe.regularType,Zn=Pe.flags&128?gt:Pe.flags&256?Bt:Pe.flags&2048?gr:void 0;return Zn&&jg(sn,Zn)||un&&jg(sn,un)?-1:0}let Ut=f8e(qe,Pe);if(Ut){let un=vr(Pe,Ut,2,!1,void 0,Gt);if(un)return un}}for(let Ut of sn){let un=vr(Pe,Ut,2,!1,void 0,Gt);if(un)return un}if(ct){let Ut=W4e(Pe,qe,vr);Ut&&vr(Pe,Ut,2,!0,void 0,Gt)}return 0}function Cf(Pe,qe,ct,Gt){let sn=-1,Ut=qe.types;for(let un of Ut){let Zn=vr(Pe,un,2,ct,void 0,Gt);if(!Zn)return 0;sn&=Zn}return sn}function Sl(Pe,qe,ct,Gt){let sn=Pe.types;if(Pe.flags&1048576&&jg(sn,qe))return-1;let Ut=sn.length;for(let un=0;un<Ut;un++){let Zn=vr(sn[un],qe,1,ct&&un===Ut-1,void 0,Gt);if(Zn)return Zn}return 0}function tc(Pe,qe){return Pe.flags&1048576&&qe.flags&1048576&&!(Pe.types[0].flags&32768)&&qe.types[0].flags&32768?C2(qe,-32769):qe}function am(Pe,qe,ct,Gt){let sn=-1,Ut=Pe.types,un=tc(Pe,qe);for(let Zn=0;Zn<Ut.length;Zn++){let fr=Ut[Zn];if(un.flags&1048576&&Ut.length>=un.types.length&&Ut.length%un.types.length===0){let li=vr(fr,un.types[Zn%un.types.length],3,!1,void 0,Gt);if(li){sn&=li;continue}}let Br=vr(fr,qe,1,ct,void 0,Gt);if(!Br)return 0;sn&=Br}return sn}function B2(Pe=ae,qe=ae,ct=ae,Gt,sn){if(Pe.length!==qe.length&&c===Jd)return 0;let Ut=Pe.length<=qe.length?Pe.length:qe.length,un=-1;for(let Zn=0;Zn<Ut;Zn++){let fr=Zn<ct.length?ct[Zn]:1,Br=fr&7;if(Br!==4){let li=Pe[Zn],mi=qe[Zn],sr=-1;if(fr&8?sr=c===Jd?vr(li,mi,3,!1):C4(li,mi):Br===1?sr=vr(li,mi,3,Gt,void 0,sn):Br===2?sr=vr(mi,li,3,Gt,void 0,sn):Br===3?(sr=vr(mi,li,3,!1),sr||(sr=vr(li,mi,3,Gt,void 0,sn))):(sr=vr(li,mi,3,Gt,void 0,sn),sr&&(sr&=vr(mi,li,3,Gt,void 0,sn))),!sr)return 0;un&=sr}}return un}function d8(Pe,qe,ct,Gt,sn){var Ut,un,Zn;if(nr)return 0;let fr=_Y(Pe,qe,Gt,c,!1),Br=c.get(fr);if(Br!==void 0&&!(ct&&Br&2&&!(Br&96))){if(Go){let bn=Br&24;bn&8&&io(Pe,$s),bn&16&&io(Pe,Sc)}if(ct&&Br&96){let bn=Br&32?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1;fo(bn,ar(Pe),ar(qe)),yr++}return Br&1?-1:0}if(fi<=0)return nr=!0,0;if(!Q)Q=[],Ie=new Set,Te=[],Ze=[];else{if(Ie.has(fr))return 3;let bn=fr.startsWith("*")?_Y(Pe,qe,Gt,c,!0):void 0;if(bn&&Ie.has(bn))return 3;if(Dt===100||$t===100)return nr=!0,0}let li=Tt;Q[Tt]=fr,Ie.add(fr),Tt++;let mi=Tn;sn&1&&(Te[Dt]=Pe,Dt++,!(Tn&1)&&$x(Pe,Te,Dt)&&(Tn|=1)),sn&2&&(Ze[$t]=qe,$t++,!(Tn&2)&&$x(qe,Ze,$t)&&(Tn|=2));let sr,xi=0;Go&&(sr=Go,Go=bn=>(xi|=bn?16:8,sr(bn)));let mo;return Tn===3?((Ut=xr)==null||Ut.instant(xr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Pe.id,sourceIdStack:Te.map(bn=>bn.id),targetId:qe.id,targetIdStack:Ze.map(bn=>bn.id),depth:Dt,targetDepth:$t}),mo=3):((un=xr)==null||un.push(xr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Pe.id,targetId:qe.id}),mo=G2(Pe,qe,ct,Gt),(Zn=xr)==null||Zn.pop()),Go&&(Go=sr),sn&1&&Dt--,sn&2&&$t--,Tn=mi,mo?(mo===-1||Dt===0&&$t===0)&&ts(mo===-1||mo===3):(c.set(fr,2|xi),fi--,ts(!1)),mo;function ts(bn){for(let Yr=li;Yr<Tt;Yr++)Ie.delete(Q[Yr]),bn&&(c.set(Q[Yr],1|xi),fi--);Tt=li}}function G2(Pe,qe,ct,Gt){let sn=zi(),Ut=u8(Pe,qe,ct,Gt,sn);if(c!==Jd){if(!Ut&&(Pe.flags&2097152||Pe.flags&262144&&qe.flags&1048576)){let un=_st(Pe.flags&2097152?Pe.types:[Pe],!!(qe.flags&1048576));un&&Sp(un,Zn=>Zn!==Pe)&&(Ut=vr(un,qe,1,!1,void 0,Gt))}Ut&&!(Gt&2)&&qe.flags&2097152&&!_A(qe)&&Pe.flags&2621440?(Ut&=Pa(Pe,qe,ct,void 0,!1,0),Ut&&Gv(Pe)&&Hr(Pe)&8192&&(Ut&=we(Pe,qe,!1,ct,0))):Ut&&oY(qe)&&!HT(qe)&&Pe.flags&2097152&&Ru(Pe).flags&3670016&&!vt(Pe.types,un=>un===qe||!!(Hr(un)&262144))&&(Ut&=Pa(Pe,qe,ct,void 0,!0,Gt))}return Ut&&ii(sn),Ut}function of(Pe,qe){let ct=Ru(FT(qe)),Gt=[];return fhe(ct,8576,!1,sn=>void Gt.push(io(Pe,x4(qe.mapper,Zm(qe),sn)))),pi(Gt)}function u8(Pe,qe,ct,Gt,sn){let Ut,un,Zn=!1,fr=Pe.flags,Br=qe.flags;if(c===Jd){if(fr&3145728){let sr=gc(Pe,qe);return sr&&(sr&=gc(qe,Pe)),sr}if(fr&4194304)return vr(Pe.type,qe.type,3,!1);if(fr&8388608&&(Ut=vr(Pe.objectType,qe.objectType,3,!1))&&(Ut&=vr(Pe.indexType,qe.indexType,3,!1))||fr&16777216&&Pe.root.isDistributive===qe.root.isDistributive&&(Ut=vr(Pe.checkType,qe.checkType,3,!1))&&(Ut&=vr(Pe.extendsType,qe.extendsType,3,!1))&&(Ut&=vr(c0(Pe),c0(qe),3,!1))&&(Ut&=vr(d0(Pe),d0(qe),3,!1))||fr&33554432&&(Ut=vr(Pe.baseType,qe.baseType,3,!1))&&(Ut&=vr(Pe.constraint,qe.constraint,3,!1)))return Ut;if(fr&134217728&&$p(Pe.texts,qe.texts)){let sr=Pe.types,xi=qe.types;Ut=-1;for(let mo=0;mo<sr.length&&(Ut&=vr(sr[mo],xi[mo],3,!1));mo++);return Ut}if(fr&268435456&&Pe.symbol===qe.symbol)return vr(Pe.type,qe.type,3,!1);if(!(fr&524288))return 0}else if(fr&3145728||Br&3145728){if(Ut=lc(Pe,qe,ct,Gt))return Ut;if(!(fr&465829888||fr&524288&&Br&1048576||fr&2097152&&Br&467402752))return 0}if(fr&17301504&&Pe.aliasSymbol&&Pe.aliasTypeArguments&&Pe.aliasSymbol===qe.aliasSymbol&&!(mY(Pe)||mY(qe))){let sr=F4e(Pe.aliasSymbol);if(sr===ae)return 1;let xi=Jr(Pe.aliasSymbol).typeParameters,mo=Q_(xi),ts=Wv(Pe.aliasTypeArguments,xi,mo,Ir(Pe.aliasSymbol.valueDeclaration)),bn=Wv(qe.aliasTypeArguments,xi,mo,Ir(Pe.aliasSymbol.valueDeclaration)),Yr=mi(ts,bn,sr,Gt);if(Yr!==void 0)return Yr}if(J4e(Pe)&&!Pe.target.readonly&&(Ut=vr(rl(Pe)[0],qe,1))||J4e(qe)&&(qe.target.readonly||n9(Ld(Pe)||Pe))&&(Ut=vr(Pe,rl(qe)[0],2)))return Ut;if(Br&262144){if(Hr(Pe)&32&&!Pe.declaration.nameType&&vr(v_(qe),xf(Pe),3)&&!($_(Pe)&4)){let sr=Bg(Pe),xi=Jp(qe,Zm(Pe));if(Ut=vr(sr,xi,3,ct))return Ut}if(c===ap&&fr&262144){let sr=ju(Pe);if(sr)for(;sr&&im(sr,xi=>!!(xi.flags&262144));){if(Ut=vr(sr,qe,1,!1))return Ut;sr=ju(sr)}return 0}}else if(Br&4194304){let sr=qe.type;if(fr&4194304&&(Ut=vr(sr,Pe.type,3,!1)))return Ut;if(Ka(sr)){if(Ut=vr(Pe,jOe(sr),2,ct))return Ut}else{let xi=mhe(sr);if(xi){if(vr(Pe,v_(xi,qe.indexFlags|4),2,ct)===-1)return-1}else if(cp(sr)){let mo=wv(sr),ts=xf(sr),bn;if(mo&&NC(sr)){let Yr=of(mo,sr);bn=pi([Yr,mo])}else bn=mo||ts;if(vr(Pe,bn,2,ct)===-1)return-1}}}else if(Br&8388608){if(fr&8388608){if((Ut=vr(Pe.objectType,qe.objectType,3,ct))&&(Ut&=vr(Pe.indexType,qe.indexType,3,ct)),Ut)return Ut;ct&&(un=U)}if(c===qd||c===ap){let sr=qe.objectType,xi=qe.indexType,mo=Ld(sr)||sr,ts=Ld(xi)||xi;if(!_A(mo)&&!gA(ts)){let bn=4|(mo!==sr?2:0),Yr=l0(mo,ts,bn);if(Yr){if(ct&&un&&ii(sn),Ut=vr(Pe,Yr,2,ct,void 0,Gt))return Ut;ct&&un&&U&&(U=li([un])<=li([U])?un:U)}}}ct&&(un=void 0)}else if(cp(qe)&&c!==Jd){let sr=!!qe.declaration.nameType,xi=Bg(qe),mo=$_(qe);if(!(mo&8)){if(!sr&&xi.flags&8388608&&xi.objectType===Pe&&xi.indexType===Zm(qe))return-1;if(!cp(Pe)){let ts=sr?wv(qe):xf(qe),bn=v_(Pe,2),Yr=mo&4,Fo=Yr?P5(ts,bn):void 0;if(Yr?!(Fo.flags&131072):vr(ts,bn,3)){let vo=Bg(qe),Ya=Zm(qe),ms=C2(vo,-98305);if(!sr&&ms.flags&8388608&&ms.indexType===Ya){if(Ut=vr(Pe,ms.objectType,2,ct))return Ut}else{let No=sr?Fo||ts:Fo?Ma([Fo,Ya]):Ya,Lc=Jp(Pe,No);if(Ut=vr(Lc,vo,3,ct))return Ut}}un=U,ii(sn)}}}else if(Br&16777216){if($x(qe,Ze,$t,10))return 3;let sr=qe;if(!sr.root.inferTypeParameters&&!tct(sr.root)&&!(Pe.flags&16777216&&Pe.root===sr.root)){let xi=!aa(D4(sr.checkType),D4(sr.extendsType)),mo=!xi&&aa(bA(sr.checkType),bA(sr.extendsType));if((Ut=xi?-1:vr(Pe,c0(sr),2,!1,void 0,Gt))&&(Ut&=mo?-1:vr(Pe,d0(sr),2,!1,void 0,Gt),Ut))return Ut}}else if(Br&134217728){if(fr&134217728){if(c===ap)return Cdt(Pe,qe)?0:-1;io(Pe,Sc)}if(MY(Pe,qe))return-1}else if(qe.flags&268435456&&!(Pe.flags&268435456)&&NY(Pe,qe))return-1;if(fr&8650752){if(!(fr&8388608&&Br&8388608)){let sr=dA(Pe)||Nt;if(Ut=vr(sr,qe,1,!1,void 0,Gt))return Ut;if(Ut=vr(qp(sr,Pe),qe,1,ct&&sr!==Nt&&!(Br&fr&262144),void 0,Gt))return Ut;if(yhe(Pe)){let xi=dA(Pe.indexType);if(xi&&(Ut=vr(Jp(Pe.objectType,xi),qe,1,ct)))return Ut}}}else if(fr&4194304){let sr=Jhe(Pe.type,Pe.indexFlags)&&Hr(Pe.type)&32;if(Ut=vr(Ii,qe,1,ct&&!sr))return Ut;if(sr){let xi=Pe.type,mo=wv(xi),ts=mo&&NC(xi)?of(mo,xi):mo||xf(xi);if(Ut=vr(ts,qe,1,ct))return Ut}}else if(fr&134217728&&!(Br&524288)){if(!(Br&134217728)){let sr=Ld(Pe);if(sr&&sr!==Pe&&(Ut=vr(sr,qe,1,ct)))return Ut}}else if(fr&268435456)if(Br&268435456){if(Pe.symbol!==qe.symbol)return 0;if(Ut=vr(Pe.type,qe.type,3,ct))return Ut}else{let sr=Ld(Pe);if(sr&&(Ut=vr(sr,qe,1,ct)))return Ut}else if(fr&16777216){if($x(Pe,Te,Dt,10))return 3;if(Br&16777216){let mo=Pe.root.inferTypeParameters,ts=Pe.extendsType,bn;if(mo){let Yr=O4(mo,void 0,0,Hi);Hg(Yr.inferences,qe.extendsType,ts,1536),ts=io(ts,Yr.mapper),bn=Yr.mapper}if(Ug(ts,qe.extendsType)&&(vr(Pe.checkType,qe.checkType,3)||vr(qe.checkType,Pe.checkType,3))&&((Ut=vr(io(c0(Pe),bn),c0(qe),3,ct))&&(Ut&=vr(d0(Pe),d0(qe),3,ct)),Ut))return Ut}let sr=hhe(Pe);if(sr&&(Ut=vr(sr,qe,1,ct)))return Ut;let xi=!(Br&16777216)&&w5(Pe)?$we(Pe):void 0;if(xi&&(ii(sn),Ut=vr(xi,qe,1,ct)))return Ut}else{if(c!==U_&&c!==cl&&cst(qe)&&Fy(Pe))return-1;if(cp(qe))return cp(Pe)&&(Ut=Ht(Pe,qe,ct))?Ut:0;let sr=!!(fr&402784252);if(c!==Jd)Pe=Ru(Pe),fr=Pe.flags;else if(cp(Pe))return 0;if(Hr(Pe)&4&&Hr(qe)&4&&Pe.target===qe.target&&!Ka(Pe)&&!(mY(Pe)||mY(qe))){if(vY(Pe))return-1;let xi=g_e(Pe.target);if(xi===ae)return 1;let mo=mi(rl(Pe),rl(qe),xi,Gt);if(mo!==void 0)return mo}else{if(A2(qe)?Sp(Pe,HT):nm(qe)&&Sp(Pe,xi=>Ka(xi)&&!xi.target.readonly))return c!==Jd?vr(zT(Pe,Bt)||Ue,zT(qe,Bt)||Ue,3,ct):0;if(u0(Pe)&&Ka(qe)&&!u0(qe)){let xi=y_(Pe);if(xi!==Pe)return vr(xi,qe,1,ct)}else if((c===U_||c===cl)&&Fy(qe)&&Hr(qe)&8192&&!Fy(Pe))return 0}if(fr&2621440&&Br&524288){let xi=ct&&U===sn.errorInfo&&!sr;if(Ut=Pa(Pe,qe,xi,void 0,!1,Gt),Ut&&(Ut&=Gs(Pe,qe,0,xi,Gt),Ut&&(Ut&=Gs(Pe,qe,1,xi,Gt),Ut&&(Ut&=we(Pe,qe,sr,xi,Gt)))),Zn&&Ut)U=un||U||sn.errorInfo;else if(Ut)return Ut}if(fr&2621440&&Br&1048576){let xi=C2(qe,36175872);if(xi.flags&1048576){let mo=Nn(Pe,xi);if(mo)return mo}}}return 0;function li(sr){return sr?_u(sr,(xi,mo)=>xi+1+li(mo.next),0):0}function mi(sr,xi,mo,ts){if(Ut=B2(sr,xi,mo,ct,ts))return Ut;if(vt(mo,Yr=>!!(Yr&24))){un=void 0,ii(sn);return}let bn=xi&&Vct(xi,mo);if(Zn=!bn,mo!==ae&&!bn){if(Zn&&!(ct&&vt(mo,Yr=>(Yr&7)===0)))return 0;un=U,ii(sn)}}}function Ht(Pe,qe,ct){if(c===ap||(c===Jd?$_(Pe)===$_(qe):h2(Pe)<=h2(qe))){let sn,Ut=xf(qe),un=io(xf(Pe),h2(Pe)<0?$s:Sc);if(sn=vr(Ut,un,3,ct)){let Zn=Kp([Zm(Pe)],[Zm(qe)]);if(io(wv(Pe),Zn)===io(wv(qe),Zn))return sn&vr(io(Bg(Pe),Zn),Bg(qe),3,ct)}}return 0}function Nn(Pe,qe){var ct;let Gt=bs(Pe),sn=p8e(Gt,qe);if(!sn)return 0;let Ut=1;for(let mi of sn)if(Ut*=rut(xh(mi)),Ut>25)return(ct=xr)==null||ct.instant(xr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Pe.id,targetId:qe.id,numCombinations:Ut}),0;let un=new Array(sn.length),Zn=new Set;for(let mi=0;mi<sn.length;mi++){let sr=sn[mi],xi=xh(sr);un[mi]=xi.flags&1048576?xi.types:[xi],Zn.add(sr.escapedName)}let fr=$Q(un),Br=[];for(let mi of fr){let sr=!1;e:for(let xi of qe.types){for(let mo=0;mo<sn.length;mo++){let ts=sn[mo],bn=Ea(xi,ts.escapedName);if(!bn)continue e;if(ts===bn)continue;if(!Gr(Pe,qe,ts,bn,Fo=>mi[mo],!1,0,ie||c===ap))continue e}Pf(Br,xi,Zv),sr=!0}if(!sr)return 0}let li=-1;for(let mi of Br)if(li&=Pa(Pe,mi,!1,Zn,!1,0),li&&(li&=Gs(Pe,mi,0,!1,0),li&&(li&=Gs(Pe,mi,1,!1,0),li&&!(Ka(Pe)&&Ka(mi))&&(li&=we(Pe,mi,!1,!1,0)))),!li)return li;return li}function $n(Pe,qe){if(!qe||Pe.length===0)return Pe;let ct;for(let Gt=0;Gt<Pe.length;Gt++)qe.has(Pe[Gt].escapedName)?ct||(ct=Pe.slice(0,Gt)):ct&&ct.push(Pe[Gt]);return ct||Pe}function hr(Pe,qe,ct,Gt,sn){let Ut=ie&&!!(Wl(qe)&48),un=uu(xh(qe),!1,Ut);if(un.flags&(c===cl?1:3))return-1;let Zn=ct(Pe);return vr(Zn,un,3,Gt,void 0,sn)}function Gr(Pe,qe,ct,Gt,sn,Ut,un,Zn){let fr=Bf(ct),Br=Bf(Gt);if(fr&2||Br&2){if(ct.valueDeclaration!==Gt.valueDeclaration)return Ut&&(fr&2&&Br&2?fo(f.Types_have_separate_declarations_of_a_private_property_0,uo(Gt)):fo(f.Property_0_is_private_in_type_1_but_not_in_type_2,uo(Gt),ar(fr&2?Pe:qe),ar(fr&2?qe:Pe))),0}else if(Br&4){if(!Jct(ct,Gt))return Ut&&fo(f.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,uo(Gt),ar(Yx(ct)||Pe),ar(Yx(Gt)||qe)),0}else if(fr&4)return Ut&&fo(f.Property_0_is_protected_in_type_1_but_public_in_type_2,uo(Gt),ar(Pe),ar(qe)),0;if(c===cl&&wh(ct)&&!wh(Gt))return 0;let li=hr(ct,Gt,sn,Ut,un);return li?!Zn&&ct.flags&16777216&&Gt.flags&106500&&!(Gt.flags&16777216)?(Ut&&fo(f.Property_0_is_optional_in_type_1_but_required_in_type_2,uo(Gt),ar(Pe),ar(qe)),0):li:(Ut&&Ko(f.Types_of_property_0_are_incompatible,uo(Gt)),0)}function gi(Pe,qe,ct,Gt){let sn=!1;if(ct.valueDeclaration&&nd(ct.valueDeclaration)&&eo(ct.valueDeclaration.name)&&Pe.symbol&&Pe.symbol.flags&32){let un=ct.valueDeclaration.name.escapedText,Zn=yk(Pe.symbol,un);if(Zn&&Ea(Pe,Zn)){let fr=L.getDeclarationName(Pe.symbol.valueDeclaration),Br=L.getDeclarationName(qe.symbol.valueDeclaration);fo(f.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,yp(un),yp(fr.escapedText===""?vU:fr),yp(Br.escapedText===""?vU:Br));return}}let Ut=Co(L_e(Pe,qe,Gt,!1));if((!h||h.code!==f.Class_0_incorrectly_implements_interface_1.code&&h.code!==f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(sn=!0),Ut.length===1){let un=uo(ct,void 0,0,20);fo(f.Property_0_is_missing_in_type_1_but_required_in_type_2,un,...s2(Pe,qe)),et(ct.declarations)&&Kl(Ar(ct.declarations[0],f._0_is_declared_here,un)),sn&&U&&yr++}else rr(Pe,qe,!1)&&(Ut.length>5?fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ar(Pe),ar(qe),Vt(Ut.slice(0,4),un=>uo(un)).join(", "),Ut.length-4):fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ar(Pe),ar(qe),Vt(Ut,un=>uo(un)).join(", ")),sn&&U&&yr++)}function Pa(Pe,qe,ct,Gt,sn,Ut){if(c===Jd)return Oa(Pe,qe,Gt);let un=-1;if(Ka(qe)){if(HT(Pe)){if(!qe.target.readonly&&(A2(Pe)||Ka(Pe)&&Pe.target.readonly))return 0;let mi=Fv(Pe),sr=Fv(qe),xi=Ka(Pe)?Pe.target.combinedFlags&4:4,mo=!!(qe.target.combinedFlags&12),ts=Ka(Pe)?Pe.target.minLength:0,bn=qe.target.minLength;if(!xi&&mi<bn)return ct&&fo(f.Source_has_0_element_s_but_target_requires_1,mi,bn),0;if(!mo&&sr<ts)return ct&&fo(f.Source_has_0_element_s_but_target_allows_only_1,ts,sr),0;if(!mo&&(xi||sr<mi))return ct&&(ts<bn?fo(f.Target_requires_0_element_s_but_source_may_have_fewer,bn):fo(f.Target_allows_only_0_element_s_but_source_may_have_more,sr)),0;let Yr=rl(Pe),Fo=rl(qe),vo=blt(qe.target,11),Ya=E4(qe.target,11),ms=!!Gt;for(let No=0;No<mi;No++){let Lc=Ka(Pe)?Pe.target.elementFlags[No]:4,kc=mi-1-No,Od=mo&&No>=vo?sr-1-Math.min(kc,Ya):No,hu=qe.target.elementFlags[Od];if(hu&8&&!(Lc&8))return ct&&fo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Od),0;if(Lc&8&&!(hu&12))return ct&&fo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,No,Od),0;if(hu&1&&!(Lc&1))return ct&&fo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Od),0;if(ms&&((Lc&12||hu&12)&&(ms=!1),ms&&Gt?.has(""+No)))continue;let Hu=Gy(Yr[No],!!(Lc&hu&2)),Hy=Fo[Od],ZT=Lc&8&&hu&4?Yd(Hy):Gy(Hy,!!(hu&2)),DS=vr(Hu,ZT,3,ct,void 0,Ut);if(!DS)return ct&&(sr>1||mi>1)&&(mo&&No>=vo&&kc>=Ya&&vo!==mi-Ya-1?Ko(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,vo,mi-Ya-1,Od):Ko(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,No,Od)),0;un&=DS}return un}if(qe.target.combinedFlags&12)return 0}let Zn=(c===U_||c===cl)&&!Gv(Pe)&&!vY(Pe)&&!Ka(Pe),fr=k_e(Pe,qe,Zn,!1);if(fr)return ct&&Zc(Pe,qe)&&gi(Pe,qe,fr,Zn),0;if(Gv(qe)){for(let mi of $n(bs(Pe),Gt))if(!mS(qe,mi.escapedName)&&!(_r(mi).flags&32768))return ct&&fo(f.Property_0_does_not_exist_on_type_1,uo(mi),ar(qe)),0}let Br=bs(qe),li=Ka(Pe)&&Ka(qe);for(let mi of $n(Br,Gt)){let sr=mi.escapedName;if(!(mi.flags&4194304)&&(!li||Sg(sr)||sr==="length")&&(!sn||mi.flags&16777216)){let xi=Ea(Pe,sr);if(xi&&xi!==mi){let mo=Gr(Pe,qe,xi,mi,xh,ct,Ut,c===ap);if(!mo)return 0;un&=mo}}}return un}function Oa(Pe,qe,ct){if(!(Pe.flags&524288&&qe.flags&524288))return 0;let Gt=$n(Ov(Pe),ct),sn=$n(Ov(qe),ct);if(Gt.length!==sn.length)return 0;let Ut=-1;for(let un of Gt){let Zn=mS(qe,un.escapedName);if(!Zn)return 0;let fr=v_e(un,Zn,vr);if(!fr)return 0;Ut&=fr}return Ut}function Gs(Pe,qe,ct,Gt,sn){var Ut,un;if(c===Jd)return QT(Pe,qe,ct);if(qe===As||Pe===As)return-1;let Zn=Pe.symbol&&S_(Pe.symbol.valueDeclaration),fr=qe.symbol&&S_(qe.symbol.valueDeclaration),Br=na(Pe,Zn&&ct===1?0:ct),li=na(qe,fr&&ct===1?0:ct);if(ct===1&&Br.length&&li.length){let ts=!!(Br[0].flags&4),bn=!!(li[0].flags&4);if(ts&&!bn)return Gt&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!pn(Br[0],li[0],Gt))return 0}let mi=-1,sr=ct===1?dp:mu,xi=Hr(Pe),mo=Hr(qe);if(xi&64&&mo&64&&Pe.symbol===qe.symbol||xi&4&&mo&4&&Pe.target===qe.target){C.assertEqual(Br.length,li.length);for(let ts=0;ts<li.length;ts++){let bn=$T(Br[ts],li[ts],!0,Gt,sn,sr(Br[ts],li[ts]));if(!bn)return 0;mi&=bn}}else if(Br.length===1&&li.length===1){let ts=c===ap,bn=$a(Br),Yr=$a(li);if(mi=$T(bn,Yr,ts,Gt,sn,sr(bn,Yr)),!mi&&Gt&&ct===1&&xi&mo&&(((Ut=Yr.declaration)==null?void 0:Ut.kind)===177||((un=bn.declaration)==null?void 0:un.kind)===177)){let Fo=vo=>r0(vo,void 0,262144,ct);return fo(f.Type_0_is_not_assignable_to_type_1,Fo(bn),Fo(Yr)),fo(f.Types_of_construct_signatures_are_incompatible),mi}}else e:for(let ts of li){let bn=zi(),Yr=Gt;for(let Fo of Br){let vo=$T(Fo,ts,!0,Yr,sn,sr(Fo,ts));if(vo){mi&=vo,ii(bn);continue e}Yr=!1}return Yr&&fo(f.Type_0_provides_no_match_for_the_signature_1,ar(Pe),r0(ts,void 0,void 0,ct)),0}return mi}function Zc(Pe,qe){let ct=W5(Pe,0),Gt=W5(Pe,1),sn=Ov(Pe);return(ct.length||Gt.length)&&!sn.length?!!(na(qe,0).length&&ct.length||na(qe,1).length&&Gt.length):!0}function mu(Pe,qe){return Pe.parameters.length===0&&qe.parameters.length===0?(ct,Gt)=>Ko(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ar(ct),ar(Gt)):(ct,Gt)=>Ko(f.Call_signature_return_types_0_and_1_are_incompatible,ar(ct),ar(Gt))}function dp(Pe,qe){return Pe.parameters.length===0&&qe.parameters.length===0?(ct,Gt)=>Ko(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ar(ct),ar(Gt)):(ct,Gt)=>Ko(f.Construct_signature_return_types_0_and_1_are_incompatible,ar(ct),ar(Gt))}function $T(Pe,qe,ct,Gt,sn,Ut){let un=c===U_?16:c===cl?24:0;return u_e(ct?S4(Pe):Pe,ct?S4(qe):qe,un,Gt,fo,Ut,Zn,Sc);function Zn(fr,Br,li){return vr(fr,Br,3,li,void 0,sn)}}function QT(Pe,qe,ct){let Gt=na(Pe,ct),sn=na(qe,ct);if(Gt.length!==sn.length)return 0;let Ut=-1;for(let un=0;un<Gt.length;un++){let Zn=t9(Gt[un],sn[un],!1,!1,!1,vr);if(!Zn)return 0;Ut&=Zn}return Ut}function Y9(Pe,qe,ct,Gt){let sn=-1,Ut=qe.keyType,un=Pe.flags&2097152?k5(Pe):Ov(Pe);for(let Zn of un)if(!w4e(Pe,Zn)&&Ux(qx(Zn,8576),Ut)){let fr=xh(Zn),Br=Ce||fr.flags&32768||Ut===Bt||!(Zn.flags&16777216)?fr:rm(fr,524288),li=vr(Br,qe.type,3,ct,void 0,Gt);if(!li)return ct&&fo(f.Property_0_is_incompatible_with_index_signature,uo(Zn)),0;sn&=li}for(let Zn of Xd(Pe))if(Ux(Zn.keyType,Ut)){let fr=z$(Zn,qe,ct,Gt);if(!fr)return 0;sn&=fr}return sn}function z$(Pe,qe,ct,Gt){let sn=vr(Pe.type,qe.type,3,ct,void 0,Gt);return!sn&&ct&&(Pe.keyType===qe.keyType?fo(f._0_index_signatures_are_incompatible,ar(Pe.keyType)):fo(f._0_and_1_index_signatures_are_incompatible,ar(Pe.keyType),ar(qe.keyType))),sn}function we(Pe,qe,ct,Gt,sn){if(c===Jd)return on(Pe,qe);let Ut=Xd(qe),un=vt(Ut,fr=>fr.keyType===gt),Zn=-1;for(let fr of Ut){let Br=c!==cl&&!ct&&un&&fr.type.flags&1?-1:cp(Pe)&&un?vr(Bg(Pe),fr.type,3,Gt):se(Pe,fr,Gt,sn);if(!Br)return 0;Zn&=Br}return Zn}function se(Pe,qe,ct,Gt){let sn=y4(Pe,qe.keyType);return sn?z$(sn,qe,ct,Gt):!(Gt&1)&&(c!==cl||Hr(Pe)&8192)&&IY(Pe)?Y9(Pe,qe,ct,Gt):(ct&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,ar(qe.keyType),ar(Pe)),0)}function on(Pe,qe){let ct=Xd(Pe),Gt=Xd(qe);if(ct.length!==Gt.length)return 0;for(let sn of Gt){let Ut=Gg(Pe,sn.keyType);if(!(Ut&&vr(Ut.type,sn.type,3)&&Ut.isReadonly===sn.isReadonly))return 0}return-1}function pn(Pe,qe,ct){if(!Pe.declaration||!qe.declaration)return!0;let Gt=mI(Pe.declaration,6),sn=mI(qe.declaration,6);return sn===2||sn===4&&Gt!==2||sn!==4&&!Gt?!0:(ct&&fo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,wT(Gt),wT(sn)),!1)}}function m_e(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Je(n.types,m_e);if(n.flags&465829888){let a=dA(n);if(a&&a!==n)return m_e(a)}return Nh(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function O4e(n,a){return Ka(n)&&Ka(a)?ae:bs(a).filter(c=>fY(_n(n,c.escapedName),_r(c)))}function fY(n,a){return!!n&&!!a&&ec(n,32768)&&!!k4(a)}function Bct(n){return bs(n).filter(a=>k4(_r(a)))}function W4e(n,a,c=c_e){return pFe(n,a,c)||cvt(n,a)||dvt(n,a)||uvt(n,a)||pvt(n,a)}function h_e(n,a,c){let p=n.types,h=p.map(I=>I.flags&402784252?0:-1);for(let[I,w]of a){let U=!1;for(let H=0;H<p.length;H++)if(h[H]){let Q=ei(p[H],w);Q&&(im(I(),Ie=>!!c(Ie,Q))?U=!0:h[H]=3)}for(let H=0;H<p.length;H++)h[H]===3&&(h[H]=U?0:-1)}let b=jn(h,0)?pi(p.filter((I,w)=>h[w]),0):n;return b.flags&131072?n:b}function __e(n){if(n.flags&524288){let a=Dh(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Vn(a.properties,c=>!!(c.flags&16777216))}return n.flags&33554432?__e(n.baseType):n.flags&2097152?Vn(n.types,__e):!1}function Gct(n,a,c){for(let p of bs(n))if($Y(a,p.escapedName,c))return!0;return!1}function g_e(n){return n===es||n===Va||n.objectFlags&8?F:z4e(n.symbol,n.typeParameters)}function F4e(n){return z4e(n,Jr(n).typeParameters)}function z4e(n,a=ae){var c,p;let h=Jr(n);if(!h.variances){(c=xr)==null||c.push(xr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:pd(qs(n))});let b=FE,I=vv;FE||(FE=!0,vv=Ng.length),h.variances=ae;let w=[];for(let U of a){let H=y_e(U),Q=H&16384?H&8192?0:1:H&8192?2:void 0;if(Q===void 0){let Ie=!1,Te=!1,Ze=Go;Go=$t=>$t?Te=!0:Ie=!0;let Tt=Z5(n,U,Fs),Dt=Z5(n,U,Ee);Q=(aa(Dt,Tt)?1:0)|(aa(Tt,Dt)?2:0),Q===3&&aa(Z5(n,U,$),Tt)&&(Q=4),Go=Ze,(Ie||Te)&&(Ie&&(Q|=8),Te&&(Q|=16))}w.push(Q)}b||(FE=!1,vv=I),h.variances=w,(p=xr)==null||p.pop({variances:w.map(C.formatVariance)})}return h.variances}function Z5(n,a,c){let p=bS(a,c),h=qs(n);if(pr(h))return h;let b=n.flags&524288?LC(n,Wy(Jr(n).typeParameters,p)):Ly(h,Wy(h.typeParameters,p));return ht.add(pd(b)),b}function mY(n){return ht.has(pd(n))}function y_e(n){var a;return _u((a=n.symbol)==null?void 0:a.declarations,(c,p)=>c|Gd(p),0)&28672}function Vct(n,a){for(let c=0;c<a.length;c++)if((a[c]&7)===1&&n[c].flags&16384)return!0;return!1}function jct(n){return n.flags&262144&&!ju(n)}function Uct(n){return!!(Hr(n)&4)&&!n.node}function hY(n){return Uct(n)&&vt(rl(n),a=>!!(a.flags&262144)||hY(a))}function Hct(n,a,c,p){let h=[],b="",I=U(n,0),w=U(a,0);return`${b}${I},${w}${c}`;function U(H,Q=0){let Ie=""+H.target.id;for(let Te of rl(H)){if(Te.flags&262144){if(p||jct(Te)){let Ze=h.indexOf(Te);Ze<0&&(Ze=h.length,h.push(Te)),Ie+="="+Ze;continue}b="*"}else if(Q<4&&hY(Te)){Ie+="<"+U(Te,Q+1)+">";continue}Ie+="-"+Te.id}return Ie}}function _Y(n,a,c,p,h){if(p===Jd&&n.id>a.id){let I=n;n=a,a=I}let b=c?":"+c:"";return hY(n)&&hY(a)?Hct(n,a,b,h):`${n.id},${a.id}${b}`}function e9(n,a){if(Wl(n)&6){for(let c of n.links.containingType.types){let p=Ea(c,n.escapedName),h=p&&e9(p,a);if(h)return h}return}return a(n)}function Yx(n){return n.parent&&n.parent.flags&32?qs($c(n)):void 0}function gY(n){let a=Yx(n),c=a&&Qm(a)[0];return c&&_n(c,n.escapedName)}function qct(n,a){return e9(n,c=>{let p=Yx(c);return p?Ur(p,a):!1})}function Jct(n,a){return!e9(a,c=>Bf(c)&4?!qct(n,Yx(c)):!1)}function B4e(n,a,c){return e9(a,p=>Bf(p,c)&4?!Ur(n,Yx(p)):!1)?void 0:n}function $x(n,a,c,p=3){if(c>=p){if((Hr(n)&96)===96&&(n=G4e(n)),n.flags&2097152)return vt(n.types,w=>$x(w,a,c,p));let h=yY(n),b=0,I=0;for(let w=0;w<c;w++){let U=a[w];if(V4e(U,h)){if(U.id>=I&&(b++,b>=p))return!0;I=U.id}}}return!1}function G4e(n){let a;for(;(Hr(n)&96)===96&&(a=FT(n))&&(a.symbol||a.flags&2097152&&vt(a.types,c=>!!c.symbol));)n=a;return n}function V4e(n,a){return(Hr(n)&96)===96&&(n=G4e(n)),n.flags&2097152?vt(n.types,c=>V4e(c,a)):yY(n)===a}function yY(n){if(n.flags&524288&&!O_e(n)){if(Hr(n)&4&&n.node)return n.node;if(n.symbol&&!(Hr(n)&16&&n.symbol.flags&32))return n.symbol;if(Ka(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 Kct(n,a){return v_e(n,a,C4)!==0}function v_e(n,a,c){if(n===a)return-1;let p=Bf(n)&6,h=Bf(a)&6;if(p!==h)return 0;if(p){if(JC(n)!==JC(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return wh(n)!==wh(a)?0:c(_r(n),_r(a))}function Xct(n,a,c){let p=Ep(n),h=Ep(a),b=kh(n),I=kh(a),w=tg(n),U=tg(a);return!!(p===h&&b===I&&w===U||c&&b<=I)}function t9(n,a,c,p,h,b){if(n===a)return-1;if(!Xct(n,a,c)||et(n.typeParameters)!==et(a.typeParameters))return 0;if(a.typeParameters){let U=Kp(n.typeParameters,a.typeParameters);for(let H=0;H<a.typeParameters.length;H++){let Q=n.typeParameters[H],Ie=a.typeParameters[H];if(!(Q===Ie||b(io(v2(Q),U)||Nt,v2(Ie)||Nt)&&b(io(hS(Q),U)||Nt,hS(Ie)||Nt)))return 0}n=vA(n,U,!0)}let I=-1;if(!p){let U=BT(n);if(U){let H=BT(a);if(H){let Q=b(U,H);if(!Q)return 0;I&=Q}}}let w=Ep(a);for(let U=0;U<w;U++){let H=Lh(n,U),Q=Lh(a,U),Ie=b(Q,H);if(!Ie)return 0;I&=Ie}if(!h){let U=em(n),H=em(a);I&=U||H?Yct(U,H,b):b(ps(n),ps(a))}return I}function Yct(n,a,c){return n&&a&&Uhe(n,a)?n.type===a.type?-1:n.type&&a.type?c(n.type,a.type):0:0}function $ct(n){let a;for(let c of n)if(!(c.flags&131072)){let p=zy(c);if(a??(a=p),p===c||p!==a)return!1}return!0}function j4e(n){return _u(n,(a,c)=>a|(c.flags&1048576?j4e(c.types):c.flags),0)}function Qct(n){if(n.length===1)return n[0];let a=ie?Zi(n,p=>Ac(p,h=>!(h.flags&98304))):n,c=$ct(a)?pi(a):Zct(a);return a===n?c:i9(c,j4e(n)&98304)}function Zct(n){let a=_u(n,(c,p)=>E2(c,p)?p:c);return Vn(n,c=>c===a||E2(c,a))?a:_u(n,(c,p)=>TS(c,p)?p:c)}function edt(n){return _u(n,(a,c)=>TS(c,a)?c:a)}function nm(n){return!!(Hr(n)&4)&&(n.target===es||n.target===Va)}function A2(n){return!!(Hr(n)&4)&&n.target===Va}function HT(n){return nm(n)||Ka(n)}function n9(n){return nm(n)&&!A2(n)||Ka(n)&&!n.target.readonly}function r9(n){return nm(n)?rl(n)[0]:void 0}function Bv(n){return nm(n)||!(n.flags&98304)&&aa(n,Gp)}function b_e(n){return n9(n)||!(n.flags&98305)&&aa(n,bd)}function T_e(n){if(!(Hr(n)&4)||!(Hr(n.target)&3))return;if(Hr(n)&33554432)return Hr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(Hr(a)&1){let h=Nm(a);if(h&&h.expression.kind!==80&&h.expression.kind!==212)return}let c=Qm(a);if(c.length!==1||Y_(n.symbol).size)return;let p=et(a.typeParameters)?io(c[0],Kp(a.typeParameters,rl(n).slice(0,a.typeParameters.length))):c[0];return et(rl(n))>et(a.typeParameters)&&(p=qp(p,Ba(rl(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=p}function U4e(n){return ie?n===En:n===B}function vY(n){let a=r9(n);return!!a&&U4e(a)}function I2(n){let a;return Ka(n)||!!Ea(n,"0")||Bv(n)&&!!(a=_n(n,"length"))&&Sp(a,c=>!!(c.flags&256))}function bY(n){return Bv(n)||I2(n)}function tdt(n,a){let c=_n(n,""+a);if(c)return c;if(Sp(n,Ka))return K4e(n,a,O.noUncheckedIndexedAccess?_e:void 0)}function ndt(n){return!(n.flags&240544)}function Nh(n){return!!(n.flags&109472)}function H4e(n){let a=y_(n);return a.flags&2097152?vt(a.types,Nh):Nh(a)}function rdt(n){return n.flags&2097152&&hn(n.types,Nh)||n}function P4(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Vn(n.types,Nh):Nh(n)}function zy(n){return n.flags&1056?BX(n):n.flags&402653312?gt:n.flags&256?Bt:n.flags&2048?gr:n.flags&512?jt:n.flags&1048576?idt(n):n}function idt(n){let a=`B${pd(n)}`;return Bu(a)??Rm(a,Tl(n,zy))}function S_e(n){return n.flags&402653312?gt:n.flags&288?Bt:n.flags&2048?gr:n.flags&512?jt:n.flags&1048576?Tl(n,S_e):n}function qT(n){return n.flags&1056&&vS(n)?BX(n):n.flags&128&&vS(n)?gt:n.flags&256&&vS(n)?Bt:n.flags&2048&&vS(n)?gr:n.flags&512&&vS(n)?jt:n.flags&1048576?Tl(n,qT):n}function q4e(n){return n.flags&8192?Qt:n.flags&1048576?Tl(n,q4e):n}function E_e(n,a){return p$(n,a)||(n=q4e(qT(n))),Du(n)}function odt(n,a,c){if(n&&Nh(n)){let p=a?c?t8(a):a:void 0;n=E_e(n,p)}return n}function A_e(n,a,c,p){if(n&&Nh(n)){let h=a?jv(c,a,p):void 0;n=E_e(n,h)}return n}function Ka(n){return!!(Hr(n)&4&&n.target.objectFlags&8)}function u0(n){return Ka(n)&&!!(n.target.combinedFlags&8)}function J4e(n){return u0(n)&&n.target.elementFlags.length===1}function TY(n){return x2(n,n.target.fixedLength)}function K4e(n,a,c){return Tl(n,p=>{let h=p,b=TY(h);return b?c&&a>=Vhe(h.target)?pi([b,c]):b:_e})}function adt(n){let a=TY(n);return a&&Yd(a)}function x2(n,a,c=0,p=!1,h=!1){let b=Fv(n)-c;if(a<b){let I=rl(n),w=[];for(let U=a;U<b;U++){let H=I[U];w.push(n.target.elementFlags[U]&8?Jp(H,Bt):H)}return p?Ma(w):pi(w,h?0:1)}}function sdt(n,a){return Fv(n)===Fv(a)&&Vn(n.target.elementFlags,(c,p)=>(c&12)===(a.target.elementFlags[p]&12))}function X4e({value:n}){return n.base10Value==="0"}function Y4e(n){return Ac(n,a=>Mh(a,4194304))}function ldt(n){return Tl(n,cdt)}function cdt(n){return n.flags&4?pC:n.flags&8?QP:n.flags&64?fC:n===Jn||n===tr||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&X4e(n)?n:yn}function i9(n,a){let c=a&~n.flags&98304;return c===0?n:pi(c===32768?[n,_e]:c===65536?[n,Xt]:[n,_e,Xt])}function p0(n,a=!1){C.assert(ie);let c=a?te:_e;return n===c||n.flags&1048576&&n.types[0]===c?n:pi([n,c])}function ddt(n){return Eu||(Eu=wC("NonNullable",524288,void 0)||ne),Eu!==ne?LC(Eu,[n]):Ma([n,Ra])}function By(n){return ie?AA(n,2097152):n}function $4e(n){return ie?pi([n,xt]):n}function SY(n){return ie?LY(n,xt):n}function EY(n,a,c){return c?NN(a)?p0(n):$4e(n):n}function L4(n,a){return i6(a)?By(n):eu(a)?SY(n):n}function Gy(n,a){return Ce&&a?LY(n,Ae):n}function k4(n){return n===Ae||!!(n.flags&1048576)&&n.types[0]===Ae}function AY(n){return Ce?LY(n,Ae):rm(n,524288)}function udt(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function IY(n){let a=Hr(n);return n.flags&2097152?Vn(n.types,IY):!!(n.symbol&&(n.symbol.flags&7040)!==0&&!(n.symbol.flags&32)&&!M$(n))||!!(a&4194304)||!!(a&1024&&IY(n.source))}function TA(n,a){let c=ja(n.flags,n.escapedName,Wl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);let p=Jr(n).nameType;return p&&(c.links.nameType=p),c}function pdt(n,a){let c=da();for(let p of Ov(n)){let h=_r(p),b=a(h);c.set(p.escapedName,b===h?p:TA(p,b))}return c}function w4(n){if(!(Gv(n)&&Hr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,p=pdt(n,w4),h=bl(c.symbol,p,c.callSignatures,c.constructSignatures,c.indexInfos);return h.flags=c.flags,h.objectFlags|=c.objectFlags&-8193,n.regularType=h,h}function Q4e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function Z4e(n){if(!n.siblings){let a=[];for(let c of Z4e(n.parent))if(Gv(c)){let p=mS(c,n.propertyName);p&&IA(_r(p),h=>{a.push(h)})}n.siblings=a}return n.siblings}function fdt(n){if(!n.resolvedProperties){let a=new Map;for(let c of Z4e(n))if(Gv(c)&&!(Hr(c)&2097152))for(let p of bs(c))a.set(p.escapedName,p);n.resolvedProperties=Co(a.values())}return n.resolvedProperties}function mdt(n,a){if(!(n.flags&4))return n;let c=_r(n),p=a&&Q4e(a,n.escapedName,void 0),h=I_e(c,p);return h===c?n:TA(n,h)}function hdt(n){let a=le.get(n.escapedName);if(a)return a;let c=TA(n,te);return c.flags|=16777216,le.set(n.escapedName,c),c}function _dt(n,a){let c=da();for(let h of Ov(n))c.set(h.escapedName,mdt(h,a));if(a)for(let h of fdt(a))c.has(h.escapedName)||c.set(h.escapedName,hdt(h));let p=bl(n.symbol,c,ae,ae,Zi(Xd(n),h=>Vg(h.keyType,Xp(h.type),h.isReadonly,h.declaration,h.components)));return p.objectFlags|=Hr(n)&266240,p}function Xp(n){return I_e(n,void 0)}function I_e(n,a){if(Hr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=Ue;else if(Gv(n))c=_dt(n,a);else if(n.flags&1048576){let p=a||Q4e(void 0,void 0,n.types),h=Zi(n.types,b=>b.flags&98304?b:I_e(b,p));c=pi(h,vt(h,Fy)?2:1)}else n.flags&2097152?c=Ma(Zi(n.types,Xp)):HT(n)&&(c=Ly(n.target,Zi(rl(n),Xp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function xY(n){var a;let c=!1;if(Hr(n)&65536){if(n.flags&1048576)if(vt(n.types,Fy))c=!0;else for(let p of n.types)c||(c=xY(p));else if(HT(n))for(let p of rl(n))c||(c=xY(p));else if(Gv(n))for(let p of Ov(n)){let h=_r(p);if(Hr(h)&65536&&(c=xY(h),!c)){let b=(a=p.declarations)==null?void 0:a.find(I=>{var w;return((w=I.symbol.valueDeclaration)==null?void 0:w.parent)===n.symbol.valueDeclaration});b&&(Qe(b,f.Object_literal_s_property_0_implicitly_has_an_1_type,uo(p),ar(Xp(h))),c=!0)}}}return c}function JT(n,a,c){let p=ar(Xp(a));if(Ir(n)&&!SM(Wn(n),O))return;let h;switch(n.kind){case 227:case 173:case 172:h=ve?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 170:let b=n;if(He(b.name)){let I=FS(b.name);if((kI(b.parent)||Bm(b.parent)||k_(b.parent))&&b.parent.parameters.includes(b)&&(_t(b,b.name.escapedText,788968,void 0,!0)||I&&pV(I))){let w="arg"+b.parent.parameters.indexOf(b),U=ws(b.name)+(b.dotDotDotToken?"[]":"");qm(ve,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,w,U);return}}h=n.dotDotDotToken?ve?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:ve?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 209:if(h=f.Binding_element_0_implicitly_has_an_1_type,!ve)return;break;case 318:Qe(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,p);return;case 324:ve&&bD(n.parent)&&Qe(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,p);return;case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(ve&&!n.name){c===3?Qe(n,f.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,p):Qe(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,p);return}h=ve?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 201:ve&&Qe(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:h=ve?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}qm(ve,n,h,ws(Oo(n)),p)}function gdt(n,a){let c=qY(n);if(!c)return!0;let p=ps(c),h=dc(n);switch(a){case 1:return h&1?p=jv(1,p,!!(h&2))??p:h&2&&(p=jy(p)??p),VT(p);case 3:let b=jv(0,p,!!(h&2));return!!b&&VT(b);case 2:let I=jv(2,p,!!(h&2));return!!I&&VT(I)}return!1}function RY(n,a,c){r(()=>{ve&&Hr(a)&65536&&(!c||Ms(n)&&gdt(n,c))&&(xY(a)||JT(n,a,c))})}function x_e(n,a,c){let p=Ep(n),h=Ep(a),b=K4(n),I=K4(a),w=I?h-1:h,U=b?w:Math.min(p,w),H=BT(n);if(H){let Q=BT(a);Q&&c(H,Q)}for(let Q=0;Q<U;Q++)c(Lh(n,Q),Lh(a,Q));I&&c(C9(n,U,uA(I)&&!im(I,b_e)),I)}function R_e(n,a,c){let p=em(a);if(p){let b=em(n);if(b&&Uhe(b,p)&&b.type&&p.type){c(b.type,p.type);return}}let h=ps(a);f0(h)&&c(ps(n),h)}function O4(n,a,c,p){return D_e(n.map(N_e),a,c,p||c_e)}function e8e(n,a=0){return n&&D_e(Vt(n.inferences,t8e),n.signature,n.flags|a,n.compareTypes)}function D_e(n,a,c,p){let h={inferences:n,signature:a,flags:c,compareTypes:p,mapper:$s,nonFixingMapper:$s};return h.mapper=ydt(h),h.nonFixingMapper=vdt(h),h}function ydt(n){return i_e(Vt(n.inferences,a=>a.typeParameter),Vt(n.inferences,(a,c)=>()=>(a.isFixed||(bdt(n),DY(n.inferences),a.isFixed=!0),W_e(n,c))))}function vdt(n){return i_e(Vt(n.inferences,a=>a.typeParameter),Vt(n.inferences,(a,c)=>()=>W_e(n,c)))}function DY(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function C_e(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function bdt(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let p=a.kind===175?o6e(a,2):Uu(a,2);p&&Hg(n.inferences,c,p)}n.intraExpressionInferenceSites=void 0}}function N_e(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function t8e(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 Tdt(n){let a=Un(n.inferences,qC);return a.length?D_e(Vt(a,t8e),n.signature,n.flags,n.compareTypes):void 0}function M_e(n){return n&&n.mapper}function f0(n){let a=Hr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!n8e(n)&&(a&4&&(n.node||vt(rl(n),f0))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!n8e(n)&&vt(n.types,f0));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function n8e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=al(n.aliasSymbol,266);return!!(a&&Dn(a.parent,c=>c.kind===308?!0:c.kind===268?!1:"quit"))}return!1}function W4(n,a,c=0){return!!(n===a||n.flags&3145728&&vt(n.types,p=>W4(p,a,c))||c<3&&n.flags&16777216&&(W4(c0(n),a,c+1)||W4(d0(n),a,c+1)))}function Sdt(n,a){let c=em(n);return c?!!c.type&&W4(c.type,a):W4(ps(n),a)}function Edt(n){let a=da();IA(n,p=>{if(!(p.flags&128))return;let h=Cl(p.value),b=ja(4,h);b.links.type=Ue,p.symbol&&(b.declarations=p.symbol.declarations,b.valueDeclaration=p.symbol.valueDeclaration),a.set(h,b)});let c=n.flags&4?[Vg(gt,Ra,!1)]:ae;return bl(void 0,a,ae,ae,c)}function r8e(n,a,c){let p=n.id+","+a.id+","+c.id;if(Pd.has(p))return Pd.get(p);let h=Adt(n,a,c);return Pd.set(p,h),h}function P_e(n){return!(Hr(n)&262144)||Gv(n)&&vt(bs(n),a=>P_e(_r(a)))||Ka(n)&&vt(gS(n),P_e)}function Adt(n,a,c){if(!(Gg(n,gt)||bs(n).length!==0&&P_e(n)))return;if(nm(n)){let h=CY(rl(n)[0],a,c);return h?Yd(h,A2(n)):void 0}if(Ka(n)){let h=Vt(gS(n),I=>CY(I,a,c));if(!Vn(h,I=>!!I))return;let b=$_(a)&4?Zi(n.target.elementFlags,I=>I&2?1:I):n.target.elementFlags;return Z_(h,b,n.target.readonly,n.target.labeledElementDeclarations)}let p=_c(1040,void 0);return p.source=n,p.mappedType=a,p.constraintType=c,p}function Idt(n){let a=Jr(n);return a.type||(a.type=CY(n.links.propertyType,n.links.mappedType,n.links.constraintType)||Nt),a.type}function xdt(n,a,c){let p=Jp(c.type,Zm(a)),h=Bg(a),b=N_e(p);return Hg([b],n,h),i8e(b)||Nt}function CY(n,a,c){let p=n.id+","+a.id+","+c.id;if(vh.has(p))return vh.get(p)||Nt;gT.push(n),GE.push(a);let h=yT;$x(n,gT,gT.length,2)&&(yT|=1),$x(a,GE,GE.length,2)&&(yT|=2);let b;return yT!==3&&(b=xdt(n,a,c)),gT.pop(),GE.pop(),yT=h,vh.set(p,b),b}function*L_e(n,a,c,p){let h=bs(a);for(let b of h)if(!wwe(b)&&(c||!(b.flags&16777216||Wl(b)&48))){let I=Ea(n,b.escapedName);if(!I)yield b;else if(p){let w=_r(b);if(w.flags&109472){let U=_r(I);U.flags&1||Du(U)===Du(w)||(yield b)}}}}function k_e(n,a,c,p){return C8(L_e(n,a,c,p))}function Rdt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!(a.target.combinedFlags&12)&&(!!(n.target.combinedFlags&12)||a.target.fixedLength<n.target.fixedLength)}function Ddt(n,a){return Ka(n)&&Ka(a)?Rdt(n,a):!!k_e(n,a,!1,!0)&&!!k_e(a,n,!1,!1)}function i8e(n){return n.candidates?pi(n.candidates,2):n.contraCandidates?Ma(n.contraCandidates):void 0}function w_e(n){return!!Vr(n).skipDirectInference}function o8e(n){return!!(n.symbol&&vt(n.symbol.declarations,w_e))}function Cdt(n,a){let c=n.texts[0],p=a.texts[0],h=n.texts[n.texts.length-1],b=a.texts[a.texts.length-1],I=Math.min(c.length,p.length),w=Math.min(h.length,b.length);return c.slice(0,I)!==p.slice(0,I)||h.slice(h.length-w)!==b.slice(b.length-w)}function a8e(n,a){if(n==="")return!1;let c=+n;return isFinite(c)&&(!a||""+c===n)}function Ndt(n){return q5(MV(n))}function NY(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return aa(n,a);if(a.flags&268435456){let c=[];for(;a.flags&268435456;)c.unshift(a.symbol),a=a.type;return _u(c,(h,b)=>Jx(b,h),n)===n&&NY(n,a)}return!1}function s8e(n,a){if(a.flags&2097152)return Vn(a.types,c=>c===fa||s8e(n,c));if(a.flags&4||aa(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&a8e(c,!1)||a.flags&64&&BW(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&NY(n,a)||a.flags&134217728&&MY(n,a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&aa(n.types[0],a)}return!1}function l8e(n,a){return n.flags&128?c8e([n.value],ae,a):n.flags&134217728?$p(n.texts,a.texts)?Vt(n.types,(c,p)=>aa(y_(c),y_(a.types[p]))?c:Mdt(c)):c8e(n.texts,n.types,a):void 0}function MY(n,a){let c=l8e(n,a);return!!c&&Vn(c,(p,h)=>s8e(p,a.types[h]))}function Mdt(n){return n.flags&402653317?n:mA(["",""],[n])}function c8e(n,a,c){let p=n.length-1,h=n[0],b=n[p],I=c.texts,w=I.length-1,U=I[0],H=I[w];if(p===0&&h.length<U.length+H.length||!h.startsWith(U)||!b.endsWith(H))return;let Q=b.slice(0,b.length-H.length),Ie=[],Te=0,Ze=U.length;for(let $t=1;$t<w;$t++){let Tn=I[$t];if(Tn.length>0){let nr=Te,yr=Ze;for(;yr=Tt(nr).indexOf(Tn,yr),!(yr>=0);){if(nr++,nr===n.length)return;yr=0}Dt(nr,yr),Ze+=Tn.length}else if(Ze<Tt(Te).length)Dt(Te,Ze+1);else if(Te<p)Dt(Te+1,0);else return}return Dt(p,Tt(p).length),Ie;function Tt($t){return $t<p?n[$t]:Q}function Dt($t,Tn){let nr=$t===Te?Tp(Tt($t).slice(Ze,Tn)):mA([n[Te].slice(Ze),...n.slice(Te+1,$t),Tt($t).slice(0,Tn)],a.slice(Te,$t));Ie.push(nr),Te=$t,Ze=Tn}}function Hg(n,a,c,p=0,h=!1){let b=!1,I,w=2048,U,H,Q,Ie=0;Te(a,c);function Te(qn,rr){if(!(!f0(rr)||kC(rr))){if(qn===It||qn===Ot){let Hi=I;I=qn,Te(rr,rr),I=Hi;return}if(qn.aliasSymbol&&qn.aliasSymbol===rr.aliasSymbol){if(qn.aliasTypeArguments){let Hi=Jr(qn.aliasSymbol).typeParameters,vr=Q_(Hi),wo=Wv(qn.aliasTypeArguments,Hi,vr,Ir(qn.aliasSymbol.valueDeclaration)),ys=Wv(rr.aliasTypeArguments,Hi,vr,Ir(qn.aliasSymbol.valueDeclaration));nr(wo,ys,F4e(qn.aliasSymbol))}return}if(qn===rr&&qn.flags&3145728){for(let Hi of qn.types)Te(Hi,Hi);return}if(rr.flags&1048576){let[Hi,vr]=Tn(qn.flags&1048576?qn.types:[qn],rr.types,Pdt),[wo,ys]=Tn(Hi,vr,Ldt);if(ys.length===0)return;if(rr=pi(ys),wo.length===0){Ze(qn,rr,1);return}qn=pi(wo)}else if(rr.flags&2097152&&!Vn(rr.types,oY)&&!(qn.flags&1048576)){let[Hi,vr]=Tn(qn.flags&2097152?qn.types:[qn],rr.types,Ug);if(Hi.length===0||vr.length===0)return;qn=Ma(Hi),rr=Ma(vr)}if(rr.flags&41943040){if(kC(rr))return;rr=Oy(rr)}if(rr.flags&8650752){if(o8e(qn))return;let Hi=vn(rr);if(Hi){if(Hr(qn)&262144||qn===Sr)return;if(!Hi.isFixed){let wo=I||qn;if(wo===Ot)return;(Hi.priority===void 0||p<Hi.priority)&&(Hi.candidates=void 0,Hi.contraCandidates=void 0,Hi.topLevel=!0,Hi.priority=p),p===Hi.priority&&(h&&!b?jn(Hi.contraCandidates,wo)||(Hi.contraCandidates=Bn(Hi.contraCandidates,wo),DY(n)):jn(Hi.candidates,wo)||(Hi.candidates=Bn(Hi.candidates,wo),DY(n))),!(p&128)&&rr.flags&262144&&Hi.topLevel&&!W4(c,rr)&&(Hi.topLevel=!1,DY(n))}w=Math.min(w,p);return}let vr=wy(rr,!1);if(vr!==rr)Te(qn,vr);else if(rr.flags&8388608){let wo=wy(rr.indexType,!1);if(wo.flags&465829888){let ys=a4e(wy(rr.objectType,!1),wo,!1);ys&&ys!==rr&&Te(qn,ys)}}}if(Hr(qn)&4&&Hr(rr)&4&&(qn.target===rr.target||nm(qn)&&nm(rr))&&!(qn.node&&rr.node))nr(rl(qn),rl(rr),g_e(qn.target));else if(qn.flags&4194304&&rr.flags&4194304)yr(qn.type,rr.type);else if((P4(qn)||qn.flags&4)&&rr.flags&4194304){let Hi=Edt(qn);Tt(Hi,rr.type,256)}else if(qn.flags&8388608&&rr.flags&8388608)Te(qn.objectType,rr.objectType),Te(qn.indexType,rr.indexType);else if(qn.flags&268435456&&rr.flags&268435456)qn.symbol===rr.symbol&&Te(qn.type,rr.type);else if(qn.flags&33554432)Te(qn.baseType,rr),Ze(Mhe(qn),rr,4);else if(rr.flags&16777216)$t(qn,rr,ii);else if(rr.flags&3145728)fi(qn,rr.types,rr.flags);else if(qn.flags&1048576){let Hi=qn.types;for(let vr of Hi)Te(vr,rr)}else if(rr.flags&134217728)zi(qn,rr);else{if(qn=Mm(qn),cp(qn)&&cp(rr)&&$t(qn,rr,Ko),!(p&512&&qn.flags&467927040)){let Hi=Ru(qn);if(Hi!==qn&&!(Hi.flags&2621440))return Te(Hi,rr);qn=Hi}qn.flags&2621440&&$t(qn,rr,fs)}}}function Ze(qn,rr,Hi){let vr=p;p|=Hi,Te(qn,rr),p=vr}function Tt(qn,rr,Hi){let vr=p;p|=Hi,yr(qn,rr),p=vr}function Dt(qn,rr,Hi,vr){let wo=p;p|=vr,fi(qn,rr,Hi),p=wo}function $t(qn,rr,Hi){let vr=qn.id+","+rr.id,wo=U&&U.get(vr);if(wo!==void 0){w=Math.min(w,wo);return}(U||(U=new Map)).set(vr,-1);let ys=w;w=2048;let il=Ie;(H??(H=[])).push(qn),(Q??(Q=[])).push(rr),$x(qn,H,H.length,2)&&(Ie|=1),$x(rr,Q,Q.length,2)&&(Ie|=2),Ie!==3?Hi(qn,rr):w=-1,Q.pop(),H.pop(),Ie=il,U.set(vr,w),w=Math.min(w,ys)}function Tn(qn,rr,Hi){let vr,wo;for(let ys of rr)for(let il of qn)Hi(il,ys)&&(Te(il,ys),vr=$g(vr,il),wo=$g(wo,ys));return[vr?Un(qn,ys=>!jn(vr,ys)):qn,wo?Un(rr,ys=>!jn(wo,ys)):rr]}function nr(qn,rr,Hi){let vr=qn.length<rr.length?qn.length:rr.length;for(let wo=0;wo<vr;wo++)wo<Hi.length&&(Hi[wo]&7)===2?yr(qn[wo],rr[wo]):Te(qn[wo],rr[wo])}function yr(qn,rr){h=!h,Te(qn,rr),h=!h}function Sn(qn,rr){K||p&1024?yr(qn,rr):Te(qn,rr)}function vn(qn){if(qn.flags&8650752){for(let rr of n)if(qn===rr.typeParameter)return rr}}function Er(qn){let rr;for(let Hi of qn){let vr=Hi.flags&2097152&&hn(Hi.types,wo=>!!vn(wo));if(!vr||rr&&vr!==rr)return;rr=vr}return rr}function fi(qn,rr,Hi){let vr=0;if(Hi&1048576){let wo,ys=qn.flags&1048576?qn.types:[qn],il=new Array(ys.length),md=!1;for(let Xa of rr)if(vn(Xa))wo=Xa,vr++;else for(let lc=0;lc<ys.length;lc++){let gc=w;w=2048,Te(ys[lc],Xa),w===p&&(il[lc]=!0),md=md||w===-1,w=Math.min(w,gc)}if(vr===0){let Xa=Er(rr);Xa&&Ze(qn,Xa,1);return}if(vr===1&&!md){let Xa=Ki(ys,(lc,gc)=>il[gc]?void 0:lc);if(Xa.length){Te(pi(Xa),wo);return}}}else for(let wo of rr)vn(wo)?vr++:Te(qn,wo);if(Hi&2097152?vr===1:vr>0)for(let wo of rr)vn(wo)&&Ze(qn,wo,1)}function oo(qn,rr,Hi){if(Hi.flags&1048576||Hi.flags&2097152){let vr=!1;for(let wo of Hi.types)vr=oo(qn,rr,wo)||vr;return vr}if(Hi.flags&4194304){let vr=vn(Hi.type);if(vr&&!vr.isFixed&&!o8e(qn)){let wo=r8e(qn,rr,Hi);wo&&Ze(wo,vr.typeParameter,Hr(qn)&262144?16:8)}return!0}if(Hi.flags&262144){Ze(v_(qn,qn.pattern?2:0),Hi,32);let vr=dA(Hi);if(vr&&oo(qn,rr,vr))return!0;let wo=Vt(bs(qn),_r),ys=Vt(Xd(qn),il=>il!==ro?il.type:yn);return Te(pi(so(wo,ys)),Bg(rr)),!0}return!1}function ii(qn,rr){if(qn.flags&16777216)Te(qn.checkType,rr.checkType),Te(qn.extendsType,rr.extendsType),Te(c0(qn),c0(rr)),Te(d0(qn),d0(rr));else{let Hi=[c0(rr),d0(rr)];Dt(qn,Hi,rr.flags,h?64:0)}}function zi(qn,rr){let Hi=l8e(qn,rr),vr=rr.types;if(Hi||Vn(rr.texts,wo=>wo.length===0))for(let wo=0;wo<vr.length;wo++){let ys=Hi?Hi[wo]:yn,il=vr[wo];if(ys.flags&128&&il.flags&8650752){let md=vn(il),Xa=md?Ld(md.typeParameter):void 0;if(Xa&&!wr(Xa)){let lc=Xa.flags&1048576?Xa.types:[Xa],gc=_u(lc,(Ts,Cf)=>Ts|Cf.flags,0);if(!(gc&4)){let Ts=ys.value;gc&296&&!a8e(Ts,!0)&&(gc&=-297),gc&2112&&!BW(Ts,!0)&&(gc&=-2113);let Cf=_u(lc,(Sl,tc)=>tc.flags&gc?Sl.flags&4?Sl:tc.flags&4?ys:Sl.flags&134217728?Sl:tc.flags&134217728&&MY(ys,tc)?ys:Sl.flags&268435456?Sl:tc.flags&268435456&&Ts===n4e(tc.symbol,Ts)?ys:Sl.flags&128?Sl:tc.flags&128&&tc.value===Ts?tc:Sl.flags&8?Sl:tc.flags&8?Ch(+Ts):Sl.flags&32?Sl:tc.flags&32?Ch(+Ts):Sl.flags&256?Sl:tc.flags&256&&tc.value===+Ts?tc:Sl.flags&64?Sl:tc.flags&64?Ndt(Ts):Sl.flags&2048?Sl:tc.flags&2048&&R1(tc.value)===Ts?tc:Sl.flags&16?Sl:tc.flags&16?Ts==="true"?ft:Ts==="false"?tr:jt:Sl.flags&512?Sl:tc.flags&512&&tc.intrinsicName===Ts?tc:Sl.flags&32768?Sl:tc.flags&32768&&tc.intrinsicName===Ts?tc:Sl.flags&65536?Sl:tc.flags&65536&&tc.intrinsicName===Ts?tc:Sl:Sl,yn);if(!(Cf.flags&131072)){Te(Cf,il);continue}}}}Te(ys,il)}}function Ko(qn,rr){Te(xf(qn),xf(rr)),Te(Bg(qn),Bg(rr));let Hi=wv(qn),vr=wv(rr);Hi&&vr&&Te(Hi,vr)}function fs(qn,rr){var Hi,vr;if(Hr(qn)&4&&Hr(rr)&4&&(qn.target===rr.target||nm(qn)&&nm(rr))){nr(rl(qn),rl(rr),g_e(qn.target));return}if(cp(qn)&&cp(rr)&&Ko(qn,rr),Hr(rr)&32&&!rr.declaration.nameType){let wo=xf(rr);if(oo(qn,rr,wo))return}if(!Ddt(qn,rr)){if(HT(qn)){if(Ka(rr)){let wo=Fv(qn),ys=Fv(rr),il=rl(rr),md=rr.target.elementFlags;if(Ka(qn)&&sdt(qn,rr)){for(let gc=0;gc<ys;gc++)Te(rl(qn)[gc],il[gc]);return}let Xa=Ka(qn)?Math.min(qn.target.fixedLength,rr.target.fixedLength):0,lc=Math.min(Ka(qn)?E4(qn.target,3):0,rr.target.combinedFlags&12?E4(rr.target,3):0);for(let gc=0;gc<Xa;gc++)Te(rl(qn)[gc],il[gc]);if(!Ka(qn)||wo-Xa-lc===1&&qn.target.elementFlags[Xa]&4){let gc=rl(qn)[Xa];for(let Ts=Xa;Ts<ys-lc;Ts++)Te(md[Ts]&8?Yd(gc):gc,il[Ts])}else{let gc=ys-Xa-lc;if(gc===2){if(md[Xa]&md[Xa+1]&8){let Ts=vn(il[Xa]);Ts&&Ts.impliedArity!==void 0&&(Te(S2(qn,Xa,lc+wo-Ts.impliedArity),il[Xa]),Te(S2(qn,Xa+Ts.impliedArity,lc),il[Xa+1]))}else if(md[Xa]&8&&md[Xa+1]&4){let Ts=(Hi=vn(il[Xa]))==null?void 0:Hi.typeParameter,Cf=Ts&&Ld(Ts);if(Cf&&Ka(Cf)&&!(Cf.target.combinedFlags&12)){let Sl=Cf.target.fixedLength;Te(S2(qn,Xa,wo-(Xa+Sl)),il[Xa]),Te(x2(qn,Xa+Sl,lc),il[Xa+1])}}else if(md[Xa]&4&&md[Xa+1]&8){let Ts=(vr=vn(il[Xa+1]))==null?void 0:vr.typeParameter,Cf=Ts&&Ld(Ts);if(Cf&&Ka(Cf)&&!(Cf.target.combinedFlags&12)){let Sl=Cf.target.fixedLength,tc=wo-E4(rr.target,3),am=tc-Sl,B2=Z_(rl(qn).slice(am,tc),qn.target.elementFlags.slice(am,tc),!1,qn.target.labeledElementDeclarations&&qn.target.labeledElementDeclarations.slice(am,tc));Te(x2(qn,Xa,lc+Sl),il[Xa]),Te(B2,il[Xa+1])}}}else if(gc===1&&md[Xa]&8){let Ts=rr.target.elementFlags[ys-1]&2,Cf=S2(qn,Xa,lc);Ze(Cf,il[Xa],Ts?2:0)}else if(gc===1&&md[Xa]&4){let Ts=x2(qn,Xa,lc);Ts&&Te(Ts,il[Xa])}}for(let gc=0;gc<lc;gc++)Te(rl(qn)[wo-gc-1],il[ys-gc-1]);return}if(nm(rr)){fu(qn,rr);return}}fo(qn,rr),dl(qn,rr,0),dl(qn,rr,1),fu(qn,rr)}}function fo(qn,rr){let Hi=Ov(rr);for(let vr of Hi){let wo=Ea(qn,vr.escapedName);wo&&!vt(wo.declarations,w_e)&&Te(Gy(_r(wo),!!(wo.flags&16777216)),Gy(_r(vr),!!(vr.flags&16777216)))}}function dl(qn,rr,Hi){let vr=na(qn,Hi),wo=vr.length;if(wo>0){let ys=na(rr,Hi),il=ys.length;for(let md=0;md<il;md++){let Xa=Math.max(wo-il+md,0);Kl(wst(vr[Xa]),S4(ys[md]))}}}function Kl(qn,rr){if(!(qn.flags&64)){let Hi=b,vr=rr.declaration?rr.declaration.kind:0;b=b||vr===175||vr===174||vr===177,x_e(qn,rr,Sn),b=Hi}R_e(qn,rr,Te)}function fu(qn,rr){let Hi=Hr(qn)&Hr(rr)&32?8:0,vr=Xd(rr);if(IY(qn))for(let wo of vr){let ys=[];for(let il of bs(qn))if(Ux(qx(il,8576),wo.keyType)){let md=_r(il);ys.push(il.flags&16777216?AY(md):md)}for(let il of Xd(qn))Ux(il.keyType,wo.keyType)&&ys.push(il.type);ys.length&&Ze(pi(ys),wo.type,Hi)}for(let wo of vr){let ys=y4(qn,wo.keyType);ys&&Ze(ys.type,wo.type,Hi)}}}function Pdt(n,a){return a===Ae?n===a:Ug(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function Ldt(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function kdt(n){let a=ju(n);return!!a&&ec(a.flags&16777216?hhe(a):a,406978556)}function Gv(n){return!!(Hr(n)&128)}function O_e(n){return!!(Hr(n)&16512)}function wdt(n){if(n.length>1){let a=Un(n,O_e);if(a.length){let c=pi(a,2);return so(Un(n,p=>!O_e(p)),[c])}}return n}function Odt(n){return n.priority&416?Ma(n.contraCandidates):edt(n.contraCandidates)}function Wdt(n,a){let c=wdt(n.candidates),p=kdt(n.typeParameter)||uA(n.typeParameter),h=!p&&n.topLevel&&(n.isFixed||!Sdt(a,n.typeParameter)),b=p?Zi(c,Du):h?Zi(c,qT):c,I=n.priority&416?pi(b,2):Qct(b);return Xp(I)}function W_e(n,a){let c=n.inferences[a];if(!c.inferredType){let p,h;if(n.signature){let I=c.candidates?Wdt(c,n.signature):void 0,w=c.contraCandidates?Odt(c):void 0;if(I||w){let U=I&&(!w||!(I.flags&131073)&&vt(c.contraCandidates,H=>aa(I,H))&&Vn(n.inferences,H=>H!==c&&ju(H.typeParameter)!==c.typeParameter||Vn(H.candidates,Q=>aa(Q,I))));p=U?I:w,h=U?w:I}else if(n.flags&1)p=wt;else{let U=hS(c.typeParameter);U&&(p=io(U,T4e(dct(n,a),n.nonFixingMapper)))}}else p=i8e(c);c.inferredType=p||F_e(!!(n.flags&2));let b=ju(c.typeParameter);if(b){let I=io(b,n.nonFixingMapper);(!p||!n.compareTypes(p,qp(I,p)))&&(c.inferredType=h&&n.compareTypes(h,qp(I,h))?h:I)}ipt()}return c.inferredType}function F_e(n){return n?Ue:Nt}function z_e(n){let a=[];for(let c=0;c<n.inferences.length;c++)a.push(W_e(n,c));return a}function d8e(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 O.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 O.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 O.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 O.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(Zo(n.parent))return f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===305?f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:f.Cannot_find_name_0}}function pu(n){let a=Vr(n);return a.resolvedSymbol||(a.resolvedSymbol=!Ol(n)&&_t(n,n,1160127,d8e(n),!yW(n),!1)||ne),a.resolvedSymbol}function B_e(n){return!!(n.flags&33554432||Dn(n,a=>gd(a)||ym(a)||ku(a)))}function o9(n,a,c,p){switch(n.kind){case 80:if(!S1(n)){let I=pu(n);return I!==ne?`${p?ss(p):"-1"}|${pd(a)}|${pd(c)}|${Ta(I)}`:void 0}case 110:return`0|${p?ss(p):"-1"}|${pd(a)}|${pd(c)}`;case 236:case 218:return o9(n.expression,a,c,p);case 167:let h=o9(n.left,a,c,p);return h&&`${h}.${n.right.escapedText}`;case 212:case 213:let b=SA(n);if(b!==void 0){let I=o9(n.expression,a,c,p);return I&&`${I}.${b}`}if(Ws(n)&&He(n.argumentExpression)){let I=pu(n.argumentExpression);if(Qx(I)||B4(I)&&!z4(I)){let w=o9(n.expression,a,c,p);return w&&`${w}.@${Ta(I)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${ss(n)}#${pd(a)}`}}function Ad(n,a){switch(a.kind){case 218:case 236:return Ad(n,a.expression);case 227:return id(a)&&Ad(n,a.left)||Nr(a)&&a.operatorToken.kind===28&&Ad(n,a.right)}switch(n.kind){case 237:return a.kind===237&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return S1(n)?a.kind===110:a.kind===80&&pu(n)===pu(a)||(yi(a)||Ha(a))&&Et(pu(n))===Wr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 236:case 218:case 239:return Ad(n.expression,a);case 212:case 213:let c=SA(n);if(c!==void 0){let p=Ks(a)?SA(a):void 0;if(p!==void 0)return p===c&&Ad(n.expression,a.expression)}if(Ws(n)&&Ws(a)&&He(n.argumentExpression)&&He(a.argumentExpression)){let p=pu(n.argumentExpression);if(p===pu(a.argumentExpression)&&(Qx(p)||B4(p)&&!z4(p)))return Ad(n.expression,a.expression)}break;case 167:return Ks(a)&&n.right.escapedText===SA(a)&&Ad(n.left,a.expression);case 227:return Nr(n)&&n.operatorToken.kind===28&&Ad(n.right,a)}return!1}function SA(n){if(qr(n))return n.name.escapedText;if(Ws(n))return Fdt(n);if(Ha(n)){let a=Mv(n);return a?Cl(a):void 0}if(to(n))return""+n.parent.parameters.indexOf(n)}function G_e(n){return n.flags&8192?n.escapedName:n.flags&384?Cl(""+n.value):void 0}function Fdt(n){return df(n.argumentExpression)?Cl(n.argumentExpression.text):Ds(n.argumentExpression)?zdt(n.argumentExpression):void 0}function zdt(n){let a=Gl(n,111551,!0);if(!a||!(Qx(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let p=a0(c);if(p){let h=G_e(p);if(h!==void 0)return h}if(US(c)&&Dy(c,n)){let h=ik(c);if(h){let b=Qo(c.parent)?Wg(c):wd(h);return b&&G_e(b)}if(py(c))return oI(c.name)}}function u8e(n,a){for(;Ks(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function EA(n,a){for(;eu(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function R2(n,a){if(n&&n.flags&1048576){let c=iOe(n,a);if(c&&Wl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!VT(_r(c))),!!c.links.isDiscriminantProperty}return!1}function p8e(n,a){let c;for(let p of n)if(R2(a,p.escapedName)){if(c){c.push(p);continue}c=[p]}return c}function Bdt(n,a){let c=new Map,p=0;for(let h of n)if(h.flags&61603840){let b=_n(h,a);if(b){if(!P4(b))return;let I=!1;IA(b,w=>{let U=pd(Du(w)),H=c.get(U);H?H!==Nt&&(c.set(U,Nt),I=!0):c.set(U,h)}),I||p++}}return p>=10&&p*2>=n.length?c:void 0}function a9(n){let a=n.types;if(!(a.length<10||Hr(n)&32768||Io(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=Je(a,h=>h.flags&59506688?Je(bs(h),b=>Nh(_r(b))?b.escapedName:void 0):void 0),p=c&&Bdt(a,c);n.keyPropertyName=p?c:"",n.constituentMap=p}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function s9(n,a){var c;let p=(c=n.constituentMap)==null?void 0:c.get(pd(Du(a)));return p!==Nt?p:void 0}function f8e(n,a){let c=a9(n),p=c&&_n(a,c);return p&&s9(n,p)}function Gdt(n,a){let c=a9(n),p=c&&hn(a.properties,b=>b.symbol&&b.kind===304&&b.symbol.escapedName===c&&_9(b.initializer)),h=p&&O9(p.initializer);return h&&s9(n,h)}function m8e(n,a){return Ad(n,a)||u8e(n,a)}function h8e(n,a){if(n.arguments){for(let c of n.arguments)if(m8e(a,c)||EA(c,a))return!0}return!!(n.expression.kind===212&&m8e(a,n.expression.expression))}function V_e(n){return n.id<=0&&(n.id=DSe,DSe++),n.id}function Vdt(n,a){if(!(n.flags&1048576))return aa(n,a);for(let c of n.types)if(aa(c,a))return!0;return!1}function jdt(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${pd(n)},${pd(a)}`;return Bu(c)??Rm(c,Udt(n,a))}function Udt(n,a){let c=Ac(n,h=>Vdt(a,h)),p=a.flags&512&&vS(a)?Tl(c,Xx):c;return aa(a,p)?p:n}function j_e(n){if(Hr(n)&256)return!1;let a=Dh(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&TS(n,er))}function FC(n,a){return U_e(n,a)&a}function Mh(n,a){return FC(n,a)!==0}function U_e(n,a){n.flags&467927040&&(n=Ld(n)||Nt);let c=n.flags;if(c&268435460)return ie?16317953:16776705;if(c&134217856){let p=c&128&&n.value==="";return ie?p?12123649:7929345:p?12582401:16776705}if(c&40)return ie?16317698:16776450;if(c&256){let p=n.value===0;return ie?p?12123394:7929090:p?12582146:16776450}if(c&64)return ie?16317188:16775940;if(c&2048){let p=X4e(n);return ie?p?12122884:7928580:p?12581636:16775940}return c&16?ie?16316168:16774920:c&528?ie?n===tr||n===Jn?12121864:7927560:n===tr||n===Jn?12580616:16774920:c&524288?(a&(ie?83427327:83886079))===0?0:Hr(n)&16&&Fy(n)?ie?83427327:83886079:j_e(n)?ie?7880640:16728e3:ie?7888800:16736160:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?ie?7925520:16772880:c&67108864?ie?7888800:16736160:c&131072?0:c&1048576?_u(n.types,(p,h)=>p|U_e(h,a),0):c&2097152?Hdt(n,a):83886079}function Hdt(n,a){let c=ec(n,402784252),p=0,h=134217727;for(let b of n.types)if(!(c&&b.flags&524288)){let I=U_e(b,a);p|=I,h&=I}return p&8256|h&134209471}function rm(n,a){return Ac(n,c=>Mh(c,a))}function AA(n,a){let c=H_e(rm(ie&&n.flags&2?qa:n,a));if(ie)switch(a){case 524288:return _8e(c,65536,131072,33554432,Xt);case 1048576:return _8e(c,131072,65536,16777216,_e);case 2097152:case 4194304:return Tl(c,p=>Mh(p,262144)?ddt(p):p)}return c}function _8e(n,a,c,p,h){let b=FC(n,50528256);if(!(b&a))return n;let I=pi([Ra,h]);return Tl(n,w=>Mh(w,a)?Ma([w,!(b&p)&&Mh(w,c)?I:Ra]):w)}function H_e(n){return n===qa?Nt:n}function q_e(n,a){return a?pi([Is(n),wd(a)]):n}function g8e(n,a){var c;let p=ky(a);if(!Gf(p))return nt;let h=Vf(p);return _n(n,h)||F4((c=Hx(n,h))==null?void 0:c.type)||nt}function y8e(n,a){return Sp(n,I2)&&tdt(n,a)||F4(Vv(65,n,_e,void 0))||nt}function F4(n){return n&&(O.noUncheckedIndexedAccess?pi([n,Ae]):n)}function v8e(n){return Yd(Vv(65,n,_e,void 0)||nt)}function qdt(n){return n.parent.kind===210&&J_e(n.parent)||n.parent.kind===304&&J_e(n.parent.parent)?q_e(l9(n),n.right):wd(n.right)}function J_e(n){return n.parent.kind===227&&n.parent.left===n||n.parent.kind===251&&n.parent.initializer===n}function Jdt(n,a){return y8e(l9(n),n.elements.indexOf(a))}function Kdt(n){return v8e(l9(n.parent))}function b8e(n){return g8e(l9(n.parent),n.name)}function Xdt(n){return q_e(b8e(n),n.objectAssignmentInitializer)}function l9(n){let{parent:a}=n;switch(a.kind){case 250:return gt;case 251:return j9(a)||nt;case 227:return qdt(a);case 221:return _e;case 210:return Jdt(a,n);case 231:return Kdt(a);case 304:return b8e(a);case 305:return Xdt(a)}return nt}function Ydt(n){let a=n.parent,c=S8e(a.parent),p=a.kind===207?g8e(c,n.propertyName||n.name):n.dotDotDotToken?v8e(c):y8e(c,a.elements.indexOf(n));return q_e(p,n.initializer)}function T8e(n){return Vr(n).resolvedType||wd(n)}function $dt(n){return n.initializer?T8e(n.initializer):n.parent.parent.kind===250?gt:n.parent.parent.kind===251&&j9(n.parent.parent)||nt}function S8e(n){return n.kind===261?$dt(n):Ydt(n)}function Qdt(n){return n.kind===261&&n.initializer&&Lv(n.initializer)||n.kind!==209&&n.parent.kind===227&&Lv(n.parent.right)}function ES(n){switch(n.kind){case 218:return ES(n.expression);case 227:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return ES(n.left);case 28:return ES(n.right)}}return n}function E8e(n){let{parent:a}=n;return a.kind===218||a.kind===227&&a.operatorToken.kind===64&&a.left===n||a.kind===227&&a.operatorToken.kind===28&&a.right===n?E8e(a):n}function Zdt(n){return n.kind===297?Du(wd(n.expression)):yn}function PY(n){let a=Vr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(Zdt(c))}return a.switchTypes}function A8e(n){if(vt(n.caseBlock.clauses,c=>c.kind===297&&!cs(c.expression)))return;let a=[];for(let c of n.caseBlock.clauses){let p=c.kind===297?c.expression.text:void 0;a.push(p&&!jn(a,p)?p:void 0)}return a}function eut(n,a){return n.flags&1048576?!Je(n.types,c=>!jn(a,c)):jn(a,n)}function D2(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&tut(n,a))}function tut(n,a){if(n.flags&1048576){for(let c of n.types)if(!jg(a.types,c))return!1;return!0}return n.flags&1056&&BX(n)===a?!0:jg(a.types,n)}function IA(n,a){return n.flags&1048576?Je(n.types,a):a(n)}function im(n,a){return n.flags&1048576?vt(n.types,a):a(n)}function Sp(n,a){return n.flags&1048576?Vn(n.types,a):a(n)}function nut(n,a){return n.flags&3145728?Vn(n.types,a):a(n)}function Ac(n,a){if(n.flags&1048576){let c=n.types,p=Un(c,a);if(p===c)return n;let h=n.origin,b;if(h&&h.flags&1048576){let I=h.types,w=Un(I,U=>!!(U.flags&1048576)||a(U));if(I.length-w.length===c.length-p.length){if(w.length===1)return w[0];b=jhe(1048576,w)}}return Hhe(p,n.objectFlags&16809984,void 0,void 0,b)}return n.flags&131072||a(n)?n:yn}function LY(n,a){return Ac(n,c=>c!==a)}function rut(n){return n.flags&1048576?n.types.length:1}function Tl(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);let p=n.origin,h=p&&p.flags&1048576?p.types:n.types,b,I=!1;for(let w of h){let U=w.flags&1048576?Tl(w,a,c):a(w);I||(I=w!==U),U&&(b?b.push(U):b=[U])}return I?b&&pi(b,c?0:1):n}function I8e(n,a,c,p){return n.flags&1048576&&c?pi(Vt(n.types,a),1,c,p):Tl(n,a)}function C2(n,a){return Ac(n,c=>(c.flags&a)!==0)}function x8e(n,a){return ec(n,134217804)&&ec(a,402655616)?Tl(n,c=>c.flags&4?C2(a,402653316):hA(c)&&!ec(a,402653188)?C2(a,128):c.flags&8?C2(a,264):c.flags&64?C2(a,2112):c):n}function zC(n){return n.flags===0}function xA(n){return n.flags===0?n.type:n}function BC(n,a){return a?{flags:0,type:n.flags&131072?wt:n}:n}function iut(n){let a=_c(256);return a.elementType=n,a}function K_e(n){return Ft[n.id]||(Ft[n.id]=iut(n))}function R8e(n,a){let c=w4(zy(O9(a)));return D2(c,n.elementType)?n:K_e(pi([n.elementType,c]))}function out(n){return n.flags&131072?ld:Yd(n.flags&1048576?pi(n.types,2):n)}function aut(n){return n.finalArrayType||(n.finalArrayType=out(n.elementType))}function c9(n){return Hr(n)&256?aut(n):n}function sut(n){return Hr(n)&256?n.elementType:yn}function lut(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(Hr(c)&256))return!1;a=!0}return a}function D8e(n){let a=E8e(n),c=a.parent,p=qr(c)&&(c.name.escapedText==="length"||c.parent.kind===214&&He(c.name)&&wG(c.name)),h=c.kind===213&&c.expression===a&&c.parent.kind===227&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!yb(c.parent)&&kd(wd(c.argumentExpression),296);return p||h}function cut(n){return(yi(n)||Po(n)||Tu(n)||to(n))&&!!(Rc(n)||Ir(n)&&Yy(n)&&n.initializer&&Ab(n.initializer)&&Pp(n.initializer))}function kY(n,a){if(n=hc(n),n.flags&8752)return _r(n);if(n.flags&7){if(Wl(n)&262144){let p=n.links.syntheticOrigin;if(p&&kY(p))return _r(n)}let c=n.valueDeclaration;if(c){if(cut(c))return _r(n);if(yi(c)&&c.parent.parent.kind===251){let p=c.parent.parent,h=d9(p.expression,void 0);if(h){let b=p.awaitModifier?15:13;return Vv(b,h,_e,void 0)}}a&&pa(a,Ar(c,f._0_needs_an_explicit_type_annotation,uo(n)))}}}function d9(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:let c=Et(pu(n));return kY(c,a);case 110:return Nut(n);case 108:return BY(n);case 212:{let p=d9(n.expression,a);if(p){let h=n.name,b;if(eo(h)){if(!p.symbol)return;b=Ea(p,yk(p.symbol,h.escapedText))}else b=Ea(p,h.escapedText);return b&&kY(b,a)}return}case 218:return d9(n.expression,a)}}function u9(n){let a=Vr(n),c=a.effectsSignature;if(c===void 0){let p;if(Nr(n)){let I=VC(n.right);p=Kge(I)}else n.parent.kind===245?p=d9(n.expression,void 0):n.expression.kind!==108&&(eu(n)?p=T_(L4(_o(n.expression),n.expression),n.expression):p=VC(n.expression));let h=na(p&&Ru(p)||Nt,0),b=h.length===1&&!h[0].typeParameters?h[0]:vt(h,C8e)?UC(n):void 0;c=a.effectsSignature=b&&C8e(b)?b:si}return c===si?void 0:c}function C8e(n){return!!(em(n)||n.declaration&&(MC(n.declaration)||Nt).flags&131072)}function dut(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=ds(a.expression);return Ks(c)?ds(c.expression):void 0}function uut(n){let a=Dn(n,FB),c=Wn(n),p=Vh(c,a.statements.pos);ns.add(Fc(c,p.start,p.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function p9(n){let a=wY(n,!1);return _i=n,Do=a,a}function f9(n){let a=ds(n,!0);return a.kind===97||a.kind===227&&(a.operatorToken.kind===56&&(f9(a.left)||f9(a.right))||a.operatorToken.kind===57&&f9(a.left)&&f9(a.right))}function wY(n,a){for(;;){if(n===_i)return Do;let c=n.flags;if(c&4096){if(!a){let p=V_e(n),h=Sx[p];return h!==void 0?h:Sx[p]=wY(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let p=u9(n.node);if(p){let h=em(p);if(h&&h.kind===3&&!h.type){let b=n.node.arguments[h.parameterIndex];if(b&&f9(b))return!1}if(ps(p).flags&131072)return!1}n=n.antecedent}else{if(c&4)return vt(n.antecedent,p=>wY(p,!1));if(c&8){let p=n.antecedent;if(p===void 0||p.length===0)return!1;n=p[0]}else if(c&128){let p=n.node;if(p.clauseStart===p.clauseEnd&&TWe(p.switchStatement))return!1;n=n.antecedent}else if(c&1024){_i=void 0;let p=n.node.target,h=p.antecedent;p.antecedent=n.node.antecedents;let b=wY(n.antecedent,!1);return p.antecedent=h,b}else return!(c&1)}}}function OY(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let p=V_e(n),h=tS[p];return h!==void 0?h:tS[p]=OY(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Vn(n.antecedent,p=>OY(p,!1));if(c&8)n=n.antecedent[0];else if(c&1024){let p=n.node.target,h=p.antecedent;p.antecedent=n.node.antecedents;let b=OY(n.antecedent,!1);return p.antecedent=h,b}else return!!(c&1)}}}function X_e(n){switch(n.kind){case 110:return!0;case 80:if(!S1(n)){let c=pu(n);return Qx(c)||B4(c)&&!z4(c)||!!c.valueDeclaration&&Us(c.valueDeclaration)}break;case 212:case 213:return X_e(n.expression)&&wh(Vr(n).resolvedSymbol||ne);case 207:case 208:let a=qh(n.parent);return to(a)||Nre(a)?!Y_e(a):yi(a)&&c8(a)}return!1}function Vy(n,a,c=a,p,h=(b=>(b=ni(n,HR))==null?void 0:b.flowNode)()){let b,I=!1,w=0;if(Oi)return nt;if(!h)return a;Ro++;let U=lr,H=xA(Te(h));lr=U;let Q=Hr(H)&256&&D8e(n)?ld:c9(H);if(Q===xn||n.parent&&n.parent.kind===236&&!(Q.flags&131072)&&rm(Q,2097152).flags&131072)return a;return Q;function Ie(){return I?b:(I=!0,b=o9(n,a,c,p))}function Te(Ht){var Nn;if(w===2e3)return(Nn=xr)==null||Nn.instant(xr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Ht.id}),Oi=!0,uut(n),nt;w++;let $n;for(;;){let hr=Ht.flags;if(hr&4096){for(let gi=U;gi<lr;gi++)if(jb[gi]===Ht)return w--,Tx[gi];$n=Ht}let Gr;if(hr&16){if(Gr=Tt(Ht),!Gr){Ht=Ht.antecedent;continue}}else if(hr&512){if(Gr=$t(Ht),!Gr){Ht=Ht.antecedent;continue}}else if(hr&96)Gr=nr(Ht);else if(hr&128)Gr=yr(Ht);else if(hr&12){if(Ht.antecedent.length===1){Ht=Ht.antecedent[0];continue}Gr=hr&4?Sn(Ht):vn(Ht)}else if(hr&256){if(Gr=Tn(Ht),!Gr){Ht=Ht.antecedent;continue}}else if(hr&1024){let gi=Ht.node.target,Pa=gi.antecedent;gi.antecedent=Ht.node.antecedents,Gr=Te(Ht.antecedent),gi.antecedent=Pa}else if(hr&2){let gi=Ht.node;if(gi&&gi!==p&&n.kind!==212&&n.kind!==213&&!(n.kind===110&&gi.kind!==220)){Ht=gi.flowNode;continue}Gr=c}else Gr=o8(a);return $n&&(jb[lr]=$n,Tx[lr]=Gr,lr++),w--,Gr}}function Ze(Ht){let Nn=Ht.node;return $_e(Nn.kind===261||Nn.kind===209?S8e(Nn):l9(Nn),n)}function Tt(Ht){let Nn=Ht.node;if(Ad(n,Nn)){if(!p9(Ht))return xn;if(gb(Nn)===2){let hr=Te(Ht.antecedent);return BC(zy(xA(hr)),zC(hr))}if(a===Rt||a===ld){if(Qdt(Nn))return K_e(yn);let hr=qT(Ze(Ht));return aa(hr,a)?hr:bd}let $n=RG(Nn)?zy(a):a;return $n.flags&1048576?jdt($n,Ze(Ht)):$n}if(u8e(n,Nn)){if(!p9(Ht))return xn;if(yi(Nn)&&(Ir(Nn)||c8(Nn))){let $n=XN(Nn);if($n&&($n.kind===219||$n.kind===220))return Te(Ht.antecedent)}return a}if(yi(Nn)&&Nn.parent.parent.kind===250&&(Ad(n,Nn.parent.parent.expression)||EA(Nn.parent.parent.expression,n)))return gge(c9(xA(Te(Ht.antecedent))))}function Dt(Ht,Nn){let $n=ds(Nn,!0);if($n.kind===97)return xn;if($n.kind===227){if($n.operatorToken.kind===56)return Dt(Dt(Ht,$n.left),$n.right);if($n.operatorToken.kind===57)return pi([Dt(Ht,$n.left),Dt(Ht,$n.right)])}return of(Ht,$n,!0)}function $t(Ht){let Nn=u9(Ht.node);if(Nn){let $n=em(Nn);if($n&&($n.kind===2||$n.kind===3)){let hr=Te(Ht.antecedent),Gr=c9(xA(hr)),gi=$n.type?G2(Gr,$n,Ht.node,!0):$n.kind===3&&$n.parameterIndex>=0&&$n.parameterIndex<Ht.node.arguments.length?Dt(Gr,Ht.node.arguments[$n.parameterIndex]):Gr;return gi===Gr?hr:BC(gi,zC(hr))}if(ps(Nn).flags&131072)return xn}}function Tn(Ht){if(a===Rt||a===ld){let Nn=Ht.node,$n=Nn.kind===214?Nn.expression.expression:Nn.left.expression;if(Ad(n,ES($n))){let hr=Te(Ht.antecedent),Gr=xA(hr);if(Hr(Gr)&256){let gi=Gr;if(Nn.kind===214)for(let Pa of Nn.arguments)gi=R8e(gi,Pa);else{let Pa=O9(Nn.left.argumentExpression);kd(Pa,296)&&(gi=R8e(gi,Nn.right))}return gi===Gr?hr:BC(gi,zC(hr))}return hr}}}function nr(Ht){let Nn=Te(Ht.antecedent),$n=xA(Nn);if($n.flags&131072)return Nn;let hr=(Ht.flags&32)!==0,Gr=c9($n),gi=of(Gr,Ht.node,hr);return gi===Gr?Nn:BC(gi,zC(Nn))}function yr(Ht){let Nn=ds(Ht.node.switchStatement.expression),$n=Te(Ht.antecedent),hr=xA($n);if(Ad(n,Nn))hr=il(hr,Ht.node);else if(Nn.kind===222&&Ad(n,Nn.expression))hr=lc(hr,Ht.node);else if(Nn.kind===112)hr=gc(hr,Ht.node);else{ie&&(EA(Nn,n)?hr=ys(hr,Ht.node,gi=>!(gi.flags&163840)):Nn.kind===222&&EA(Nn.expression,n)&&(hr=ys(hr,Ht.node,gi=>!(gi.flags&131072||gi.flags&128&&gi.value==="undefined"))));let Gr=oo(Nn,hr);Gr&&(hr=Ko(hr,Gr,Ht.node))}return BC(hr,zC($n))}function Sn(Ht){let Nn=[],$n=!1,hr=!1,Gr;for(let gi of Ht.antecedent){if(!Gr&&gi.flags&128&&gi.node.clauseStart===gi.node.clauseEnd){Gr=gi;continue}let Pa=Te(gi),Oa=xA(Pa);if(Oa===a&&a===c)return Oa;Pf(Nn,Oa),D2(Oa,c)||($n=!0),zC(Pa)&&(hr=!0)}if(Gr){let gi=Te(Gr),Pa=xA(gi);if(!(Pa.flags&131072)&&!jn(Nn,Pa)&&!TWe(Gr.node.switchStatement)){if(Pa===a&&a===c)return Pa;Nn.push(Pa),D2(Pa,c)||($n=!0),zC(gi)&&(hr=!0)}}return BC(Er(Nn,$n?2:1),hr)}function vn(Ht){let Nn=V_e(Ht),$n=mC[Nn]||(mC[Nn]=new Map),hr=Ie();if(!hr)return a;let Gr=$n.get(hr);if(Gr)return Gr;for(let Zc=Lr;Zc<Yn;Zc++)if(BE[Zc]===Ht&&bx[Zc]===hr&&eS[Zc].length)return BC(Er(eS[Zc],1),!0);let gi=[],Pa=!1,Oa;for(let Zc of Ht.antecedent){let mu;if(!Oa)mu=Oa=Te(Zc);else{BE[Yn]=Ht,bx[Yn]=hr,eS[Yn]=gi,Yn++;let $T=Qi;Qi=void 0,mu=Te(Zc),Qi=$T,Yn--;let QT=$n.get(hr);if(QT)return QT}let dp=xA(mu);if(Pf(gi,dp),D2(dp,c)||(Pa=!0),dp===a)break}let Gs=Er(gi,Pa?2:1);return zC(Oa)?BC(Gs,!0):($n.set(hr,Gs),Gs)}function Er(Ht,Nn){if(lut(Ht))return K_e(pi(Vt(Ht,sut)));let $n=H_e(pi(Zi(Ht,c9),Nn));return $n!==a&&$n.flags&a.flags&1048576&&$p($n.types,a.types)?a:$n}function fi(Ht){if(Qo(n)||Ab(n)||fm(n)){if(He(Ht)){let Nn=pu(Ht),$n=Et(Nn).valueDeclaration;if($n&&(Ha($n)||to($n))&&n===$n.parent&&!$n.initializer&&!$n.dotDotDotToken)return $n}}else if(Ks(Ht)){if(Ad(n,Ht.expression))return Ht}else if(He(Ht)){let Nn=pu(Ht);if(Qx(Nn)){let $n=Nn.valueDeclaration;if(yi($n)&&!$n.type&&$n.initializer&&Ks($n.initializer)&&Ad(n,$n.initializer.expression))return $n.initializer;if(Ha($n)&&!$n.initializer){let hr=$n.parent.parent;if(yi(hr)&&!hr.type&&hr.initializer&&(He(hr.initializer)||Ks(hr.initializer))&&Ad(n,hr.initializer))return $n}}}}function oo(Ht,Nn){if(a.flags&1048576||Nn.flags&1048576){let $n=fi(Ht);if($n){let hr=SA($n);if(hr){let Gr=a.flags&1048576&&D2(Nn,a)?a:Nn;if(R2(Gr,hr))return $n}}}}function ii(Ht,Nn,$n){let hr=SA(Nn);if(hr===void 0)return Ht;let Gr=eu(Nn),gi=ie&&(Gr||Pre(Nn))&&ec(Ht,98304),Pa=_n(gi?rm(Ht,2097152):Ht,hr);if(!Pa)return Ht;Pa=gi&&Gr?p0(Pa):Pa;let Oa=$n(Pa);return Ac(Ht,Gs=>{let Zc=ei(Gs,hr)||Nt;return!(Zc.flags&131072)&&!(Oa.flags&131072)&&Y5(Oa,Zc)})}function zi(Ht,Nn,$n,hr,Gr){if(($n===37||$n===38)&&Ht.flags&1048576){let gi=a9(Ht);if(gi&&gi===SA(Nn)){let Pa=s9(Ht,wd(hr));if(Pa)return $n===(Gr?37:38)?Pa:Nh(_n(Pa,gi)||Nt)?LY(Ht,Pa):Ht}}return ii(Ht,Nn,gi=>Hi(gi,$n,hr,Gr))}function Ko(Ht,Nn,$n){if($n.clauseStart<$n.clauseEnd&&Ht.flags&1048576&&a9(Ht)===SA(Nn)){let hr=PY($n.switchStatement).slice($n.clauseStart,$n.clauseEnd),Gr=pi(Vt(hr,gi=>s9(Ht,gi)||Nt));if(Gr!==Nt)return Gr}return ii(Ht,Nn,hr=>il(hr,$n))}function fs(Ht,Nn,$n){if(Ad(n,Nn))return AA(Ht,$n?4194304:8388608);ie&&$n&&EA(Nn,n)&&(Ht=AA(Ht,2097152));let hr=oo(Nn,Ht);return hr?ii(Ht,hr,Gr=>rm(Gr,$n?4194304:8388608)):Ht}function fo(Ht,Nn,$n){let hr=Ea(Ht,Nn);return hr?!!(hr.flags&16777216||Wl(hr)&48)||$n:!!Hx(Ht,Nn)||!$n}function dl(Ht,Nn,$n){let hr=Vf(Nn);if(im(Ht,gi=>fo(gi,hr,!0)))return Ac(Ht,gi=>fo(gi,hr,$n));if($n){let gi=mlt();if(gi)return Ma([Ht,LC(gi,[Nn,Nt])])}return Ht}function Kl(Ht,Nn,$n,hr,Gr){return Gr=Gr!==($n.kind===112)!=(hr!==38&&hr!==36),of(Ht,Nn,Gr)}function fu(Ht,Nn,$n){switch(Nn.operatorToken.kind){case 64:case 76:case 77:case 78:return fs(of(Ht,Nn.right,$n),Nn.left,$n);case 35:case 36:case 37:case 38:let hr=Nn.operatorToken.kind,Gr=ES(Nn.left),gi=ES(Nn.right);if(Gr.kind===222&&cs(gi))return vr(Ht,Gr,hr,gi,$n);if(gi.kind===222&&cs(Gr))return vr(Ht,gi,hr,Gr,$n);if(Ad(n,Gr))return Hi(Ht,hr,gi,$n);if(Ad(n,gi))return Hi(Ht,hr,Gr,$n);ie&&(EA(Gr,n)?Ht=rr(Ht,hr,gi,$n):EA(gi,n)&&(Ht=rr(Ht,hr,Gr,$n)));let Pa=oo(Gr,Ht);if(Pa)return zi(Ht,Pa,hr,gi,$n);let Oa=oo(gi,Ht);if(Oa)return zi(Ht,Oa,hr,Gr,$n);if(Ts(Gr))return Cf(Ht,hr,gi,$n);if(Ts(gi))return Cf(Ht,hr,Gr,$n);if(wN(gi)&&!Ks(Gr))return Kl(Ht,Gr,gi,hr,$n);if(wN(Gr)&&!Ks(gi))return Kl(Ht,gi,Gr,hr,$n);break;case 104:return Sl(Ht,Nn,$n);case 103:if(eo(Nn.left))return qn(Ht,Nn,$n);let Gs=ES(Nn.right);if(k4(Ht)&&Ks(n)&&Ad(n.expression,Gs)){let Zc=wd(Nn.left);if(Gf(Zc)&&SA(n)===Vf(Zc))return rm(Ht,$n?524288:65536)}if(Ad(n,Gs)){let Zc=wd(Nn.left);if(Gf(Zc))return dl(Ht,Zc,$n)}break;case 28:return of(Ht,Nn.right,$n);case 56:return $n?of(of(Ht,Nn.left,!0),Nn.right,!0):pi([of(Ht,Nn.left,!1),of(Ht,Nn.right,!1)]);case 57:return $n?pi([of(Ht,Nn.left,!0),of(Ht,Nn.right,!0)]):of(of(Ht,Nn.left,!1),Nn.right,!1)}return Ht}function qn(Ht,Nn,$n){let hr=ES(Nn.right);if(!Ad(n,hr))return Ht;C.assertNode(Nn.left,eo);let Gr=ZY(Nn.left);if(Gr===void 0)return Ht;let gi=Gr.parent,Pa=Wc(C.checkDefined(Gr.valueDeclaration,"should always have a declaration"))?_r(gi):qs(gi);return am(Ht,Pa,$n,!0)}function rr(Ht,Nn,$n,hr){let Gr=Nn===35||Nn===37,gi=Nn===35||Nn===36?98304:32768,Pa=wd($n);return Gr!==hr&&Sp(Pa,Gs=>!!(Gs.flags&gi))||Gr===hr&&Sp(Pa,Gs=>!(Gs.flags&(3|gi)))?AA(Ht,2097152):Ht}function Hi(Ht,Nn,$n,hr){if(Ht.flags&1)return Ht;(Nn===36||Nn===38)&&(hr=!hr);let Gr=wd($n),gi=Nn===35||Nn===36;if(Gr.flags&98304){if(!ie)return Ht;let Pa=gi?hr?262144:2097152:Gr.flags&65536?hr?131072:1048576:hr?65536:524288;return AA(Ht,Pa)}if(hr){if(!gi&&(Ht.flags&2||im(Ht,eg))){if(Gr.flags&469893116||eg(Gr))return Gr;if(Gr.flags&524288)return Ln}let Pa=Ac(Ht,Oa=>Y5(Oa,Gr)||gi&&udt(Oa,Gr));return x8e(Pa,Gr)}return Nh(Gr)?Ac(Ht,Pa=>!(H4e(Pa)&&Y5(Pa,Gr))):Ht}function vr(Ht,Nn,$n,hr,Gr){($n===36||$n===38)&&(Gr=!Gr);let gi=ES(Nn.expression);if(!Ad(n,gi)){ie&&EA(gi,n)&&Gr===(hr.text!=="undefined")&&(Ht=AA(Ht,2097152));let Pa=oo(gi,Ht);return Pa?ii(Ht,Pa,Oa=>wo(Oa,hr,Gr)):Ht}return wo(Ht,hr,Gr)}function wo(Ht,Nn,$n){return $n?md(Ht,Nn.text):AA(Ht,iae.get(Nn.text)||32768)}function ys(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr},Gr){return $n!==hr&&Vn(PY(Nn).slice($n,hr),Gr)?rm(Ht,2097152):Ht}function il(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){let Gr=PY(Nn);if(!Gr.length)return Ht;let gi=Gr.slice($n,hr),Pa=$n===hr||jn(gi,yn);if(Ht.flags&2&&!Pa){let mu;for(let dp=0;dp<gi.length;dp+=1){let $T=gi[dp];if($T.flags&469893116)mu!==void 0&&mu.push($T);else if($T.flags&524288)mu===void 0&&(mu=gi.slice(0,dp)),mu.push(Ln);else return Ht}return pi(mu===void 0?gi:mu)}let Oa=pi(gi),Gs=Oa.flags&131072?yn:x8e(Ac(Ht,mu=>Y5(Oa,mu)),Oa);if(!Pa)return Gs;let Zc=Ac(Ht,mu=>!(H4e(mu)&&jn(Gr,mu.flags&32768?_e:Du(rdt(mu)))));return Gs.flags&131072?Zc:pi([Gs,Zc])}function md(Ht,Nn){switch(Nn){case"string":return Xa(Ht,gt,1);case"number":return Xa(Ht,Bt,2);case"bigint":return Xa(Ht,gr,4);case"boolean":return Xa(Ht,jt,8);case"symbol":return Xa(Ht,Qt,16);case"object":return Ht.flags&1?Ht:pi([Xa(Ht,Ln,32),Xa(Ht,Xt,131072)]);case"function":return Ht.flags&1?Ht:Xa(Ht,er,64);case"undefined":return Xa(Ht,_e,65536)}return Xa(Ht,Ln,128)}function Xa(Ht,Nn,$n){return Tl(Ht,hr=>b_(hr,Nn,cl)?Mh(hr,$n)?hr:yn:TS(Nn,hr)?Nn:Mh(hr,$n)?Ma([hr,Nn]):yn)}function lc(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){let Gr=A8e(Nn);if(!Gr)return Ht;let gi=ho(Nn.caseBlock.clauses,Gs=>Gs.kind===298);if($n===hr||gi>=$n&&gi<hr){let Gs=bWe($n,hr,Gr);return Ac(Ht,Zc=>FC(Zc,Gs)===Gs)}let Oa=Gr.slice($n,hr);return pi(Vt(Oa,Gs=>Gs?md(Ht,Gs):yn))}function gc(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){let Gr=ho(Nn.caseBlock.clauses,Oa=>Oa.kind===298),gi=$n===hr||Gr>=$n&&Gr<hr;for(let Oa=0;Oa<$n;Oa++){let Gs=Nn.caseBlock.clauses[Oa];Gs.kind===297&&(Ht=of(Ht,Gs.expression,!1))}if(gi){for(let Oa=hr;Oa<Nn.caseBlock.clauses.length;Oa++){let Gs=Nn.caseBlock.clauses[Oa];Gs.kind===297&&(Ht=of(Ht,Gs.expression,!1))}return Ht}let Pa=Nn.caseBlock.clauses.slice($n,hr);return pi(Vt(Pa,Oa=>Oa.kind===297?of(Ht,Oa.expression,!0):yn))}function Ts(Ht){return(qr(Ht)&&Kr(Ht.name)==="constructor"||Ws(Ht)&&cs(Ht.argumentExpression)&&Ht.argumentExpression.text==="constructor")&&Ad(n,Ht.expression)}function Cf(Ht,Nn,$n,hr){if(hr?Nn!==35&&Nn!==37:Nn!==36&&Nn!==38)return Ht;let Gr=wd($n);if(!Aye(Gr)&&!Rh(Gr))return Ht;let gi=Ea(Gr,"prototype");if(!gi)return Ht;let Pa=_r(gi),Oa=wr(Pa)?void 0:Pa;if(!Oa||Oa===Jt||Oa===er)return Ht;if(wr(Ht))return Oa;return Ac(Ht,Zc=>Gs(Zc,Oa));function Gs(Zc,mu){return Zc.flags&524288&&Hr(Zc)&1||mu.flags&524288&&Hr(mu)&1?Zc.symbol===mu.symbol:TS(Zc,mu)}}function Sl(Ht,Nn,$n){let hr=ES(Nn.left);if(!Ad(n,hr))return $n&&ie&&EA(hr,n)?AA(Ht,2097152):Ht;let Gr=Nn.right,gi=wd(Gr);if(!UT(gi,Jt))return Ht;let Pa=u9(Nn),Oa=Pa&&em(Pa);if(Oa&&Oa.kind===1&&Oa.parameterIndex===0)return am(Ht,Oa.type,$n,!0);if(!UT(gi,er))return Ht;let Gs=Tl(gi,tc);return wr(Ht)&&(Gs===Jt||Gs===er)||!$n&&!(Gs.flags&524288&&!eg(Gs))?Ht:am(Ht,Gs,$n,!0)}function tc(Ht){let Nn=_n(Ht,"prototype");if(Nn&&!wr(Nn))return Nn;let $n=na(Ht,1);return $n.length?pi(Vt($n,hr=>ps(S4(hr)))):Ra}function am(Ht,Nn,$n,hr){let Gr=Ht.flags&1048576?`N${pd(Ht)},${pd(Nn)},${($n?1:0)|(hr?2:0)}`:void 0;return Bu(Gr)??Rm(Gr,B2(Ht,Nn,$n,hr))}function B2(Ht,Nn,$n,hr){if(!$n){if(Ht===Nn)return yn;if(hr)return Ac(Ht,Gs=>!UT(Gs,Nn));Ht=Ht.flags&2?qa:Ht;let Oa=am(Ht,Nn,!0,!1);return H_e(Ac(Ht,Gs=>!D2(Gs,Oa)))}if(Ht.flags&3||Ht===Nn)return Nn;let Gr=hr?UT:TS,gi=Ht.flags&1048576?a9(Ht):void 0,Pa=Tl(Nn,Oa=>{let Gs=gi&&_n(Oa,gi),Zc=Gs&&s9(Ht,Gs),mu=Tl(Zc||Ht,hr?dp=>UT(dp,Oa)?dp:UT(Oa,dp)?Oa:yn:dp=>E2(dp,Oa)?dp:E2(Oa,dp)?Oa:TS(dp,Oa)?dp:TS(Oa,dp)?Oa:yn);return mu.flags&131072?Tl(Ht,dp=>ec(dp,465829888)&&Gr(Oa,Ld(dp)||Nt)?Ma([dp,Oa]):yn):mu});return Pa.flags&131072?TS(Nn,Ht)?Nn:aa(Ht,Nn)?Ht:aa(Nn,Ht)?Nn:Ma([Ht,Nn]):Pa}function d8(Ht,Nn,$n){if(h8e(Nn,n)){let hr=$n||!zS(Nn)?u9(Nn):void 0,Gr=hr&&em(hr);if(Gr&&(Gr.kind===0||Gr.kind===1))return G2(Ht,Gr,Nn,$n)}if(k4(Ht)&&Ks(n)&&qr(Nn.expression)){let hr=Nn.expression;if(Ad(n.expression,ES(hr.expression))&&He(hr.name)&&hr.name.escapedText==="hasOwnProperty"&&Nn.arguments.length===1){let Gr=Nn.arguments[0];if(cs(Gr)&&SA(n)===Cl(Gr.text))return rm(Ht,$n?524288:65536)}}return Ht}function G2(Ht,Nn,$n,hr){if(Nn.type&&!(wr(Ht)&&(Nn.type===Jt||Nn.type===er))){let Gr=dut(Nn,$n);if(Gr){if(Ad(n,Gr))return am(Ht,Nn.type,hr,!1);ie&&EA(Gr,n)&&(hr&&!Mh(Nn.type,65536)||!hr&&Sp(Nn.type,T9))&&(Ht=AA(Ht,2097152));let gi=oo(Gr,Ht);if(gi)return ii(Ht,gi,Pa=>am(Pa,Nn.type,hr,!1))}}return Ht}function of(Ht,Nn,$n){if(i6(Nn)||Nr(Nn.parent)&&(Nn.parent.operatorToken.kind===61||Nn.parent.operatorToken.kind===78)&&Nn.parent.left===Nn)return u8(Ht,Nn,$n);switch(Nn.kind){case 80:if(!Ad(n,Nn)&&A<5){let hr=pu(Nn);if(Qx(hr)){let Gr=hr.valueDeclaration;if(Gr&&yi(Gr)&&!Gr.type&&Gr.initializer&&X_e(n)){A++;let gi=of(Ht,Gr.initializer,$n);return A--,gi}}}case 110:case 108:case 212:case 213:return fs(Ht,Nn,$n);case 214:return d8(Ht,Nn,$n);case 218:case 236:case 239:return of(Ht,Nn.expression,$n);case 227:return fu(Ht,Nn,$n);case 225:if(Nn.operator===54)return of(Ht,Nn.operand,!$n);break}return Ht}function u8(Ht,Nn,$n){if(Ad(n,Nn))return AA(Ht,$n?2097152:262144);let hr=oo(Nn,Ht);return hr?ii(Ht,hr,Gr=>rm(Gr,$n?2097152:262144)):Ht}}function put(n,a){if(n=Et(n),(a.kind===80||a.kind===81)&&(dM(a)&&(a=a.parent),M_(a)&&(!yb(a)||gI(a)))){let c=SY(gI(a)&&a.kind===212?QY(a,void 0,!0):wd(a));if(Et(Vr(a).resolvedSymbol)===n)return c}return P_(a)&&Gh(a.parent)&&fS(a.parent)?wX(a.parent.symbol):nV(a)&&gI(a.parent)?kv(n):xh(n)}function N2(n){return Dn(n.parent,a=>Yo(a)&&!N0(a)||a.kind===269||a.kind===308||a.kind===173)}function fut(n){return(n.lastAssignmentPos!==void 0||z4(n)&&n.lastAssignmentPos!==void 0)&&n.lastAssignmentPos<0}function z4(n){return!N8e(n,void 0)}function N8e(n,a){let c=Dn(n.valueDeclaration,WY);if(!c)return!1;let p=Vr(c);return p.flags&131072||(p.flags|=131072,mut(c)||P8e(c)),!n.lastAssignmentPos||a&&Math.abs(n.lastAssignmentPos)<a.pos}function Y_e(n){return C.assert(yi(n)||to(n)),M8e(n.name)}function M8e(n){return n.kind===80?z4(Wr(n.parent)):vt(n.elements,a=>a.kind!==233&&M8e(a.name))}function mut(n){return!!Dn(n.parent,a=>WY(a)&&!!(Vr(a).flags&131072))}function WY(n){return Ms(n)||Yi(n)}function P8e(n){switch(n.kind){case 80:let a=gb(n);if(a!==0){let h=pu(n),b=a===1||h.lastAssignmentPos!==void 0&&h.lastAssignmentPos<0;if(B4(h)){if(h.lastAssignmentPos===void 0||Math.abs(h.lastAssignmentPos)!==Number.MAX_VALUE){let I=Dn(n,WY),w=Dn(h.valueDeclaration,WY);h.lastAssignmentPos=I===w?hut(n,h.valueDeclaration):Number.MAX_VALUE}b&&h.lastAssignmentPos>0&&(h.lastAssignmentPos*=-1)}}return;case 282:let c=n.parent.parent,p=n.propertyName||n.name;if(!n.isTypeOnly&&!c.isTypeOnly&&!c.moduleSpecifier&&p.kind!==11){let h=Gl(p,111551,!0,!0);if(h&&B4(h)){let b=h.lastAssignmentPos!==void 0&&h.lastAssignmentPos<0?-1:1;h.lastAssignmentPos=b*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}Ri(n)||Jo(n,P8e)}function hut(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:c=n.end}n=n.parent}return c}function Qx(n){return n.flags&3&&(mge(n)&6)!==0}function B4(n){let a=n.valueDeclaration&&qh(n.valueDeclaration);return!!a&&(to(a)||yi(a)&&(O1(a.parent)||L8e(a)))}function L8e(n){return!!(n.parent.flags&1)&&!(I0(n)&32||n.parent.parent.kind===244&&$y(n.parent.parent.parent))}function _ut(n){let a=Vr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!__(n,8))return cA(n.symbol),!0;let c=!!Mh(P2(n,0),16777216);if(!rt())return cA(n.symbol),!0;a.parameterInitializerContainsUndefined??(a.parameterInitializerContainsUndefined=c)}return a.parameterInitializerContainsUndefined}function gut(n,a){return ie&&a.kind===170&&a.initializer&&Mh(n,16777216)&&!_ut(a)?rm(n,524288):n}function yut(n,a){let c=a.parent;return c.kind===212||c.kind===167||c.kind===214&&c.expression===a||c.kind===215&&c.expression===a||c.kind===213&&c.expression===a&&!(im(n,w8e)&&gA(wd(c.argumentExpression)))}function k8e(n){return n.flags&2097152?vt(n.types,k8e):!!(n.flags&465829888&&y_(n).flags&1146880)}function w8e(n){return n.flags&2097152?vt(n.types,w8e):!!(n.flags&465829888&&!ec(y_(n),98304))}function vut(n,a){let c=(He(n)||qr(n)||Ws(n))&&!((ph(n.parent)||_E(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Uu(n,8):Uu(n,void 0));return c&&!VT(c)}function $_e(n,a,c){return kC(n)&&(n=n.baseType),!(c&&c&2)&&im(n,k8e)&&(yut(n,a)||vut(a,c))?Tl(n,y_):n}function O8e(n){return!!Dn(n,a=>{let c=a.parent;return c===void 0?"quit":ll(c)?c.expression===a&&Ds(a):iu(c)?c.name===a||c.propertyName===a:!1})}function Zx(n,a,c,p){if(We&&!(n.flags&33554432&&!Tu(n)&&!Po(n)))switch(a){case 1:return FY(n);case 2:return W8e(n,c,p);case 3:return F8e(n);case 4:return Q_e(n);case 5:return z8e(n);case 6:return B8e(n);case 7:return G8e(n);case 8:return V8e(n);case 0:{if(He(n)&&(M_(n)||Ud(n.parent)||Bc(n.parent)&&n.parent.moduleReference===n)&&q8e(n)){if(PL(n.parent)&&(qr(n.parent)?n.parent.expression:n.parent.left)!==n)return;FY(n);return}if(PL(n)){let h=n;for(;PL(h);){if(Uh(h))return;h=h.parent}return W8e(n)}return ll(n)?F8e(n):nu(n)||Vm(n)?Q_e(n):Bc(n)?KS(n)||A$(n)?B8e(n):void 0:iu(n)?G8e(n):((Ms(n)||Bm(n))&&z8e(n),!O.emitDecoratorMetadata||!F1(n)||!uf(n)||!n.modifiers||!ZL(J,n,n.parent,n.parent.parent)?void 0:V8e(n))}default:C.assertNever(a,`Unhandled reference hint: ${a}`)}}function FY(n){let a=pu(n);a&&a!==ge&&a!==ne&&!S1(n)&&m9(a,n)}function W8e(n,a,c){let p=qr(n)?n.expression:n.left;if(bb(p)||!He(p))return;let h=pu(p);if(!h||h===ne)return;if(gm(O)||Sb(O)&&O8e(n)){m9(h,n);return}let b=c||Vl(p);if(wr(b)||b===wt){m9(h,n);return}let I=a;if(!I&&!c){let w=qr(n)?n.name:n.right,U=eo(w)&&S9(w.escapedText,w),H=gb(n),Q=Ru(H!==0||yge(n)?Xp(b):b);I=eo(w)?U&&e$(Q,U)||void 0:Ea(Q,w.escapedText)}I&&(s8(I)||I.flags&8&&n.parent.kind===307)||m9(h,n)}function F8e(n){if(He(n.expression)){let a=n.expression,c=Et(Gl(a,-1,!0,!0,n));c&&m9(c,a)}}function Q_e(n){if(!YY(n)){let a=ns&&O.jsx===2?f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,c=Hm(n),p=nu(n)?n.tagName:n,h=O.jsx!==1&&O.jsx!==3,b;if(Vm(n)&&c==="null"||(b=_t(p,c,h?111551:111167,a,!0)),b&&(b.isReferenced=-1,We&&b.flags&2097152&&!Ah(b)&&zY(b)),Vm(n)){let I=Wn(n),w=xye(I);if(w){let U=Pu(w).escapedText;_t(p,U,h?111551:111167,a,!0)}}}}function z8e(n){if(G<2&&dc(n)&2){let a=Pp(n);but(a)}}function B8e(n){di(n,32)&&j8e(n)}function G8e(n){if(!n.parent.parent.moduleSpecifier&&!n.isTypeOnly&&!n.parent.parent.isTypeOnly){let a=n.propertyName||n.name;if(a.kind===11)return;let c=_t(a,a.escapedText,2998271,void 0,!0);if(!(c&&(c===ce||c===De||c.declarations&&$y(Pt(c.declarations[0]))))){let p=c&&(c.flags&2097152?ud(c):c);(!p||lp(p)&111551)&&(j8e(n),FY(a))}return}}function V8e(n){if(O.emitDecoratorMetadata){let a=hn(n.modifiers,zc);if(!a)return;switch(Qc(a,16),n.kind){case 264:let c=gg(n);if(c)for(let I of c.parameters)GC(g$(I));break;case 178:case 179:let p=n.kind===178?179:178,h=al(Wr(n),p);GC(fS(n)||h&&fS(h));break;case 175:for(let I of n.parameters)GC(g$(I));GC(Pp(n));break;case 173:GC(Rc(n));break;case 170:GC(g$(n));let b=n.parent;for(let I of b.parameters)GC(g$(I));GC(Pp(b));break}}}function m9(n,a){if(We&&XE(n,111551)&&!fI(a)){let c=ud(n);lp(n,!0)&1160127&&(gm(O)||Sb(O)&&O8e(a)||!s8(Et(c)))&&zY(n)}}function zY(n){C.assert(We);let a=Jr(n);if(!a.referenced){a.referenced=!0;let c=sp(n);if(!c)return C.fail();if(KS(c)&&lp(hc(n))&111551){let p=Pu(c.moduleReference);FY(p)}}}function j8e(n){let a=Wr(n),c=ud(a);c&&(c===ne||lp(a,!0)&111551&&!s8(c))&&zY(a)}function U8e(n,a){if(!n)return;let c=Pu(n),p=(n.kind===80?788968:1920)|2097152,h=_t(c,c.escapedText,p,void 0,!0);if(h&&h.flags&2097152){if(We&&An(h)&&!s8(ud(h))&&!Ah(h))zY(h);else if(a&&gm(O)&&vu(O)>=5&&!An(h)&&!vt(h.declarations,Xy)){let b=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),I=hn(h.declarations||ae,Iv);I&&pa(b,Ar(I,f._0_was_imported_here,Kr(c)))}}}function but(n){U8e(n&&QL(n),!1)}function GC(n){let a=iye(n);a&&Nu(a)&&U8e(a,!0)}function Tut(n,a){var c;let p=_r(n),h=n.valueDeclaration;if(h){if(Ha(h)&&!h.initializer&&!h.dotDotDotToken&&h.parent.elements.length>=2){let b=h.parent.parent,I=qh(b);if(I.kind===261&&RS(I)&6||I.kind===170){let w=Vr(b);if(!(w.flags&4194304)){w.flags|=4194304;let U=Si(b,0),H=U&&Tl(U,y_);if(w.flags&=-4194305,H&&H.flags&1048576&&!(I.kind===170&&Y_e(I))){let Q=h.parent,Ie=Vy(Q,H,H,void 0,a.flowNode);return Ie.flags&131072?yn:i0(h,Ie,!0)}}}}if(to(h)&&!h.type&&!h.initializer&&!h.dotDotDotToken){let b=h.parent;if(b.parameters.length>=2&&dY(b)){let I=V4(b);if(I&&I.parameters.length===1&&au(I)){let w=_2(io(_r(I.parameters[0]),(c=AS(b))==null?void 0:c.nonFixingMapper));if(w.flags&1048576&&Sp(w,Ka)&&!vt(b.parameters,Y_e)){let U=Vy(b,w,w,void 0,a.flowNode),H=b.parameters.indexOf(h)-(T1(b)?1:0);return Jp(U,Ch(H))}}}}}return p}function H8e(n,a){if(S1(n))return;if(a===ge){if(Tge(n,!0)){Qe(n,f.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);return}let b=cf(n);if(b)for(G<2&&(b.kind===220?Qe(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):di(b,1024)&&Qe(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Vr(b).flags|=512;b&&Xs(b);)b=cf(b),b&&(Vr(b).flags|=512);return}let c=Et(a),p=gye(c,n);Iu(p)&&Khe(n,p)&&p.declarations&&Dm(n,p.declarations,n.escapedText);let h=c.valueDeclaration;if(h&&c.flags&32&&ui(h)&&h.name!==n){let b=yu(n,!1,!1);for(;b.kind!==308&&b.parent!==h;)b=yu(b,!1,!1);b.kind!==308&&(Vr(h).flags|=262144,Vr(b).flags|=262144,Vr(n).flags|=536870912)}xut(n,a)}function Sut(n,a){if(S1(n))return h9(n);let c=pu(n);if(c===ne)return nt;if(H8e(n,c),c===ge)return Tge(n)?nt:_r(c);q8e(n)&&Zx(n,1);let p=Et(c),h=p.valueDeclaration,b=h;if(h&&h.kind===209&&jn(xm,h.parent)&&Dn(n,vn=>vn===h.parent))return Sr;let I=Tut(p,n),w=gb(n);if(w){if(!(p.flags&3)&&!(Ir(n)&&p.flags&512)){let vn=p.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:p.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:p.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:p.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:p.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,vn,uo(c)),nt}if(wh(p))return p.flags&3?Qe(n,f.Cannot_assign_to_0_because_it_is_a_constant,uo(c)):Qe(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,uo(c)),nt}let U=p.flags&2097152;if(p.flags&3){if(w===1)return RG(n)?zy(I):I}else if(U)h=sp(c);else return I;if(!h)return I;I=$_e(I,n,a);let H=qh(h).kind===170,Q=N2(h),Ie=N2(n),Te=Ie!==Q,Ze=n.parent&&n.parent.parent&&Ig(n.parent)&&J_e(n.parent.parent),Tt=c.flags&134217728,Dt=I===Rt||I===ld,$t=Dt&&n.parent.kind===236;for(;Ie!==Q&&(Ie.kind===219||Ie.kind===220||k6(Ie))&&(Qx(p)&&I!==ld||B4(p)&&N8e(p,n));)Ie=N2(Ie);let Tn=b&&yi(b)&&!b.initializer&&!b.exclamationToken&&L8e(b)&&!fut(c),nr=H||U||Te&&!Tn||Ze||Tt||Eut(n,h)||I!==Rt&&I!==ld&&(!ie||(I.flags&16387)!==0||fI(n)||B_e(n)||n.parent.kind===282)||n.parent.kind===236||h.kind===261&&h.exclamationToken||h.flags&33554432,yr=$t?_e:nr?H?gut(I,h):I:Dt?_e:p0(I),Sn=$t?By(Vy(n,I,yr,Ie)):Vy(n,I,yr,Ie);if(!D8e(n)&&(I===Rt||I===ld)){if(Sn===Rt||Sn===ld)return ve&&(Qe(Oo(h),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,uo(c),ar(Sn)),Qe(n,f.Variable_0_implicitly_has_an_1_type,uo(c),ar(Sn))),o8(Sn)}else if(!nr&&!WC(I)&&WC(Sn))return Qe(n,f.Variable_0_is_used_before_being_assigned,uo(c)),I;return w?zy(Sn):Sn}function Eut(n,a){if(Ha(a)){let c=Dn(n,Ha);return c&&qh(c)===qh(a)}}function q8e(n){var a;let c=n.parent;if(c){if(qr(c)&&c.expression===n||iu(c)&&c.isTypeOnly)return!1;let p=(a=c.parent)==null?void 0:a.parent;if(p&&fc(p)&&p.isTypeOnly)return!1}return!0}function Aut(n,a){return!!Dn(n,c=>c===a?"quit":Yo(c)||c.parent&&Po(c.parent)&&!Wc(c.parent)&&c.parent.initializer===c)}function Iut(n,a){return Dn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Z_e(n){return Dn(n,a=>!a||OG(a)?"quit":ub(a,!1))}function xut(n,a){if(G>=2||(a.flags&34)===0||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===300)return;let c=sh(a.valueDeclaration),p=Aut(n,c),h=Z_e(c);if(h){if(p){let b=!0;if(H0(c)){let I=w0(a.valueDeclaration,262);if(I&&I.parent===c){let w=Iut(n.parent,c);if(w){let U=Vr(w);U.flags|=8192;let H=U.capturedBlockScopeBindings||(U.capturedBlockScopeBindings=[]);Pf(H,a),w===c.initializer&&(b=!1)}}}b&&(Vr(h).flags|=4096)}if(H0(c)){let b=w0(a.valueDeclaration,262);b&&b.parent===c&&Dut(n,c)&&(Vr(a.valueDeclaration).flags|=65536)}Vr(a.valueDeclaration).flags|=32768}p&&(Vr(a.valueDeclaration).flags|=16384)}function Rut(n,a){let c=Vr(n);return!!c&&jn(c.capturedBlockScopeBindings,Wr(a))}function Dut(n,a){let c=n;for(;c.parent.kind===218;)c=c.parent;let p=!1;if(yb(c))p=!0;else if(c.parent.kind===225||c.parent.kind===226){let h=c.parent;p=h.operator===46||h.operator===47}return p?!!Dn(c,h=>h===a?"quit":h===a.statement):!1}function ege(n,a){if(Vr(n).flags|=2,a.kind===173||a.kind===177){let c=a.parent;Vr(c).flags|=4}else Vr(a).flags|=4}function J8e(n){return JS(n)?n:Yo(n)?void 0:Jo(n,J8e)}function tge(n){let a=Wr(n),c=qs(a);return Py(c)===Le}function K8e(n,a,c){let p=a.parent;v1(p)&&!tge(p)&&HR(n)&&n.flowNode&&!OY(n.flowNode,!1)&&Qe(n,c)}function Cut(n,a){Po(a)&&Wc(a)&&J&&a.initializer&&vL(a.initializer,n.pos)&&uf(a.parent)&&Qe(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function h9(n){let a=fI(n),c=yu(n,!0,!0),p=!1,h=!1;for(c.kind===177&&K8e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===220&&(c=yu(c,!1,!h),p=!0),c.kind===168){c=yu(c,!p,!1),h=!0;continue}break}if(Cut(n,c),h)Qe(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 268:Qe(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:Qe(n,f.this_cannot_be_referenced_in_current_location);break}!a&&p&&G<2&&ege(n,c);let b=nge(n,!0,c);if(xe){let I=_r(De);if(b===I&&p)Qe(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!b){let w=Qe(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Yi(c)){let U=nge(c);U&&U!==I&&pa(w,Ar(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return b||Ue}function nge(n,a=!0,c=yu(n,!1,!1)){let p=Ir(n);if(Yo(c)&&(!oge(n)||T1(c))){let h=kX(c)||p&&Put(c);if(!h){let b=Mut(c);if(p&&b){let I=_o(b).symbol;I&&I.members&&I.flags&16&&(h=qs(I).thisType)}else S_(c)&&(h=qs(os(c.symbol)).thisType);h||(h=rge(c))}if(h)return Vy(n,h)}if(ui(c.parent)){let h=Wr(c.parent),b=ua(c)?_r(h):qs(h).thisType;return Vy(n,b)}if(Yi(c))if(c.commonJsModuleIndicator){let h=Wr(c);return h&&_r(h)}else{if(c.externalModuleIndicator)return _e;if(a)return _r(De)}}function Nut(n){let a=yu(n,!1,!1);if(Yo(a)){let c=Rf(a);if(c.thisParameter)return kY(c.thisParameter)}if(ui(a.parent)){let c=Wr(a.parent);return ua(a)?_r(c):qs(c).thisType}}function Mut(n){if(n.kind===219&&Nr(n.parent)&&oc(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===175&&n.parent.kind===211&&Nr(n.parent.parent)&&oc(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===219&&n.parent.kind===304&&n.parent.parent.kind===211&&Nr(n.parent.parent.parent)&&oc(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===219&&Nc(n.parent)&&He(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Wa(n.parent.parent)&&Zo(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&oc(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Nl(n)&&He(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Wa(n.parent)&&Zo(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&oc(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Put(n){let a=e6(n);if(a&&a.typeExpression)return Ji(a.typeExpression);let c=y2(n);if(c)return BT(c)}function Lut(n,a){return!!Dn(n,c=>Ms(c)?"quit":c.kind===170&&c.parent===a)}function BY(n){let a=n.parent.kind===214&&n.parent.expression===n,c=YL(n,!0),p=c,h=!1,b=!1;if(!a){for(;p&&p.kind===220;)di(p,1024)&&(b=!0),p=YL(p,!0),h=G<2;p&&di(p,1024)&&(b=!0)}let I=0;if(!p||!Q(p)){let Ie=Dn(n,Te=>Te===p?"quit":Te.kind===168);return Ie&&Ie.kind===168?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):!p||!p.parent||!(ui(p.parent)||p.parent.kind===211)?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),nt}if(!a&&c.kind===177&&K8e(n,p,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),ua(p)||a?(I=32,!a&&G>=2&&G<=8&&(Po(p)||$l(p))&&Wte(n.parent,Ie=>{(!Yi(Ie)||Np(Ie))&&(Vr(Ie).flags|=2097152)})):I=16,Vr(n).flags|=I,p.kind===175&&b&&(fp(n.parent)&&yb(n.parent)?Vr(p).flags|=256:Vr(p).flags|=128),h&&ege(n.parent,p),p.parent.kind===211)return G<2?(Qe(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),nt):Ue;let w=p.parent;if(!v1(w))return Qe(n,f.super_can_only_be_referenced_in_a_derived_class),nt;if(tge(w))return a?nt:Le;let U=qs(Wr(w)),H=U&&Qm(U)[0];if(!H)return nt;if(p.kind===177&&Lut(n,p))return Qe(n,f.super_cannot_be_referenced_in_constructor_arguments),nt;return I===32?Py(U):qp(H,U.thisType);function Q(Ie){return a?Ie.kind===177:ui(Ie.parent)||Ie.parent.kind===211?ua(Ie)?Ie.kind===175||Ie.kind===174||Ie.kind===178||Ie.kind===179||Ie.kind===173||Ie.kind===176:Ie.kind===175||Ie.kind===174||Ie.kind===178||Ie.kind===179||Ie.kind===173||Ie.kind===172||Ie.kind===177:!1}}function X8e(n){return(n.kind===175||n.kind===178||n.kind===179)&&n.parent.kind===211?n.parent:n.kind===219&&n.parent.kind===304?n.parent.parent:void 0}function Y8e(n){return Hr(n)&4&&n.target===nf?rl(n)[0]:void 0}function kut(n){return Tl(n,a=>a.flags&2097152?Je(a.types,Y8e):Y8e(a))}function $8e(n,a){let c=n,p=a;for(;p;){let h=kut(p);if(h)return h;if(c.parent.kind!==304)break;c=c.parent.parent,p=XT(c,void 0)}}function rge(n){if(n.kind===220)return;if(dY(n)){let c=V4(n);if(c){let p=c.thisParameter;if(p)return _r(p)}}let a=Ir(n);if(xe||a){let c=X8e(n);if(c){let h=XT(c,void 0),b=$8e(c,h);return b?io(b,M_e(AS(c))):Xp(h?By(h):Vl(c))}let p=Fm(n.parent);if(id(p)){let h=p.left;if(Ks(h)){let{expression:b}=h;if(a&&He(b)){let I=Wn(p);if(I.commonJsModuleIndicator&&pu(b)===I.symbol)return}return Xp(Vl(b))}}}}function Q8e(n){let a=n.parent;if(!dY(a))return;let c=N0(a);if(c&&c.arguments){let h=i$(c),b=a.parameters.indexOf(n);if(n.dotDotDotToken)return Cge(h,b,h.length,Ue,void 0,0);let I=Vr(c),w=I.resolvedSignature;I.resolvedSignature=ur;let U=b<h.length?qT(_o(h[b])):n.initializer?void 0:B;return I.resolvedSignature=w,U}let p=V4(a);if(p){let h=a.parameters.indexOf(n)-(T1(a)?1:0);return n.dotDotDotToken&&Zs(a.parameters)===n?C9(p,h):xS(p,h)}}function ige(n,a){let c=Rc(n)||(Ir(n)?UW(n):void 0);if(c)return Ji(c);switch(n.kind){case 170:return Q8e(n);case 209:return wut(n,a);case 173:if(ua(n))return Out(n,a)}}function wut(n,a){let c=n.parent.parent,p=n.propertyName||n.name,h=ige(c,a)||c.kind!==209&&c.initializer&&P2(c,n.dotDotDotToken?32:0);if(!h||Qo(p)||jL(p))return;if(c.name.kind===208){let I=wR(n.parent.elements,n);return I<0?void 0:dge(h,I)}let b=ky(p);if(Gf(b)){let I=Vf(b);return _n(h,I)}}function Out(n,a){let c=St(n.parent)&&Uu(n.parent,a);if(c)return KT(c,Wr(n).escapedName)}function Wut(n,a){let c=n.parent;if(Yy(c)&&n===c.initializer){let p=ige(c,a);if(p)return p;if(!(a&8)&&Qo(c.name)&&c.name.elements.length>0)return d2(c.name,!0,!1)}}function Fut(n,a){let c=cf(n);if(c){let p=GY(c,a);if(p){let h=dc(c);if(h&1){let b=(h&2)!==0;p.flags&1048576&&(p=Ac(p,w=>!!jv(1,w,b)));let I=jv(1,p,(h&2)!==0);if(!I)return;p=I}if(h&2){let b=Tl(p,jy);return b&&pi([b,yWe(b)])}return p}}}function zut(n,a){let c=Uu(n,a);if(c){let p=jy(c);return p&&pi([p,yWe(p)])}}function But(n,a){let c=cf(n);if(c){let p=dc(c),h=GY(c,a);if(h){let b=(p&2)!==0;if(!n.asteriskToken&&h.flags&1048576&&(h=Ac(h,I=>!!jv(1,I,b))),n.asteriskToken){let I=hye(h,b),w=I?.yieldType??wt,U=Uu(n,a)??wt,H=I?.nextType??Nt,Q=c$(w,U,H,!1);if(b){let Ie=c$(w,U,H,!0);return pi([Q,Ie])}return Q}return jv(0,h,b)}}}function oge(n){let a=!1;for(;n.parent&&!Yo(n.parent);){if(to(n.parent)&&(a||n.parent.initializer===n))return!0;Ha(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function Z8e(n,a){let c=!!(dc(a)&2),p=GY(a,void 0);if(p)return jv(n,p,c)||void 0}function GY(n,a){let c=MC(n);if(c)return c;let p=qY(n);if(p&&!UX(p)){let b=ps(p),I=dc(n);return I&1?Ac(b,w=>!!(w.flags&58998787)||Zge(w,I,void 0)):I&2?Ac(b,w=>!!(w.flags&58998787)||!!w2(w)):b}let h=N0(n);if(h)return Uu(h,a)}function e6e(n,a){let p=i$(n).indexOf(a);return p===-1?void 0:age(n,p)}function age(n,a){if(Yu(n))return a===0?gt:a===1?NOe(!1):Ue;let c=Vr(n).resolvedSignature===Dr?Dr:UC(n);if(nu(n)&&a===0)return HY(c,n);let p=c.parameters.length-1;return au(c)&&a>=p?Jp(_r(c.parameters[p]),Ch(a-p),256):Lh(c,a)}function Gut(n){let a=jge(n);return a?pA(a):void 0}function Vut(n,a){if(n.parent.kind===216)return e6e(n.parent,a)}function jut(n,a){let c=n.parent,{left:p,operatorToken:h,right:b}=c;switch(h.kind){case 64:case 77:case 76:case 78:return n===b?Hut(c):void 0;case 57:case 61:let I=Uu(c,a);return n===b&&(I&&I.pattern||!I&&!one(c))?wd(p):I;case 56:case 28:return n===b?Uu(c,a):void 0;default:return}}function Uut(n){if(ah(n)&&n.symbol)return n.symbol;if(He(n))return pu(n);if(qr(n)){let c=wd(n.expression);return eo(n.name)?a(c,n.name):Ea(c,n.name.escapedText)}if(Ws(n)){let c=Vl(n.argumentExpression);if(!Gf(c))return;let p=wd(n.expression);return Ea(p,Vf(c))}return;function a(c,p){let h=S9(p.escapedText,p);return h&&e$(c,h)}}function Hut(n){var a,c;let p=oc(n);switch(p){case 0:case 4:let h=Uut(n.left),b=h&&h.valueDeclaration;if(b&&(Po(b)||Tu(b))){let U=Rc(b);return U&&io(Ji(U),Jr(h).mapper)||(Po(b)?b.initializer&&wd(n.left):void 0)}return p===0?wd(n.left):t6e(n);case 5:if(VY(n,p))return t6e(n);if(!ah(n.left)||!n.left.symbol)return wd(n.left);{let U=n.left.symbol.valueDeclaration;if(!U)return;let H=ma(n.left,Ks),Q=Rc(U);if(Q)return Ji(Q);if(He(H.expression)){let Ie=H.expression,Te=_t(Ie,Ie.escapedText,111551,void 0,!0);if(Te){let Ze=Te.valueDeclaration&&Rc(Te.valueDeclaration);if(Ze){let Tt=iy(H);if(Tt!==void 0)return KT(Ji(Ze),Tt)}return}}return Ir(U)||U===n.left?void 0:wd(n.left)}case 1:case 6:case 3:case 2:let I;p!==2&&(I=ah(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),I||(I=(c=n.symbol)==null?void 0:c.valueDeclaration);let w=I&&Rc(I);return w?Ji(w):void 0;case 7:case 8:case 9:return C.fail("Does not apply");default:return C.assertNever(p)}}function VY(n,a=oc(n)){if(a===4)return!0;if(!Ir(n)||a!==5||!He(n.left.expression))return!1;let c=n.left.expression.escapedText,p=_t(n.left,c,111551,void 0,!0,!0);return z6(p?.valueDeclaration)}function t6e(n){if(!n.symbol)return wd(n.left);if(n.symbol.valueDeclaration){let h=Rc(n.symbol.valueDeclaration);if(h){let b=Ji(h);if(b)return b}}let a=ma(n.left,Ks);if(!fm(yu(a.expression,!1,!1)))return;let c=h9(a.expression),p=iy(a);return p!==void 0&&KT(c,p)||void 0}function qut(n){return!!(Wl(n)&262144&&!n.links.type&&ee(n,0)>=0)}function sge(n,a){if(n.flags&16777216){let c=n;return!!(Mm(c0(c)).flags&131072)&&Oy(d0(c))===Oy(c.checkType)&&aa(a,c.extendsType)}return n.flags&2097152?vt(n.types,c=>sge(c,a)):!1}function KT(n,a,c){return Tl(n,p=>{if(p.flags&2097152){let h,b,I=!1;for(let w of p.types){if(!(w.flags&524288))continue;if(cp(w)&&g4(w)!==2){let H=n6e(w,a,c);h=lge(h,H);continue}let U=r6e(w,a);if(!U){I||(b=Bn(b,w));continue}I=!0,b=void 0,h=lge(h,U)}if(b)for(let w of b){let U=i6e(w,a,c);h=lge(h,U)}return h?h.length===1?h[0]:Ma(h):void 0}if(p.flags&524288)return cp(p)&&g4(p)!==2?n6e(p,a,c):r6e(p,a)??i6e(p,a,c)},!0)}function lge(n,a){return a?Bn(n,a.flags&1?Nt:a):n}function n6e(n,a,c){let p=c||Tp(Vi(a)),h=xf(n);if(n.nameType&&sge(n.nameType,p)||sge(h,p))return;let b=Ld(h)||h;if(aa(p,b))return iY(n,p)}function r6e(n,a){let c=Ea(n,a);if(!(!c||qut(c)))return Gy(_r(c),!!(c.flags&16777216))}function i6e(n,a,c){var p;if(Ka(n)&&Sg(a)&&+a>=0){let h=x2(n,n.target.fixedLength,0,!1,!0);if(h)return h}return(p=The(She(n),c||Tp(Vi(a))))==null?void 0:p.type}function o6e(n,a){if(C.assert(fm(n)),!(n.flags&67108864))return cge(n,a)}function cge(n,a){let c=n.parent,p=Nc(n)&&ige(n,a);if(p)return p;let h=XT(c,a);if(h){if(CC(n)){let b=Wr(n);return KT(h,b.escapedName,Jr(b).nameType)}if(oy(n)){let b=Oo(n);if(b&&va(b)){let I=_o(b.expression),w=Gf(I)&&KT(h,Vf(I));if(w)return w}}if(n.name){let b=ky(n.name);return Tl(h,I=>{var w;return(w=The(She(I),b))==null?void 0:w.type},!0)}}}function Jut(n){let a,c;for(let p=0;p<n.length;p++)Uf(n[p])&&(a??(a=p),c=p);return{first:a,last:c}}function dge(n,a,c,p,h){return n&&Tl(n,b=>{if(Ka(b)){if((p===void 0||a<p)&&a<b.target.fixedLength)return Gy(rl(b)[a],!!b.target.elementFlags[a]);let I=c!==void 0&&(h===void 0||a>h)?c-a:0,w=I>0&&b.target.combinedFlags&12?E4(b.target,3):0;return I>0&&I<=w?rl(b)[Fv(b)-I]:x2(b,p===void 0?b.target.fixedLength:Math.min(b.target.fixedLength,p),c===void 0||h===void 0?w:Math.min(w,c-h),!1,!0)}return(!p||a<p)&&KT(b,""+a)||dye(1,b,_e,void 0,!1)},!0)}function Kut(n,a){let c=n.parent;return n===c.whenTrue||n===c.whenFalse?Uu(c,a):void 0}function Xut(n,a,c){let p=XT(n.openingElement.attributes,c),h=v9(RA(n));if(!(p&&!wr(p)&&h&&h!==""))return;let b=XR(n.children),I=b.indexOf(a),w=KT(p,h);return w&&(b.length===1?w:Tl(w,U=>Bv(U)?Jp(U,Ch(I)):U,!0))}function Yut(n,a){let c=n.parent;return p6(c)?Uu(n,a):n_(c)?Xut(c,n,a):void 0}function a6e(n,a){if(r_(n)){let c=XT(n.parent,a);return!c||wr(c)?void 0:KT(c,CM(n.name))}else return Uu(n.parent,a)}function _9(n){switch(n.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return _9(n.expression);case 295:return!n.expression||_9(n.expression)}return!1}function $ut(n,a){let c=`D${ss(n)},${pd(a)}`;return Bu(c)??Rm(c,Gdt(a,n)??h_e(a,so(Vt(Un(n.properties,p=>p.symbol?p.kind===304?_9(p.initializer)&&R2(a,p.symbol.escapedName):p.kind===305?R2(a,p.symbol.escapedName):!1:!1),p=>[()=>O9(p.kind===304?p.initializer:p.name),p.symbol.escapedName]),Vt(Un(bs(a),p=>{var h;return!!(p.flags&16777216)&&!!((h=n?.symbol)!=null&&h.members)&&!n.symbol.members.has(p.escapedName)&&R2(a,p.escapedName)}),p=>[()=>_e,p.escapedName])),aa))}function Qut(n,a){let c=`D${ss(n)},${pd(a)}`,p=Bu(c);if(p)return p;let h=v9(RA(n));return Rm(c,h_e(a,so(Vt(Un(n.properties,b=>!!b.symbol&&b.kind===292&&R2(a,b.symbol.escapedName)&&(!b.initializer||_9(b.initializer))),b=>[b.initializer?()=>O9(b.initializer):()=>ft,b.symbol.escapedName]),Vt(Un(bs(a),b=>{var I;if(!(b.flags&16777216)||!((I=n?.symbol)!=null&&I.members))return!1;let w=n.parent.parent;return b.escapedName===h&&n_(w)&&XR(w.children).length?!1:!n.symbol.members.has(b.escapedName)&&R2(a,b.escapedName)}),b=>[()=>_e,b.escapedName])),aa))}function XT(n,a){let c=fm(n)?o6e(n,a):Uu(n,a),p=jY(c,n,a);if(p&&!(a&&a&2&&p.flags&8650752)){let h=Tl(p,b=>Hr(b)&32?b:Ru(b),!0);return h.flags&1048576&&Wa(n)?$ut(n,h):h.flags&1048576&&w1(n)?Qut(n,h):h}}function jY(n,a,c){if(n&&ec(n,465829888)){let p=AS(a);if(p&&c&1&&vt(p.inferences,Kmt))return UY(n,p.nonFixingMapper);if(p?.returnMapper){let h=UY(n,p.returnMapper);return h.flags&1048576&&jg(h.types,Jn)&&jg(h.types,Mt)?Ac(h,b=>b!==Jn&&b!==Mt):h}}return n}function UY(n,a){return n.flags&465829888?io(n,a):n.flags&1048576?pi(Vt(n.types,c=>UY(c,a)),0):n.flags&2097152?Ma(Vt(n.types,c=>UY(c,a))):n}function Uu(n,a){var c;if(n.flags&67108864)return;let p=l6e(n,!a);if(p>=0)return op[p];let{parent:h}=n;switch(h.kind){case 261:case 170:case 173:case 172:case 209:return Wut(n,a);case 220:case 254:return Fut(n,a);case 230:return But(h,a);case 224:return zut(h,a);case 214:case 215:return e6e(h,n);case 171:return Gut(h);case 217:case 235:return wm(h.type)?Uu(h,a):Ji(h.type);case 227:return jut(n,a);case 304:case 305:return cge(h,a);case 306:return Uu(h.parent,a);case 210:{let b=h,I=XT(b,a),w=wR(b.elements,n),U=(c=Vr(b)).spreadIndices??(c.spreadIndices=Jut(b.elements));return dge(I,w,b.elements.length,U.first,U.last)}case 228:return Kut(n,a);case 240:return C.assert(h.parent.kind===229),Vut(h.parent,n);case 218:{if(Ir(h)){if(wV(h))return Ji(OV(h));let b=x0(h);if(b&&!wm(b.typeExpression.type))return Ji(b.typeExpression.type)}return Uu(h,a)}case 236:return Uu(h,a);case 239:return Ji(h.type);case 278:return a0(h);case 295:return Yut(h,a);case 292:case 294:return a6e(h,a);case 287:case 286:return apt(h,a);case 302:return opt(h)}}function s6e(n){g9(n,Uu(n,void 0),!0)}function g9(n,a,c){hl[Td]=n,op[Td]=a,Im[Td]=c,Td++}function G4(){Td--,hl[Td]=void 0,op[Td]=void 0,Im[Td]=void 0}function l6e(n,a){for(let c=Td-1;c>=0;c--)if(n===hl[c]&&(a||!Im[c]))return c;return-1}function Zut(n,a){jp[p_]=n,fT[p_]=a,p_++}function ept(){p_--,jp[p_]=void 0,fT[p_]=void 0}function AS(n){for(let a=p_-1;a>=0;a--)if(y1(n,jp[a]))return fT[a]}function tpt(n){V_[j_]=n,mT[j_]??(mT[j_]=new Map),j_++}function npt(){j_--,V_[j_]=void 0,mT[j_].clear()}function rpt(n){for(let a=j_-1;a>=0;a--)if(n===V_[a])return a;return-1}function ipt(){for(let n=j_-1;n>=0;n--)mT[n].clear()}function opt(n){return KT(khe(!1),HW(n))}function apt(n,a){if(ph(n)&&a!==4){let c=l6e(n.parent,!a);if(c>=0)return op[c]}return age(n,0)}function HY(n,a){return Vm(a)||q6e(a)!==0?spt(n,a):dpt(n,a)}function spt(n,a){let c=Gge(n,Nt);c=c6e(a,RA(a),c);let p=IS(hf.IntrinsicAttributes,a);return pr(p)||(c=P5(p,c)),c}function lpt(n,a){if(n.compositeSignatures){let p=[];for(let h of n.compositeSignatures){let b=ps(h);if(wr(b))return b;let I=_n(b,a);if(!I)return;p.push(I)}return Ma(p)}let c=ps(n);return wr(c)?c:_n(c,a)}function cpt(n){if(Vm(n))return nWe(n);if(tR(n.tagName)){let c=v6e(n),p=o$(n,c);return pA(p)}let a=Vl(n.tagName);if(a.flags&128){let c=y6e(a,n);if(!c)return nt;let p=o$(n,c);return pA(p)}return a}function c6e(n,a,c){let p=Lpt(a);if(p){let h=cpt(n),b=S6e(p,Ir(n),h,c);if(b)return b}return c}function dpt(n,a){let c=RA(a),p=wpt(c),h=p===void 0?Gge(n,Nt):p===""?ps(n):lpt(n,p);if(!h)return p&&et(a.attributes.properties)&&Qe(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Vi(p)),Nt;if(h=c6e(a,c,h),wr(h))return h;{let b=h,I=IS(hf.IntrinsicClassAttributes,a);if(!pr(I)){let U=Na(I.symbol),H=ps(n),Q;if(U){let Ie=Wv([H],U,Q_(U),Ir(a));Q=io(I,Kp(U,Ie))}else Q=I;b=P5(Q,b)}let w=IS(hf.IntrinsicAttributes,a);return pr(w)||(b=P5(w,b)),b}}function upt(n){return Vd(O,"noImplicitAny")?_u(n,(a,c)=>a===c||!a?a:Uwe(a.typeParameters,c.typeParameters)?mpt(a,c):void 0):void 0}function ppt(n,a,c){if(!n||!a)return n||a;let p=pi([_r(n),io(_r(a),c)]);return TA(n,p)}function fpt(n,a,c){let p=Ep(n),h=Ep(a),b=p>=h?n:a,I=b===n?a:n,w=b===n?p:h,U=tg(n)||tg(a),H=U&&!tg(b),Q=new Array(w+(H?1:0));for(let Ie=0;Ie<w;Ie++){let Te=xS(b,Ie);b===a&&(Te=io(Te,c));let Ze=xS(I,Ie)||Nt;I===a&&(Ze=io(Ze,c));let Tt=pi([Te,Ze]),Dt=U&&!H&&Ie===w-1,$t=Ie>=kh(b)&&Ie>=kh(I),Tn=Ie>=p?void 0:M2(n,Ie),nr=Ie>=h?void 0:M2(a,Ie),yr=Tn===nr?Tn:Tn?nr?void 0:Tn:nr,Sn=ja(1|($t&&!Dt?16777216:0),yr||`arg${Ie}`,Dt?32768:$t?16384:0);Sn.links.type=Dt?Yd(Tt):Tt,Q[Ie]=Sn}if(H){let Ie=ja(1,"args",32768);Ie.links.type=Yd(Lh(I,w)),I===a&&(Ie.links.type=io(Ie.links.type,c)),Q[w]=Ie}return Q}function mpt(n,a){let c=n.typeParameters||a.typeParameters,p;n.typeParameters&&a.typeParameters&&(p=Kp(a.typeParameters,n.typeParameters));let h=(n.flags|a.flags)&166,b=n.declaration,I=fpt(n,a,p),w=Zs(I);w&&Wl(w)&32768&&(h|=1);let U=ppt(n.thisParameter,a.thisParameter,p),H=Math.max(n.minArgumentCount,a.minArgumentCount),Q=g_(b,c,U,I,void 0,void 0,H,h);return Q.compositeKind=2097152,Q.compositeSignatures=so(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),p&&(Q.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?jT(n.mapper,p):p),Q}function uge(n,a){let c=na(n,0),p=Un(c,h=>!hpt(h,a));return p.length===1?p[0]:upt(p)}function hpt(n,a){let c=0;for(;c<a.parameters.length;c++){let p=a.parameters[c];if(p.initializer||p.questionToken||p.dotDotDotToken||jW(p))break}return a.parameters.length&&vb(a.parameters[0])&&c--,!tg(n)&&Ep(n)<c}function qY(n){return Ab(n)||fm(n)?V4(n):void 0}function V4(n){C.assert(n.kind!==175||fm(n));let a=y2(n);if(a)return a;let c=XT(n,1);if(!c)return;if(!(c.flags&1048576))return uge(c,n);let p,h=c.types;for(let b of h){let I=uge(b,n);if(I)if(!p)p=[I];else if(t9(p[0],I,!1,!0,!0,C4))p.push(I);else return}if(p)return p.length===1?p[0]:Vwe(p[0],p)}function _pt(n){let a=Wn(n);if(!_0(a)&&!n.isUnterminated){let c;o??(o=lg(99,!0)),o.setScriptTarget(a.languageVersion),o.setLanguageVariant(a.languageVariant),o.setOnError((p,h,b)=>{let I=o.getTokenEnd();if(p.category===3&&c&&I===c.start&&h===c.length){let w=vI(a.fileName,a.text,I,h,p,b);pa(c,w)}else(!c||I!==c.start)&&(c=Fc(a,I,h,p,b),ns.add(c))}),o.setText(a.text,n.pos,n.end-n.pos);try{return o.scan(),C.assert(o.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!c}finally{o.setText(""),o.setOnError(void 0)}}return!1}function gpt(n){let a=Vr(n);return a.flags&1||(a.flags|=1,r(()=>_pt(n))),ql}function ypt(n,a){G<ed.SpreadElements&&Qc(n,O.downlevelIteration?1536:1024);let c=_o(n.expression,a);return Vv(33,c,_e,n.expression)}function vpt(n){return n.isSpread?Jp(n.type,Bt):n.type}function eR(n){return n.kind===209&&!!n.initializer||n.kind===304&&eR(n.initializer)||n.kind===305&&!!n.objectAssignmentInitializer||n.kind===227&&n.operatorToken.kind===64}function bpt(n){let a=Fm(n.parent);return Uf(a)&&Bh(a.parent)}function d6e(n,a,c){let p=n.elements,h=p.length,b=[],I=[];s6e(n);let w=yb(n),U=L2(n),H=XT(n,void 0),Q=bpt(n)||!!H&&im(H,Te=>I2(Te)||cp(Te)&&!Te.nameType&&!!R4(Te.target||Te)),Ie=!1;for(let Te=0;Te<h;Te++){let Ze=p[Te];if(Ze.kind===231){G<ed.SpreadElements&&Qc(Ze,O.downlevelIteration?1536:1024);let Tt=_o(Ze.expression,a,c);if(Bv(Tt))b.push(Tt),I.push(8);else if(w){let Dt=zT(Tt,Bt)||dye(65,Tt,_e,void 0,!1)||Nt;b.push(Dt),I.push(4)}else b.push(Vv(33,Tt,_e,Ze.expression)),I.push(4)}else if(Ce&&Ze.kind===233)Ie=!0,b.push(te),I.push(2);else{let Tt=k2(Ze,a,c);if(b.push(uu(Tt,!0,Ie)),I.push(Ie?2:1),Q&&a&&a&2&&!(a&4)&&Df(Ze)){let Dt=AS(n);C.assert(Dt),C_e(Dt,Ze,Tt)}}}return G4(),w?Z_(b,I):u6e(c||U||Q?Z_(b,I,U&&!(H&&im(H,b_e))):Yd(b.length?pi(Zi(b,(Te,Ze)=>I[Ze]&8?l0(Te,Bt)||Ue:Te),2):ie?En:B,U))}function u6e(n){if(!(Hr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=gOe(n),a.objectFlags|=147456),a}function Tpt(n){switch(n.kind){case 168:return Spt(n);case 80:return Sg(n.escapedText);case 9:case 11:return Sg(n.text);default:return!1}}function Spt(n){return kd(eh(n),296)}function eh(n){let a=Vr(n.expression);if(!a.resolvedType){if((ku(n.parent.parent)||ui(n.parent.parent)||gd(n.parent.parent))&&Nr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==178&&n.parent.kind!==179)return a.resolvedType=nt;if(a.resolvedType=_o(n.expression),Po(n.parent)&&!Wc(n.parent)&&uc(n.parent.parent)){let c=sh(n.parent.parent),p=Z_e(c);p&&(Vr(p).flags|=4096,Vr(n).flags|=32768,Vr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!kd(a.resolvedType,402665900)&&!aa(a.resolvedType,Ii))&&Qe(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function Ept(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return Sg(n.escapedName)||c&&nd(c)&&Tpt(c.name)}function p6e(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return iM(n)||c&&nd(c)&&va(c.name)&&kd(eh(c.name),4096)}function Apt(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return c&&nd(c)&&va(c.name)}function j4(n,a,c,p){var h;let b=[],I;for(let U=a;U<c.length;U++){let H=c[U];(p===gt&&!p6e(H)||p===Bt&&Ept(H)||p===Qt&&p6e(H))&&(b.push(_r(c[U])),Apt(c[U])&&(I=Bn(I,(h=c[U].declarations)==null?void 0:h[0])))}let w=b.length?pi(b,2):_e;return Vg(p,w,n,void 0,I)}function JY(n){C.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=Jr(n);if(!a.immediateTarget){let c=sp(n);if(!c)return C.fail();a.immediateTarget=NT(c,!0)}return a.immediateTarget}function Ipt(n,a=0){let c=yb(n);Fyt(n,c);let p=ie?da():void 0,h=da(),b=[],I=Ra;s6e(n);let w=XT(n,void 0),U=w&&w.pattern&&(w.pattern.kind===207||w.pattern.kind===211),H=L2(n),Q=H?8:0,Ie=Ir(n)&&!j6(n),Te=Ie?CB(n):void 0,Ze=!w&&Ie&&!Te,Tt=8192,Dt=!1,$t=!1,Tn=!1,nr=!1;for(let vn of n.properties)vn.name&&va(vn.name)&&eh(vn.name);let yr=0;for(let vn of n.properties){let Er=Wr(vn),fi=vn.name&&vn.name.kind===168?eh(vn.name):void 0;if(vn.kind===304||vn.kind===305||fm(vn)){let oo=vn.kind===304?LWe(vn,a):vn.kind===305?k2(!c&&vn.objectAssignmentInitializer?vn.objectAssignmentInitializer:vn.name,a):kWe(vn,a);if(Ie){let Ko=ls(vn);Ko?($d(oo,Ko,vn),oo=Ko):Te&&Te.typeExpression&&$d(oo,Ji(Te.typeExpression),vn)}Tt|=Hr(oo)&458752;let ii=fi&&Gf(fi)?fi:void 0,zi=ii?ja(4|Er.flags,Vf(ii),Q|4096):ja(4|Er.flags,Er.escapedName,Q);if(ii&&(zi.links.nameType=ii),c&&eR(vn))zi.flags|=16777216;else if(U&&!(Hr(w)&512)){let Ko=Ea(w,Er.escapedName);Ko?zi.flags|=Ko.flags&16777216:Gg(w,gt)||Qe(vn.name,f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,uo(Er),ar(w))}if(zi.declarations=Er.declarations,zi.parent=Er.parent,Er.valueDeclaration&&(zi.valueDeclaration=Er.valueDeclaration),zi.links.type=oo,zi.links.target=Er,Er=zi,p?.set(zi.escapedName,zi),w&&a&2&&!(a&4)&&(vn.kind===304||vn.kind===175)&&Df(vn)){let Ko=AS(n);C.assert(Ko);let fs=vn.kind===304?vn.initializer:vn;C_e(Ko,fs,oo)}}else if(vn.kind===306){G<ed.ObjectAssign&&Qc(vn,2),b.length>0&&(I=yS(I,Sn(),n.symbol,Tt,H),b=[],h=da(),$t=!1,Tn=!1,nr=!1);let oo=Mm(_o(vn.expression,a&2));if(y9(oo)){let ii=e_e(oo,H);if(p&&h6e(ii,p,vn),yr=b.length,pr(I))continue;I=yS(I,ii,n.symbol,Tt,H)}else Qe(vn,f.Spread_types_may_only_be_created_from_object_types),I=nt;continue}else C.assert(vn.kind===178||vn.kind===179),rR(vn);fi&&!(fi.flags&8576)?aa(fi,Ii)&&(aa(fi,Bt)?Tn=!0:aa(fi,Qt)?nr=!0:$t=!0,c&&(Dt=!0)):h.set(Er.escapedName,Er),b.push(Er)}if(G4(),pr(I))return nt;if(I!==Ra)return b.length>0&&(I=yS(I,Sn(),n.symbol,Tt,H),b=[],h=da(),$t=!1,Tn=!1),Tl(I,vn=>vn===Ra?Sn():vn);return Sn();function Sn(){let vn=[],Er=L2(n);$t&&vn.push(j4(Er,yr,b,gt)),Tn&&vn.push(j4(Er,yr,b,Bt)),nr&&vn.push(j4(Er,yr,b,Qt));let fi=bl(n.symbol,h,ae,ae,vn);return fi.objectFlags|=Tt|128|131072,Ze&&(fi.objectFlags|=4096),Dt&&(fi.objectFlags|=512),c&&(fi.pattern=n),fi}}function y9(n){let a=Y4e(Tl(n,y_));return!!(a.flags&126615553||a.flags&3145728&&Vn(a.types,y9))}function xpt(n){fge(n)}function Rpt(n,a){return rR(n),b9(n)||Ue}function Dpt(n){fge(n.openingElement),tR(n.closingElement.tagName)?XY(n.closingElement):_o(n.closingElement.tagName),KY(n)}function Cpt(n,a){return rR(n),b9(n)||Ue}function Npt(n){fge(n.openingFragment);let a=Wn(n);DW(O)&&(O.jsxFactory||a.pragmas.has("jsx"))&&!O.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Qe(n,O.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),KY(n);let c=b9(n);return pr(c)?Ue:c}function pge(n){return n.includes("-")}function tR(n){return He(n)&&YR(n.escapedText)||fh(n)}function f6e(n,a){return n.initializer?k2(n.initializer,a):ft}function m6e(n,a=0){let c=ie?da():void 0,p=da(),h=Zl,b=!1,I,w=!1,U=2048,H=v9(RA(n)),Q=Vm(n),Ie,Te=n;if(!Q){let Dt=n.attributes;Ie=Dt.symbol,Te=Dt;let $t=Uu(Dt,0);for(let Tn of Dt.properties){let nr=Tn.symbol;if(r_(Tn)){let yr=f6e(Tn,a);U|=Hr(yr)&458752;let Sn=ja(4|nr.flags,nr.escapedName);if(Sn.declarations=nr.declarations,Sn.parent=nr.parent,nr.valueDeclaration&&(Sn.valueDeclaration=nr.valueDeclaration),Sn.links.type=yr,Sn.links.target=nr,p.set(Sn.escapedName,Sn),c?.set(Sn.escapedName,Sn),CM(Tn.name)===H&&(w=!0),$t){let vn=Ea($t,nr.escapedName);vn&&vn.declarations&&Iu(vn)&&He(Tn.name)&&Dm(Tn.name,vn.declarations,Tn.name.escapedText)}if($t&&a&2&&!(a&4)&&Df(Tn)){let vn=AS(Dt);C.assert(vn);let Er=Tn.initializer.expression;C_e(vn,Er,yr)}}else{C.assert(Tn.kind===294),p.size>0&&(h=yS(h,Tt(),Dt.symbol,U,!1),p=da());let yr=Mm(_o(Tn.expression,a&2));wr(yr)&&(b=!0),y9(yr)?(h=yS(h,yr,Dt.symbol,U,!1),c&&h6e(yr,c,Tn)):(Qe(Tn.expression,f.Spread_types_may_only_be_created_from_object_types),I=I?Ma([I,yr]):yr)}}b||p.size>0&&(h=yS(h,Tt(),Dt.symbol,U,!1))}let Ze=n.parent;if((n_(Ze)&&Ze.openingElement===n||J0(Ze)&&Ze.openingFragment===n)&&XR(Ze.children).length>0){let Dt=KY(Ze,a);if(!b&&H&&H!==""){w&&Qe(Te,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(H));let $t=ph(n)?XT(n.attributes,void 0):void 0,Tn=$t&&KT($t,H),nr=ja(4,H);nr.links.type=Dt.length===1?Dt[0]:Tn&&im(Tn,I2)?Z_(Dt):Yd(pi(Dt)),nr.valueDeclaration=L.createPropertySignature(void 0,Vi(H),void 0,void 0),us(nr.valueDeclaration,Te),nr.valueDeclaration.symbol=nr;let yr=da();yr.set(H,nr),h=yS(h,bl(Ie,yr,ae,ae,ae),Ie,U,!1)}}if(b)return Ue;if(I&&h!==Zl)return Ma([I,h]);return I||(h===Zl?Tt():h);function Tt(){return U|=8192,Mpt(U,Ie,p)}}function Mpt(n,a,c){let p=bl(a,c,ae,ae,ae);return p.objectFlags|=n|8192|128|131072,p}function KY(n,a){let c=[];for(let p of n.children)if(p.kind===12)p.containsOnlyTriviaWhiteSpaces||c.push(gt);else{if(p.kind===295&&!p.expression)continue;c.push(k2(p,a))}return c}function h6e(n,a,c){for(let p of bs(n))if(!(p.flags&16777216)){let h=a.get(p.escapedName);if(h){let b=Qe(h.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Vi(h.escapedName));pa(b,Ar(c,f.This_spread_always_overwrites_this_property))}}}function Ppt(n,a){return m6e(n.parent,a)}function IS(n,a){let c=RA(a),p=c&&Up(c),h=p&&Sd(p,n,788968);return h?qs(h):nt}function XY(n){let a=Vr(n);if(!a.resolvedSymbol){let c=IS(hf.IntrinsicElements,n);if(pr(c))return ve&&Qe(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(hf.IntrinsicElements)),a.resolvedSymbol=ne;{if(!He(n.tagName)&&!fh(n.tagName))return C.fail();let p=fh(n.tagName)?xI(n.tagName):n.tagName.escapedText,h=Ea(c,p);if(h)return a.jsxFlags|=1,a.resolvedSymbol=h;let b=G3e(c,Tp(Vi(p)));return b?(a.jsxFlags|=2,a.resolvedSymbol=b):ei(c,p)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Qe(n,f.Property_0_does_not_exist_on_type_1,WV(n.tagName),"JSX."+hf.IntrinsicElements),a.resolvedSymbol=ne)}}return a.resolvedSymbol}function YY(n){let a=n&&Wn(n),c=a&&Vr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;let p=CW(Fk(O,a),O);if(!p)return;let b=ru(O)===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.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,I=mvt(a,p),w=$E(I||n,p,b,n),U=w&&w!==ne?os(hc(w)):void 0;return c&&(c.jsxImplicitImportContainer=U||!1),U}function RA(n){let a=n&&Vr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let p=YY(n);if(!p||p===ne){let h=Hm(n);p=_t(n,h,1920,void 0,!1)}if(p){let h=hc(Sd(Up(hc(p)),hf.JSX,1920));if(h&&h!==ne)return a&&(a.jsxNamespace=h),h}a&&(a.jsxNamespace=!1)}let c=hc(wC(hf.JSX,1920,void 0));if(c!==ne)return c}function _6e(n,a){let c=a&&Sd(a.exports,n,788968),p=c&&qs(c),h=p&&bs(p);if(h){if(h.length===0)return"";if(h.length===1)return h[0].escapedName;h.length>1&&c.declarations&&Qe(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Vi(n))}}function Lpt(n){return n&&Sd(n.exports,hf.LibraryManagedAttributes,788968)}function kpt(n){return n&&Sd(n.exports,hf.ElementType,788968)}function wpt(n){return _6e(hf.ElementAttributesPropertyNameContainer,n)}function v9(n){return O.jsx===4||O.jsx===5?"children":_6e(hf.ElementChildrenAttributeNameContainer,n)}function g6e(n,a){if(n.flags&4)return[ur];if(n.flags&128){let h=y6e(n,a);return h?[o$(a,h)]:(Qe(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+hf.IntrinsicElements),ae)}let c=Ru(n),p=na(c,1);return p.length===0&&(p=na(c,0)),p.length===0&&c.flags&1048576&&(p=uhe(Vt(c.types,h=>g6e(h,a)))),p}function y6e(n,a){let c=IS(hf.IntrinsicElements,a);if(!pr(c)){let p=n.value,h=Ea(c,Cl(p));if(h)return _r(h);let b=zT(c,gt);return b||void 0}return Ue}function Opt(n,a,c){if(n===1){let h=T6e(c);h&&tm(a,h,qd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,p)}else if(n===0){let h=b6e(c);h&&tm(a,h,qd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,p)}else{let h=T6e(c),b=b6e(c);if(!h||!b)return;let I=pi([h,b]);tm(a,I,qd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,p)}function p(){let h=Al(c.tagName);return qo(void 0,f._0_cannot_be_used_as_a_JSX_component,h)}}function v6e(n){var a;C.assert(tR(n.tagName));let c=Vr(n);if(!c.resolvedJsxElementAttributesType){let p=XY(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=_r(p)||nt;if(c.jsxFlags&2){let h=fh(n.tagName)?xI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=Hx(IS(hf.IntrinsicElements,n),h))==null?void 0:a.type)||nt}else return c.resolvedJsxElementAttributesType=nt}return c.resolvedJsxElementAttributesType}function b6e(n){let a=IS(hf.ElementClass,n);if(!pr(a))return a}function b9(n){return IS(hf.Element,n)}function T6e(n){let a=b9(n);if(a)return pi([a,Xt])}function Wpt(n){let a=RA(n);if(!a)return;let c=kpt(a);if(!c)return;let p=S6e(c,Ir(n));if(!(!p||pr(p)))return p}function S6e(n,a,...c){let p=qs(n);if(n.flags&524288){let h=Jr(n).typeParameters;if(et(h)>=c.length){let b=Wv(c,h,c.length,a);return et(b)===0?p:LC(n,b)}}if(et(p.typeParameters)>=c.length){let h=Wv(c,p.typeParameters,c.length,a);return Ly(p,h)}}function Fpt(n){let a=IS(hf.IntrinsicElements,n);return a?bs(a):ae}function zpt(n){(O.jsx||0)===0&&Qe(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),b9(n)===void 0&&ve&&Qe(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function fge(n){let a=nu(n);a&&zyt(n),zpt(n),Q_e(n);let c=UC(n);if(s$(c,n),a){let p=n,h=Wpt(p);if(h!==void 0){let b=p.tagName,I=tR(b)?Tp(WV(b)):_o(b);tm(I,h,qd,b,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let w=Al(b);return qo(void 0,f._0_cannot_be_used_as_a_JSX_component,w)})}else Opt(q6e(p),ps(c),p)}}function $Y(n,a,c){if(n.flags&524288&&(mS(n,a)||Hx(n,a)||h4(a)&&Gg(n,gt)||c&&pge(a)))return!0;if(n.flags&33554432)return $Y(n.baseType,a,c);if(n.flags&3145728&&U4(n)){for(let p of n.types)if($Y(p,a,c))return!0}return!1}function U4(n){return!!(n.flags&524288&&!(Hr(n)&512)||n.flags&67108864||n.flags&33554432&&U4(n.baseType)||n.flags&1048576&&vt(n.types,U4)||n.flags&2097152&&Vn(n.types,U4))}function Bpt(n,a){if(Gyt(n),n.expression){let c=_o(n.expression,a);return n.dotDotDotToken&&c!==Ue&&!nm(c)&&Qe(n,f.JSX_spread_child_must_be_an_array_type),c}else return nt}function mge(n){return n.valueDeclaration?RS(n.valueDeclaration):0}function hge(n){if(n.flags&8192||Wl(n)&4)return!0;if(Ir(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&Nr(a)&&oc(a)===3}}function _ge(n,a,c,p,h,b=!0){let I=b?n.kind===167?n.right:n.kind===206?n:n.kind===209&&n.propertyName?n.propertyName:n.name:void 0;return E6e(n,a,c,p,h,I)}function E6e(n,a,c,p,h,b){var I;let w=Bf(h,c);if(a){if(G<2&&A6e(h))return b&&Qe(b,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(w&64)return b&&Qe(b,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,uo(h),ar(Yx(h))),!1;if(!(w&256)&&((I=h.declarations)!=null&&I.some(nte)))return b&&Qe(b,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,uo(h)),!1}if(w&64&&A6e(h)&&($L(n)||nne(n)||pf(n.parent)&&z6(n.parent.parent))){let H=cy($c(h));if(H&&Wgt(n))return b&&Qe(b,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,uo(h),Wf(H.name)),!1}if(!(w&6))return!0;if(w&2){let H=cy($c(h));return Tye(n,H)?!0:(b&&Qe(b,f.Property_0_is_private_and_only_accessible_within_class_1,uo(h),ar(Yx(h))),!1)}if(a)return!0;let U=z3e(n,H=>{let Q=qs(Wr(H));return B4e(Q,h,c)});return!U&&(U=Gpt(n),U=U&&B4e(U,h,c),w&256||!U)?(b&&Qe(b,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,uo(h),ar(Yx(h)||p)),!1):w&256?!0:(p.flags&262144&&(p=p.isThisType?ju(p):Ld(p)),!p||!Ur(p,U)?(b&&Qe(b,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,uo(h),ar(U),ar(p)),!1):!0)}function Gpt(n){let a=Vpt(n),c=a?.type&&Ji(a.type);if(c)c.flags&262144&&(c=ju(c));else{let p=yu(n,!1,!1);Yo(p)&&(c=rge(p))}if(c&&Hr(c)&7)return zn(c)}function Vpt(n){let a=yu(n,!1,!1);return a&&Yo(a)?T1(a):void 0}function A6e(n){return!!e9(n,a=>!(a.flags&8192))}function VC(n){return T_(_o(n),n)}function T9(n){return Mh(n,50331648)}function gge(n){return T9(n)?By(n):n}function jpt(n,a){let c=Ds(n)?Cp(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(He(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 Upt(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 I6e(n,a,c){if(ie&&n.flags&2){if(Ds(a)){let h=Cp(a);if(h.length<100)return Qe(a,f._0_is_of_type_unknown,h),nt}return Qe(a,f.Object_is_of_type_unknown),nt}let p=FC(n,50331648);if(p&50331648){c(a,p);let h=By(n);return h.flags&229376?nt:h}return n}function T_(n,a){return I6e(n,a,jpt)}function x6e(n,a){let c=T_(n,a);if(c.flags&16384){if(Ds(a)){let p=Cp(a);if(He(a)&&p==="undefined")return Qe(a,f.The_value_0_cannot_be_used_here,p),c;if(p.length<100)return Qe(a,f._0_is_possibly_undefined,p),c}Qe(a,f.Object_is_possibly_undefined)}return c}function QY(n,a,c){return n.flags&64?Hpt(n,a):vge(n,n.expression,VC(n.expression),n.name,a,c)}function Hpt(n,a){let c=_o(n.expression),p=L4(c,n.expression);return EY(vge(n,n.expression,T_(p,n.expression),n.name,a),n,p!==c)}function R6e(n,a){let c=V6(n)&&bb(n.left)?T_(h9(n.left),n.left):VC(n.left);return vge(n,n.left,c,n.right,a)}function yge(n){for(;n.parent.kind===218;)n=n.parent;return Bh(n.parent)&&n.parent.expression===n}function S9(n,a){for(let c=W6(a);c;c=hd(c)){let{symbol:p}=c,h=yk(p,n),b=p.members&&p.members.get(h)||p.exports&&p.exports.get(h);if(b)return b}}function qpt(n){if(!hd(n))return Cn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!d3(n.parent)){if(!M_(n))return Cn(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);let a=Nr(n.parent)&&n.parent.operatorToken.kind===103;if(!ZY(n)&&!a)return Cn(n,f.Cannot_find_name_0,Kr(n))}return!1}function Jpt(n){qpt(n);let a=ZY(n);return a&&A9(a,void 0,!1),Ue}function ZY(n){if(!M_(n))return;let a=Vr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=S9(n.escapedText,n)),a.resolvedSymbol}function e$(n,a){return Ea(n,a.escapedName)}function Kpt(n,a,c){let p,h=bs(n);h&&Je(h,I=>{let w=I.valueDeclaration;if(w&&nd(w)&&eo(w.name)&&w.name.escapedText===a.escapedText)return p=I,!0});let b=yp(a);if(p){let I=C.checkDefined(p.valueDeclaration),w=C.checkDefined(hd(I));if(c?.valueDeclaration){let U=c.valueDeclaration,H=hd(U);if(C.assert(!!H),Dn(H,Q=>w===Q)){let Q=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,b,ar(n));return pa(Q,Ar(U,f.The_shadowing_declaration_of_0_is_defined_here,b),Ar(I,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,b)),!0}}return Qe(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,b,yp(w.name||vU)),!0}return!1}function D6e(n,a){return(Fg(a)||$L(n)&&X_(a))&&yu(n,!0,!1)===br(a)}function vge(n,a,c,p,h,b){let I=Vr(a).resolvedSymbol,w=gb(n),U=Ru(w!==0||yge(n)?Xp(c):c),H=wr(U)||U===wt,Q;if(eo(p)){(G<ed.PrivateNamesAndClassStaticBlocks||G<ed.ClassAndClassElementDecorators||!Z)&&(w!==0&&Qc(n,1048576),w!==1&&Qc(n,524288));let Te=S9(p.escapedText,p);if(w&&Te&&Te.valueDeclaration&&Nl(Te.valueDeclaration)&&Cn(p,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Kr(p)),H){if(Te)return pr(U)?nt:U;if(W6(p)===void 0)return Cn(p,f.Private_identifiers_are_not_allowed_outside_class_bodies),Ue}if(Q=Te&&e$(c,Te),Q===void 0){if(Kpt(c,p,Te))return nt;let Ze=W6(p);Ze&&zN(Wn(Ze),O.checkJs)&&Cn(p,f.Private_field_0_must_be_declared_in_an_enclosing_class,Kr(p))}else Q.flags&65536&&!(Q.flags&32768)&&w!==1&&Qe(n,f.Private_accessor_was_defined_without_a_getter)}else{if(H)return He(a)&&I&&Zx(n,2,void 0,c),pr(U)?nt:U;Q=Ea(U,p.escapedText,u$(U),n.kind===167)}Zx(n,2,Q,c);let Ie;if(Q){let Te=gye(Q,p);if(Iu(Te)&&Khe(n,Te)&&Te.declarations&&Dm(p,Te.declarations,p.escapedText),Xpt(Q,n,p),A9(Q,n,O6e(a,I)),Vr(n).resolvedSymbol=Q,_ge(n,a.kind===108,gI(n),U,Q),AWe(n,Q,w))return Qe(p,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Kr(p)),nt;Ie=D6e(n,Q)?Rt:b||yW(n)?kv(Q):_r(Q)}else{let Te=!eo(p)&&(w===0||!_A(c)||DM(c))?Hx(U,p.escapedText):void 0;if(!(Te&&Te.type)){let Ze=bge(n,c.symbol,!0);return!Ze&&A4(c)?Ue:c.symbol===De?(De.exports.has(p.escapedText)&&De.exports.get(p.escapedText).flags&418?Qe(p,f.Property_0_does_not_exist_on_type_1,Vi(p.escapedText),ar(c)):ve&&Qe(p,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ar(c)),Ue):(p.escapedText&&!Jb(n)&&N6e(p,DM(c)?U:c,Ze),nt)}Te.isReadonly&&(yb(n)||DG(n))&&Qe(n,f.Index_signature_in_type_0_only_permits_reading,ar(U)),Ie=Te.type,O.noUncheckedIndexedAccess&&gb(n)!==1&&(Ie=pi([Ie,Ae])),O.noPropertyAccessFromIndexSignature&&qr(n)&&Qe(p,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Vi(p.escapedText)),Te.declaration&&Sh(Te.declaration)&&Dm(p,[Te.declaration],p.escapedText)}return C6e(n,Q,Ie,p,h)}function bge(n,a,c){var p;let h=Wn(n);if(h&&O.checkJs===void 0&&h.checkJsDirective===void 0&&(h.scriptKind===1||h.scriptKind===2)){let b=Je(a?.declarations,Wn),I=!a?.valueDeclaration||!ui(a.valueDeclaration)||((p=a.valueDeclaration.heritageClauses)==null?void 0:p.length)||Qy(!1,a.valueDeclaration);return!(h!==b&&b&&$y(b))&&!(c&&a&&a.flags&32&&I)&&!(n&&c&&qr(n)&&n.expression.kind===110&&I)}return!1}function C6e(n,a,c,p,h){let b=gb(n);if(b===1)return Gy(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!D$(a.declarations))return c;if(c===Rt)return ue(n,a);c=$_e(c,n,h);let I=!1;if(ie&&de&&Ks(n)&&n.expression.kind===110){let U=a&&a.valueDeclaration;if(U&&x3e(U)&&!ua(U)){let H=N2(n);H.kind===177&&H.parent===U.parent&&!(U.flags&33554432)&&(I=!0)}}else ie&&a&&a.valueDeclaration&&qr(a.valueDeclaration)&&sk(a.valueDeclaration)&&N2(n)===N2(a.valueDeclaration)&&(I=!0);let w=Vy(n,c,I?p0(c):c);return I&&!WC(c)&&WC(w)?(Qe(p,f.Property_0_is_used_before_being_assigned,uo(a)),c):b?zy(w):w}function Xpt(n,a,c){let{valueDeclaration:p}=n;if(!p||Wn(a).isDeclarationFile)return;let h,b=Kr(c);Tge(a)&&!Ist(p)&&!(Ks(a)&&Ks(a.expression))&&!Dy(p,c)&&!(Nl(p)&&F$(p)&256)&&(Z||!Ypt(n))?h=Qe(c,f.Property_0_is_used_before_its_initialization,b):p.kind===264&&a.parent.kind!==184&&!(p.flags&33554432)&&!Dy(p,c)&&(h=Qe(c,f.Class_0_used_before_its_declaration,b)),h&&pa(h,Ar(p,f._0_is_declared_here,b))}function Tge(n,a){return!!Dn(n,c=>{switch(c.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return a?!1:"quit";case 242:return Ms(c.parent)&&c.parent.kind!==220?"quit":!1;default:return!1}})}function Ypt(n){if(!(n.parent.flags&32))return!1;let a=_r(n.parent);for(;;){if(a=a.symbol&&$pt(a),!a)return!1;let c=Ea(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function $pt(n){let a=Qm(n);if(a.length!==0)return Ma(a)}function N6e(n,a,c){let p=Vr(n),h=p.nonExistentPropCheckCache||(p.nonExistentPropCheckCache=new Set),b=`${pd(a)}|${c}`;if(h.has(b))return;h.add(b);let I,w;if(!eo(n)&&a.flags&1048576&&!(a.flags&402784252)){for(let H of a.types)if(!Ea(H,n.escapedText)&&!Hx(H,n.escapedText)){I=qo(I,f.Property_0_does_not_exist_on_type_1,ws(n),ar(H));break}}if(M6e(n.escapedText,a)){let H=ws(n),Q=ar(a);I=qo(I,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,H,Q,Q+"."+H)}else{let H=t8(a);if(H&&Ea(H,n.escapedText))I=qo(I,f.Property_0_does_not_exist_on_type_1,ws(n),ar(a)),w=Ar(n,f.Did_you_forget_to_use_await);else{let Q=ws(n),Ie=ar(a),Te=eft(Q,a);if(Te!==void 0)I=qo(I,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,Q,Ie,Te);else{let Ze=Sge(n,a);if(Ze!==void 0){let Tt=wl(Ze),Dt=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;I=qo(I,Dt,Q,Ie,Tt),w=Ze.valueDeclaration&&Ar(Ze.valueDeclaration,f._0_is_declared_here,Tt)}else{let Tt=Qpt(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;I=qo(bhe(I,a),Tt,Q,Ie)}}}}let U=mg(Wn(n),n,I);w&&pa(U,w),Mg(!c||I.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,U)}function Qpt(n){return O.lib&&!O.lib.includes("lib.dom.d.ts")&&nut(n,a=>a.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Vi(a.symbol.escapedName)))&&Fy(n)}function M6e(n,a){let c=a.symbol&&Ea(_r(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&ua(c.valueDeclaration)}function Zpt(n){let a=yp(n),p=tG().get(a);return p&&xz(p.keys())}function eft(n,a){let c=Ru(a).symbol;if(!c)return;let p=wl(c),b=tG().get(p);if(b){for(let[I,w]of b)if(jn(w,n))return I}}function P6e(n,a){return E9(n,bs(a),106500)}function Sge(n,a){let c=bs(a);if(typeof n!="string"){let p=n.parent;qr(p)&&(c=Un(c,h=>W6e(p,a,h))),n=Kr(n)}return E9(n,c,111551)}function L6e(n,a){let c=Bo(n)?n:Kr(n),p=bs(a);return(c==="for"?hn(p,b=>wl(b)==="htmlFor"):c==="class"?hn(p,b=>wl(b)==="className"):void 0)??E9(c,p,111551)}function k6e(n,a){let c=Sge(n,a);return c&&wl(c)}function tft(n,a,c){let p=Sd(n,a,c);if(p)return p;let h;return n===lt?h=Ui(["string","number","boolean","object","bigint","symbol"],I=>n.has(I.charAt(0).toUpperCase()+I.slice(1))?ja(524288,I):void 0).concat(Co(n.values())):h=Co(n.values()),E9(Vi(a),h,c)}function w6e(n,a,c){return C.assert(a!==void 0,"outername should always be defined"),en(n,a,c,void 0,!1,!1)}function Ege(n,a){return a.exports&&E9(Kr(n),Lx(a),2623475)}function nft(n,a,c){function p(I){let w=mS(n,I);if(w){let U=CA(_r(w));return!!U&&kh(U)>=1&&aa(c,Lh(U,0))}return!1}let h=yb(a)?"set":"get";if(!p(h))return;let b=Dk(a.expression);return b===void 0?b=h:b+="."+h,b}function rft(n,a){let c=a.types.filter(p=>!!(p.flags&128));return o1(n.value,c,p=>p.value)}function E9(n,a,c){return o1(n,a,p);function p(h){let b=wl(h);if(!po(b,'"')){if(h.flags&c)return b;if(h.flags&2097152){let I=Cx(h);if(I&&I.flags&c)return b}}}}function A9(n,a,c){let p=n&&n.flags&106500&&n.valueDeclaration;if(!p)return;let h=Lp(p,2),b=n.valueDeclaration&&nd(n.valueDeclaration)&&eo(n.valueDeclaration.name);if(!(!h&&!b)&&!(a&&yW(a)&&!(n.flags&65536))){if(c){let I=Dn(a,Ms);if(I&&I.symbol===n)return}(Wl(n)&1?Jr(n).target:n).isReferenced=-1}}function O6e(n,a){return n.kind===110||!!a&&Ds(n)&&a===pu(Pu(n))}function ift(n,a){switch(n.kind){case 212:return Age(n,n.expression.kind===108,a,Xp(_o(n.expression)));case 167:return Age(n,!1,a,Xp(_o(n.left)));case 206:return Age(n,!1,a,Ji(n))}}function W6e(n,a,c){return Ige(n,n.kind===212&&n.expression.kind===108,!1,a,c)}function Age(n,a,c,p){if(wr(p))return!0;let h=Ea(p,c);return!!h&&Ige(n,a,!1,p,h)}function Ige(n,a,c,p,h){if(wr(p))return!0;if(h.valueDeclaration&&tu(h.valueDeclaration)){let b=hd(h.valueDeclaration);return!eu(n)&&!!Dn(n,I=>I===b)}return E6e(n,a,c,p,h)}function oft(n){let a=n.initializer;if(a.kind===262){let c=a.declarations[0];if(c&&!Qo(c.name))return Wr(c)}else if(a.kind===80)return pu(a)}function aft(n){return Xd(n).length===1&&!!Gg(n,Bt)}function sft(n){let a=ds(n);if(a.kind===80){let c=pu(a);if(c.flags&3){let p=n,h=n.parent;for(;h;){if(h.kind===250&&p===h.statement&&oft(h)===c&&aft(wd(h.expression)))return!0;p=h,h=h.parent}}}return!1}function lft(n,a){return n.flags&64?cft(n,a):F6e(n,VC(n.expression),a)}function cft(n,a){let c=_o(n.expression),p=L4(c,n.expression);return EY(F6e(n,T_(p,n.expression),a),n,p!==c)}function F6e(n,a,c){let p=gb(n)!==0||yge(n)?Xp(a):a,h=n.argumentExpression,b=_o(h);if(pr(p)||p===wt)return p;if(u$(p)&&!cs(h))return Qe(h,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),nt;let I=sft(h)?Bt:b,w=gb(n),U;w===0?U=32:(U=4|(_A(p)&&!DM(p)?2:0),w===2&&(U|=32));let H=l0(p,I,U,n)||nt;return JWe(C6e(n,Vr(n).resolvedSymbol,H,h,c),n)}function z6e(n){return Bh(n)||V0(n)||nu(n)}function DA(n){return z6e(n)&&Je(n.typeArguments,wa),n.kind===216?_o(n.template):nu(n)?_o(n.attributes):Nr(n)?_o(n.left):Bh(n)&&Je(n.arguments,a=>{_o(a)}),ur}function Ph(n){return DA(n),si}function dft(n,a,c){let p,h,b=0,I,w=-1,U;C.assert(!a.length);for(let H of n){let Q=H.declaration&&Wr(H.declaration),Ie=H.declaration&&H.declaration.parent;!h||Q===h?p&&Ie===p?I=I+1:(p=Ie,I=b):(I=b=a.length,p=Ie),h=Q,LSe(H)?(w++,U=w,b++):U=I,a.splice(U,0,c?Jat(H,c):H)}}function t$(n){return!!n&&(n.kind===231||n.kind===238&&n.isSpread)}function xge(n){return ho(n,t$)}function B6e(n){return!!(n.flags&16384)}function uft(n){return!!(n.flags&49155)}function n$(n,a,c,p=!1){if(Vm(n))return!0;let h,b=!1,I=Ep(c),w=kh(c);if(n.kind===216)if(h=a.length,n.template.kind===229){let U=Ba(n.template.templateSpans);b=Ol(U.literal)||!!U.literal.isUnterminated}else{let U=n.template;C.assert(U.kind===15),b=!!U.isUnterminated}else if(n.kind===171)h=K6e(n,c);else if(n.kind===227)h=1;else if(nu(n)){if(b=n.attributes.end===n.end,b)return!0;h=w===0?a.length:1,I=a.length===0?I:1,w=Math.min(w,1)}else if(n.arguments){h=p?a.length+1:a.length,b=n.arguments.end===n.end;let U=xge(a);if(U>=0)return U>=kh(c)&&(tg(c)||U<Ep(c))}else return C.assert(n.kind===215),kh(c)===0;if(!tg(c)&&h>I)return!1;if(b||h>=w)return!0;for(let U=h;U<w;U++){let H=Lh(c,U);if(Ac(H,Ir(n)&&!ie?uft:B6e).flags&131072)return!1}return!0}function Rge(n,a){let c=et(n.typeParameters),p=Q_(n.typeParameters);return!vt(a)||a.length>=p&&a.length<=c}function G6e(n,a){let c;return!!(n.target&&(c=xS(n.target,a))&&VT(c))}function CA(n){return H4(n,0,!1)}function V6e(n){return H4(n,0,!1)||H4(n,1,!1)}function H4(n,a,c){if(n.flags&524288){let p=Dh(n);if(c||p.properties.length===0&&p.indexInfos.length===0){if(a===0&&p.callSignatures.length===1&&p.constructSignatures.length===0)return p.callSignatures[0];if(a===1&&p.constructSignatures.length===1&&p.callSignatures.length===0)return p.constructSignatures[0]}}}function j6e(n,a,c,p){let h=O4(fOe(n),n,0,p),b=K4(a),I=c&&(b&&b.flags&262144?c.nonFixingMapper:c.mapper),w=I?vA(a,I):a;return x_e(w,n,(U,H)=>{Hg(h.inferences,U,H)}),c||R_e(a,n,(U,H)=>{Hg(h.inferences,U,H,128)}),T4(n,z_e(h),Ir(a.declaration))}function pft(n,a,c,p){let h=HY(a,n),b=HC(n.attributes,h,p,c);return Hg(p.inferences,b,h),z_e(p)}function U6e(n){if(!n)return In;let a=_o(n);return Fne(n)?a:CN(n.parent)?By(a):eu(n.parent)?SY(a):a}function Dge(n,a,c,p,h){if(nu(n))return pft(n,a,p,h);if(n.kind!==171&&n.kind!==227){let U=Vn(a.typeParameters,Q=>!!hS(Q)),H=Uu(n,U?8:0);if(H){let Q=ps(a);if(f0(Q)){let Ie=AS(n);if(!(!U&&Uu(n,8)!==H)){let Dt=M_e(e8e(Ie,1)),$t=io(H,Dt),Tn=CA($t),nr=Tn&&Tn.typeParameters?pA(xhe(Tn,Tn.typeParameters)):$t;Hg(h.inferences,nr,Q,128)}let Ze=O4(a.typeParameters,a,h.flags),Tt=io(H,Ie&&uct(Ie));Hg(Ze.inferences,Tt,Q),h.returnMapper=vt(Ze.inferences,qC)?M_e(Tdt(Ze)):void 0}}}let b=X4(a),I=b?Math.min(Ep(a)-1,c.length):c.length;if(b&&b.flags&262144){let U=hn(h.inferences,H=>H.typeParameter===b);U&&(U.impliedArity=ho(c,t$,I)<0?c.length-I:void 0)}let w=BT(a);if(w&&f0(w)){let U=J6e(n);Hg(h.inferences,U6e(U),w)}for(let U=0;U<I;U++){let H=c[U];if(H.kind!==233){let Q=Lh(a,U);if(f0(Q)){let Ie=HC(H,Q,h,p);Hg(h.inferences,Ie,Q)}}}if(b&&f0(b)){let U=Cge(c,I,c.length,b,h,p);Hg(h.inferences,U,b)}return z_e(h)}function H6e(n){return n.flags&1048576?Tl(n,H6e):n.flags&1||n9(Ld(n)||n)?n:Ka(n)?Z_(gS(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):Z_([n],[8])}function Cge(n,a,c,p,h,b){let I=uA(p);if(a>=c-1){let Q=n[c-1];if(t$(Q)){let Ie=Q.kind===238?Q.type:HC(Q.expression,p,h,b);return Bv(Ie)?H6e(Ie):Yd(Vv(33,Ie,_e,Q.kind===231?Q.expression:Q),I)}}let w=[],U=[],H=[];for(let Q=a;Q<c;Q++){let Ie=n[Q];if(t$(Ie)){let Te=Ie.kind===238?Ie.type:_o(Ie.expression);Bv(Te)?(w.push(Te),U.push(8)):(w.push(Vv(33,Te,_e,Ie.kind===231?Ie.expression:Ie)),U.push(4))}else{let Te=Ka(p)?dge(p,Q-a,c-a)||Nt:Jp(p,Ch(Q-a),256),Ze=HC(Ie,Te,h,b),Tt=I||ec(Te,406978556);w.push(Tt?Du(Ze):qT(Ze)),U.push(1)}Ie.kind===238&&Ie.tupleNameSource?H.push(Ie.tupleNameSource):H.push(void 0)}return Z_(w,U,I&&!im(p,b_e),H)}function Nge(n,a,c,p){let h=Ir(n.declaration),b=n.typeParameters,I=Wv(Vt(a,Ji),b,Q_(b),h),w;for(let U=0;U<a.length;U++){C.assert(b[U]!==void 0,"Should not call checkTypeArguments with too many type arguments");let H=ju(b[U]);if(H){let Q=c&&p?()=>qo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,Ie=p||f.Type_0_does_not_satisfy_the_constraint_1;w||(w=Kp(b,I));let Te=I[U];if(!$d(Te,qp(io(H,w),Te),c?a[U]:void 0,Ie,Q))return}}return I}function q6e(n){if(tR(n.tagName))return 2;let a=Ru(_o(n.tagName));return et(na(a,1))?0:et(na(a,0))?1:2}function fft(n,a,c,p,h,b,I){let w=HY(a,n),U=Vm(n)?m6e(n):HC(n.attributes,w,void 0,p),H=p&4?w4(U):U;return Q()&&d_e(H,w,c,h?Vm(n)?n:n.tagName:void 0,Vm(n)?void 0:n.attributes,void 0,b,I);function Q(){var Ie;if(YY(n))return!0;let Te=(ph(n)||_E(n))&&!(tR(n.tagName)||fh(n.tagName))?_o(n.tagName):void 0;if(!Te)return!0;let Ze=na(Te,0);if(!et(Ze))return!0;let Tt=xye(n);if(!Tt)return!0;let Dt=Gl(Tt,111551,!0,!1,n);if(!Dt)return!0;let $t=_r(Dt),Tn=na($t,0);if(!et(Tn))return!0;let nr=!1,yr=0;for(let vn of Tn){let Er=Lh(vn,0),fi=na(Er,0);if(et(fi))for(let oo of fi){if(nr=!0,tg(oo))return!0;let ii=Ep(oo);ii>yr&&(yr=ii)}}if(!nr)return!0;let Sn=1/0;for(let vn of Ze){let Er=kh(vn);Er<Sn&&(Sn=Er)}if(Sn<=yr)return!0;if(h){let vn=n.tagName,Er=Ar(vn,f.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Cp(vn),Sn,Cp(Tt),yr),fi=(Ie=om(vn))==null?void 0:Ie.valueDeclaration;fi&&pa(Er,Ar(fi,f._0_is_declared_here,Cp(vn))),I&&I.skipLogging&&(I.errors||(I.errors=[])).push(Er),I.skipLogging||ns.add(Er)}return!1}}function r$(n){let a=Ir(n)?-2147483615:33;return Ul(n,a)}function I9(n,a,c,p,h,b,I){let w={errors:void 0,skipLogging:!0};if(_te(n))return fft(n,c,p,h,b,I,w)?void 0:(C.assert(!b||!!w.errors,"jsx should have errors when reporting errors"),w.errors||ae);let U=BT(c);if(U&&U!==In&&!(L1(n)||Zo(n)&&fp(n.expression))){let Ze=J6e(n),Tt=U6e(Ze),Dt=b?Ze||n:void 0,$t=f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!tm(Tt,U,p,Dt,$t,I,w))return C.assert(!b||!!w.errors,"this parameter should have errors when reporting errors"),w.errors||ae}let H=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Q=X4(c),Ie=Q?Math.min(Ep(c)-1,a.length):a.length;for(let Ze=0;Ze<Ie;Ze++){let Tt=a[Ze];if(Tt.kind!==233){let Dt=Lh(c,Ze),$t=HC(Tt,Dt,void 0,h),Tn=h&4?w4($t):$t,nr=r$(Tt);if(!d_e(Tn,Dt,p,b?nr:void 0,nr,H,I,w))return C.assert(!b||!!w.errors,"parameter should have errors when reporting errors"),Te(Tt,Tn,Dt),w.errors||ae}}if(Q){let Ze=Cge(a,Ie,a.length,Q,void 0,h),Tt=a.length-Ie,Dt=b?Tt===0?n:Tt===1?r$(a[Ie]):uh(q4(n,Ze),a[Ie].pos,a[a.length-1].end):void 0;if(!tm(Ze,Q,p,Dt,H,void 0,w))return C.assert(!b||!!w.errors,"rest parameter should have errors when reporting errors"),Te(Dt,Ze,Q),w.errors||ae}return;function Te(Ze,Tt,Dt){if(Ze&&b&&w.errors&&w.errors.length){if(w2(Dt))return;let $t=w2(Tt);$t&&b_($t,Dt,p)&&pa(w.errors[0],Ar(Ze,f.Did_you_forget_to_use_await))}}}function J6e(n){if(n.kind===227)return n.right;let a=n.kind===214?n.expression:n.kind===216?n.tag:n.kind===171&&!J?n.expression:void 0;if(a){let c=Ul(a);if(Ks(c))return c.expression}}function q4(n,a,c,p){let h=$0.createSyntheticExpression(a,c,p);return bt(h,n),us(h,n),h}function i$(n){if(Vm(n))return[q4(n,vf)];if(n.kind===216){let p=n.template,h=[q4(p,Vst())];return p.kind===229&&Je(p.templateSpans,b=>{h.push(b.expression)}),h}if(n.kind===171)return mft(n);if(n.kind===227)return[n.left];if(nu(n))return n.attributes.properties.length>0||ph(n)&&n.parent.children.length>0?[n.attributes]:ae;let a=n.arguments||ae,c=xge(a);if(c>=0){let p=a.slice(0,c);for(let h=c;h<a.length;h++){let b=a[h],I=b.kind===231&&(Yn?_o(b.expression):Vl(b.expression));I&&Ka(I)?Je(gS(I),(w,U)=>{var H;let Q=I.target.elementFlags[U],Ie=q4(b,Q&4?Yd(w):w,!!(Q&12),(H=I.target.labeledElementDeclarations)==null?void 0:H[U]);p.push(Ie)}):p.push(b)}return p}return a}function mft(n){let a=n.expression,c=jge(n);if(c){let p=[];for(let h of c.parameters){let b=_r(h);p.push(q4(a,b))}return p}return C.fail()}function K6e(n,a){return O.experimentalDecorators?hft(n,a):Math.min(Math.max(Ep(a),1),2)}function hft(n,a){switch(n.parent.kind){case 264:case 232:return 1;case 173:return Jh(n.parent)?3:2;case 175:case 178:case 179:return a.parameters.length<=2?2:3;case 170:return 3;default:return C.fail()}}function X6e(n){let a=Wn(n),{start:c,length:p}=qS(a,qr(n.expression)?n.expression.name:n.expression);return{start:c,length:p,sourceFile:a}}function J4(n,a,...c){if(Zo(n)){let{sourceFile:p,start:h,length:b}=X6e(n);return"message"in a?Fc(p,h,b,a,...c):pG(p,a)}else return"message"in a?Ar(n,a,...c):mg(Wn(n),n,a)}function _ft(n){return Bh(n)?qr(n.expression)?n.expression.name:n.expression:V0(n)?qr(n.tag)?n.tag.name:n.tag:nu(n)?n.tagName:n}function gft(n){if(!Zo(n)||!He(n.expression))return!1;let a=_t(n.expression,n.expression.escapedText,111551,void 0,!1),c=a?.valueDeclaration;if(!c||!to(c)||!Ab(c.parent)||!L1(c.parent.parent)||!He(c.parent.parent.expression))return!1;let p=whe(!1);return p?om(c.parent.parent.expression,!0)===p:!1}function Y6e(n,a,c,p){var h;let b=xge(c);if(b>-1)return Ar(c[b],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let I=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,U=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY,Q;for(let Dt of a){let $t=kh(Dt),Tn=Ep(Dt);$t<I&&(I=$t,Q=Dt),w=Math.max(w,Tn),$t<c.length&&$t>U&&(U=$t),c.length<Tn&&Tn<H&&(H=Tn)}let Ie=vt(a,tg),Te=Ie?I:I<w?I+"-"+w:I,Ze=!Ie&&Te===1&&c.length===0&&gft(n);if(Ze&&Ir(n))return J4(n,f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);let Tt=zc(n)?Ie?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:Ie?f.Expected_at_least_0_arguments_but_got_1:Ze?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(I<c.length&&c.length<w){if(p){let Dt=qo(void 0,f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,U,H);return Dt=qo(Dt,p),J4(n,Dt)}return J4(n,f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,U,H)}else if(c.length<I){let Dt;if(p){let Tn=qo(void 0,Tt,Te,c.length);Tn=qo(Tn,p),Dt=J4(n,Tn)}else Dt=J4(n,Tt,Te,c.length);let $t=(h=Q?.declaration)==null?void 0:h.parameters[Q.thisParameter?c.length+1:c.length];if($t){let Tn=Qo($t.name)?[f.An_argument_matching_this_binding_pattern_was_not_provided]:D_($t)?[f.Arguments_for_the_rest_parameter_0_were_not_provided,Kr(Pu($t.name))]:[f.An_argument_for_0_was_not_provided,$t.name?Kr(Pu($t.name)):c.length],nr=Ar($t,...Tn);return pa(Dt,nr)}return Dt}else{let Dt=L.createNodeArray(c.slice(w)),$t=$a(Dt).pos,Tn=Ba(Dt).end;if(Tn===$t&&Tn++,uh(Dt,$t,Tn),p){let nr=qo(void 0,Tt,Te,c.length);return nr=qo(nr,p),UL(Wn(n),Dt,nr)}return WR(Wn(n),Dt,Tt,Te,c.length)}}function yft(n,a,c,p){let h=c.length;if(a.length===1){let w=a[0],U=Q_(w.typeParameters),H=et(w.typeParameters);if(p){let Q=qo(void 0,f.Expected_0_type_arguments_but_got_1,U<H?U+"-"+H:U,h);return Q=qo(Q,p),UL(Wn(n),c,Q)}return WR(Wn(n),c,f.Expected_0_type_arguments_but_got_1,U<H?U+"-"+H:U,h)}let b=-1/0,I=1/0;for(let w of a){let U=Q_(w.typeParameters),H=et(w.typeParameters);U>h?I=Math.min(I,U):H<h&&(b=Math.max(b,H))}if(b!==-1/0&&I!==1/0){if(p){let w=qo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,h,b,I);return w=qo(w,p),UL(Wn(n),c,w)}return WR(Wn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,h,b,I)}if(p){let w=qo(void 0,f.Expected_0_type_arguments_but_got_1,b===-1/0?I:b,h);return w=qo(w,p),UL(Wn(n),c,w)}return WR(Wn(n),c,f.Expected_0_type_arguments_but_got_1,b===-1/0?I:b,h)}function jC(n,a,c,p,h,b){let I=n.kind===216,w=n.kind===171,U=nu(n),H=Vm(n),Q=n.kind===227,Ie=!P&&!c,Te,Ze,Tt,Dt,$t=0,Tn=[],nr;if(!w&&!Q&&!JS(n)&&!H&&(nr=n.typeArguments,(I||U||n.expression.kind!==108)&&Je(nr,wa)),Tn=c||[],dft(a,Tn,h),!H&&!Tn.length)return Ie&&ns.add(J4(n,f.Call_target_does_not_contain_any_signatures)),Ph(n);let yr=i$(n),Sn=Tn.length===1&&!Tn[0].typeParameters;!w&&!Sn&&vt(yr,Df)&&($t=4);let vn=!!(p&16)&&n.kind===214&&n.arguments.hasTrailingComma;Tn.length>1&&(Dt=oo(Tn,U_,Sn,vn)),Dt||(Dt=oo(Tn,qd,Sn,vn));let Er=Vr(n);if(Er.resolvedSignature!==Dr&&!c)return C.assert(Er.resolvedSignature),Er.resolvedSignature;if(Dt)return Dt;if(Dt=vft(n,Tn,yr,!!c,p),Er.resolvedSignature=Dt,Ie){if(!b&&Q&&(b=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),Te)if(Te.length===1||Te.length>3){let ii=Te[Te.length-1],zi;Te.length>3&&(zi=qo(zi,f.The_last_overload_gave_the_following_error),zi=qo(zi,f.No_overload_matches_this_call)),b&&(zi=qo(zi,b));let Ko=I9(n,yr,ii,qd,0,!0,()=>zi);if(Ko)for(let fs of Ko)ii.declaration&&Te.length>3&&pa(fs,Ar(ii.declaration,f.The_last_overload_is_declared_here)),fi(ii,fs),ns.add(fs);else C.fail("No error for last overload signature")}else{let ii=[],zi=0,Ko=Number.MAX_VALUE,fs=0,fo=0;for(let rr of Te){let vr=I9(n,yr,rr,qd,0,!0,()=>qo(void 0,f.Overload_0_of_1_2_gave_the_following_error,fo+1,Tn.length,r0(rr)));vr?(vr.length<=Ko&&(Ko=vr.length,fs=fo),zi=Math.max(zi,vr.length),ii.push(vr)):C.fail("No error for 3 or fewer overload signatures"),fo++}let dl=zi>1?ii[fs]:la(ii);C.assert(dl.length>0,"No errors reported for 3 or fewer overload signatures");let Kl=qo(Vt(dl,Bte),f.No_overload_matches_this_call);b&&(Kl=qo(Kl,b));let fu=[...Ki(dl,rr=>rr.relatedInformation)],qn;if(Vn(dl,rr=>rr.start===dl[0].start&&rr.length===dl[0].length&&rr.file===dl[0].file)){let{file:rr,start:Hi,length:vr}=dl[0];qn={file:rr,start:Hi,length:vr,code:Kl.code,category:Kl.category,messageText:Kl,relatedInformation:fu}}else qn=mg(Wn(n),_ft(n),Kl,fu);fi(Te[0],qn),ns.add(qn)}else if(Ze)ns.add(Y6e(n,[Ze],yr,b));else if(Tt)Nge(Tt,n.typeArguments,!0,b);else if(!H){let ii=Un(a,zi=>Rge(zi,nr));ii.length===0?ns.add(yft(n,a,nr,b)):ns.add(Y6e(n,ii,yr,b))}}return Dt;function fi(ii,zi){var Ko,fs;let fo=Te,dl=Ze,Kl=Tt,fu=((fs=(Ko=ii.declaration)==null?void 0:Ko.symbol)==null?void 0:fs.declarations)||ae,rr=fu.length>1?hn(fu,Hi=>Ms(Hi)&&pm(Hi.body)):void 0;if(rr){let Hi=Rf(rr),vr=!Hi.typeParameters;oo([Hi],qd,vr)&&pa(zi,Ar(rr,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Te=fo,Ze=dl,Tt=Kl}function oo(ii,zi,Ko,fs=!1){if(Te=void 0,Ze=void 0,Tt=void 0,Ko){let fo=ii[0];if(vt(nr)||!n$(n,yr,fo,fs))return;if(I9(n,yr,fo,zi,0,!1,void 0)){Te=[fo];return}return fo}for(let fo=0;fo<ii.length;fo++){let dl=ii[fo];if(!Rge(dl,nr)||!n$(n,yr,dl,fs))continue;let Kl,fu;if(dl.typeParameters){let qn;if(vt(nr)){if(qn=Nge(dl,nr,!1),!qn){Tt=dl;continue}}else fu=O4(dl.typeParameters,dl,Ir(n)?2:0),qn=Dge(n,dl,yr,$t|8,fu),$t|=fu.flags&4?8:0;if(Kl=T4(dl,qn,Ir(dl.declaration),fu&&fu.inferredTypeParameters),X4(dl)&&!n$(n,yr,Kl,fs)){Ze=Kl;continue}}else Kl=dl;if(I9(n,yr,Kl,zi,$t,!1,void 0)){(Te||(Te=[])).push(Kl);continue}if($t){if($t=0,fu){let qn=Dge(n,dl,yr,$t,fu);if(Kl=T4(dl,qn,Ir(dl.declaration),fu.inferredTypeParameters),X4(dl)&&!n$(n,yr,Kl,fs)){Ze=Kl;continue}}if(I9(n,yr,Kl,zi,$t,!1,void 0)){(Te||(Te=[])).push(Kl);continue}}return ii[fo]=Kl,Kl}}}function vft(n,a,c,p,h){return C.assert(a.length>0),rR(n),p||a.length===1||a.some(b=>!!b.typeParameters)?Sft(n,a,c,h):bft(a)}function bft(n){let a=Ui(n,U=>U.thisParameter),c;a.length&&(c=$6e(a,a.map(D9)));let{min:p,max:h}=Sre(n,Tft),b=[];for(let U=0;U<h;U++){let H=Ui(n,Q=>au(Q)?U<Q.parameters.length-1?Q.parameters[U]:Ba(Q.parameters):U<Q.parameters.length?Q.parameters[U]:void 0);C.assert(H.length!==0),b.push($6e(H,Ui(n,Q=>xS(Q,U))))}let I=Ui(n,U=>au(U)?Ba(U.parameters):void 0),w=128;if(I.length!==0){let U=Yd(pi(Ui(n,pOe),2));b.push(Q6e(I,U)),w|=1}return n.some(LSe)&&(w|=2),g_(n[0].declaration,void 0,c,b,Ma(n.map(ps)),void 0,p,w)}function Tft(n){let a=n.parameters.length;return au(n)?a-1:a}function $6e(n,a){return Q6e(n,pi(a,2))}function Q6e(n,a){return TA($a(n),a)}function Sft(n,a,c,p){let h=Ift(a,at===void 0?c.length:at),b=a[h],{typeParameters:I}=b;if(!I)return b;let w=z6e(n)?n.typeArguments:void 0,U=w?HX(b,Eft(w,I,Ir(n))):Aft(n,I,b,c,p);return a[h]=U,U}function Eft(n,a,c){let p=n.map(iR);for(;p.length>a.length;)p.pop();for(;p.length<a.length;)p.push(hS(a[p.length])||ju(a[p.length])||F_e(c));return p}function Aft(n,a,c,p,h){let b=O4(a,c,Ir(n)?2:0),I=Dge(n,c,p,h|4|8,b);return HX(c,I)}function Ift(n,a){let c=-1,p=-1;for(let h=0;h<n.length;h++){let b=n[h],I=Ep(b);if(tg(b)||I>=a)return h;I>p&&(p=I,c=h)}return c}function xft(n,a,c){if(n.expression.kind===108){let U=BY(n.expression);if(wr(U)){for(let H of n.arguments)_o(H);return ur}if(!pr(U)){let H=lh(hd(n));if(H){let Q=zg(U,H.typeArguments,H);return jC(n,Q,a,c,0)}}return DA(n)}let p,h=_o(n.expression);if(zS(n)){let U=L4(h,n.expression);p=U===h?0:NN(n)?16:8,h=U}else p=0;if(h=I6e(h,n.expression,Upt),h===wt)return Fn;let b=Ru(h);if(pr(b))return Ph(n);let I=na(b,0),w=na(b,1).length;if(x9(h,b,I.length,w))return!pr(h)&&n.typeArguments&&Qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),DA(n);if(!I.length){if(w)Qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ar(h));else{let U;if(n.arguments.length===1){let H=Wn(n).text;Zd(H.charCodeAt(La(H,n.expression.end,!0)-1))&&(U=Ar(n.expression,f.Are_you_missing_a_semicolon))}Pge(n.expression,b,0,U)}return Ph(n)}return c&8&&!n.typeArguments&&I.some(Rft)?(OWe(n,c),Dr):I.some(U=>Ir(U.declaration)&&!!RB(U.declaration))?(Qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ar(h)),Ph(n)):jC(n,I,a,c,p)}function Rft(n){return!!(n.typeParameters&&Aye(ps(n)))}function x9(n,a,c,p){return wr(n)||wr(a)&&!!(n.flags&262144)||!c&&!p&&!(a.flags&1048576)&&!(Mm(a).flags&131072)&&aa(n,er)}function Dft(n,a,c){let p=VC(n.expression);if(p===wt)return Fn;if(p=Ru(p),pr(p))return Ph(n);if(wr(p))return n.typeArguments&&Qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),DA(n);let h=na(p,1);if(h.length){if(!Cft(n,h[0]))return Ph(n);if(Z6e(h,w=>!!(w.flags&4)))return Qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Ph(n);let I=p.symbol&&cy(p.symbol);return I&&di(I,64)?(Qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Ph(n)):jC(n,h,a,c,0)}let b=na(p,0);if(b.length){let I=jC(n,b,a,c,0);return ve||(I.declaration&&!S_(I.declaration)&&ps(I)!==In&&Qe(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),BT(I)===In&&Qe(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),I}return Pge(n.expression,p,1),Ph(n)}function Z6e(n,a){return Mo(n)?vt(n,c=>Z6e(c,a)):n.compositeKind===1048576?vt(n.compositeSignatures,a):a(n)}function Mge(n,a){let c=Qm(a);if(!et(c))return!1;let p=c[0];if(p.flags&2097152){let h=p.types,b=qwe(h),I=0;for(let w of p.types){if(!b[I]&&Hr(w)&3&&(w.symbol===n||Mge(n,w)))return!0;I++}return!1}return p.symbol===n?!0:Mge(n,p)}function Cft(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,p=mI(c,6);if(!p||c.kind!==177)return!0;let h=cy(c.parent.symbol),b=qs(c.parent.symbol);if(!Tye(n,h)){let I=hd(n);if(I&&p&4){let w=iR(I);if(Mge(c.parent.symbol,w))return!0}return p&2&&Qe(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ar(b)),p&4&&Qe(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ar(b)),!1}return!0}function eWe(n,a,c){let p,h=c===0,b=nR(a),I=b&&na(b,c).length>0;if(a.flags&1048576){let U=a.types,H=!1;for(let Q of U)if(na(Q,c).length!==0){if(H=!0,p)break}else if(p||(p=qo(p,h?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,ar(Q)),p=qo(p,h?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,ar(a))),H)break;H||(p=qo(void 0,h?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,ar(a))),p||(p=qo(p,h?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,ar(a)))}else p=qo(p,h?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,ar(a));let w=h?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(Zo(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:U}=Vr(n);U&&U.flags&32768&&(w=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:qo(p,w),relatedMessage:I?f.Did_you_forget_to_use_await:void 0}}function Pge(n,a,c,p){let{messageChain:h,relatedMessage:b}=eWe(n,a,c),I=mg(Wn(n),n,h);if(b&&pa(I,Ar(n,b)),Zo(n.parent)){let{start:w,length:U}=X6e(n.parent);I.start=w,I.length=U}ns.add(I),tWe(a,c,p?pa(I,p):I)}function tWe(n,a,c){if(!n.symbol)return;let p=Jr(n.symbol).originatingImport;if(p&&!Yu(p)){let h=na(_r(Jr(n.symbol).target),a);if(!h||!h.length)return;pa(c,Ar(p,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 Nft(n,a,c){let p=_o(n.tag),h=Ru(p);if(pr(h))return Ph(n);let b=na(h,0),I=na(h,1).length;if(x9(p,h,b.length,I))return DA(n);if(!b.length){if(Cd(n.parent)){let w=Ar(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 ns.add(w),Ph(n)}return Pge(n.tag,h,0),Ph(n)}return jC(n,b,a,c,0)}function Mft(n){switch(n.parent.kind){case 264:case 232:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 170:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 173:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 175:case 178:case 179:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return C.fail()}}function Pft(n,a,c){let p=_o(n.expression),h=Ru(p);if(pr(h))return Ph(n);let b=na(h,0),I=na(h,1).length;if(x9(p,h,b.length,I))return DA(n);if(wft(n,b)&&!wu(n.expression)){let U=Al(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,U),Ph(n)}let w=Mft(n);if(!b.length){let U=eWe(n.expression,h,0),H=qo(U.messageChain,w),Q=mg(Wn(n.expression),n.expression,H);return U.relatedMessage&&pa(Q,Ar(n.expression,U.relatedMessage)),ns.add(Q),tWe(h,0,Q),Ph(n)}return jC(n,b,a,c,0,w)}function o$(n,a){let c=RA(n),p=c&&Up(c),h=p&&Sd(p,hf.Element,788968),b=h&&be.symbolToEntityName(h,788968,n),I=L.createFunctionTypeNode(void 0,[L.createParameterDeclaration(void 0,void 0,"props",void 0,be.typeToTypeNode(a,n))],b?L.createTypeReferenceNode(b,void 0):L.createKeywordTypeNode(133)),w=ja(1,"props");return w.links.type=a,g_(I,void 0,void 0,[w],h?qs(h):nt,void 0,1,0)}function nWe(n){let a=Vr(Wn(n));if(a.jsxFragmentType!==void 0)return a.jsxFragmentType;let c=Hm(n);if(!((O.jsx===2||O.jsxFragmentFactory!==void 0)&&c!=="null"))return a.jsxFragmentType=Ue;let h=O.jsx!==1&&O.jsx!==3,b=ns?f.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,I=YY(n)??_t(n,c,h?111551:111167,b,!0);if(I===void 0)return a.jsxFragmentType=nt;if(I.escapedName===IU.Fragment)return a.jsxFragmentType=_r(I);let w=(I.flags&2097152)===0?I:ud(I),U=I&&Up(w),H=U&&Sd(U,IU.Fragment,2),Q=H&&_r(H);return a.jsxFragmentType=Q===void 0?nt:Q}function Lft(n,a,c){let p=Vm(n),h;if(p)h=nWe(n);else{if(tR(n.tagName)){let w=v6e(n),U=o$(n,w);return SS(HC(n.attributes,HY(U,n),void 0,0),w,n.tagName,n.attributes),et(n.typeArguments)&&(Je(n.typeArguments,wa),ns.add(WR(Wn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,et(n.typeArguments)))),U}h=_o(n.tagName)}let b=Ru(h);if(pr(b))return Ph(n);let I=g6e(h,n);return x9(h,b,I.length,0)?DA(n):I.length===0?(p?Qe(n,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Al(n)):Qe(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Al(n.tagName)),Ph(n)):jC(n,I,a,c,0)}function kft(n,a,c){let p=_o(n.right);if(!wr(p)){let h=Kge(p);if(h){let b=Ru(h);if(pr(b))return Ph(n);let I=na(b,0),w=na(b,1);if(x9(h,b,I.length,w.length))return DA(n);if(I.length)return jC(n,I,a,c,0)}else if(!(M$(p)||TS(p,er)))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),Ph(n)}return ur}function wft(n,a){return a.length&&Vn(a,c=>c.minArgumentCount===0&&!au(c)&&c.parameters.length<K6e(n,c))}function Oft(n,a,c){switch(n.kind){case 214:return xft(n,a,c);case 215:return Dft(n,a,c);case 216:return Nft(n,a,c);case 171:return Pft(n,a,c);case 290:case 287:case 286:return Lft(n,a,c);case 227:return kft(n,a,c)}C.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function UC(n,a,c){let p=Vr(n),h=p.resolvedSignature;if(h&&h!==Dr&&!a)return h;let b=vv;h||(vv=Ng.length),p.resolvedSignature=Dr;let I=Oft(n,a,c||0);return vv=b,I!==Dr&&(p.resolvedSignature=Lr===Yn?I:h),I}function S_(n){var a;if(!n||!Ir(n))return!1;let c=Ql(n)||Us(n)?n:(yi(n)||Nc(n))&&n.initializer&&Us(n.initializer)?n.initializer:void 0;if(c){if(RB(n))return!0;if(Nc(Fm(c.parent)))return!1;let p=Wr(c);return!!((a=p?.members)!=null&&a.size)}return!1}function Lge(n,a){var c,p;if(a){let h=Jr(a);if(!h.inferredClassSymbol||!h.inferredClassSymbol.has(Ta(n))){let b=ug(n)?n:rS(n);return b.exports=b.exports||da(),b.members=b.members||da(),b.flags|=a.flags&32,(c=a.exports)!=null&&c.size&&f_(b.exports,a.exports),(p=a.members)!=null&&p.size&&f_(b.members,a.members),(h.inferredClassSymbol||(h.inferredClassSymbol=new Map)).set(Ta(b),b),b}return h.inferredClassSymbol.get(Ta(n))}}function Wft(n){var a;let c=n&&a$(n,!0),p=(a=c?.exports)==null?void 0:a.get("prototype"),h=p?.valueDeclaration&&Fft(p.valueDeclaration);return h?Wr(h):void 0}function a$(n,a){if(!n.parent)return;let c,p;if(yi(n.parent)&&n.parent.initializer===n){if(!Ir(n)&&!(c8(n.parent)&&Ms(n)))return;c=n.parent.name,p=n.parent}else if(Nr(n.parent)){let h=n.parent,b=n.parent.operatorToken.kind;if(b===64&&(a||h.right===n))c=h.left,p=c;else if((b===57||b===61)&&(yi(h.parent)&&h.parent.initializer===h?(c=h.parent.name,p=h.parent):Nr(h.parent)&&h.parent.operatorToken.kind===64&&(a||h.parent.right===h)&&(c=h.parent.left,p=c),!c||!$S(c)||!jR(c,h.left)))return}else a&&Ql(n)&&(c=n.name,p=n);if(!(!p||!c||!a&&!P0(n,Tb(c))))return Af(p)}function Fft(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===212;)a=a.parent;if(a&&Nr(a)&&Tb(a.left)&&a.operatorToken.kind===64){let c=EG(a);return Wa(c)&&c}}function zft(n,a){var c,p,h;X9(n,n.typeArguments);let b=UC(n,void 0,a);if(b===Dr)return wt;if(s$(b,n),n.expression.kind===108)return In;if(n.kind===215){let w=b.declaration;if(w&&w.kind!==177&&w.kind!==181&&w.kind!==186&&!(dv(w)&&((p=(c=qR(w))==null?void 0:c.parent)==null?void 0:p.kind)===177)&&!dI(w)&&!S_(w))return ve&&Qe(n,f.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ue}if(Ir(n)&&aWe(n))return dOe(n.arguments[0]);let I=ps(b);if(I.flags&12288&&rWe(n))return n_e(Fm(n.parent));if(n.kind===214&&!n.questionDotToken&&n.parent.kind===245&&I.flags&16384&&em(b)){if(!xk(n.expression))Qe(n.expression,f.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!u9(n)){let w=Qe(n.expression,f.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);d9(n.expression,w)}}if(Ir(n)){let w=a$(n,!1);if((h=w?.exports)!=null&&h.size){let U=bl(w,w.exports,ae,ae,ae);return U.objectFlags|=4096,Ma([I,U])}}return I}function s$(n,a){if(!(n.flags&128)&&n.declaration&&n.declaration.flags&536870912){let c=R9(a),p=Dk(B6(a));ST(c,n.declaration,p,r0(n))}}function R9(n){switch(n=ds(n),n.kind){case 214:case 171:case 215:return R9(n.expression);case 216:return R9(n.tag);case 287:case 286:return R9(n.tagName);case 213:return n.argumentExpression;case 212:return n.name;case 184:let a=n;return Lu(a.typeName)?a.typeName.right:a;default:return n}}function rWe(n){if(!Zo(n))return!1;let a=n.expression;if(qr(a)&&a.name.escapedText==="for"&&(a=a.expression),!He(a)||a.escapedText!=="Symbol")return!1;let c=MOe(!1);return c?c===_t(a,"Symbol",111551,void 0,!1):!1}function Bft(n){if(lvt(n),n.arguments.length===0)return P9(n,Ue);let a=n.arguments[0],c=Vl(a),p=n.arguments.length>1?Vl(n.arguments[1]):void 0;for(let b=2;b<n.arguments.length;++b)Vl(n.arguments[b]);if((c.flags&32768||c.flags&65536||!aa(c,gt))&&Qe(a,f.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,ar(c)),p){let b=NOe(!0);b!==Ra&&$d(p,i9(b,32768),n.arguments[1])}let h=du(n,a);if(h){let b=Og(h,a,!0,!1);if(b)return P9(n,iWe(_r(b),b,h,a)||oWe(_r(b),b,h,a))}return P9(n,Ue)}function kge(n,a,c){let p=da(),h=ja(2097152,"default");return h.parent=a,h.links.nameType=Tp("default"),h.links.aliasTarget=hc(n),p.set("default",h),bl(c,p,ae,ae,ae)}function iWe(n,a,c,p){if($b(p)&&n&&!pr(n)){let b=n;if(!b.defaultOnlyType){let I=kge(a,c);b.defaultOnlyType=I}return b.defaultOnlyType}}function oWe(n,a,c,p){var h;if(ye&&n&&!pr(n)){let b=n;if(!b.syntheticType){let I=(h=c.declarations)==null?void 0:h.find(Yi);if(RT(I,c,!1,p)){let U=ja(2048,"__type"),H=kge(a,c,U);U.links.type=H,b.syntheticType=y9(n)?yS(n,H,U,0,!1):H}else b.syntheticType=n}return b.syntheticType}return n}function aWe(n){if(!$u(n,!0))return!1;if(!He(n.expression))return C.fail();let a=_t(n.expression,n.expression.escapedText,111551,void 0,!0);if(a===je)return!0;if(a.flags&2097152)return!1;let c=a.flags&16?263:a.flags&3?261:0;if(c!==0){let p=al(a,c);return!!p&&!!(p.flags&33554432)}return!1}function Gft(n){wyt(n)||X9(n,n.typeArguments),G<ed.TaggedTemplates&&Qc(n,262144);let a=UC(n);return s$(a,n),ps(a)}function Vft(n,a){if(n.kind===217){let c=Wn(n);if(c&&Yl(c.fileName,[".cts",".mts"])&&Cn(n,f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead),O.erasableSyntaxOnly){let p=La(c.text,n.pos),h=n.expression.pos;ns.add(Fc(c,p,h-p,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled))}}return sWe(n,a)}function wge(n){switch(n.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 210:case 211:case 229:return!0;case 218:return wge(n.expression);case 225:let a=n.operator,c=n.operand;return a===41&&(c.kind===9||c.kind===10)||a===40&&c.kind===9;case 212:case 213:let p=ds(n.expression),h=Ds(p)?Gl(p,111551,!0):void 0;return!!(h&&h.flags&384)}return!1}function sWe(n,a){let{type:c,expression:p}=lWe(n),h=_o(p,a);if(wm(c))return wge(p)||Qe(p,f.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Du(h);let b=Vr(n);return b.assertionExpressionType=h,wa(c),rR(n),Ji(c)}function lWe(n){let a,c;switch(n.kind){case 235:case 217:a=n.type,c=n.expression;break;case 218:a=SD(n),c=n.expression;break}return{type:a,expression:c}}function jft(n){let{type:a}=lWe(n),c=wu(n)?a:n,p=Vr(n);C.assertIsDefined(p.assertionExpressionType);let h=w4(zy(p.assertionExpressionType)),b=Ji(a);pr(b)||r(()=>{let I=Xp(h);uY(b,I)||L4e(h,b,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 Uft(n){let a=_o(n.expression),c=L4(a,n.expression);return EY(By(c),n,c!==a)}function Hft(n){return n.flags&64?Uft(n):By(_o(n.expression))}function cWe(n){if(tFe(n),Je(n.typeArguments,wa),n.kind===234){let c=Fm(n.parent);c.kind===227&&c.operatorToken.kind===104&&y1(n,c.right)&&Qe(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=n.kind===234?_o(n.expression):bb(n.exprName)?h9(n.exprName):_o(n.exprName);return dWe(a,n)}function dWe(n,a){let c=a.typeArguments;if(n===wt||pr(n)||!vt(c))return n;let p=Vr(a);if(p.instantiationExpressionTypes||(p.instantiationExpressionTypes=new Map),p.instantiationExpressionTypes.has(n.id))return p.instantiationExpressionTypes.get(n.id);let h=!1,b,I=U(n);p.instantiationExpressionTypes.set(n.id,I);let w=h?b:n;return w&&ns.add(WR(Wn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,ar(w))),I;function U(Q){let Ie=!1,Te=!1,Ze=Tt(Q);return h||(h=Te),Ie&&!Te&&(b??(b=Q)),Ze;function Tt(Dt){if(Dt.flags&524288){let $t=Dh(Dt),Tn=H($t.callSignatures),nr=H($t.constructSignatures);if(Ie||(Ie=$t.callSignatures.length!==0||$t.constructSignatures.length!==0),Te||(Te=Tn.length!==0||nr.length!==0),Tn!==$t.callSignatures||nr!==$t.constructSignatures){let yr=bl(ja(0,"__instantiationExpression"),$t.members,Tn,nr,$t.indexInfos);return yr.objectFlags|=8388608,yr.node=a,yr}}else if(Dt.flags&58982400){let $t=Ld(Dt);if($t){let Tn=Tt($t);if(Tn!==$t)return Tn}}else{if(Dt.flags&1048576)return Tl(Dt,U);if(Dt.flags&2097152)return Ma(Zi(Dt.types,Tt))}return Dt}}function H(Q){let Ie=Un(Q,Te=>!!Te.typeParameters&&Rge(Te,c));return Zi(Ie,Te=>{let Ze=Nge(Te,c,!0);return Ze?T4(Te,Ze,Ir(Te.declaration)):Te})}}function qft(n){return wa(n.type),Oge(n.expression,n.type)}function Oge(n,a,c){let p=_o(n,c),h=Ji(a);if(pr(h))return h;let b=Dn(a.parent,I=>I.kind===239||I.kind===351);return SS(p,h,b,n,f.Type_0_does_not_satisfy_the_expected_type_1),p}function Jft(n){return $yt(n),n.keywordToken===105?Wge(n):n.keywordToken===102?n.name.escapedText==="defer"?(C.assert(!Zo(n.parent)||n.parent.expression!==n,"Trying to get the type of `import.defer` in `import.defer(...)`"),nt):Kft(n):C.assertNever(n.keywordToken)}function uWe(n){switch(n.keywordToken){case 102:return COe();case 105:let a=Wge(n);return pr(a)?nt:umt(a);default:C.assertNever(n.keywordToken)}}function Wge(n){let a=tne(n);if(a)if(a.kind===177){let c=Wr(a.parent);return _r(c)}else{let c=Wr(a);return _r(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"),nt}function Kft(n){100<=j&&j<=199?Wn(n).impliedNodeFormat!==99&&Qe(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):j<6&&j!==4&&Qe(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);let a=Wn(n);return C.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?DOe():nt}function D9(n){let a=n.valueDeclaration;return uu(_r(n),!1,!!a&&(Yy(a)||II(a)))}function Fge(n,a,c){switch(n.name.kind){case 80:{let p=n.name.escapedText;return n.dotDotDotToken?c&12?p:`${p}_${a}`:c&3?p:`${p}_n`}case 208:{if(n.dotDotDotToken){let p=n.name.elements,h=ni(Zs(p),Ha),b=p.length-(h?.dotDotDotToken?1:0);if(a<b){let I=p[a];if(Ha(I))return Fge(I,a,c)}else if(h?.dotDotDotToken)return Fge(h,a-b,c)}break}}return`arg_${a}`}function zge(n,a=0,c=3,p){if(!n){let h=ni(p?.valueDeclaration,to);return h?Fge(h,a,c):`${p?.escapedName??"arg"}_${a}`}return C.assert(He(n.name)),n.name.escapedText}function M2(n,a,c){var p;let h=n.parameters.length-(au(n)?1:0);if(a<h)return n.parameters[a].escapedName;let b=n.parameters[h]||ne,I=c||_r(b);if(Ka(I)){let w=I.target,U=a-h,H=(p=w.labeledElementDeclarations)==null?void 0:p[U],Q=w.elementFlags[U];return zge(H,U,Q,b)}return b.escapedName}function Xft(n,a){var c;if(((c=n.declaration)==null?void 0:c.kind)===318)return;let p=n.parameters.length-(au(n)?1:0);if(a<p){let w=n.parameters[a],U=pWe(w);return U?{parameter:U,parameterName:w.escapedName,isRestParameter:!1}:void 0}let h=n.parameters[p]||ne,b=pWe(h);if(!b)return;let I=_r(h);if(Ka(I)){let w=I.target.labeledElementDeclarations,U=a-p,H=w?.[U],Q=!!H?.dotDotDotToken;return H?(C.assert(He(H.name)),{parameter:H.name,parameterName:H.name.escapedText,isRestParameter:Q}):void 0}if(a===p)return{parameter:b,parameterName:h.escapedName,isRestParameter:!0}}function pWe(n){return n.valueDeclaration&&to(n.valueDeclaration)&&He(n.valueDeclaration.name)&&n.valueDeclaration.name}function fWe(n){return n.kind===203||to(n)&&n.name&&He(n.name)}function Yft(n,a){let c=n.parameters.length-(au(n)?1:0);if(a<c){let b=n.parameters[a].valueDeclaration;return b&&fWe(b)?b:void 0}let p=n.parameters[c]||ne,h=_r(p);if(Ka(h)){let b=h.target.labeledElementDeclarations,I=a-c;return b&&b[I]}return p.valueDeclaration&&fWe(p.valueDeclaration)?p.valueDeclaration:void 0}function Lh(n,a){return xS(n,a)||Ue}function xS(n,a){let c=n.parameters.length-(au(n)?1:0);if(a<c)return D9(n.parameters[a]);if(au(n)){let p=_r(n.parameters[c]),h=a-c;if(!Ka(p)||p.target.combinedFlags&12||h<p.target.fixedLength)return Jp(p,Ch(h))}}function C9(n,a,c){let p=Ep(n),h=kh(n),b=K4(n);if(b&&a>=p-1)return a===p-1?b:Yd(Jp(b,Bt));let I=[],w=[],U=[];for(let H=a;H<p;H++)!b||H<p-1?(I.push(Lh(n,H)),w.push(H<h?1:2)):(I.push(b),w.push(8)),U.push(Yft(n,H));return Z_(I,w,c,U)}function mWe(n,a){let c=C9(n,a),p=c&&r9(c);return p&&wr(p)?Ue:c}function Ep(n){let a=n.parameters.length;if(au(n)){let c=_r(n.parameters[a-1]);if(Ka(c))return a+c.target.fixedLength-(c.target.combinedFlags&12?0:1)}return a}function kh(n,a){let c=a&1,p=a&2;if(p||n.resolvedMinArgumentCount===void 0){let h;if(au(n)){let b=_r(n.parameters[n.parameters.length-1]);if(Ka(b)){let I=ho(b.target.elementFlags,U=>!(U&1)),w=I<0?b.target.fixedLength:I;w>0&&(h=n.parameters.length-1+w)}}if(h===void 0){if(!c&&n.flags&32)return 0;h=n.minArgumentCount}if(p)return h;for(let b=h-1;b>=0;b--){let I=Lh(n,b);if(Ac(I,B6e).flags&131072)break;h=b}n.resolvedMinArgumentCount=h}return n.resolvedMinArgumentCount}function tg(n){if(au(n)){let a=_r(n.parameters[n.parameters.length-1]);return!Ka(a)||!!(a.target.combinedFlags&12)}return!1}function K4(n){if(au(n)){let a=_r(n.parameters[n.parameters.length-1]);if(!Ka(a))return wr(a)?bd:a;if(a.target.combinedFlags&12)return S2(a,a.target.fixedLength)}}function X4(n){let a=K4(n);return a&&!nm(a)&&!wr(a)?a:void 0}function Bge(n){return Gge(n,yn)}function Gge(n,a){return n.parameters.length>0?Lh(n,0):a}function hWe(n,a,c){let p=n.parameters.length-(au(n)?1:0);for(let b=0;b<p;b++){let I=n.parameters[b].valueDeclaration,w=Rc(I);if(w){let U=uu(Ji(w),!1,II(I)),H=Lh(a,b);Hg(c.inferences,U,H)}}let h=n.declaration&&Pp(n.declaration);if(h){let b=Ji(h),I=ps(a);Hg(c.inferences,b,I)}}function $ft(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){let p=n.thisParameter;(!p||p.valueDeclaration&&!p.valueDeclaration.type)&&(p||(n.thisParameter=TA(a.thisParameter,void 0)),N9(n.thisParameter,_r(a.thisParameter)))}let c=n.parameters.length-(au(n)?1:0);for(let p=0;p<c;p++){let h=n.parameters[p],b=h.valueDeclaration;if(!Rc(b)){let I=xS(a,p);if(I&&b.initializer){let w=P2(b,0);!aa(w,I)&&aa(I,w=Yge(b,w))&&(I=w)}N9(h,I)}}if(au(n)){let p=Ba(n.parameters);if(p.valueDeclaration?!Rc(p.valueDeclaration):Wl(p)&65536){let h=C9(a,c);N9(p,h)}}}function Qft(n){n.thisParameter&&N9(n.thisParameter);for(let a of n.parameters)N9(a)}function N9(n,a){let c=Jr(n);if(c.type)a&&C.assertEqual(c.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{let p=n.valueDeclaration;c.type=uu(a||(p?Vx(p,!0):_r(n)),!1,!!p&&!p.initializer&&II(p)),p&&p.name.kind!==80&&(c.type===Nt&&(c.type=d2(p.name)),_We(p.name,c.type))}}function _We(n,a){for(let c of n.elements)if(!Kc(c)){let p=i0(c,a,!1);c.name.kind===80?Jr(Wr(c)).type=p:_We(c.name,p)}}function Zft(n){return PC(olt(!0),[n])}function emt(n,a){return PC(alt(!0),[n,a])}function tmt(n,a){return PC(slt(!0),[n,a])}function nmt(n,a){return PC(llt(!0),[n,a])}function rmt(n,a){return PC(clt(!0),[n,a])}function imt(n,a){return PC(plt(!0),[n,a])}function omt(n,a,c){let p=`${a?"p":"P"}${c?"s":"S"}${n.id}`,h=Uo.get(p);if(!h){let b=da();b.set("name",Ev("name",n)),b.set("private",Ev("private",a?ft:tr)),b.set("static",Ev("static",c?ft:tr)),h=bl(void 0,b,ae,ae,ae),Uo.set(p,h)}return h}function gWe(n,a,c){let p=Wc(n),h=eo(n.name),b=h?Tp(Kr(n.name)):ky(n.name),I=Nl(n)?emt(a,c):jf(n)?tmt(a,c):_p(n)?nmt(a,c):Ku(n)?rmt(a,c):Po(n)?imt(a,c):C.failBadSyntaxKind(n),w=omt(b,h,p);return Ma([I,w])}function amt(n,a){return PC(dlt(!0),[n,a])}function smt(n,a){return PC(ult(!0),[n,a])}function lmt(n,a){let c=Sf("this",n),p=Sf("value",a);return rye(void 0,c,[p],a,void 0,1)}function Vge(n,a,c){let p=Sf("target",n),h=Sf("context",a),b=pi([c,In]);return n8(void 0,void 0,[p,h],b)}function cmt(n){let{parent:a}=n,c=Vr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=ur,a.kind){case 264:case 232:{let h=_r(Wr(a)),b=Zft(h);c.decoratorSignature=Vge(h,b,h);break}case 175:case 178:case 179:{let p=a;if(!ui(p.parent))break;let h=Nl(p)?pA(Rf(p)):iR(p),b=Wc(p)?_r(Wr(p.parent)):Zf(Wr(p.parent)),I=jf(p)?YWe(h):_p(p)?$We(h):h,w=gWe(p,b,h),U=jf(p)?YWe(h):_p(p)?$We(h):h;c.decoratorSignature=Vge(I,w,U);break}case 173:{let p=a;if(!ui(p.parent))break;let h=iR(p),b=Wc(p)?_r(Wr(p.parent)):Zf(Wr(p.parent)),I=Jh(p)?amt(b,h):_e,w=gWe(p,b,h),U=Jh(p)?smt(b,h):lmt(b,h);c.decoratorSignature=Vge(I,w,U);break}}return c.decoratorSignature===ur?void 0:c.decoratorSignature}function dmt(n){let{parent:a}=n,c=Vr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=ur,a.kind){case 264:case 232:{let h=_r(Wr(a)),b=Sf("target",h);c.decoratorSignature=n8(void 0,void 0,[b],pi([h,In]));break}case 170:{let p=a;if(!Ml(p.parent)&&!(Nl(p.parent)||_p(p.parent)&&ui(p.parent.parent))||T1(p.parent)===p)break;let h=T1(p.parent)?p.parent.parameters.indexOf(p)-1:p.parent.parameters.indexOf(p);C.assert(h>=0);let b=Ml(p.parent)?_r(Wr(p.parent.parent)):j3e(p.parent),I=Ml(p.parent)?_e:U3e(p.parent),w=Ch(h),U=Sf("target",b),H=Sf("propertyKey",I),Q=Sf("parameterIndex",w);c.decoratorSignature=n8(void 0,void 0,[U,H,Q],In);break}case 175:case 178:case 179:case 173:{let p=a;if(!ui(p.parent))break;let h=j3e(p),b=Sf("target",h),I=U3e(p),w=Sf("propertyKey",I),U=Po(p)?In:FOe(iR(p));if(!Po(a)||Jh(a)){let Q=FOe(iR(p)),Ie=Sf("descriptor",Q);c.decoratorSignature=n8(void 0,void 0,[b,w,Ie],pi([U,In]))}else c.decoratorSignature=n8(void 0,void 0,[b,w],pi([U,In]));break}}return c.decoratorSignature===ur?void 0:c.decoratorSignature}function jge(n){return J?dmt(n):cmt(n)}function M9(n){let a=B5(!0);return a!==Zt?(n=jy(O2(n))||Nt,Ly(a,[n])):Nt}function yWe(n){let a=LOe(!0);return a!==Zt?(n=jy(O2(n))||Nt,Ly(a,[n])):Nt}function P9(n,a){let c=M9(a);return c===Nt?(Qe(n,Yu(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),nt):(whe(!0)||Qe(n,Yu(n)?f.A_dynamic_import_call_in_ES5_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_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){let a=ja(0,"NewTargetExpression"),c=ja(4,"target",8);c.parent=a,c.links.type=n;let p=da([c]);return a.members=p,bl(a,p,ae,ae,ae)}function l$(n,a){if(!n.body)return nt;let c=dc(n),p=(c&2)!==0,h=(c&1)!==0,b,I,w,U=In;if(n.body.kind!==242)b=Vl(n.body,a&&a&-9),p&&(b=O2(F9(b,!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(h){let H=SWe(n,a);H?H.length>0&&(b=pi(H,2)):U=yn;let{yieldTypes:Q,nextTypes:Ie}=pmt(n,a);I=vt(Q)?pi(Q,2):void 0,w=vt(Ie)?Ma(Ie):void 0}else{let H=SWe(n,a);if(!H)return c&2?P9(n,yn):yn;if(H.length===0){let Q=GY(n,void 0),Ie=Q&&(U9(Q,c)||In).flags&32768?_e:In;return c&2?P9(n,Ie):Ie}b=pi(H,2)}if(b||I||w){if(I&&RY(n,I,3),b&&RY(n,b,1),w&&RY(n,w,2),b&&Nh(b)||I&&Nh(I)||w&&Nh(w)){let H=qY(n),Q=H?H===Rf(n)?h?void 0:b:jY(ps(H),n,void 0):void 0;h?(I=A_e(I,Q,0,p),b=A_e(b,Q,1,p),w=A_e(w,Q,2,p)):b=odt(b,Q,p)}I&&(I=Xp(I)),b&&(b=Xp(b)),w&&(w=Xp(w))}return h?c$(I||yn,b||U,w||Z8e(2,n)||Nt,p):p?M9(b||U):b||U}function c$(n,a,c,p){let h=p?mc:Hs,b=h.getGlobalGeneratorType(!1);if(n=h.resolveIterationType(n,void 0)||Nt,a=h.resolveIterationType(a,void 0)||Nt,b===Zt){let I=h.getGlobalIterableIteratorType(!1);return I!==Zt?T2(I,[n,a,c]):(h.getGlobalIterableIteratorType(!0),Ra)}return T2(b,[n,a,c])}function pmt(n,a){let c=[],p=[],h=(dc(n)&2)!==0;return Hte(n.body,b=>{let I=b.expression?_o(b.expression,a):B;Pf(c,vWe(b,I,Ue,h));let w;if(b.asteriskToken){let U=T$(I,h?19:17,b.expression);w=U&&U.nextType}else w=Uu(b,void 0);w&&Pf(p,w)}),{yieldTypes:c,nextTypes:p}}function vWe(n,a,c,p){if(a===wt)return wt;let h=n.expression||n,b=n.asteriskToken?Vv(p?19:17,a,c,h):a;return p?nR(b,h,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):b}function bWe(n,a,c){let p=0;for(let h=0;h<c.length;h++){let b=h<n||h>=a?c[h]:void 0;p|=b!==void 0?iae.get(b)||32768:0}return p}function TWe(n){let a=Vr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=fmt(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function fmt(n){if(n.expression.kind===222){let p=A8e(n);if(!p)return!1;let h=y_(Vl(n.expression.expression)),b=bWe(0,0,p);return h.flags&3?(556800&b)===556800:!im(h,I=>FC(I,b)===b)}let a=y_(Vl(n.expression));if(!P4(a))return!1;let c=PY(n);return!c.length||vt(c,ndt)?!1:eut(Tl(a,Du),c)}function Uge(n){return n.endFlowNode&&p9(n.endFlowNode)}function SWe(n,a){let c=dc(n),p=[],h=Uge(n),b=!1;if(_b(n.body,I=>{let w=I.expression;if(w){if(w=ds(w,!0),c&2&&w.kind===224&&(w=ds(w.expression,!0)),w.kind===214&&w.expression.kind===80&&Vl(w.expression).symbol===os(n.symbol)&&(!Ab(n.symbol.valueDeclaration)||X_e(w.expression))){b=!0;return}let U=Vl(w,a&&a&-9);c&2&&(U=O2(F9(U,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),U.flags&131072&&(b=!0),Pf(p,U)}else h=!0}),!(p.length===0&&!h&&(b||mmt(n))))return ie&&p.length&&h&&!(S_(n)&&p.some(I=>I.symbol===n.symbol))&&Pf(p,_e),p}function mmt(n){switch(n.kind){case 219:case 220:return!0;case 175:return n.parent.kind===211;default:return!1}}function hmt(n){switch(n.kind){case 177:case 178:case 179:return}if(dc(n)!==0)return;let c;if(n.body&&n.body.kind!==242)c=n.body;else if(_b(n.body,h=>{if(c||!h.expression)return!0;c=h.expression})||!c||Uge(n))return;return _mt(n,c)}function _mt(n,a){if(a=ds(a,!0),!!(Vl(a).flags&16))return Je(n.parameters,(p,h)=>{let b=_r(p.symbol);if(!b||b.flags&16||!He(p.name)||z4(p.symbol)||D_(p))return;let I=gmt(n,a,p,b);if(I)return b4(1,Vi(p.name.escapedText),h,I)})}function gmt(n,a,c,p){let h=HR(a)&&a.flowNode||a.parent.kind===254&&a.parent.flowNode||W_(2,void 0,void 0),b=W_(32,a,h),I=Vy(c.name,p,p,n,b);if(I===p)return;let w=W_(64,a,h);return Mm(Vy(c.name,p,I,n,w)).flags&131072?I:void 0}function Hge(n,a){r(c);return;function c(){let p=dc(n),h=a&&U9(a,p);if(h&&(ec(h,16384)||h.flags&32769)||n.kind===174||Ol(n.body)||n.body.kind!==242||!Uge(n))return;let b=n.flags&1024,I=Pp(n)||n;if(h&&h.flags&131072)Qe(I,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(h&&!b)Qe(I,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(h&&ie&&!aa(_e,h))Qe(I,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(O.noImplicitReturns){if(!h){if(!b)return;let w=ps(Rf(n));if(_3e(n,w))return}Qe(I,f.Not_all_code_paths_return_a_value)}}}function EWe(n,a){if(C.assert(n.kind!==175||fm(n)),rR(n),Us(n)&&W2(n,n.name),a&&a&4&&Df(n)){if(!Pp(n)&&!GW(n)){let p=V4(n);if(p&&f0(ps(p))){let h=Vr(n);if(h.contextFreeType)return h.contextFreeType;let b=l$(n,a),I=g_(void 0,void 0,void 0,ae,b,void 0,0,64),w=bl(n.symbol,k,[I],ae,ae);return w.objectFlags|=262144,h.contextFreeType=w}}return As}return!w$(n)&&n.kind===219&&Cye(n),ymt(n,a),_r(Wr(n))}function ymt(n,a){let c=Vr(n);if(!(c.flags&64)){let p=V4(n);if(!(c.flags&64)){c.flags|=64;let h=Ic(na(_r(Wr(n)),0));if(!h)return;if(Df(n))if(p){let b=AS(n),I;if(a&&a&2){hWe(h,p,b);let w=K4(p);w&&w.flags&262144&&(I=vA(p,b.nonFixingMapper))}I||(I=b?vA(p,b.mapper):p),$ft(h,I)}else Qft(h);else if(p&&!n.typeParameters&&p.parameters.length>n.parameters.length){let b=AS(n);a&&a&2&&hWe(h,p,b)}if(p&&!MC(n)&&!h.resolvedReturnType){let b=l$(n,a);h.resolvedReturnType||(h.resolvedReturnType=b)}Q4(n)}}}function vmt(n){C.assert(n.kind!==175||fm(n));let a=dc(n),c=MC(n);if(Hge(n,c),n.body)if(Pp(n)||ps(Rf(n)),n.body.kind===242)wa(n.body);else{let p=_o(n.body),h=c&&U9(c,a);h&&S$(n,h,n.body,n.body,p)}}function d$(n,a,c,p=!1){if(!aa(a,ra)){let h=p&&w2(a);return Sv(n,!!h&&aa(h,ra),c),!1}return!0}function bmt(n){if(!Zo(n)||!YS(n))return!1;let a=Vl(n.arguments[2]);if(_n(a,"value")){let h=Ea(a,"writable"),b=h&&_r(h);if(!b||b===tr||b===Jn)return!0;if(h&&h.valueDeclaration&&Nc(h.valueDeclaration)){let I=h.valueDeclaration.initializer,w=_o(I);if(w===tr||w===Jn)return!0}return!1}return!Ea(a,"set")}function wh(n){return!!(Wl(n)&8||n.flags&4&&Bf(n)&8||n.flags&3&&mge(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||vt(n.declarations,bmt))}function AWe(n,a,c){var p,h;if(c===0)return!1;if(wh(a)){if(a.flags&4&&Ks(n)&&n.expression.kind===110){let b=N2(n);if(!(b&&(b.kind===177||S_(b))))return!0;if(a.valueDeclaration){let I=Nr(a.valueDeclaration),w=b.parent===a.valueDeclaration.parent,U=b===a.valueDeclaration.parent,H=I&&((p=a.parent)==null?void 0:p.valueDeclaration)===b.parent,Q=I&&((h=a.parent)==null?void 0:h.valueDeclaration)===b;return!(w||U||H||Q)}}return!0}if(Ks(n)){let b=ds(n.expression);if(b.kind===80){let I=Vr(b).resolvedSymbol;if(I.flags&2097152){let w=sp(I);return!!w&&w.kind===275}}}return!1}function Y4(n,a,c){let p=Ul(n,39);return p.kind!==80&&!Ks(p)?(Qe(n,a),!1):p.flags&64?(Qe(n,c),!1):!0}function Tmt(n){_o(n.expression);let a=ds(n.expression);if(!Ks(a))return Qe(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),jt;qr(a)&&eo(a.name)&&Qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=Vr(a),p=Et(c.resolvedSymbol);return p&&(wh(p)?Qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Smt(a,p)),jt}function Smt(n,a){let c=_r(a);ie&&!(c.flags&131075)&&!(Ce?a.flags&16777216:Mh(c,16777216))&&Qe(n,f.The_operand_of_a_delete_operator_must_be_optional)}function Emt(n){return _o(n.expression),hC}function Amt(n){return rR(n),B}function IWe(n){let a=!1,c=O6(n);if(c&&$l(c)){let p=Cb(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,p),a=!0}else if(!(n.flags&65536))if(F6(n)){let p=Wn(n);if(!_0(p)){let h;if(!OR(p,O)){h??(h=Vh(p,n.pos));let b=Cb(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,I=Fc(p,h.start,h.length,b);ns.add(I),a=!0}switch(j){case 100:case 101:case 102:case 199:if(p.impliedNodeFormat===1){h??(h=Vh(p,n.pos)),ns.add(Fc(p,h.start,h.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(G>=4)break;default:h??(h=Vh(p,n.pos));let b=Cb(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_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_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;ns.add(Fc(p,h.start,h.length,b)),a=!0;break}}}else{let p=Wn(n);if(!_0(p)){let h=Vh(p,n.pos),b=Cb(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,I=Fc(p,h.start,h.length,b);if(c&&c.kind!==177&&(dc(c)&2)===0){let w=Ar(c,f.Did_you_mean_to_mark_this_function_as_async);pa(I,w)}ns.add(I),a=!0}}return Cb(n)&&oge(n)&&(Qe(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function Imt(n){r(()=>IWe(n));let a=_o(n.expression),c=F9(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&&!pr(c)&&!(a.flags&3)&&Mg(!1,Ar(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function xmt(n){let a=_o(n.operand);if(a===wt)return wt;switch(n.operand.kind){case 9:switch(n.operator){case 41:return Xx(Ch(-n.operand.text));case 40:return Xx(Ch(+n.operand.text))}break;case 10:if(n.operator===41)return Xx(q5({negative:!0,base10Value:AM(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return T_(a,n.operand),L9(a,12288)&&Qe(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,_a(n.operator)),n.operator===40?(L9(a,2112)&&Qe(n.operand,f.Operator_0_cannot_be_applied_to_type_1,_a(n.operator),ar(zy(a))),Bt):qge(a);case 54:lye(a,n.operand);let c=FC(a,12582912);return c===4194304?tr:c===8388608?ft:jt;case 46:case 47:return d$(n.operand,T_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Y4(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),qge(a)}return nt}function Rmt(n){let a=_o(n.operand);return a===wt?wt:(d$(n.operand,T_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Y4(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),qge(a))}function qge(n){return ec(n,2112)?kd(n,3)||ec(n,296)?ra:gr:Bt}function L9(n,a){if(ec(n,a))return!0;let c=y_(n);return!!c&&ec(c,a)}function ec(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let p of c)if(ec(p,a))return!0}return!1}function kd(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&aa(n,Bt)||!!(a&2112)&&aa(n,gr)||!!(a&402653316)&&aa(n,gt)||!!(a&528)&&aa(n,jt)||!!(a&16384)&&aa(n,In)||!!(a&131072)&&aa(n,yn)||!!(a&65536)&&aa(n,Xt)||!!(a&32768)&&aa(n,_e)||!!(a&4096)&&aa(n,Qt)||!!(a&67108864)&&aa(n,Ln)}function $4(n,a,c){return n.flags&1048576?Vn(n.types,p=>$4(p,a,c)):kd(n,a,c)}function u$(n){return!!(Hr(n)&16)&&!!n.symbol&&Jge(n.symbol)}function Jge(n){return(n.flags&128)!==0}function Kge(n){let a=p3e("hasInstance");if($4(n,67108864)){let c=Ea(n,a);if(c){let p=_r(c);if(p&&na(p,0).length!==0)return p}}}function Dmt(n,a,c,p,h){if(c===wt||p===wt)return wt;!wr(c)&&$4(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),C.assert(mW(n.parent));let b=UC(n.parent,void 0,h);if(b===Dr)return wt;let I=ps(b);return $d(I,jt,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),jt}function Cmt(n){return im(n,a=>a===is||!!(a.flags&2097152)&&eg(y_(a)))}function Nmt(n,a,c,p){if(c===wt||p===wt)return wt;if(eo(n)){if((G<ed.PrivateNamesAndClassStaticBlocks||G<ed.ClassAndClassElementDecorators||!Z)&&Qc(n,2097152),!Vr(n).resolvedSymbol&&hd(n)){let h=bge(n,p.symbol,!0);N6e(n,p,h)}}else $d(T_(c,n),Ii,n);return $d(T_(p,a),Ln,a)&&Cmt(p)&&Qe(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,ar(p)),jt}function Mmt(n,a,c){let p=n.properties;if(ie&&p.length===0)return T_(a,n);for(let h=0;h<p.length;h++)xWe(n,a,h,p,c);return a}function xWe(n,a,c,p,h=!1){let b=n.properties,I=b[c];if(I.kind===304||I.kind===305){let w=I.name,U=ky(w);if(Gf(U)){let Ie=Vf(U),Te=Ea(a,Ie);Te&&(A9(Te,I,h),_ge(I,!1,!0,a,Te))}let H=Jp(a,U,32|(eR(I)?16:0),w),Q=as(I,H);return NA(I.kind===305?I:I.initializer,Q)}else if(I.kind===306)if(c<b.length-1)Qe(I,f.A_rest_element_must_be_last_in_a_destructuring_pattern);else{G<ed.ObjectSpreadRest&&Qc(I,4);let w=[];if(p)for(let H of p)Ig(H)||w.push(H.name);let U=ao(a,w,a.symbol);return aR(p,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),NA(I.expression,U)}else Qe(I,f.Property_assignment_expected)}function Pmt(n,a,c){let p=n.elements;G<ed.DestructuringAssignment&&O.downlevelIteration&&Qc(n,512);let h=Vv(193,a,_e,n)||nt,b=O.noUncheckedIndexedAccess?void 0:h;for(let I=0;I<p.length;I++){let w=h;n.elements[I].kind===231&&(w=b=b??(Vv(65,a,_e,n)||nt)),RWe(n,a,I,w,c)}return a}function RWe(n,a,c,p,h){let b=n.elements,I=b[c];if(I.kind!==233){if(I.kind!==231){let w=Ch(c);if(Bv(a)){let U=32|(eR(I)?16:0),H=l0(a,w,U,q4(I,w))||nt,Q=eR(I)?rm(H,524288):H,Ie=as(I,Q);return NA(I,Ie,h)}return NA(I,p,h)}if(c<b.length-1)Qe(I,f.A_rest_element_must_be_last_in_a_destructuring_pattern);else{let w=I.expression;if(w.kind===227&&w.operatorToken.kind===64)Qe(w.operatorToken,f.A_rest_element_cannot_have_an_initializer);else{aR(n.elements,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);let U=Sp(a,Ka)?Tl(a,H=>S2(H,c)):Yd(p);return NA(w,U,h)}}}}function NA(n,a,c,p){let h;if(n.kind===305){let b=n;b.objectAssignmentInitializer&&(ie&&!Mh(_o(b.objectAssignmentInitializer),16777216)&&(a=rm(a,524288)),zmt(b.name,b.equalsToken,b.objectAssignmentInitializer,c)),h=n.name}else h=n;return h.kind===227&&h.operatorToken.kind===64&&(Se(h,c),h=h.left,ie&&(a=rm(a,524288))),h.kind===211?Mmt(h,a,p):h.kind===210?Pmt(h,a,c):Lmt(h,a,c)}function Lmt(n,a,c){let p=_o(n,c),h=n.parent.kind===306?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,b=n.parent.kind===306?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 Y4(n,h,b)&&SS(a,p,n,n),NR(n)&&Qc(n.parent,1048576),a}function k9(n){switch(n=ds(n),n.kind){case 80:case 11:case 14:case 216:case 229:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 219:case 232:case 220:case 210:case 211:case 222:case 236:case 286:case 285:return!0;case 228:return k9(n.whenTrue)&&k9(n.whenFalse);case 227:return sy(n.operatorToken.kind)?!1:k9(n.left)&&k9(n.right);case 225:case 226:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 223:case 217:case 235:default:return!1}}function Xge(n,a){return(a.flags&98304)!==0||uY(n,a)}function kmt(){let n=E3(a,c,p,h,b,I);return(Te,Ze)=>{let Tt=n(Te,Ze);return C.assertIsDefined(Tt),Tt};function a(Te,Ze,Tt){return Ze?(Ze.stackIndex++,Ze.skip=!1,H(Ze,void 0),Ie(Ze,void 0)):Ze={checkMode:Tt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Ir(Te)&&aI(Te)?(Ze.skip=!0,Ie(Ze,_o(Te.right,Tt)),Ze):(wmt(Te),Te.operatorToken.kind===64&&(Te.left.kind===211||Te.left.kind===210)&&(Ze.skip=!0,Ie(Ze,NA(Te.left,_o(Te.right,Tt),Tt,Te.right.kind===110))),Ze)}function c(Te,Ze,Tt){if(!Ze.skip)return w(Ze,Te)}function p(Te,Ze,Tt){if(!Ze.skip){let Dt=Q(Ze);C.assertIsDefined(Dt),H(Ze,Dt),Ie(Ze,void 0);let $t=Te.kind;if(pW($t)){let Tn=Tt.parent;for(;Tn.kind===218||Ik(Tn);)Tn=Tn.parent;($t===56||U0(Tn))&&sye(Tt.left,Dt,U0(Tn)?Tn.thenStatement:void 0),Ak($t)&&lye(Dt,Tt.left)}}}function h(Te,Ze,Tt){if(!Ze.skip)return w(Ze,Te)}function b(Te,Ze){let Tt;if(Ze.skip)Tt=Q(Ze);else{let Dt=U(Ze);C.assertIsDefined(Dt);let $t=Q(Ze);C.assertIsDefined($t),Tt=DWe(Te.left,Te.operatorToken,Te.right,Dt,$t,Ze.checkMode,Te)}return Ze.skip=!1,H(Ze,void 0),Ie(Ze,void 0),Ze.stackIndex--,Tt}function I(Te,Ze,Tt){return Ie(Te,Ze),Te}function w(Te,Ze){if(Nr(Ze))return Ze;Ie(Te,_o(Ze,Te.checkMode))}function U(Te){return Te.typeStack[Te.stackIndex]}function H(Te,Ze){Te.typeStack[Te.stackIndex]=Ze}function Q(Te){return Te.typeStack[Te.stackIndex+1]}function Ie(Te,Ze){Te.typeStack[Te.stackIndex+1]=Ze}}function wmt(n){if(n.operatorToken.kind===61){if(Nr(n.parent)){let{left:a,operatorToken:c}=n.parent;Nr(a)&&c.kind===57&&Cn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(61),_a(c.kind))}else if(Nr(n.left)){let{operatorToken:a}=n.left;(a.kind===57||a.kind===56)&&Cn(n.left,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(a.kind),_a(61))}else if(Nr(n.right)){let{operatorToken:a}=n.right;a.kind===56&&Cn(n.right,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(61),_a(a.kind))}Omt(n),Wmt(n)}}function Omt(n){let a=Ul(n.left,63),c=w9(a);c!==3&&(c===1?Qe(a,f.This_expression_is_always_nullish):Qe(a,f.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}function Wmt(n){let a=Ul(n.right,63),c=w9(a);Fmt(n)||(c===1?Qe(a,f.This_expression_is_always_nullish):c===2&&Qe(a,f.This_expression_is_never_nullish))}function Fmt(n){return!Nr(n.parent)||n.parent.operatorToken.kind!==61}function w9(n){switch(n=Ul(n),n.kind){case 224:case 214:case 216:case 213:case 237:case 215:case 212:case 230:case 110:return 3;case 227:switch(n.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return w9(n.right)}return 2;case 228:return w9(n.whenTrue)|w9(n.whenFalse);case 106:return 1;case 80:return pu(n)===ce?1:3}return 2}function zmt(n,a,c,p,h){let b=a.kind;if(b===64&&(n.kind===211||n.kind===210))return NA(n,_o(c,p),p,c.kind===110);let I;Ak(b)?I=a8(n,p):I=_o(n,p);let w=_o(c,p);return DWe(n,a,c,I,w,p,h)}function DWe(n,a,c,p,h,b,I){let w=a.kind;switch(w){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(p===wt||h===wt)return wt;p=T_(p,n),h=T_(h,c);let Sn;if(p.flags&528&&h.flags&528&&(Sn=Te(a.kind))!==void 0)return Qe(I||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,_a(a.kind),_a(Sn)),Bt;{let fi=d$(n,p,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),oo=d$(c,h,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),ii;if(kd(p,3)&&kd(h,3)||!(ec(p,2112)||ec(h,2112)))ii=Bt;else if(U(p,h)){switch(w){case 50:case 73:$t();break;case 43:case 68:G<3&&Qe(I,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ii=gr}else $t(U),ii=nt;if(fi&&oo)switch(Ze(ii),w){case 48:case 71:case 49:case 72:case 50:case 73:let zi=Be(c);typeof zi.value=="number"&&Math.abs(zi.value)>=32&&qm(py(Fm(c.parent.parent)),I||a,f.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Al(n),_a(w),zi.value%32);break}return ii}case 40:case 65:if(p===wt||h===wt)return wt;!kd(p,402653316)&&!kd(h,402653316)&&(p=T_(p,n),h=T_(h,c));let vn;return kd(p,296,!0)&&kd(h,296,!0)?vn=Bt:kd(p,2112,!0)&&kd(h,2112,!0)?vn=gr:kd(p,402653316,!0)||kd(h,402653316,!0)?vn=gt:(wr(p)||wr(h))&&(vn=pr(p)||pr(h)?nt:Ue),vn&&!Ie(w)?vn:vn?(w===65&&Ze(vn),vn):($t((oo,ii)=>kd(oo,402655727)&&kd(ii,402655727)),Ue);case 30:case 32:case 33:case 34:return Ie(w)&&(p=S_e(T_(p,n)),h=S_e(T_(h,c)),Dt((fi,oo)=>{if(wr(fi)||wr(oo))return!0;let ii=aa(fi,ra),zi=aa(oo,ra);return ii&&zi||!ii&&!zi&&Y5(fi,oo)})),jt;case 35:case 36:case 37:case 38:if(!(b&&b&64)){if((wB(n)||wB(c))&&(!Ir(n)||w===37||w===38)){let fi=w===35||w===37;Qe(I,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,fi?"false":"true")}nr(I,w,n,c),Dt((fi,oo)=>Xge(fi,oo)||Xge(oo,fi))}return jt;case 104:return Dmt(n,c,p,h,b);case 103:return Nmt(n,c,p,h);case 56:case 77:{let fi=Mh(p,4194304)?pi([ldt(ie?p:zy(h)),h]):p;return w===77&&Ze(h),fi}case 57:case 76:{let fi=Mh(p,8388608)?pi([By(Y4e(p)),h],2):p;return w===76&&Ze(h),fi}case 61:case 78:{let fi=Mh(p,262144)?pi([By(p),h],2):p;return w===78&&Ze(h),fi}case 64:let Er=Nr(n.parent)?oc(n.parent):0;return H(Er,h),Tt(Er)?((!(h.flags&524288)||Er!==2&&Er!==6&&!Fy(h)&&!j_e(h)&&!(Hr(h)&1))&&Ze(h),p):(Ze(h),h);case 28:if(!O.allowUnreachableCode&&k9(n)&&!Q(n.parent)){let fi=Wn(n),oo=fi.text,ii=La(oo,n.pos);fi.parseDiagnostics.some(Ko=>Ko.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:TB(Ko,ii))||Qe(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return h;default:return C.fail()}function U(Sn,vn){return kd(Sn,2112)&&kd(vn,2112)}function H(Sn,vn){if(Sn===2)for(let Er of Ov(vn)){let fi=_r(Er);if(fi.symbol&&fi.symbol.flags&32){let oo=Er.escapedName,ii=_t(Er.valueDeclaration,oo,788968,void 0,!1);ii?.declarations&&ii.declarations.some(yE)&&(Pg(ii,f.Duplicate_identifier_0,Vi(oo),Er),Pg(Er,f.Duplicate_identifier_0,Vi(oo),ii))}}}function Q(Sn){return Sn.parent.kind===218&&ep(Sn.left)&&Sn.left.text==="0"&&(Zo(Sn.parent.parent)&&Sn.parent.parent.expression===Sn.parent||Sn.parent.parent.kind===216)&&(Ks(Sn.right)||He(Sn.right)&&Sn.right.escapedText==="eval")}function Ie(Sn){let vn=L9(p,12288)?n:L9(h,12288)?c:void 0;return vn?(Qe(vn,f.The_0_operator_cannot_be_applied_to_type_symbol,_a(Sn)),!1):!0}function Te(Sn){switch(Sn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Ze(Sn){sy(w)&&r(vn);function vn(){let Er=p;if(aP(a.kind)&&n.kind===212&&(Er=QY(n,void 0,!0)),Y4(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 fi;if(Ce&&qr(n)&&ec(Sn,32768)){let oo=_n(wd(n.expression),n.name.escapedText);fY(Sn,oo)&&(fi=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}SS(Sn,Er,n,c,fi)}}}function Tt(Sn){var vn;switch(Sn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let Er=Af(n),fi=aI(c);return!!fi&&Wa(fi)&&!!((vn=Er?.exports)!=null&&vn.size);default:return!1}}function Dt(Sn){return Sn(p,h)?!1:($t(Sn),!0)}function $t(Sn){let vn=!1,Er=I||a;if(Sn){let Ko=jy(p),fs=jy(h);vn=!(Ko===p&&fs===h)&&!!(Ko&&fs)&&Sn(Ko,fs)}let fi=p,oo=h;!vn&&Sn&&([fi,oo]=Bmt(p,h,Sn));let[ii,zi]=s2(fi,oo);Tn(Er,vn,ii,zi)||Sv(Er,vn,f.Operator_0_cannot_be_applied_to_types_1_and_2,_a(a.kind),ii,zi)}function Tn(Sn,vn,Er,fi){switch(a.kind){case 37:case 35:case 38:case 36:return Sv(Sn,vn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Er,fi);default:return}}function nr(Sn,vn,Er,fi){let oo=yr(ds(Er)),ii=yr(ds(fi));if(oo||ii){let zi=Qe(Sn,f.This_condition_will_always_return_0,_a(vn===37||vn===35?97:112));if(oo&&ii)return;let Ko=vn===38||vn===36?_a(54):"",fs=oo?fi:Er,fo=ds(fs);pa(zi,Ar(fs,f.Did_you_mean_0,`${Ko}Number.isNaN(${Ds(fo)?Cp(fo):"..."})`))}}function yr(Sn){if(He(Sn)&&Sn.escapedText==="NaN"){let vn=flt();return!!vn&&vn===pu(Sn)}return!1}}function Bmt(n,a,c){let p=n,h=a,b=zy(n),I=zy(a);return c(b,I)||(p=b,h=I),[p,h]}function Gmt(n){r(Ie);let a=cf(n);if(!a)return Ue;let c=dc(a);if(!(c&1))return Ue;let p=(c&2)!==0;n.asteriskToken&&(p&&G<ed.AsyncGenerators&&Qc(n,26624),!p&&G<ed.Generators&&O.downlevelIteration&&Qc(n,256));let h=MC(a);h&&h.flags&1048576&&(h=Ac(h,Te=>Zge(Te,c,void 0)));let b=h&&hye(h,p),I=b&&b.yieldType||Ue,w=b&&b.nextType||Ue,U=n.expression?_o(n.expression):B,H=vWe(n,U,w,p);if(h&&H&&SS(H,I,n.expression||n,n.expression),n.asteriskToken)return uye(p?19:17,1,U,n.expression)||Ue;if(h)return jv(2,h,p)||Ue;let Q=Z8e(2,a);return Q||(Q=Ue,r(()=>{if(ve&&!Dre(n)){let Te=Uu(n,void 0);(!Te||wr(Te))&&Qe(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Q;function Ie(){n.flags&16384||fd(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),oge(n)&&Qe(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Vmt(n,a){let c=a8(n.condition,a);sye(n.condition,c,n.whenTrue);let p=_o(n.whenTrue,a),h=_o(n.whenFalse,a);return pi([p,h],2)}function CWe(n){let a=n.parent;return wu(a)&&CWe(a)||Ws(a)&&a.argumentExpression===n}function jmt(n){let a=[n.head.text],c=[];for(let h of n.templateSpans){let b=_o(h.expression);L9(b,12288)&&Qe(h.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(h.literal.text),c.push(aa(b,sa)?b:gt)}let p=n.parent.kind!==216&&Be(n).value;return p?Xx(Tp(p)):L2(n)||CWe(n)||im(Uu(n,void 0)||Nt,Umt)?mA(a,c):gt}function Umt(n){return!!(n.flags&134217856||n.flags&58982400&&ec(Ld(n)||Nt,402653316))}function Hmt(n){return w1(n)&&!_E(n.parent)?n.parent.parent:n}function HC(n,a,c,p){let h=Hmt(n);g9(h,a,!1),Zut(h,c);let b=_o(n,p|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let I=ec(b,2944)&&p$(b,jY(a,n,void 0))?Du(b):b;return ept(),G4(),I}function Vl(n,a){if(a)return _o(n,a);let c=Vr(n);if(!c.resolvedType){let p=Lr,h=Qi;Lr=Yn,Qi=void 0,c.resolvedType=_o(n,a),Qi=h,Lr=p}return c.resolvedType}function NWe(n){return n=ds(n,!0),n.kind===217||n.kind===235||W1(n)}function P2(n,a,c){let p=ik(n);if(Ir(n)){let b=UW(n);if(b)return Oge(p,b,a)}let h=Qge(p)||(c?HC(p,c,void 0,a||0):Vl(p,a));if(to(Ha(n)?WS(n):n)){if(n.name.kind===207&&Gv(h))return qmt(h,n.name);if(n.name.kind===208&&Ka(h))return Jmt(h,n.name)}return h}function qmt(n,a){let c;for(let b of a.elements)if(b.initializer){let I=MWe(b);I&&!Ea(n,I)&&(c=Bn(c,b))}if(!c)return n;let p=da();for(let b of Ov(n))p.set(b.escapedName,b);for(let b of c){let I=ja(16777220,MWe(b));I.links.type=Ih(b,!1,!1),p.set(I.escapedName,I)}let h=bl(n.symbol,p,ae,ae,Xd(n));return h.objectFlags=n.objectFlags,h}function MWe(n){let a=ky(n.propertyName||n.name);return Gf(a)?Vf(a):void 0}function Jmt(n,a){if(n.target.combinedFlags&12||Fv(n)>=a.elements.length)return n;let c=a.elements,p=gS(n).slice(),h=n.target.elementFlags.slice();for(let b=Fv(n);b<c.length;b++){let I=c[b];(b<c.length-1||!(I.kind===209&&I.dotDotDotToken))&&(p.push(!Kc(I)&&eR(I)?Ih(I,!1,!1):Ue),h.push(2),!Kc(I)&&!eR(I)&&JT(I,Ue))}return Z_(p,h,n.target.readonly)}function Yge(n,a){let c=PWe(n,a);if(Ir(n)){if(U4e(c))return JT(n,Ue),Ue;if(vY(c))return JT(n,bd),bd}return c}function PWe(n,a){return RS(n)&6||HL(n)?a:qT(a)}function p$(n,a){if(a){if(a.flags&3145728){let c=a.types;return vt(c,p=>p$(n,p))}if(a.flags&58982400){let c=Ld(a)||Nt;return ec(c,4)&&ec(n,128)||ec(c,8)&&ec(n,256)||ec(c,64)&&ec(n,2048)||ec(c,4096)&&ec(n,8192)||p$(n,c)}return!!(a.flags&406847616&&ec(n,128)||a.flags&256&&ec(n,256)||a.flags&2048&&ec(n,2048)||a.flags&512&&ec(n,512)||a.flags&8192&&ec(n,8192))}return!1}function L2(n){let a=n.parent;return d1(a)&&wm(a.type)||W1(a)&&wm(SD(a))||wge(n)&&uA(Uu(n,0))||(wu(a)||Cd(a)||Uf(a))&&L2(a)||(Nc(a)||Ud(a)||hD(a))&&L2(a.parent)}function k2(n,a,c){let p=_o(n,a,c);return L2(n)||Jte(n)?Du(p):NWe(n)?p:E_e(p,jY(Uu(n,void 0),n,void 0))}function LWe(n,a){return n.name.kind===168&&eh(n.name),k2(n.initializer,a)}function kWe(n,a){iFe(n),n.name.kind===168&&eh(n.name);let c=EWe(n,a);return wWe(n,c,a)}function wWe(n,a,c){if(c&&c&10){let p=H4(a,0,!0),h=H4(a,1,!0),b=p||h;if(b&&b.typeParameters){let I=XT(n,2);if(I){let w=H4(By(I),p?0:1,!1);if(w&&!w.typeParameters){if(c&8)return OWe(n,c),As;let U=AS(n),H=U.signature&&ps(U.signature),Q=H&&V6e(H);if(Q&&!Q.typeParameters&&!Vn(U.inferences,qC)){let Ie=$mt(U,b.typeParameters),Te=xhe(b,Ie),Ze=Vt(U.inferences,Tt=>N_e(Tt.typeParameter));if(x_e(Te,w,(Tt,Dt)=>{Hg(Ze,Tt,Dt,0,!0)}),vt(Ze,qC)&&(R_e(Te,w,(Tt,Dt)=>{Hg(Ze,Tt,Dt)}),!Xmt(U.inferences,Ze)))return Ymt(U.inferences,Ze),U.inferredTypeParameters=so(U.inferredTypeParameters,Ie),pA(Te)}return pA(j6e(b,w,U))}}}}return a}function OWe(n,a){if(a&2){let c=AS(n);c.flags|=4}}function qC(n){return!!(n.candidates||n.contraCandidates)}function Kmt(n){return!!(n.candidates||n.contraCandidates||eOe(n.typeParameter))}function Xmt(n,a){for(let c=0;c<n.length;c++)if(qC(n[c])&&qC(a[c]))return!0;return!1}function Ymt(n,a){for(let c=0;c<n.length;c++)!qC(n[c])&&qC(a[c])&&(n[c]=a[c])}function $mt(n,a){let c=[],p,h;for(let b of a){let I=b.symbol.escapedName;if($ge(n.inferredTypeParameters,I)||$ge(c,I)){let w=Qmt(so(n.inferredTypeParameters,c),I),U=ja(262144,w),H=Gu(U);H.target=b,p=Bn(p,b),h=Bn(h,H),c.push(H)}else c.push(b)}if(h){let b=Kp(p,h);for(let I of h)I.mapper=b}return c}function $ge(n,a){return vt(n,c=>c.symbol.escapedName===a)}function Qmt(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;let p=a.slice(0,c);for(let h=1;;h++){let b=p+h;if(!$ge(n,b))return b}}function WWe(n){let a=CA(n);if(a&&!a.typeParameters)return ps(a)}function Zmt(n){let a=_o(n.expression),c=L4(a,n.expression),p=WWe(a);return p&&EY(p,n,c!==a)}function wd(n){let a=Qge(n);if(a)return a;if(n.flags&268435456&&Qi){let h=Qi[ss(n)];if(h)return h}let c=Ro,p=_o(n,64);if(Ro!==c){let h=Qi||(Qi=[]);h[ss(n)]=p,Rre(n,n.flags|268435456)}return p}function Qge(n){let a=ds(n,!0);if(W1(a)){let c=SD(a);if(!wm(c))return Ji(c)}if(a=ds(n),Cb(a)){let c=Qge(a.expression);return c?nR(c):void 0}if(Zo(a)&&a.expression.kind!==108&&!$u(a,!0)&&!rWe(a)&&!Yu(a))return zS(a)?Zmt(a):WWe(VC(a.expression));if(d1(a)&&!wm(a.type))return Ji(a.type);if(BS(n)||wN(n))return _o(n)}function O9(n){let a=Vr(n);if(a.contextFreeType)return a.contextFreeType;g9(n,Ue,!1);let c=a.contextFreeType=_o(n,4);return G4(),c}function _o(n,a,c){var p,h;(p=xr)==null||p.push(xr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let b=R;R=n,v=0;let I=nht(n,a,c),w=wWe(n,I,a);return u$(w)&&eht(n,w),R=b,(h=xr)==null||h.pop(),w}function eht(n,a){var c;let p=n.parent.kind===212&&n.parent.expression===n||n.parent.kind===213&&n.parent.expression===n||(n.kind===80||n.kind===167)&&C$(n)||n.parent.kind===187&&n.parent.exprName===n||n.parent.kind===282;if(p||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),O.isolatedModules||O.verbatimModuleSyntax&&p&&!_t(n,Pu(n),2097152,void 0,!1,!0)){C.assert(!!(a.symbol.flags&128));let h=a.symbol.valueDeclaration,b=(c=e.getRedirectFromOutput(Wn(h).resolvedPath))==null?void 0:c.resolvedRef;h.flags&33554432&&!F0(n)&&(!b||!Sb(b.commandLine.options))&&Qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge)}}function tht(n,a){if(Zp(n)){if(wV(n))return Oge(n.expression,OV(n),a);if(W1(n))return sWe(n,a)}return _o(n.expression,a)}function nht(n,a,c){let p=n.kind;if(i)switch(p){case 232:case 219:case 220:i.throwIfCancellationRequested()}switch(p){case 80:return Sut(n,a);case 81:return Jpt(n);case 110:return h9(n);case 108:return BY(n);case 106:return Le;case 15:case 11:return w_e(n)?Ot:Xx(Tp(n.text));case 9:return dFe(n),Xx(Ch(+n.text));case 10:return ivt(n),Xx(q5({negative:!1,base10Value:AM(n.text)}));case 112:return ft;case 97:return tr;case 229:return jmt(n);case 14:return gpt(n);case 210:return d6e(n,a,c);case 211:return Ipt(n,a);case 212:return QY(n,a);case 167:return R6e(n,a);case 213:return lft(n,a);case 214:if(Yu(n))return Bft(n);case 215:return zft(n,a);case 216:return Gft(n);case 218:return tht(n,a);case 232:return q_t(n);case 219:case 220:return EWe(n,a);case 222:return Emt(n);case 217:case 235:return Vft(n,a);case 236:return Hft(n);case 234:return cWe(n);case 239:return qft(n);case 237:return Jft(n);case 221:return Tmt(n);case 223:return Amt(n);case 224:return Imt(n);case 225:return xmt(n);case 226:return Rmt(n);case 227:return Se(n,a);case 228:return Vmt(n,a);case 231:return ypt(n,a);case 233:return B;case 230:return Gmt(n);case 238:return vpt(n);case 295:return Bpt(n,a);case 285:return Cpt(n);case 286:return Rpt(n);case 289:return Npt(n);case 293:return Ppt(n,a);case 287:C.fail("Shouldn't ever directly check a JsxOpeningElement")}return nt}function FWe(n){Jg(n),n.expression&&fd(n.expression,f.Type_expected),wa(n.constraint),wa(n.default);let a=WT(Wr(n));Ld(a),yst(a)||Qe(n.default,f.Type_parameter_0_has_a_circular_default,ar(a));let c=ju(a),p=hS(a);c&&p&&$d(p,qp(io(c,bS(a,p)),p),n.default,f.Type_0_does_not_satisfy_the_constraint_1),rR(n),r(()=>F2(n.name,f.Type_parameter_name_cannot_be_0))}function rht(n){var a,c;if(gd(n.parent)||ui(n.parent)||ym(n.parent)){let p=WT(Wr(n)),h=y_e(p)&24576;if(h){let b=Wr(n.parent);if(ym(n.parent)&&!(Hr(qs(b))&48))Qe(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(h===8192||h===16384){(a=xr)==null||a.push(xr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:pd(qs(b)),id:pd(p)});let I=Z5(b,p,h===16384?qt:pt),w=Z5(b,p,h===16384?pt:qt),U=p;N=p,$d(I,w,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),N=U,(c=xr)==null||c.pop()}}}}function zWe(n){Jg(n),V9(n);let a=cf(n);di(n,31)&&(O.erasableSyntaxOnly&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),a.kind===177&&pm(a.body)||Qe(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===177&&He(n.name)&&n.name.escapedText==="constructor"&&Qe(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&II(n)&&Qo(n.name)&&a.body&&Qe(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&He(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===177||a.kind===181||a.kind===186)&&Qe(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===220&&Qe(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===178||a.kind===179)&&Qe(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Qo(n.name)&&!aa(Mm(_r(n.symbol)),Gp)&&Qe(n,f.A_rest_parameter_must_be_of_an_array_type)}function iht(n){let a=oht(n);if(!a){Qe(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=Rf(a),p=em(c);if(!p)return;wa(n.type);let{parameterName:h}=n;if(p.kind!==0&&p.kind!==2){if(p.parameterIndex>=0){if(au(c)&&p.parameterIndex===c.parameters.length-1)Qe(h,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(p.type){let b=()=>qo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);$d(p.type,_r(c.parameters[p.parameterIndex]),n.type,void 0,b)}}else if(h){let b=!1;for(let{name:I}of a.parameters)if(Qo(I)&&BWe(I,h,p.parameterName)){b=!0;break}b||Qe(n.parameterName,f.Cannot_find_parameter_0,p.parameterName)}}}function oht(n){switch(n.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:let a=n.parent;if(n===a.type)return a}}function BWe(n,a,c){for(let p of n.elements){if(Kc(p))continue;let h=p.name;if(h.kind===80&&h.escapedText===c)return Qe(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((h.kind===208||h.kind===207)&&BWe(h,a,c))return!0}}function Q4(n){n.kind===182?Lyt(n):(n.kind===185||n.kind===263||n.kind===186||n.kind===180||n.kind===177||n.kind===181)&&w$(n);let a=dc(n);a&4||((a&3)===3&&G<ed.AsyncGenerators&&Qc(n,6144),(a&3)===2&&G<ed.AsyncFunctions&&Qc(n,64),(a&3)!==0&&G<ed.Generators&&Qc(n,128)),H9(ab(n)),j_t(n),Je(n.parameters,zWe),n.type&&wa(n.type),r(c);function c(){i_t(n);let p=Pp(n),h=p;if(Ir(n)){let b=x0(n);if(b&&b.typeExpression&&wp(b.typeExpression.type)){let I=CA(Ji(b.typeExpression));I&&I.declaration&&(p=Pp(I.declaration),h=b.typeExpression.type)}}if(ve&&!p)switch(n.kind){case 181:Qe(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 180:Qe(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(p&&h){let b=dc(n);if((b&5)===1){let I=Ji(p);I===In?Qe(h,f.A_generator_cannot_have_a_void_type_annotation):Zge(I,b,h)}else(b&3)===2&&Oht(n,p,h)}n.kind!==182&&n.kind!==318&&m0(n)}}function Zge(n,a,c){let p=jv(0,n,(a&2)!==0)||Ue,h=jv(1,n,(a&2)!==0)||p,b=jv(2,n,(a&2)!==0)||Nt,I=c$(p,h,b,!!(a&2));return $d(I,n,c)}function aht(n){let a=new Map,c=new Map,p=new Map;for(let b of n.members)if(b.kind===177)for(let I of b.parameters)Dp(I,b)&&!Qo(I.name)&&h(a,I.name,I.name.escapedText,3);else{let I=ua(b),w=b.name;if(!w)continue;let U=eo(w),H=U&&I?16:0,Q=U?p:I?c:a,Ie=w&&Lye(w);if(Ie)switch(b.kind){case 178:h(Q,w,Ie,1|H);break;case 179:h(Q,w,Ie,2|H);break;case 173:h(Q,w,Ie,3|H);break;case 175:h(Q,w,Ie,8|H);break}}function h(b,I,w,U){let H=b.get(w);if(H)if((H&16)!==(U&16))Qe(I,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Al(I));else{let Q=!!(H&8),Ie=!!(U&8);Q||Ie?Q!==Ie&&Qe(I,f.Duplicate_identifier_0,Al(I)):H&U&-17?Qe(I,f.Duplicate_identifier_0,Al(I)):b.set(w,H|U)}else b.set(w,U)}}function sht(n){for(let a of n.members){let c=a.name;if(ua(a)&&c){let h=Lye(c);switch(h){case"name":case"length":case"caller":case"arguments":if(Z)break;case"prototype":let b=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,I=OT(Wr(n));Qe(c,b,h,I);break}}}}function GWe(n){let a=new Map;for(let c of n.members)if(c.kind===172){let p,h=c.name;switch(h.kind){case 11:case 9:p=h.text;break;case 80:p=Kr(h);break;default:continue}a.get(p)?(Qe(Oo(c.symbol.valueDeclaration),f.Duplicate_identifier_0,p),Qe(c.name,f.Duplicate_identifier_0,p)):a.set(p,!0)}}function eye(n){if(n.kind===265){let c=Wr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=qX(Wr(n));if(a?.declarations){let c=new Map;for(let p of a.declarations)Db(p)&&p.parameters.length===1&&p.parameters[0].type&&IA(Ji(p.parameters[0].type),h=>{let b=c.get(pd(h));b?b.declarations.push(p):c.set(pd(h),{type:h,declarations:[p]})});c.forEach(p=>{if(p.declarations.length>1)for(let h of p.declarations)Qe(h,f.Duplicate_index_signature_for_type_0,ar(p.type))})}}function VWe(n){!Jg(n)&&!tvt(n)&&O$(n.name),V9(n),f$(n),di(n,64)&&n.kind===173&&n.initializer&&Qe(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,ws(n.name))}function lht(n){return eo(n.name)&&Qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),VWe(n)}function cht(n){iFe(n)||O$(n.name),Nl(n)&&n.asteriskToken&&He(n.name)&&Kr(n.name)==="constructor"&&Qe(n.name,f.Class_constructor_may_not_be_a_generator),e3e(n),di(n,64)&&n.kind===175&&n.body&&Qe(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,ws(n.name)),eo(n.name)&&!hd(n)&&Qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),f$(n)}function f$(n){if(eo(n.name)&&(G<ed.PrivateNamesAndClassStaticBlocks||G<ed.ClassAndClassElementDecorators||!Z)){for(let a=sh(n);a;a=sh(a))Vr(a).flags|=1048576;if(uc(n.parent)){let a=Z_e(n.parent);a&&(Vr(n.name).flags|=32768,Vr(a).flags|=4096)}}}function dht(n){Jg(n),Jo(n,wa)}function uht(n){Q4(n),Zyt(n)||evt(n),wa(n.body);let a=Wr(n),c=al(a,n.kind);if(n===c&&h$(a),Ol(n.body))return;r(h);return;function p(b){return tu(b)?!0:b.kind===173&&!ua(b)&&!!b.initializer}function h(){let b=n.parent;if(v1(b)){ege(n.parent,b);let I=tge(b),w=J8e(n.body);if(w){if(I&&Qe(w,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!q&&(vt(n.parent.members,p)||vt(n.parameters,H=>di(H,31))))if(!pht(w,n.body))Qe(w,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(let Q of n.body.statements){if(od(Q)&&JS(Ul(Q.expression))){H=Q;break}if(jWe(Q))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 I||Qe(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function pht(n,a){let c=Fm(n.parent);return od(c)&&c.parent===a}function jWe(n){return n.kind===108||n.kind===110?!0:ene(n)?!1:!!Jo(n,jWe)}function UWe(n){He(n.name)&&Kr(n.name)==="constructor"&&ui(n.parent)&&Qe(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),wa(n.body),f$(n);function a(){if(!w$(n)&&!Vyt(n)&&O$(n.name),z9(n),Q4(n),n.kind===178&&!(n.flags&33554432)&&pm(n.body)&&n.flags&512&&(n.flags&1024||Qe(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===168&&eh(n.name),CC(n)){let p=Wr(n),h=al(p,178),b=al(p,179);if(h&&b&&!(oR(h)&1)){Vr(h).flags|=1;let I=Gd(h),w=Gd(b);(I&64)!==(w&64)&&(Qe(h.name,f.Accessors_must_both_be_abstract_or_non_abstract),Qe(b.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(I&4&&!(w&6)||I&2&&!(w&2))&&(Qe(h.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Qe(b.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let c=p2(Wr(n));n.kind===178&&Hge(n,c)}}function fht(n){z9(n)}function mht(n,a,c){return n.typeArguments&&c<n.typeArguments.length?Ji(n.typeArguments[c]):m$(n,a)[c]}function m$(n,a){return Wv(Vt(n.typeArguments,Ji),a,Q_(a),Ir(n))}function HWe(n,a){let c,p,h=!0;for(let b=0;b<a.length;b++){let I=ju(a[b]);I&&(c||(c=m$(n,a),p=Kp(a,c)),h=h&&$d(c[b],io(I,p),n.typeArguments[b],f.Type_0_does_not_satisfy_the_constraint_1))}return h}function hht(n,a){if(!pr(n))return a.flags&524288&&Jr(a).typeParameters||(Hr(n)&4?n.target.localTypeParameters:void 0)}function tye(n){let a=Ji(n);if(!pr(a)){let c=Vr(n).resolvedSymbol;if(c)return hht(a,c)}}function nye(n){if(X9(n,n.typeArguments),n.kind===184&&!Ir(n)&&!JN(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){let a=Wn(n);jte(a,n.typeName.end)===25&&YT(n,La(a.text,n.typeName.end),1,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}Je(n.typeArguments,wa),qWe(n)}function qWe(n){let a=Ji(n);if(!pr(a)){n.typeArguments&&r(()=>{let p=tye(n);p&&HWe(n,p)});let c=Vr(n).resolvedSymbol;c&&vt(c.declarations,p=>AI(p)&&!!(p.flags&536870912))&&Dm(R9(n),c.declarations,c.escapedName)}}function _ht(n){let a=ni(n.parent,_6);if(!a)return;let c=tye(a);if(!c)return;let p=ju(c[a.typeArguments.indexOf(n)]);return p&&io(p,Kp(c,m$(a,c)))}function ght(n){IOe(n)}function yht(n){Je(n.members,wa),r(a);function a(){let c=h4e(n);E$(c,c.symbol),eye(n),GWe(n)}}function vht(n){wa(n.elementType)}function bht(n){let a=!1,c=!1;for(let p of n.elements){let h=Fhe(p);if(h&8){let b=Ji(p.type);if(!Bv(b)){Qe(p,f.A_rest_element_type_must_be_an_array_type);break}(nm(b)||Ka(b)&&b.target.combinedFlags&4)&&(h|=4)}if(h&4){if(c){Cn(p,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(h&2){if(c){Cn(p,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(h&1&&a){Cn(p,f.A_required_element_cannot_follow_an_optional_element);break}}Je(n.elements,wa),Ji(n)}function Tht(n){Je(n.types,wa),Ji(n)}function JWe(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,p=n.indexType,h=cp(c)&&g4(c)===2?ZOe(c,0):v_(c,0),b=!!Gg(c,Bt);if(Sp(p,I=>aa(I,h)||b&&Ux(I,Bt)))return a.kind===213&&yb(a)&&Hr(c)&32&&$_(c)&1&&Qe(a,f.Index_signature_in_type_0_only_permits_reading,ar(c)),n;if(_A(c)){let I=rY(p,a);if(I){let w=IA(Ru(c),U=>Ea(U,I));if(w&&Bf(w)&6)return Qe(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(I)),nt}}return Qe(a,f.Type_0_cannot_be_used_to_index_type_1,ar(p),ar(c)),nt}function Sht(n){wa(n.objectType),wa(n.indexType),JWe(c4e(n),n)}function Eht(n){Aht(n),wa(n.typeParameter),wa(n.nameType),wa(n.type),n.type||JT(n,Ue);let a=Yhe(n),c=wv(a);if(c)$d(c,Ii,n.nameType);else{let p=xf(a);$d(p,Ii,DR(n.typeParameter))}}function Aht(n){var a;if((a=n.members)!=null&&a.length)return Cn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function Iht(n){r_e(n)}function xht(n){Uyt(n),wa(n.type)}function Rht(n){Jo(n,wa)}function Dht(n){Dn(n,c=>c.parent&&c.parent.kind===195&&c.parent.extendsType===c)||Cn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),wa(n.typeParameter);let a=Wr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=Jr(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let p=WT(a),h=bte(a,169);if(!v3e(h,[p],b=>[b])){let b=uo(a);for(let I of h)Qe(I.name,f.All_declarations_of_0_must_have_identical_constraints,b)}}}m0(n)}function Cht(n){for(let a of n.templateSpans){wa(a.type);let c=Ji(a.type);$d(c,sa,a.type)}Ji(n)}function Nht(n){wa(n.argument),n.attributes&&OD(n.attributes,Cn),qWe(n)}function Mht(n){n.dotDotDotToken&&n.questionToken&&Cn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===191&&Cn(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===192&&Cn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),wa(n.type),Ji(n)}function W9(n){return(Lp(n,2)||tu(n))&&!!(n.flags&33554432)}function Z4(n,a){let c=F$(n);if(n.parent.kind!==265&&n.parent.kind!==264&&n.parent.kind!==232&&n.flags&33554432){let p=D6(n);p&&p.flags&128&&!(c&128)&&!(e_(n.parent)&&pc(n.parent.parent)&&N_(n.parent.parent))&&(c|=32),c|=128}return c&a}function h$(n){r(()=>Pht(n))}function Pht(n){function a(Sn,vn){return vn!==void 0&&vn.parent===Sn[0].parent?vn:Sn[0]}function c(Sn,vn,Er,fi,oo){if((fi^oo)!==0){let zi=Z4(a(Sn,vn),Er);_R(Sn,Ko=>Wn(Ko).fileName).forEach(Ko=>{let fs=Z4(a(Ko,vn),Er);for(let fo of Ko){let dl=Z4(fo,Er)^zi,Kl=Z4(fo,Er)^fs;Kl&32?Qe(Oo(fo),f.Overload_signatures_must_all_be_exported_or_non_exported):Kl&128?Qe(Oo(fo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):dl&6?Qe(Oo(fo)||fo,f.Overload_signatures_must_all_be_public_private_or_protected):dl&64&&Qe(Oo(fo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function p(Sn,vn,Er,fi){if(Er!==fi){let oo=cI(a(Sn,vn));Je(Sn,ii=>{cI(ii)!==oo&&Qe(Oo(ii),f.Overload_signatures_must_all_be_optional_or_required)})}}let h=230,b=0,I=h,w=!1,U=!0,H=!1,Q,Ie,Te,Ze=n.declarations,Tt=(n.flags&16384)!==0;function Dt(Sn){if(Sn.name&&Ol(Sn.name))return;let vn=!1,Er=Jo(Sn.parent,oo=>{if(vn)return oo;vn=oo===Sn});if(Er&&Er.pos===Sn.end&&Er.kind===Sn.kind){let oo=Er.name||Er,ii=Er.name;if(Sn.name&&ii&&(eo(Sn.name)&&eo(ii)&&Sn.name.escapedText===ii.escapedText||va(Sn.name)&&va(ii)&&Ug(eh(Sn.name),eh(ii))||Hh(Sn.name)&&Hh(ii)&&rM(Sn.name)===rM(ii))){if((Sn.kind===175||Sn.kind===174)&&ua(Sn)!==ua(Er)){let Ko=ua(Sn)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Qe(oo,Ko)}return}if(pm(Er.body)){Qe(oo,f.Function_implementation_name_must_be_0,ws(Sn.name));return}}let fi=Sn.name||Sn;Tt?Qe(fi,f.Constructor_implementation_is_missing):di(Sn,64)?Qe(fi,f.All_declarations_of_an_abstract_method_must_be_consecutive):Qe(fi,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let $t=!1,Tn=!1,nr=!1,yr=[];if(Ze)for(let Sn of Ze){let vn=Sn,Er=vn.flags&33554432,fi=vn.parent&&(vn.parent.kind===265||vn.parent.kind===188)||Er;if(fi&&(Te=void 0),(vn.kind===264||vn.kind===232)&&!Er&&(nr=!0),vn.kind===263||vn.kind===175||vn.kind===174||vn.kind===177){yr.push(vn);let oo=Z4(vn,h);b|=oo,I&=oo,w=w||cI(vn),U=U&&cI(vn);let ii=pm(vn.body);ii&&Q?Tt?Tn=!0:$t=!0:Te?.parent===vn.parent&&Te.end!==vn.pos&&Dt(Te),ii?Q||(Q=vn):H=!0,Te=vn,fi||(Ie=vn)}Ir(Sn)&&Yo(Sn)&&Sn.jsDoc&&(H=et(xG(Sn))>0)}if(Tn&&Je(yr,Sn=>{Qe(Sn,f.Multiple_constructor_implementations_are_not_allowed)}),$t&&Je(yr,Sn=>{Qe(Oo(Sn)||Sn,f.Duplicate_function_implementation)}),nr&&!Tt&&n.flags&16&&Ze){let Sn=Un(Ze,vn=>vn.kind===264).map(vn=>Ar(vn,f.Consider_adding_a_declare_modifier_to_this_class));Je(Ze,vn=>{let Er=vn.kind===264?f.Class_declaration_cannot_implement_overload_list_for_0:vn.kind===263?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Er&&pa(Qe(Oo(vn)||vn,Er,wl(n)),...Sn)})}if(Ie&&!Ie.body&&!di(Ie,64)&&!Ie.questionToken&&Dt(Ie),H&&(Ze&&(c(Ze,Q,h,b,I),p(Ze,Q,w,U)),Q)){let Sn=_S(n),vn=Rf(Q);for(let Er of Sn)if(!kct(vn,Er)){let fi=Er.declaration&&dv(Er.declaration)?Er.declaration.parent.tagName:Er.declaration;pa(Qe(fi,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Ar(Q,f.The_implementation_signature_is_declared_here));break}}}function e8(n){r(()=>Lht(n))}function Lht(n){let a=n.localSymbol;if(!a&&(a=Wr(n),!a.exportSymbol)||al(a,n.kind)!==n)return;let c=0,p=0,h=0;for(let H of a.declarations){let Q=U(H),Ie=Z4(H,2080);Ie&32?Ie&2048?h|=Q:c|=Q:p|=Q}let b=c|p,I=c&p,w=h&b;if(I||w)for(let H of a.declarations){let Q=U(H),Ie=Oo(H);Q&w?Qe(Ie,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,ws(Ie)):Q&I&&Qe(Ie,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,ws(Ie))}function U(H){let Q=H;switch(Q.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return gu(Q)||my(Q)!==0?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:let Ie=Q,Te=ll(Ie)?Ie.expression:Ie.right;if(!Ds(Te))return 1;Q=Te;case 272:case 275:case 274:let Ze=0,Tt=ud(Wr(Q));return Je(Tt.declarations,Dt=>{Ze|=U(Dt)}),Ze;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return C.failBadSyntaxKind(Q)}}}function w2(n,a,c,...p){let h=t8(n,a);return h&&nR(h,a,c,...p)}function t8(n,a,c){if(wr(n))return;let p=n;if(p.promisedTypeOfPromise)return p.promisedTypeOfPromise;if(Hp(n,B5(!1)))return p.promisedTypeOfPromise=rl(n)[0];if($4(y_(n),402915324))return;let h=_n(n,"then");if(wr(h))return;let b=h?na(h,0):ae;if(b.length===0){a&&Qe(a,f.A_promise_must_have_a_then_method);return}let I,w;for(let Q of b){let Ie=BT(Q);Ie&&Ie!==In&&!b_(n,Ie,U_)?I=Ie:w=Bn(w,Q)}if(!w){C.assertIsDefined(I),c&&(c.value=I),a&&Qe(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ar(n),ar(I));return}let U=rm(pi(Vt(w,Bge)),2097152);if(wr(U))return;let H=na(U,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 p.promisedTypeOfPromise=pi(Vt(H,Bge),2)}function F9(n,a,c,p,...h){return(a?nR(n,c,p,...h):jy(n,c,p,...h))||nt}function KWe(n){if($4(y_(n),402915324))return!1;let a=_n(n,"then");return!!a&&na(rm(a,2097152),0).length>0}function _$(n){var a;if(n.flags&16777216){let c=Whe(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function O2(n){return n.flags&1048576?Tl(n,O2):_$(n)?n.aliasTypeArguments[0]:n}function XWe(n){if(wr(n)||_$(n))return!1;if(_A(n)){let a=Ld(n);if(a?a.flags&3||Fy(a)||im(a,KWe):ec(n,8650752))return!0}return!1}function kht(n){let a=Whe(!0);if(a)return LC(a,[O2(n)])}function wht(n){return XWe(n)?kht(n)??n:(C.assert(_$(n)||t8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n)}function nR(n,a,c,...p){let h=jy(n,a,c,...p);return h&&wht(h)}function jy(n,a,c,...p){if(wr(n)||_$(n))return n;let h=n;if(h.awaitedTypeOfType)return h.awaitedTypeOfType;if(n.flags&1048576){if(Hb.lastIndexOf(n.id)>=0){a&&Qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let w=a?H=>jy(H,a,c,...p):jy;Hb.push(n.id);let U=Tl(n,w);return Hb.pop(),h.awaitedTypeOfType=U}if(XWe(n))return h.awaitedTypeOfType=n;let b={value:void 0},I=t8(n,void 0,b);if(I){if(n.id===I.id||Hb.lastIndexOf(I.id)>=0){a&&Qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Hb.push(n.id);let w=jy(I,a,c,...p);return Hb.pop(),w?h.awaitedTypeOfType=w:void 0}if(KWe(n)){if(a){C.assertIsDefined(c);let w;b.value&&(w=qo(w,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ar(n),ar(b.value))),w=qo(w,c,...p),ns.add(mg(Wn(a),a,w))}return}return h.awaitedTypeOfType=n}function Oht(n,a,c){let p=Ji(a);if(G>=2){if(pr(p))return;let b=B5(!0);if(b!==Zt&&!Hp(p,b)){h(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,ar(jy(p)||In));return}}else{if(Zx(n,5),pr(p))return;let b=QL(a);if(b===void 0){h(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,ar(p));return}let I=Gl(b,111551,!0),w=I?_r(I):nt;if(pr(w)){b.kind===80&&b.escapedText==="Promise"&&zn(p)===B5(!1)?Qe(c,f.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):h(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Cp(b));return}let U=Ust(!0);if(U===Ra){h(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Cp(b));return}let H=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!$d(w,U,c,H,()=>a===c?void 0:qo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let Ie=b&&Pu(b),Te=Sd(n.locals,Ie.escapedText,111551);if(Te){Qe(Te.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Kr(Ie),Cp(b));return}}F9(p,!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 h(b,I,w,U){if(I===w)Qe(w,b,U);else{let H=Qe(w,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);pa(H,Ar(I,b,U))}}}function Wht(n){let a=Wn(n);if(!_0(a)){let c=n.expression;if(wu(c))return!1;let p=!0,h;for(;;){if(dy(c)||zI(c)){c=c.expression;continue}if(Zo(c)){p||(h=c),c.questionDotToken&&(h=c.questionDotToken),c=c.expression,p=!1;continue}if(qr(c)){c.questionDotToken&&(h=c.questionDotToken),c=c.expression,p=!1;continue}He(c)||(h=c);break}if(h)return pa(Qe(n.expression,f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Ar(h,f.Invalid_syntax_in_decorator)),!0}return!1}function Fht(n){Wht(n);let a=UC(n);s$(a,n);let c=ps(a);if(c.flags&1)return;let p=jge(n);if(!p?.resolvedReturnType)return;let h,b=p.resolvedReturnType;switch(n.parent.kind){case 264:case 232:h=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!J){h=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:h=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:h=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return C.failBadSyntaxKind(n.parent)}$d(c,b,n.expression,h)}function n8(n,a,c,p,h,b=c.length,I=0){let w=L.createFunctionTypeNode(void 0,ae,L.createKeywordTypeNode(133));return g_(w,n,a,c,p,h,b,I)}function rye(n,a,c,p,h,b,I){let w=n8(n,a,c,p,h,b,I);return pA(w)}function YWe(n){return rye(void 0,void 0,ae,n)}function $We(n){let a=Sf("value",n);return rye(void 0,void 0,[a],In)}function iye(n){if(n)switch(n.kind){case 194:case 193:return QWe(n.types);case 195:return QWe([n.trueType,n.falseType]);case 197:case 203:return iye(n.type);case 184:return n.typeName}}function QWe(n){let a;for(let c of n){for(;c.kind===197||c.kind===203;)c=c.type;if(c.kind===146||!ie&&(c.kind===202&&c.literal.kind===106||c.kind===157))continue;let p=iye(c);if(!p)return;if(a){if(!He(a)||!He(p)||a.escapedText!==p.escapedText)return}else a=p}return a}function g$(n){let a=Rc(n);return D_(n)?hG(a):a}function z9(n){if(!F1(n)||!uf(n)||!n.modifiers||!ZL(J,n,n.parent,n.parent.parent))return;let a=hn(n.modifiers,zc);if(a){J?(Qc(a,8),n.kind===170&&Qc(a,32)):G<ed.ClassAndClassElementDecorators&&(Qc(a,8),Cc(n)?n.name?b3e(n)&&Qc(a,4194304):Qc(a,4194304):uc(n)||(eo(n.name)&&(Nl(n)||db(n)||Ku(n))&&Qc(a,4194304),va(n.name)&&Qc(a,8388608))),Zx(n,8);for(let c of n.modifiers)zc(c)&&Fht(c)}}function zht(n){r(a);function a(){e3e(n),Cye(n),W2(n,n.name)}}function Bht(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&&F2(n.name,f.Type_alias_name_cannot_be_0),wa(n.typeExpression),H9(ab(n))}function Ght(n){wa(n.constraint);for(let a of n.typeParameters)wa(a)}function Vht(n){wa(n.typeExpression)}function jht(n){wa(n.typeExpression);let a=k0(n);if(a){let c=n6(a,g3);if(et(c)>1)for(let p=1;p<et(c);p++){let h=c[p].tagName;Qe(h,f._0_tag_already_specified,Kr(h))}}}function Uht(n){n.name&&J9(n.name,!0)}function Hht(n){wa(n.typeExpression)}function qht(n){wa(n.typeExpression)}function Jht(n){r(a),Q4(n);function a(){!n.type&&!dI(n)&&JT(n,Ue)}}function Kht(n){let a=k0(n);a&&Xs(a)&&Qe(n.tagName,f.An_arrow_function_cannot_have_a_this_parameter)}function Xht(n){yye(n)}function Yht(n){let a=k0(n);(!a||!Cc(a)&&!uc(a))&&Qe(a,f.JSDoc_0_is_not_attached_to_a_class,Kr(n.tagName))}function $ht(n){let a=k0(n);if(!a||!Cc(a)&&!uc(a)){Qe(a,f.JSDoc_0_is_not_attached_to_a_class,Kr(n.tagName));return}let c=R0(a).filter(VI);C.assert(c.length>0),c.length>1&&Qe(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let p=ZWe(n.class.expression),h=v1(a);if(h){let b=ZWe(h.expression);b&&p.escapedText!==b.escapedText&&Qe(p,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Kr(n.tagName),Kr(p),Kr(b))}}function Qht(n){let a=g1(n);a&&tu(a)&&Qe(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function ZWe(n){switch(n.kind){case 80:return n;case 212:return n.name;default:return}}function e3e(n){var a;z9(n),Q4(n);let c=dc(n);if(n.name&&n.name.kind===168&&eh(n.name),CC(n)){let b=Wr(n),I=n.localSymbol||b,w=(a=I.declarations)==null?void 0:a.find(U=>U.kind===n.kind&&!(U.flags&524288));n===w&&h$(I),b.parent&&h$(b)}let p=n.kind===174?void 0:n.body;if(wa(p),Hge(n,MC(n)),r(h),Ir(n)){let b=x0(n);b&&b.typeExpression&&!uge(Ji(b.typeExpression),n)&&Qe(b.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function h(){Pp(n)||(Ol(p)&&!W9(n)&&JT(n,Ue),c&1&&pm(p)&&ps(Rf(n)))}}function m0(n){r(a);function a(){let c=Wn(n),p=Qn.get(c.path);p||(p=[],Qn.set(c.path,p)),p.push(n)}}function t3e(n,a){for(let c of n)switch(c.kind){case 264:case 232:Zht(c,a),oye(c,a);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:i3e(c,a);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:c.body&&i3e(c,a),oye(c,a);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:oye(c,a);break;case 196:e_t(c,a);break;default:C.assertNever(c,"Node should not have been registered for unused identifiers check")}}function n3e(n,a,c){let p=Oo(n)||n,h=AI(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Ar(p,h,a))}function r8(n){return He(n)&&Kr(n).charCodeAt(0)===95}function Zht(n,a){for(let c of n.members)switch(c.kind){case 175:case 173:case 178:case 179:if(c.kind===179&&c.symbol.flags&32768)break;let p=Wr(c);!p.isReferenced&&(Lp(c,2)||nd(c)&&eo(c.name))&&!(c.flags&33554432)&&a(c,0,Ar(c.name,f._0_is_declared_but_its_value_is_never_read,uo(p)));break;case 177:for(let h of c.parameters)!h.symbol.isReferenced&&di(h,2)&&a(h,0,Ar(h.name,f.Property_0_is_declared_but_its_value_is_never_read,wl(h.symbol)));break;case 182:case 241:case 176:break;default:C.fail("Unexpected class member")}}function e_t(n,a){let{typeParameter:c}=n;aye(c)&&a(n,1,Ar(n,f._0_is_declared_but_its_value_is_never_read,Kr(c.name)))}function oye(n,a){let c=Wr(n).declarations;if(!c||Ba(c)!==n)return;let p=ab(n),h=new Set;for(let b of p){if(!aye(b))continue;let I=Kr(b.name),{parent:w}=b;if(w.kind!==196&&w.typeParameters.every(aye)){if(rh(h,w)){let U=Wn(w),H=vm(w)?CV(w):NV(U,w.typeParameters),Ie=w.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,I]:[f.All_type_parameters_are_unused];a(b,1,Fc(U,H.pos,H.end-H.pos,...Ie))}}else a(b,1,Ar(b,f._0_is_declared_but_its_value_is_never_read,I))}}function aye(n){return!(os(n.symbol).isReferenced&262144)&&!r8(n.name)}function B9(n,a,c,p){let h=String(p(a)),b=n.get(h);b?b[1].push(c):n.set(h,[a,[c]])}function r3e(n){return ni(qh(n),to)}function t_t(n){return Ha(n)?pf(n.parent)?!!(n.propertyName&&r8(n.name)):r8(n.name):gu(n)||(yi(n)&&jS(n.parent.parent)||o3e(n))&&r8(n.name)}function i3e(n,a){let c=new Map,p=new Map,h=new Map;n.locals.forEach(b=>{if(!(b.flags&262144?!(b.flags&3&&!(b.isReferenced&3)):b.isReferenced||b.exportSymbol)&&b.declarations){for(let I of b.declarations)if(!t_t(I))if(o3e(I))B9(c,r_t(I),I,ss);else if(Ha(I)&&pf(I.parent)){let w=Ba(I.parent.elements);(I===w||!Ba(I.parent.elements).dotDotDotToken)&&B9(p,I.parent,I,ss)}else if(yi(I)){let w=RS(I)&7,U=Oo(I);(w!==4&&w!==6||!U||!r8(U))&&B9(h,I.parent,I,ss)}else{let w=b.valueDeclaration&&r3e(b.valueDeclaration),U=b.valueDeclaration&&Oo(b.valueDeclaration);w&&U?!Dp(w,w.parent)&&!vb(w)&&!r8(U)&&(Ha(I)&&cv(I.parent)?B9(p,I.parent,I,ss):a(w,1,Ar(U,f._0_is_declared_but_its_value_is_never_read,wl(b)))):n3e(I,wl(b),a)}}}),c.forEach(([b,I])=>{let w=b.parent;if((b.name?1:0)+(b.namedBindings?b.namedBindings.kind===275?1:b.namedBindings.elements.length:0)===I.length)a(w,0,I.length===1?Ar(w,f._0_is_declared_but_its_value_is_never_read,Kr($a(I).name)):Ar(w,f.All_imports_in_import_declaration_are_unused));else for(let H of I)n3e(H,Kr(H.name),a)}),p.forEach(([b,I])=>{let w=r3e(b.parent)?1:0;if(b.elements.length===I.length)I.length===1&&b.parent.kind===261&&b.parent.parent.kind===262?B9(h,b.parent.parent,b.parent,ss):a(b,w,I.length===1?Ar(b,f._0_is_declared_but_its_value_is_never_read,G9($a(I).name)):Ar(b,f.All_destructured_elements_are_unused));else for(let U of I)a(U,w,Ar(U,f._0_is_declared_but_its_value_is_never_read,G9(U.name)))}),h.forEach(([b,I])=>{if(b.declarations.length===I.length)a(b,0,I.length===1?Ar($a(I).name,f._0_is_declared_but_its_value_is_never_read,G9($a(I).name)):Ar(b.parent.kind===244?b.parent:b,f.All_variables_are_unused));else for(let w of I)a(w,0,Ar(w,f._0_is_declared_but_its_value_is_never_read,G9(w.name)))})}function n_t(){var n;for(let a of Ay)if(!((n=Wr(a))!=null&&n.isReferenced)){let c=WS(a);C.assert(O0(c),"Only parameter declaration should be checked here");let p=Ar(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,ws(a.name),ws(a.propertyName));c.type||pa(p,Fc(Wn(c),c.end,0,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,ws(a.propertyName))),ns.add(p)}}function G9(n){switch(n.kind){case 80:return Kr(n);case 208:case 207:return G9(ma($a(n.elements),Ha).name);default:return C.assertNever(n)}}function o3e(n){return n.kind===274||n.kind===277||n.kind===275}function r_t(n){return n.kind===274?n:n.kind===275?n.parent:n.parent.parent}function y$(n){if(n.kind===242&&Uy(n),FB(n)){let a=Oi;Je(n.statements,wa),Oi=a}else Je(n.statements,wa);n.locals&&m0(n)}function i_t(n){G>=2||!qB(n)||n.flags&33554432||Ol(n.body)||Je(n.parameters,a=>{a.name&&!Qo(a.name)&&a.name.escapedText===ge.escapedName&&Tv("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function i8(n,a,c){if(a?.escapedText!==c||n.kind===173||n.kind===172||n.kind===175||n.kind===174||n.kind===178||n.kind===179||n.kind===304||n.flags&33554432||(Gm(n)||Bc(n)||Su(n))&&Xy(n))return!1;let p=qh(n);return!(to(p)&&Ol(p.parent.body))}function o_t(n){Dn(n,a=>oR(a)&4?(n.kind!==80?Qe(Oo(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 a_t(n){Dn(n,a=>oR(a)&8?(n.kind!==80?Qe(Oo(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 s_t(n,a){if(e.getEmitModuleFormatOfFile(Wn(n))>=5||!a||!i8(n,a,"require")&&!i8(n,a,"exports")||pc(n)&&my(n)!==1)return;let c=Pt(n);c.kind===308&&Np(c)&&Tv("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,ws(a),ws(a))}function l_t(n,a){if(!a||G>=4||!i8(n,a,"Promise")||pc(n)&&my(n)!==1)return;let c=Pt(n);c.kind===308&&Np(c)&&c.flags&4096&&Tv("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,ws(a),ws(a))}function c_t(n,a){G<=8&&(i8(n,a,"WeakMap")||i8(n,a,"WeakSet"))&&Sy.push(n)}function d_t(n){let a=sh(n);oR(a)&1048576&&(C.assert(nd(n)&&He(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Tv("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function u_t(n,a){a&&G>=2&&G<=8&&i8(n,a,"Reflect")&&Ey.push(n)}function p_t(n){let a=!1;if(uc(n)){for(let c of n.members)if(oR(c)&2097152){a=!0;break}}else if(Us(n))oR(n)&2097152&&(a=!0);else{let c=sh(n);c&&oR(c)&2097152&&(a=!0)}a&&(C.assert(nd(n)&&He(n.name),"The target of a Reflect collision check should be an identifier"),Tv("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,ws(n.name),"Reflect"))}function W2(n,a){a&&(s_t(n,a),l_t(n,a),c_t(n,a),u_t(n,a),ui(n)?(F2(a,f.Class_name_cannot_be_0),n.flags&33554432||V_t(a)):q0(n)&&F2(a,f.Enum_name_cannot_be_0))}function f_t(n){if((RS(n)&7)!==0||O0(n))return;let a=Wr(n);if(a.flags&1){if(!He(n.name))return C.fail();let c=_t(n,n.name.escapedText,3,void 0,!1);if(c&&c!==a&&c.flags&2&&mge(c)&7){let p=w0(c.valueDeclaration,262),h=p.parent.kind===244&&p.parent.parent?p.parent.parent:void 0;if(!(h&&(h.kind===242&&Yo(h.parent)||h.kind===269||h.kind===268||h.kind===308))){let I=uo(c);Qe(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,I,I)}}}}function o8(n){return n===Rt?Ue:n===ld?bd:n}function V9(n){var a;if(z9(n),Ha(n)||wa(n.type),!n.name)return;if(n.name.kind===168&&(eh(n.name),US(n)&&n.initializer&&Vl(n.initializer)),Ha(n)){if(n.propertyName&&He(n.name)&&O0(n)&&Ol(cf(n).body)){Ay.push(n);return}pf(n.parent)&&n.dotDotDotToken&&G<ed.ObjectSpreadRest&&Qc(n,4),n.propertyName&&n.propertyName.kind===168&&eh(n.propertyName);let h=n.parent.parent,b=n.dotDotDotToken?32:0,I=Si(h,b),w=n.propertyName||n.name;if(I&&!Qo(w)){let U=ky(w);if(Gf(U)){let H=Vf(U),Q=Ea(I,H);Q&&(A9(Q,void 0,!1),_ge(n,!!h.initializer&&h.initializer.kind===108,!1,I,Q))}}}if(Qo(n.name)&&(n.name.kind===208&&G<ed.BindingPatterns&&O.downlevelIteration&&Qc(n,512),Je(n.name.elements,wa)),n.initializer&&O0(n)&&Ol(cf(n).body)){Qe(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Qo(n.name)){if(B_e(n))return;let h=US(n)&&n.initializer&&n.parent.parent.kind!==250,b=!vt(n.name.elements,L8(Kc));if(h||b){let I=Vx(n);if(h){let w=Vl(n.initializer);ie&&b?x6e(w,n):SS(w,Vx(n),n,n.initializer)}b&&(cv(n.name)?Vv(65,I,_e,n):ie&&x6e(I,n))}return}let c=Wr(n);if(c.flags&2097152&&(h1(n)||ine(n))){x$(n);return}n.name.kind===10&&Qe(n.name,f.A_bigint_literal_cannot_be_used_as_a_property_name);let p=o8(_r(c));if(n===c.valueDeclaration){let h=US(n)&&ik(n);if(h&&!(Ir(n)&&Wa(h)&&(h.properties.length===0||Tb(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==250){let I=Vl(h);SS(I,p,n,h,void 0);let w=RS(n)&7;if(w===6){let U=tlt(!0),H=OOe(!0);if(U!==Ra&&H!==Ra){let Q=pi([U,H,Xt,_e]);$d(f4(I,n),Q,h,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(w===4){let U=OOe(!0);if(U!==Ra){let H=pi([U,Xt,_e]);$d(f4(I,n),H,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&&vt(c.declarations,b=>b!==n&&VN(b)&&!s3e(b,n))&&Qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,ws(n.name))}else{let h=o8(Vx(n));!pr(p)&&!pr(h)&&!Ug(p,h)&&!(c.flags&67108864)&&a3e(c.valueDeclaration,p,n,h),US(n)&&n.initializer&&SS(Vl(n.initializer),h,n,n.initializer,void 0),c.valueDeclaration&&!s3e(n,c.valueDeclaration)&&Qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,ws(n.name))}n.kind!==173&&n.kind!==172&&(e8(n),(n.kind===261||n.kind===209)&&f_t(n),W2(n,n.name))}function a3e(n,a,c,p){let h=Oo(c),b=c.kind===173||c.kind===172?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,I=ws(h),w=Qe(h,b,I,ar(a),ar(p));n&&pa(w,Ar(n,f._0_was_also_declared_here,I))}function s3e(n,a){if(n.kind===170&&a.kind===261||n.kind===261&&a.kind===170)return!0;if(cI(n)!==cI(a))return!1;let c=1358;return mI(n,c)===mI(a,c)}function m_t(n){var a,c;(a=xr)==null||a.push(xr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Xyt(n),V9(n),(c=xr)==null||c.pop()}function h_t(n){return qyt(n),V9(n)}function v$(n){let a=ty(n)&7;(a===4||a===6)&&G<ed.UsingAndAwaitUsing&&Qc(n,16777216),Je(n.declarations,wa)}function __t(n){!Jg(n)&&!Pye(n.declarationList)&&Yyt(n),v$(n.declarationList)}function g_t(n){Uy(n),_o(n.expression)}function y_t(n){Uy(n);let a=a8(n.expression);sye(n.expression,a,n.thenStatement),wa(n.thenStatement),n.thenStatement.kind===243&&Qe(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),wa(n.elseStatement)}function sye(n,a,c){if(!ie)return;p(n,c);function p(b,I){for(b=ds(b),h(b,I);Nr(b)&&(b.operatorToken.kind===57||b.operatorToken.kind===61);)b=ds(b.left),h(b,I)}function h(b,I){let w=Ik(b)?ds(b.right):b;if(_g(w))return;if(Ik(w)){p(w,I);return}let U=w===b?a:_o(w);if(U.flags&1024&&qr(w)&&(Vr(w.expression).resolvedSymbol??ne).flags&384){Qe(w,f.This_condition_will_always_return_0,U.value?"true":"false");return}let H=qr(w)&&NWe(w.expression);if(!Mh(U,4194304)||H)return;let Q=na(U,0),Ie=!!w2(U);if(Q.length===0&&!Ie)return;let Te=He(w)?w:qr(w)?w.name:void 0,Ze=Te&&om(Te);if(!Ze&&!Ie)return;Ze&&Nr(b.parent)&&b_t(b.parent,Ze)||Ze&&I&&v_t(b,I,Te,Ze)||(Ie?Sv(w,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,EC(U)):Qe(w,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function v_t(n,a,c,p){return!!Jo(a,function h(b){if(He(b)){let I=om(b);if(I&&I===p){if(He(n)||He(c)&&Nr(c.parent))return!0;let w=c.parent,U=b.parent;for(;w&&U;){if(He(w)&&He(U)||w.kind===110&&U.kind===110)return om(w)===om(U);if(qr(w)&&qr(U)){if(om(w.name)!==om(U.name))return!1;U=U.expression,w=w.expression}else if(Zo(w)&&Zo(U))U=U.expression,w=w.expression;else return!1}}}return Jo(b,h)})}function b_t(n,a){for(;Nr(n)&&n.operatorToken.kind===56;){if(Jo(n.right,function p(h){if(He(h)){let b=om(h);if(b&&b===a)return!0}return Jo(h,p)}))return!0;n=n.parent}return!1}function T_t(n){Uy(n),wa(n.statement),a8(n.expression)}function S_t(n){Uy(n),a8(n.expression),wa(n.statement)}function lye(n,a){if(n.flags&16384)Qe(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness);else{let c=cye(a);c!==3&&Qe(a,c===1?f.This_kind_of_expression_is_always_truthy:f.This_kind_of_expression_is_always_falsy)}return n}function cye(n){switch(n=Ul(n),n.kind){case 9:return n.text==="0"||n.text==="1"?3:1;case 210:case 220:case 10:case 232:case 219:case 285:case 286:case 211:case 14:return 1;case 223:case 106:return 2;case 15:case 11:return n.text?1:2;case 228:return cye(n.whenTrue)|cye(n.whenFalse);case 80:return pu(n)===ce?2:3}return 3}function a8(n,a){return lye(_o(n,a),n)}function E_t(n){Uy(n)||n.initializer&&n.initializer.kind===262&&Pye(n.initializer),n.initializer&&(n.initializer.kind===262?v$(n.initializer):_o(n.initializer)),n.condition&&a8(n.condition),n.incrementor&&_o(n.incrementor),wa(n.statement),n.locals&&m0(n)}function A_t(n){rFe(n);let a=O6(n);if(n.awaitModifier?a&&$l(a)?Cn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(dc(a)&6)===2&&G<ed.ForAwaitOf&&Qc(n,16384):O.downlevelIteration&&G<ed.ForOf&&Qc(n,256),n.initializer.kind===262)v$(n.initializer);else{let c=n.initializer,p=j9(n);if(c.kind===210||c.kind===211)NA(c,p||nt);else{let h=_o(c);Y4(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),p&&SS(p,h,c,n.expression)}}wa(n.statement),n.locals&&m0(n)}function I_t(n){rFe(n);let a=gge(_o(n.expression));if(n.initializer.kind===262){let c=n.initializer.declarations[0];c&&Qo(c.name)&&Qe(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),v$(n.initializer)}else{let c=n.initializer,p=_o(c);c.kind===210||c.kind===211?Qe(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):aa(Vlt(a),p)?Y4(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===yn||!kd(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,ar(a)),wa(n.statement),n.locals&&m0(n)}function j9(n){let a=n.awaitModifier?15:13;return Vv(a,VC(n.expression),_e,n.expression)}function Vv(n,a,c,p){return wr(a)?a:dye(n,a,c,p,!0)||Ue}function dye(n,a,c,p,h){let b=(n&2)!==0;if(a===yn){p&&fye(p,a,b);return}let I=G>=2,w=!I&&O.downlevelIteration,U=O.noUncheckedIndexedAccess&&!!(n&128);if(I||w||b){let Ze=T$(a,n,I?p:void 0);if(h&&Ze){let Tt=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;Tt&&$d(c,Ze.nextType,p,Tt)}if(Ze||I)return U?F4(Ze&&Ze.yieldType):Ze&&Ze.yieldType}let H=a,Q=!1;if(n&4){if(H.flags&1048576){let Ze=a.types,Tt=Un(Ze,Dt=>!(Dt.flags&402653316));Tt!==Ze&&(H=pi(Tt,2))}else H.flags&402653316&&(H=yn);if(Q=H!==a,Q&&H.flags&131072)return U?F4(gt):gt}if(!Bv(H)){if(p){let Ze=!!(n&4)&&!Q,[Tt,Dt]=Te(Ze,w);Sv(p,Dt&&!!w2(H),Tt,ar(H))}return Q?U?F4(gt):gt:void 0}let Ie=zT(H,Bt);if(Q&&Ie)return Ie.flags&402653316&&!O.noUncheckedIndexedAccess?gt:pi(U?[Ie,gt,_e]:[Ie,gt],2);return n&128?F4(Ie):Ie;function Te(Ze,Tt){var Dt;return Tt?Ze?[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]:x_t((Dt=a.symbol)==null?void 0:Dt.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ze?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function x_t(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,p){if(wr(c))return;let h=T$(c,n,p);return h&&h[PSe(a)]}function h0(n=yn,a=yn,c=Nt){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let p=Pm([n,a,c]),h=Ns.get(p);return h||(h={yieldType:n,returnType:a,nextType:c},Ns.set(p,h)),h}return{yieldType:n,returnType:a,nextType:c}}function l3e(n){let a,c,p;for(let h of n)if(!(h===void 0||h===Da)){if(h===Qs)return Qs;a=Bn(a,h.yieldType),c=Bn(c,h.returnType),p=Bn(p,h.nextType)}return a||c||p?h0(a&&pi(a),c&&pi(c),p&&Ma(p)):Da}function b$(n,a){return n[a]}function qg(n,a,c){return n[a]=c}function T$(n,a,c){var p,h;if(n===wt)return Ec;if(wr(n))return Qs;if(!(n.flags&1048576)){let H=c?{errors:void 0,skipLogging:!0}:void 0,Q=c3e(n,a,c,H);if(Q===Da){if(c){let Ie=fye(c,n,!!(a&2));H?.errors&&pa(Ie,...H.errors)}return}else if((p=H?.errors)!=null&&p.length)for(let Ie of H.errors)ns.add(Ie);return Q}let b=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",I=b$(n,b);if(I)return I===Da?void 0:I;let w;for(let H of n.types){let Q=c?{errors:void 0}:void 0,Ie=c3e(H,a,c,Q);if(Ie===Da){if(c){let Te=fye(c,n,!!(a&2));Q?.errors&&pa(Te,...Q.errors)}qg(n,b,Da);return}else if((h=Q?.errors)!=null&&h.length)for(let Te of Q.errors)ns.add(Te);w=Bn(w,Ie)}let U=w?l3e(w):Da;return qg(n,b,U),U===Da?void 0:U}function pye(n,a){if(n===Da)return Da;if(n===Qs)return Qs;let{yieldType:c,returnType:p,nextType:h}=n;return a&&Whe(!0),h0(nR(c,a)||Ue,nR(p,a)||Ue,h)}function c3e(n,a,c,p){if(wr(n))return Qs;let h=!1;if(a&2){let b=d3e(n,mc)||u3e(n,mc);if(b)if(b===Da&&c)h=!0;else return a&8?pye(b,c):b}if(a&1){let b=d3e(n,Hs)||u3e(n,Hs);if(b)if(b===Da&&c)h=!0;else if(a&2){if(b!==Da)return b=pye(b,c),h?b:qg(n,"iterationTypesOfAsyncIterable",b)}else return b}if(a&2){let b=f3e(n,mc,c,p,h);if(b!==Da)return b}if(a&1){let b=f3e(n,Hs,c,p,h);if(b!==Da)return a&2?(b=pye(b,c),h?b:qg(n,"iterationTypesOfAsyncIterable",b)):b}return Da}function d3e(n,a){return b$(n,a.iterableCacheKey)}function u3e(n,a){if(Hp(n,a.getGlobalIterableType(!1))||Hp(n,a.getGlobalIteratorObjectType(!1))||Hp(n,a.getGlobalIterableIteratorType(!1))||Hp(n,a.getGlobalGeneratorType(!1))){let[c,p,h]=rl(n);return qg(n,a.iterableCacheKey,h0(a.resolveIterationType(c,void 0)||c,a.resolveIterationType(p,void 0)||p,h))}if(zX(n,a.getGlobalBuiltinIteratorTypes())){let[c]=rl(n),p=Ohe(),h=Nt;return qg(n,a.iterableCacheKey,h0(a.resolveIterationType(c,void 0)||c,a.resolveIterationType(p,void 0)||p,h))}}function p3e(n){let a=MOe(!1),c=a&&_n(_r(a),Cl(n));return c&&Gf(c)?Vf(c):`__@${n}`}function f3e(n,a,c,p,h){let b=Ea(n,p3e(a.iteratorSymbolName)),I=b&&!(b.flags&16777216)?_r(b):void 0;if(wr(I))return h?Qs:qg(n,a.iterableCacheKey,Qs);let w=I?na(I,0):void 0,U=Un(w,Ie=>kh(Ie)===0);if(!vt(U))return c&&vt(w)&&$d(n,a.getGlobalIterableType(!0),c,void 0,void 0,p),h?Da:qg(n,a.iterableCacheKey,Da);let H=Ma(Vt(U,ps)),Q=m3e(H,a,c,p,h)??Da;return h?Q:qg(n,a.iterableCacheKey,Q)}function fye(n,a,c){let p=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,h=!!w2(a)||!c&&aw(n.parent)&&n.parent.expression===n&&G5(!1)!==Zt&&aa(a,T2(G5(!1),[Ue,Ue,Ue]));return Sv(n,h,p,ar(a))}function R_t(n,a,c,p){return m3e(n,a,c,p,!1)}function m3e(n,a,c,p,h){if(wr(n))return Qs;let b=D_t(n,a)||C_t(n,a);return b===Da&&c&&(b=void 0,h=!0),b??(b=L_t(n,a,c,p,h)),b===Da?void 0:b}function D_t(n,a){return b$(n,a.iteratorCacheKey)}function C_t(n,a){if(Hp(n,a.getGlobalIterableIteratorType(!1))||Hp(n,a.getGlobalIteratorType(!1))||Hp(n,a.getGlobalIteratorObjectType(!1))||Hp(n,a.getGlobalGeneratorType(!1))){let[c,p,h]=rl(n);return qg(n,a.iteratorCacheKey,h0(c,p,h))}if(zX(n,a.getGlobalBuiltinIteratorTypes())){let[c]=rl(n),p=Ohe(),h=Nt;return qg(n,a.iteratorCacheKey,h0(c,p,h))}}function h3e(n,a){let c=_n(n,"done")||tr;return aa(a===0?tr:ft,c)}function N_t(n){return h3e(n,0)}function M_t(n){return h3e(n,1)}function P_t(n){if(wr(n))return Qs;let a=b$(n,"iterationTypesOfIteratorResult");if(a)return a;if(Hp(n,Zst(!1))){let I=rl(n)[0];return qg(n,"iterationTypesOfIteratorResult",h0(I,void 0,void 0))}if(Hp(n,elt(!1))){let I=rl(n)[0];return qg(n,"iterationTypesOfIteratorResult",h0(void 0,I,void 0))}let c=Ac(n,N_t),p=c!==yn?_n(c,"value"):void 0,h=Ac(n,M_t),b=h!==yn?_n(h,"value"):void 0;return!p&&!b?qg(n,"iterationTypesOfIteratorResult",Da):qg(n,"iterationTypesOfIteratorResult",h0(p,b||In,void 0))}function mye(n,a,c,p,h){var b,I,w,U;let H=Ea(n,c);if(!H&&c!=="next")return;let Q=H&&!(c==="next"&&H.flags&16777216)?c==="next"?_r(H):rm(_r(H),2097152):void 0;if(wr(Q))return Qs;let Ie=Q?na(Q,0):ae;if(Ie.length===0){if(p){let Sn=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;h?(h.errors??(h.errors=[]),h.errors.push(Ar(p,Sn,c))):Qe(p,Sn,c)}return c==="next"?Da:void 0}if(Q?.symbol&&Ie.length===1){let Sn=a.getGlobalGeneratorType(!1),vn=a.getGlobalIteratorType(!1),Er=((I=(b=Sn.symbol)==null?void 0:b.members)==null?void 0:I.get(c))===Q.symbol,fi=!Er&&((U=(w=vn.symbol)==null?void 0:w.members)==null?void 0:U.get(c))===Q.symbol;if(Er||fi){let oo=Er?Sn:vn,{mapper:ii}=Q;return h0(zv(oo.typeParameters[0],ii),zv(oo.typeParameters[1],ii),c==="next"?zv(oo.typeParameters[2],ii):void 0)}}let Te,Ze;for(let Sn of Ie)c!=="throw"&&vt(Sn.parameters)&&(Te=Bn(Te,Lh(Sn,0))),Ze=Bn(Ze,ps(Sn));let Tt,Dt;if(c!=="throw"){let Sn=Te?pi(Te):Nt;if(c==="next")Dt=Sn;else if(c==="return"){let vn=a.resolveIterationType(Sn,p)||Ue;Tt=Bn(Tt,vn)}}let $t,Tn=Ze?Ma(Ze):yn,nr=a.resolveIterationType(Tn,p)||Ue,yr=P_t(nr);return yr===Da?(p&&(h?(h.errors??(h.errors=[]),h.errors.push(Ar(p,a.mustHaveAValueDiagnostic,c))):Qe(p,a.mustHaveAValueDiagnostic,c)),$t=Ue,Tt=Bn(Tt,Ue)):($t=yr.yieldType,Tt=Bn(Tt,yr.returnType)),h0($t,pi(Tt),Dt)}function L_t(n,a,c,p,h){let b=l3e([mye(n,a,"next",c,p),mye(n,a,"return",c,p),mye(n,a,"throw",c,p)]);return h?b:qg(n,a.iteratorCacheKey,b)}function jv(n,a,c){if(wr(a))return;let p=hye(a,c);return p&&p[PSe(n)]}function hye(n,a){if(wr(n))return Qs;let c=a?2:1,p=a?mc:Hs;return T$(n,c,void 0)||R_t(n,p,void 0,void 0)}function k_t(n){Uy(n)||Hyt(n)}function U9(n,a){let c=!!(a&1),p=!!(a&2);if(c){let h=jv(1,n,p);return h?p?jy(O2(h)):h:nt}return p?jy(n)||nt:n}function _3e(n,a){let c=U9(a,dc(n));return!!(c&&(ec(c,16384)||c.flags&32769))}function w_t(n){if(Uy(n))return;let a=O6(n);if(a&&$l(a)){fd(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){fd(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=Rf(a),p=ps(c);if(ie||n.expression||p.flags&131072){let h=n.expression?Vl(n.expression):_e;if(a.kind===179)n.expression&&Qe(n,f.Setters_cannot_return_a_value);else if(a.kind===177){let b=n.expression?Vl(n.expression):_e;n.expression&&!SS(b,p,n,n.expression)&&Qe(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(MC(a)){let b=U9(p,dc(a))??p;S$(a,b,n,n.expression,h)}}else a.kind!==177&&O.noImplicitReturns&&!_3e(a,p)&&Qe(n,f.Not_all_code_paths_return_a_value)}function S$(n,a,c,p,h,b=!1){let I=Ir(c),w=dc(n);if(p){let Te=ds(p,I);if(pE(Te)){S$(n,a,c,Te.whenTrue,_o(Te.whenTrue),!0),S$(n,a,c,Te.whenFalse,_o(Te.whenFalse),!0);return}}let U=c.kind===254,H=w&2?F9(h,!1,c,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h,Q=p&&r$(p);SS(H,a,U&&!b?c:Q,Q)}function O_t(n){Uy(n)||n.flags&65536&&fd(n,f.with_statements_are_not_allowed_in_an_async_function_block),_o(n.expression);let a=Wn(n);if(!_0(a)){let c=Vh(a,n.pos).start,p=n.statement.pos;YT(a,c,p-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function W_t(n){Uy(n);let a,c=!1,p=_o(n.expression);Je(n.caseBlock.clauses,h=>{h.kind===298&&!c&&(a===void 0?a=h:(Cn(h,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),h.kind===297&&r(b(h)),Je(h.statements,wa),O.noFallthroughCasesInSwitch&&h.fallthroughFlowNode&&p9(h.fallthroughFlowNode)&&Qe(h,f.Fallthrough_case_in_switch);function b(I){return()=>{let w=_o(I.expression);Xge(p,w)||L4e(w,p,I.expression,void 0)}}}),n.caseBlock.locals&&m0(n.caseBlock)}function F_t(n){Uy(n)||Dn(n.parent,a=>Yo(a)?"quit":a.kind===257&&a.label.escapedText===n.label.escapedText?(Cn(n.label,f.Duplicate_label_0,Al(n.label)),!0):!1),wa(n.statement)}function z_t(n){Uy(n)||He(n.expression)&&!n.expression.escapedText&&ovt(n,f.Line_break_not_permitted_here),n.expression&&_o(n.expression)}function B_t(n){Uy(n),y$(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;V9(c);let p=Rc(c);if(p){let h=Ji(p);h&&!(h.flags&3)&&fd(p,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)fd(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let h=a.block.locals;h&&pg(a.locals,b=>{let I=h.get(b);I?.valueDeclaration&&(I.flags&2)!==0&&Cn(I.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Vi(b))})}}y$(a.block)}n.finallyBlock&&y$(n.finallyBlock)}function E$(n,a,c){let p=Xd(n);if(p.length===0)return;for(let b of Ov(n))c&&b.flags&4194304||g3e(n,b,qx(b,8576,!0),xh(b));let h=a.valueDeclaration;if(h&&ui(h)){for(let b of h.members)if((!c&&!ua(b)||c&&ua(b))&&!CC(b)){let I=Wr(b);g3e(n,I,wd(b.name.expression),xh(I))}}if(p.length>1)for(let b of p)G_t(n,b)}function g3e(n,a,c,p){let h=a.valueDeclaration,b=Oo(h);if(b&&eo(b))return;let I=Ehe(n,c),w=Hr(n)&2?al(n.symbol,265):void 0,U=h&&h.kind===227||b&&b.kind===168?h:void 0,H=$c(a)===n.symbol?h:void 0;for(let Q of I){let Ie=Q.declaration&&$c(Wr(Q.declaration))===n.symbol?Q.declaration:void 0,Te=H||Ie||(w&&!vt(Qm(n),Ze=>!!mS(Ze,a.escapedName)&&!!zT(Ze,Q.keyType))?w:void 0);if(Te&&!aa(p,Q.type)){let Ze=nS(Te,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,uo(a),ar(p),ar(Q.keyType),ar(Q.type));U&&Te!==U&&pa(Ze,Ar(U,f._0_is_declared_here,uo(a))),ns.add(Ze)}}}function G_t(n,a){let c=a.declaration,p=Ehe(n,a.keyType),h=Hr(n)&2?al(n.symbol,265):void 0,b=c&&$c(Wr(c))===n.symbol?c:void 0;for(let I of p){if(I===a)continue;let w=I.declaration&&$c(Wr(I.declaration))===n.symbol?I.declaration:void 0,U=b||w||(h&&!vt(Qm(n),H=>!!Gg(H,a.keyType)&&!!zT(H,I.keyType))?h:void 0);U&&!aa(a.type,I.type)&&Qe(U,f._0_index_type_1_is_not_assignable_to_2_index_type_3,ar(a.keyType),ar(a.type),ar(I.keyType),ar(I.type))}}function F2(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":case"undefined":Qe(n,a,n.escapedText)}}function V_t(n){G>=1&&n.escapedText==="Object"&&e.getEmitModuleFormatOfFile(Wn(n))<5&&Qe(n,f.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,bR[j])}function j_t(n){let a=Un(R0(n),ff);if(!et(a))return;let c=Ir(n),p=new Set,h=new Set;if(Je(n.parameters,({name:I},w)=>{He(I)&&p.add(I.escapedText),Qo(I)&&h.add(w)}),Ihe(n)){let I=a.length-1,w=a[I];c&&w&&He(w.name)&&w.typeExpression&&w.typeExpression.type&&!p.has(w.name.escapedText)&&!h.has(I)&&!nm(Ji(w.typeExpression.type))&&Qe(w.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,Kr(w.name))}else Je(a,({name:I,isNameFirst:w},U)=>{h.has(U)||He(I)&&p.has(I.escapedText)||(Lu(I)?c&&Qe(I,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Cp(I),Cp(I.left)):w||qm(c,I,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Kr(I)))})}function H9(n){let a=!1;if(n)for(let p=0;p<n.length;p++){let h=n[p];FWe(h),r(c(h,p))}function c(p,h){return()=>{p.default?(a=!0,U_t(p.default,n,h)):a&&Qe(p,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let b=0;b<h;b++)n[b].symbol===p.symbol&&Qe(p.name,f.Duplicate_identifier_0,ws(p.name))}}}function U_t(n,a,c){p(n);function p(h){if(h.kind===184){let b=eY(h);if(b.flags&262144)for(let I=c;I<a.length;I++)b.symbol===Wr(a[I])&&Qe(h,f.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Jo(h,p)}}function y3e(n){if(n.declarations&&n.declarations.length===1)return;let a=Jr(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;let c=Q_t(n);if(!c||c.length<=1)return;let p=qs(n);if(!v3e(c,p.localTypeParameters,ab)){let h=uo(n);for(let b of c)Qe(b.name,f.All_declarations_of_0_must_have_identical_type_parameters,h)}}}function v3e(n,a,c){let p=et(a),h=Q_(a);for(let b of n){let I=c(b),w=I.length;if(w<h||w>p)return!1;for(let U=0;U<w;U++){let H=I[U],Q=a[U];if(H.name.escapedText!==Q.symbol.escapedName)return!1;let Ie=DR(H),Te=Ie&&Ji(Ie),Ze=ju(Q);if(Te&&Ze&&!Ug(Te,Ze))return!1;let Tt=H.default&&Ji(H.default),Dt=hS(Q);if(Tt&&Dt&&!Ug(Tt,Dt))return!1}}return!0}function b3e(n){let a=!J&&G<ed.ClassAndClassElementDecorators&&Qy(!1,n),c=G<ed.PrivateNamesAndClassStaticBlocks||G<ed.ClassAndClassElementDecorators,p=!q;if(a||c)for(let h of n.members){if(a&&gG(!1,h,n))return Ic(ob(n))??n;if(c){if($l(h))return h;if(ua(h)&&(tu(h)||p&&kw(h)))return h}}}function H_t(n){if(n.name)return;let a=Gie(n);if(!kG(a))return;let c=!J&&G<ed.ClassAndClassElementDecorators,p;c&&Qy(!1,n)?p=Ic(ob(n))??n:p=b3e(n),p&&(Qc(p,4194304),(Nc(a)||Po(a)||Ha(a))&&va(a.name)&&Qc(p,8388608))}function q_t(n){return T3e(n),rR(n),H_t(n),_r(Wr(n))}function J_t(n){Je(n.members,wa),m0(n)}function K_t(n){let a=hn(n.modifiers,zc);J&&a&&vt(n.members,c=>Wc(c)&&tu(c))&&Cn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!di(n,2048)&&fd(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),T3e(n),Je(n.members,wa),m0(n)}function T3e(n){Nyt(n),z9(n),W2(n,n.name),H9(ab(n)),e8(n);let a=Wr(n),c=qs(a),p=qp(c),h=_r(a);y3e(a),h$(a),aht(n),!!(n.flags&33554432)||sht(n);let I=lh(n);if(I){Je(I.typeArguments,wa),G<ed.Classes&&Qc(I.parent,1);let H=v1(n);H&&H!==I&&_o(H.expression);let Q=Qm(c);Q.length&&r(()=>{let Ie=Q[0],Te=Py(c),Ze=Ru(Te);if(Y_t(Ze,I),wa(I.expression),vt(I.typeArguments)){Je(I.typeArguments,wa);for(let Dt of $m(Ze,I.typeArguments,I))if(!HWe(I,Dt.typeParameters))break}let Tt=qp(Ie,c.thisType);if($d(p,Tt,void 0)?$d(h,R4e(Ze),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):A3e(n,p,Tt,f.Class_0_incorrectly_extends_base_class_1),Te.flags&8650752&&(Ed(h)?na(Te,1).some($t=>$t.flags&4)&&!di(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)),!(Ze.symbol&&Ze.symbol.flags&32)&&!(Te.flags&8650752)){let Dt=zg(Ze,I.typeArguments,I);Je(Dt,$t=>!S_($t.declaration)&&!Ug(ps($t),Ie))&&Qe(I.expression,f.Base_constructors_must_all_have_the_same_return_type)}Z_t(c,Ie)})}X_t(n,c,p,h);let w=JR(n);if(w)for(let H of w)(!Ds(H.expression)||eu(H.expression))&&Qe(H.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),nye(H),r(U(H));r(()=>{E$(c,a),E$(h,a,!0),eye(n),ngt(n)});function U(H){return()=>{let Q=Mm(Ji(H));if(!pr(Q))if(N5(Q)){let Ie=Q.symbol&&Q.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,Te=qp(Q,c.thisType);$d(p,Te,void 0)||A3e(n,p,Te,Ie)}else Qe(H,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function X_t(n,a,c,p){let b=lh(n)&&Qm(a),I=b?.length?qp($a(b),a.thisType):void 0,w=Py(a);for(let U of n.members)$G(U)||(Ml(U)&&Je(U.parameters,H=>{Dp(H,U)&&S3e(n,p,w,I,a,c,H,!0)}),S3e(n,p,w,I,a,c,U,!1))}function S3e(n,a,c,p,h,b,I,w,U=!0){let H=I.name&&om(I.name)||om(I);return H?E3e(n,a,c,p,h,b,uW(I),A1(I),ua(I),w,H,U?I:void 0):0}function E3e(n,a,c,p,h,b,I,w,U,H,Q,Ie){let Te=Ir(n),Ze=!!(n.flags&33554432);if(I&&Q?.valueDeclaration&&Tc(Q.valueDeclaration)&&Q.valueDeclaration.name&&zwe(Q.valueDeclaration.name))return Qe(Ie,Te?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:f.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(p&&(I||O.noImplicitOverride)){let Tt=U?a:b,Dt=U?c:p,$t=Ea(Tt,Q.escapedName),Tn=Ea(Dt,Q.escapedName),nr=ar(p);if($t&&!Tn&&I){if(Ie){let yr=P6e(wl(Q),Dt);yr?Qe(Ie,Te?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,nr,uo(yr)):Qe(Ie,Te?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,nr)}return 2}else if($t&&Tn?.declarations&&O.noImplicitOverride&&!Ze){let yr=vt(Tn.declarations,A1);if(I)return 0;if(yr){if(w&&yr)return Ie&&Qe(Ie,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,nr),1}else{if(Ie){let Sn=H?Te?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:Te?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(Ie,Sn,nr)}return 1}}}else if(I){if(Ie){let Tt=ar(h);Qe(Ie,Te?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,Tt)}return 2}return 0}function A3e(n,a,c,p){let h=!1;for(let b of n.members){if(ua(b))continue;let I=b.name&&om(b.name)||om(b);if(I){let w=Ea(a,I.escapedName),U=Ea(c,I.escapedName);if(w&&U){let H=()=>qo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,uo(I),ar(a),ar(c));$d(_r(w),_r(U),b.name||b,void 0,H)||(h=!0)}}}h||$d(a,c,n.name||n,p)}function Y_t(n,a){let c=na(n,1);if(c.length){let p=c[0].declaration;if(p&&Lp(p,2)){let h=cy(n.symbol);Tye(a,h)||Qe(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Rv(n.symbol))}}}function $_t(n,a,c){if(!a.name)return 0;let p=Wr(n),h=qs(p),b=qp(h),I=_r(p),U=lh(n)&&Qm(h),H=U?.length?qp($a(U),h.thisType):void 0,Q=Py(h),Ie=a.parent?uW(a):di(a,16);return E3e(n,I,Q,H,h,b,Ie,A1(a),ua(a),!1,c)}function JC(n){return Wl(n)&1?n.links.target:n}function Q_t(n){return Un(n.declarations,a=>a.kind===264||a.kind===265)}function Z_t(n,a){var c,p,h,b,I;let w=bs(a),U=new Map;e:for(let H of w){let Q=JC(H);if(Q.flags&4194304)continue;let Ie=mS(n,Q.escapedName);if(!Ie)continue;let Te=JC(Ie),Ze=Bf(Q);if(C.assert(!!Te,"derived should point to something, even if it is the base class' declaration."),Te===Q){let Tt=cy(n.symbol);if(Ze&64&&(!Tt||!di(Tt,64))){for(let yr of Qm(n)){if(yr===a)continue;let Sn=mS(yr,Q.escapedName),vn=Sn&&JC(Sn);if(vn&&vn!==Q)continue e}let Dt=ar(a),$t=ar(n),Tn=uo(H),nr=Bn((c=U.get(Tt))==null?void 0:c.missedProperties,Tn);U.set(Tt,{baseTypeName:Dt,typeName:$t,missedProperties:nr})}}else{let Tt=Bf(Te);if(Ze&2||Tt&2)continue;let Dt,$t=Q.flags&98308,Tn=Te.flags&98308;if($t&&Tn){if((Wl(Q)&6?(p=Q.declarations)!=null&&p.some(Sn=>I3e(Sn,Ze)):(h=Q.declarations)!=null&&h.every(Sn=>I3e(Sn,Ze)))||Wl(Q)&262144||Te.valueDeclaration&&Nr(Te.valueDeclaration))continue;let nr=$t!==4&&Tn===4;if(nr||$t===4&&Tn!==4){let Sn=nr?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(Oo(Te.valueDeclaration)||Te.valueDeclaration,Sn,uo(Q),ar(a),ar(n))}else if(Z){let Sn=(b=Te.declarations)==null?void 0:b.find(vn=>vn.kind===173&&!vn.initializer);if(Sn&&!(Te.flags&33554432)&&!(Ze&64)&&!(Tt&64)&&!((I=Te.declarations)!=null&&I.some(vn=>!!(vn.flags&33554432)))){let vn=Kk(cy(n.symbol)),Er=Sn.name;if(Sn.exclamationToken||!vn||!He(Er)||!ie||!R3e(Er,n,vn)){let fi=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(Oo(Te.valueDeclaration)||Te.valueDeclaration,fi,uo(Q),ar(a))}}}continue}else if(hge(Q)){if(hge(Te)||Te.flags&4)continue;C.assert(!!(Te.flags&98304)),Dt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Q.flags&98304?Dt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Dt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Qe(Oo(Te.valueDeclaration)||Te.valueDeclaration,Dt,ar(a),uo(Q),ar(n))}}for(let[H,Q]of U)if(et(Q.missedProperties)===1)uc(H)?Qe(H,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,$a(Q.missedProperties),Q.baseTypeName):Qe(H,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Q.typeName,$a(Q.missedProperties),Q.baseTypeName);else if(et(Q.missedProperties)>5){let Ie=Vt(Q.missedProperties.slice(0,4),Ze=>`'${Ze}'`).join(", "),Te=et(Q.missedProperties)-4;uc(H)?Qe(H,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,Q.baseTypeName,Ie,Te):Qe(H,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,Q.typeName,Q.baseTypeName,Ie,Te)}else{let Ie=Vt(Q.missedProperties,Te=>`'${Te}'`).join(", ");uc(H)?Qe(H,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,Q.baseTypeName,Ie):Qe(H,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,Q.typeName,Q.baseTypeName,Ie)}}function I3e(n,a){return a&64&&(!Po(n)||!n.initializer)||gd(n.parent)}function egt(n,a,c){if(!et(a))return c;let p=new Map;Je(c,h=>{p.set(h.escapedName,h)});for(let h of a){let b=bs(qp(h,n.thisType));for(let I of b){let w=p.get(I.escapedName);w&&I.parent===w.parent&&p.delete(I.escapedName)}}return Co(p.values())}function tgt(n,a){let c=Qm(n);if(c.length<2)return!0;let p=new Map;Je(lhe(n).declaredProperties,b=>{p.set(b.escapedName,{prop:b,containingType:n})});let h=!0;for(let b of c){let I=bs(qp(b,n.thisType));for(let w of I){let U=p.get(w.escapedName);if(!U)p.set(w.escapedName,{prop:w,containingType:b});else if(U.containingType!==n&&!Kct(U.prop,w)){h=!1;let Q=ar(U.containingType),Ie=ar(b),Te=qo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,uo(w),Q,Ie);Te=qo(Te,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,ar(n),Q,Ie),ns.add(mg(Wn(a),a,Te))}}}return h}function ngt(n){if(!ie||!de||n.flags&33554432)return;let a=Kk(n);for(let c of n.members)if(!(Gd(c)&128)&&!ua(c)&&x3e(c)){let p=c.name;if(He(p)||eo(p)||va(p)){let h=_r(Wr(c));h.flags&3||WC(h)||(!a||!R3e(p,h,a))&&Qe(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,ws(p))}}}function x3e(n){return n.kind===173&&!A1(n)&&!n.exclamationToken&&!n.initializer}function rgt(n,a,c,p,h){for(let b of c)if(b.pos>=p&&b.pos<=h){let I=L.createPropertyAccessExpression(L.createThis(),n);us(I.expression,I),us(I,b),I.flowNode=b.returnFlowNode;let w=Vy(I,a,p0(a));if(!WC(w))return!0}return!1}function R3e(n,a,c){let p=va(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);us(p.expression,p),us(p,c),p.flowNode=c.returnFlowNode;let h=Vy(p,a,p0(a));return!WC(h)}function igt(n){Jg(n)||Wyt(n),W$(n.parent)||Cn(n,f._0_declarations_can_only_be_declared_inside_a_block,"interface"),H9(n.typeParameters),r(()=>{F2(n.name,f.Interface_name_cannot_be_0),e8(n);let a=Wr(n);y3e(a);let c=al(a,265);if(n===c){let p=qs(a),h=qp(p);if(tgt(p,n.name)){for(let b of Qm(p))$d(h,qp(b,p.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);E$(p,a)}}GWe(n)}),Je(tM(n),a=>{(!Ds(a.expression)||eu(a.expression))&&Qe(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),nye(a)}),Je(n.members,wa),r(()=>{eye(n),m0(n)})}function ogt(n){if(Jg(n),F2(n.name,f.Type_alias_name_cannot_be_0),W$(n.parent)||Cn(n,f._0_declarations_can_only_be_declared_inside_a_block,"type"),e8(n),H9(n.typeParameters),n.type.kind===141){let a=et(n.typeParameters);(a===0?n.name.escapedText==="BuiltinIteratorReturn":a===1&&EU.has(n.name.escapedText))||Qe(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else wa(n.type),m0(n)}function D3e(n){let a=Vr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0,p;for(let h of n.members){let b=agt(h,c,p);Vr(h).enumMemberValue=b,c=typeof b.value=="number"?b.value+1:void 0,p=h}}}function agt(n,a,c){if(jL(n.name))Qe(n.name,f.Computed_property_names_are_not_allowed_in_enums);else if(cD(n.name))Qe(n.name,f.An_enum_member_cannot_have_a_numeric_name);else{let p=oI(n.name);Sg(p)&&!RM(p)&&Qe(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return sgt(n);if(n.parent.flags&33554432&&!C0(n.parent))return Jc(void 0);if(a===void 0)return Qe(n.name,f.Enum_member_must_have_initializer),Jc(void 0);if(gm(O)&&c?.initializer){let p=MA(c);typeof p.value=="number"&&!p.resolvedOtherFiles||Qe(n.name,f.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return Jc(a)}function sgt(n){let a=C0(n.parent),c=n.initializer,p=Be(c,n);return p.value!==void 0?a&&typeof p.value=="number"&&!isFinite(p.value)?Qe(c,isNaN(p.value)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):gm(O)&&typeof p.value=="string"&&!p.isSyntacticallyString&&Qe(c,f._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Kr(n.parent.name)}.${oI(n.name)}`):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):$d(_o(c),Bt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),p}function C3e(n,a){let c=Gl(n,111551,!0);if(!c)return Jc(void 0);if(n.kind===80){let p=n;if(RM(p.escapedText)&&c===wC(p.escapedText,111551,void 0))return Jc(+p.escapedText,!1)}if(c.flags&8)return a?N3e(n,c,a):MA(c.valueDeclaration);if(Qx(c)){let p=c.valueDeclaration;if(p&&yi(p)&&!p.type&&p.initializer&&(!a||p!==a&&Dy(p,a))){let h=Be(p.initializer,p);return a&&Wn(a)!==Wn(p)?Jc(h.value,!1,!0,!0):Jc(h.value,h.isSyntacticallyString,h.resolvedOtherFiles,!0)}}return Jc(void 0)}function lgt(n,a){let c=n.expression;if(Ds(c)&&cs(n.argumentExpression)){let p=Gl(c,111551,!0);if(p&&p.flags&384){let h=Cl(n.argumentExpression.text),b=p.exports.get(h);if(b)return C.assert(Wn(b.valueDeclaration)===Wn(p.valueDeclaration)),a?N3e(n,b,a):MA(b.valueDeclaration)}}return Jc(void 0)}function N3e(n,a,c){let p=a.valueDeclaration;if(!p||p===c)return Qe(n,f.Property_0_is_used_before_being_assigned,uo(a)),Jc(void 0);if(!Dy(p,c))return Qe(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),Jc(0);let h=MA(p);return c.parent!==p.parent?Jc(h.value,h.isSyntacticallyString,h.resolvedOtherFiles,!0):h}function cgt(n){r(()=>dgt(n))}function dgt(n){Jg(n),W2(n,n.name),e8(n),n.members.forEach(wa),O.erasableSyntaxOnly&&!(n.flags&33554432)&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),D3e(n);let a=Wr(n),c=al(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let h=C0(n);Je(a.declarations,b=>{q0(b)&&C0(b)!==h&&Qe(Oo(b),f.Enum_declarations_must_all_be_const_or_non_const)})}let p=!1;Je(a.declarations,h=>{if(h.kind!==267)return!1;let b=h;if(!b.members.length)return!1;let I=b.members[0];I.initializer||(p?Qe(I.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):p=!0)})}}function ugt(n){eo(n.name)&&Qe(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&_o(n.initializer)}function pgt(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===264||c.kind===263&&pm(c.body))&&!(c.flags&33554432))return c}}function fgt(n,a){let c=sh(n),p=sh(a);return $y(c)?$y(p):$y(p)?!1:c===p}function mgt(n){n.body&&(wa(n.body),N_(n)||m0(n)),r(a);function a(){var c,p;let h=N_(n),b=n.flags&33554432;h&&!b&&Qe(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let I=gu(n),w=I?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(q9(n,w))return;if(Jg(n)||!b&&n.name.kind===11&&Cn(n.name,f.Only_ambient_modules_can_use_quoted_names),He(n.name)&&(W2(n,n.name),!(n.flags&2080))){let H=Wn(n),Q=Dte(n),Ie=Vh(H,Q);VE.add(Fc(H,Ie.start,Ie.length,f.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}e8(n);let U=Wr(n);if(U.flags&512&&!b&&AU(n,Sb(O))){if(O.erasableSyntaxOnly&&Qe(n.name,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),gm(O)&&!Wn(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,Ge),((c=U.declarations)==null?void 0:c.length)>1){let H=pgt(U);H&&(Wn(n)!==Wn(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));let Q=al(U,264);Q&&fgt(n,Q)&&(Vr(n).flags|=2048)}if(O.verbatimModuleSyntax&&n.parent.kind===308&&e.getEmitModuleFormatOfFile(n.parent)===1){let H=(p=n.modifiers)==null?void 0:p.find(Q=>Q.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(I)if(f1(n)){if((h||Wr(n).flags&33554432)&&n.body)for(let Q of n.body.statements)_ye(Q,h)}else $y(n.parent)?h?Qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):td(Wf(n.name))&&Qe(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):h?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 _ye(n,a){switch(n.kind){case 244:for(let p of n.declarationList.declarations)_ye(p,a);break;case 278:case 279:fd(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(KS(n))break;case 273:fd(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:let c=n.name;if(Qo(c)){for(let p of c.elements)_ye(p,a);break}case 264:case 267:case 263:case 265:case 268:case 266:if(a)return;break}}function hgt(n){switch(n.kind){case 80:return n;case 167:do n=n.left;while(n.kind!==80);return n;case 212:do{if(_g(n.expression)&&!eo(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function A$(n){let a=lI(n);if(!a||Ol(a))return!1;if(!ka(a))return Qe(a,f.String_literal_expected),!1;let c=n.parent.kind===269&&gu(n.parent.parent);if(n.parent.kind!==308&&!c)return Qe(a,n.kind===279?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&td(a.text)&&!l2(n))return Qe(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Bc(n)&&n.attributes){let p=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions,h=!1;for(let b of n.attributes.elements)ka(b.value)||(h=!0,Qe(b.value,p));return!h}return!0}function I$(n,a=!0){n===void 0||n.kind!==11||(a?(j===5||j===6)&&Cn(n,f.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):Cn(n,f.Identifier_expected))}function x$(n){var a,c,p,h,b;let I=Wr(n),w=ud(I);if(w!==ne){if(I=os(I.exportSymbol||I),Ir(n)&&!(w.flags&111551)&&!Xy(n)){let Q=lb(n)?n.propertyName||n.name:nd(n)?n.name:n;if(C.assert(n.kind!==281),n.kind===282){let Ie=Qe(Q,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Te=(c=(a=Wn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get(p1(n.propertyName||n.name));if(Te===w){let Ze=(p=Te.declarations)==null?void 0:p.find(PR);Ze&&pa(Ie,Ar(Ze,f._0_is_automatically_exported_here,Vi(Te.escapedName)))}}else{C.assert(n.kind!==261);let Ie=Dn(n,Ip(vl,Bc)),Te=(Ie&&((h=sI(Ie))==null?void 0:h.text))??"...",Ze=Vi(He(Q)?Q.escapedText:I.escapedName);Qe(Q,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Ze,`import("${Te}").${Ze}`)}return}let U=lp(w),H=(I.flags&1160127?111551:0)|(I.flags&788968?788968:0)|(I.flags&1920?1920:0);if(U&H){let Q=n.kind===282?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;Qe(n,Q,uo(I))}else n.kind!==282&&O.isolatedModules&&!Dn(n,Xy)&&I.flags&1160127&&Qe(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,uo(I),Ge);if(gm(O)&&!Xy(n)&&!(n.flags&33554432)){let Q=Ah(I),Ie=!(U&111551);if(Ie||Q)switch(n.kind){case 274:case 277:case 272:{if(O.verbatimModuleSyntax){C.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let Te=O.verbatimModuleSyntax&&KS(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Ie?f._0_is_a_type_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_verbatimModuleSyntax_is_enabled,Ze=hb(n.kind===277&&n.propertyName||n.name);Wo(Qe(n,Te,Ze),Ie?void 0:Q,Ze)}Ie&&n.kind===272&&Lp(n,32)&&Qe(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ge);break}case 282:if(O.verbatimModuleSyntax||Wn(Q)!==Wn(n)){let Te=hb(n.propertyName||n.name),Ze=Ie?Qe(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ge):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,Te,Ge);Wo(Ze,Ie?void 0:Q,Te);break}}if(O.verbatimModuleSyntax&&n.kind!==272&&!Ir(n)&&e.getEmitModuleFormatOfFile(Wn(n))===1?Qe(n,jE(n)):j===200&&n.kind!==272&&n.kind!==261&&e.getEmitModuleFormatOfFile(Wn(n))===1&&Qe(n,f.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),O.verbatimModuleSyntax&&!Xy(n)&&!(n.flags&33554432)&&U&128){let Te=w.valueDeclaration,Ze=(b=e.getRedirectFromOutput(Wn(Te).resolvedPath))==null?void 0:b.resolvedRef;Te.flags&33554432&&(!Ze||!Sb(Ze.commandLine.options))&&Qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge)}}if(Su(n)){let Q=gye(I,n);Iu(Q)&&Q.declarations&&Dm(n,Q.declarations,Q.escapedName)}}}function gye(n,a){if(!(n.flags&2097152)||Iu(n)||!sp(n))return n;let c=ud(n);if(c===ne)return c;for(;n.flags&2097152;){let p=JY(n);if(p){if(p===c)break;if(p.declarations&&et(p.declarations))if(Iu(p)){Dm(a,p.declarations,p.escapedName);break}else{if(n===c)break;n=p}}else break}return c}function R$(n){W2(n,n.name),x$(n),n.kind===277&&(I$(n.propertyName),C_(n.propertyName||n.name)&&Yh(O)&&e.getEmitModuleFormatOfFile(Wn(n))<4&&Qc(n,131072))}function yye(n){var a;let c=n.attributes;if(c){let p=khe(!0);p!==Ra&&$d(Zme(c),i9(p,32768),c);let h=sH(n),b=OD(c,h?Cn:void 0),I=n.attributes.token===118;if(h&&b)return;if(!sre(j))return Cn(c,I?f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=j&&j<=199&&!I)return fd(c,f.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(n.moduleSpecifier&&Cy(n.moduleSpecifier)===1)return Cn(c,I?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(i_(n)||(vl(n)?(a=n.importClause)==null?void 0:a.isTypeOnly:n.isTypeOnly))return Cn(c,I?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(b)return Cn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function _gt(n){return Du(Vl(n.value))}function ggt(n){if(!q9(n,Ir(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(!Jg(n)&&n.modifiers&&fd(n,f.An_import_declaration_cannot_have_modifiers),A$(n)){let a,c=n.importClause;c&&!svt(c)?(c.name&&R$(c),c.namedBindings&&(c.namedBindings.kind===275?(R$(c.namedBindings),e.getEmitModuleFormatOfFile(Wn(n))<4&&Yh(O)&&Qc(n,65536)):(a=du(n,n.moduleSpecifier),a&&Je(c.namedBindings.elements,R$))),!c.isTypeOnly&&101<=j&&j<=199&&$b(n.moduleSpecifier,a)&&!ygt(n)&&Qe(n.moduleSpecifier,f.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,bR[j])):Xe&&!c&&du(n,n.moduleSpecifier)}yye(n)}}function ygt(n){return!!n.attributes&&n.attributes.elements.some(a=>{var c;return Wf(a.name)==="type"&&((c=ni(a.value,cs))==null?void 0:c.text)==="json"})}function vgt(n){if(!q9(n,Ir(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)&&(Jg(n),O.erasableSyntaxOnly&&!(n.flags&33554432)&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),KS(n)||A$(n)))if(R$(n),Zx(n,6),n.moduleReference.kind!==284){let a=ud(Wr(n));if(a!==ne){let c=lp(a);if(c&111551){let p=Pu(n.moduleReference);Gl(p,112575).flags&1920||Qe(p,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,ws(p))}c&788968&&F2(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&Cn(n,f.An_import_alias_cannot_use_import_type)}else 5<=j&&j<=99&&!n.isTypeOnly&&!(n.flags&33554432)&&Cn(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 bgt(n){if(!q9(n,Ir(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(!Jg(n)&&Mne(n)&&fd(n,f.An_export_declaration_cannot_have_modifiers),Tgt(n),!n.moduleSpecifier||A$(n))if(n.exportClause&&!w_(n.exportClause)){Je(n.exportClause.elements,Sgt);let a=n.parent.kind===269&&gu(n.parent.parent),c=!a&&n.parent.kind===269&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==308&&!a&&!c&&Qe(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=du(n,n.moduleSpecifier);a&&Xm(a)?Qe(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,uo(a)):n.exportClause&&(x$(n.exportClause),I$(n.exportClause.name)),e.getEmitModuleFormatOfFile(Wn(n))<4&&(n.exportClause?Yh(O)&&Qc(n,65536):Qc(n,32768))}yye(n)}}function Tgt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===280?uFe(n.exportClause):!1}function q9(n,a){let c=n.parent.kind===308||n.parent.kind===269||n.parent.kind===268;return c||fd(n,a),!c}function Sgt(n){x$(n);let a=n.parent.parent.moduleSpecifier!==void 0;if(I$(n.propertyName,a),I$(n.name),hp(O)&&xC(n.propertyName||n.name,!0),a)Yh(O)&&e.getEmitModuleFormatOfFile(Wn(n))<4&&C_(n.propertyName||n.name)&&Qc(n,131072);else{let c=n.propertyName||n.name;if(c.kind===11)return;let p=_t(c,c.escapedText,2998271,void 0,!0);p&&(p===ce||p===De||p.declarations&&$y(Pt(p.declarations[0])))?Qe(c,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Kr(c)):Zx(n,7)}}function Egt(n){let 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(q9(n,a))return;O.erasableSyntaxOnly&&n.isExportEquals&&!(n.flags&33554432)&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);let c=n.parent.kind===308?n.parent:n.parent.parent;if(c.kind===268&&!gu(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}!Jg(n)&&YG(n)&&fd(n,f.An_export_assignment_cannot_have_modifiers);let p=Rc(n);p&&$d(Vl(n.expression),Ji(p),n.expression);let h=!n.isExportEquals&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(Wn(n))===1;if(n.expression.kind===80){let b=n.expression,I=Et(Gl(b,-1,!0,!0,n));if(I){Zx(n,3);let w=Ah(I,111551);if(lp(I)&111551?(Vl(b),!h&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&w&&Qe(b,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,Kr(b))):!h&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&Qe(b,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,Kr(b)),!h&&!(n.flags&33554432)&&gm(O)&&!(I.flags&111551)){let U=lp(I,!1,!0);I.flags&2097152&&U&788968&&!(U&111551)&&(!w||Wn(w)!==Wn(n))?Qe(b,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,Kr(b),Ge):w&&Wn(w)!==Wn(n)&&Wo(Qe(b,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,Kr(b),Ge),w,Kr(b))}}else Vl(b);hp(O)&&xC(b,!0)}else Vl(n.expression);h&&Qe(n,jE(n)),M3e(c),n.flags&33554432&&!Ds(n.expression)&&Cn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(j>=5&&j!==200&&(n.flags&33554432&&e.getImpliedNodeFormatForEmit(Wn(n))===99||!(n.flags&33554432)&&e.getImpliedNodeFormatForEmit(Wn(n))!==1)?Cn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):j===4&&!(n.flags&33554432)&&Cn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Agt(n){return qc(n.exports,(a,c)=>c!=="export=")}function M3e(n){let a=Wr(n),c=Jr(a);if(!c.exportsChecked){let p=a.exports.get("export=");if(p&&Agt(a)){let b=sp(p)||p.valueDeclaration;b&&!l2(b)&&!Ir(b)&&Qe(b,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let h=h_(a);h&&h.forEach(({declarations:b,flags:I},w)=>{if(w==="__export"||I&1920)return;let U=Io(b,P8(Xje,L8(gd)));if(!(I&524288&&U<=2)&&U>1&&!D$(b))for(let H of b)NSe(H)&&ns.add(Ar(H,f.Cannot_redeclare_exported_variable_0,Vi(w)))}),c.exportsChecked=!0}}function D$(n){return n&&n.length>1&&n.every(a=>Ir(a)&&Ks(a)&&(XS(a.expression)||_g(a.expression)))}function wa(n){if(n){let a=R;R=n,v=0,Igt(n),R=a}}function Igt(n){if(oR(n)&8388608)return;pk(n)&&Je(n.jsDoc,({comment:c,tags:p})=>{P3e(c),Je(p,h=>{P3e(h.comment),Ir(n)&&wa(h)})});let a=n.kind;if(i)switch(a){case 268:case 264:case 265:case 263:i.throwIfCancellationRequested()}switch(a>=244&&a<=260&&HR(n)&&n.flowNode&&!p9(n.flowNode)&&qm(O.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 169:return FWe(n);case 170:return zWe(n);case 173:return VWe(n);case 172:return lht(n);case 186:case 185:case 180:case 181:case 182:return Q4(n);case 175:case 174:return cht(n);case 176:return dht(n);case 177:return uht(n);case 178:case 179:return UWe(n);case 184:return nye(n);case 183:return iht(n);case 187:return ght(n);case 188:return yht(n);case 189:return vht(n);case 190:return bht(n);case 193:case 194:return Tht(n);case 197:case 191:case 192:return wa(n.type);case 198:return Iht(n);case 199:return xht(n);case 195:return Rht(n);case 196:return Dht(n);case 204:return Cht(n);case 206:return Nht(n);case 203:return Mht(n);case 329:return $ht(n);case 330:return Yht(n);case 347:case 339:case 341:return Bht(n);case 346:return Ght(n);case 345:return Vht(n);case 325:case 326:case 327:return Uht(n);case 342:return Hht(n);case 349:return qht(n);case 318:Jht(n);case 316:case 315:case 313:case 314:case 323:L3e(n),Jo(n,wa);return;case 319:xgt(n);return;case 310:return wa(n.type);case 334:case 336:case 335:return Qht(n);case 351:return jht(n);case 344:return Kht(n);case 352:return Xht(n);case 200:return Sht(n);case 201:return Eht(n);case 263:return zht(n);case 242:case 269:return y$(n);case 244:return __t(n);case 245:return g_t(n);case 246:return y_t(n);case 247:return T_t(n);case 248:return S_t(n);case 249:return E_t(n);case 250:return I_t(n);case 251:return A_t(n);case 252:case 253:return k_t(n);case 254:return w_t(n);case 255:return O_t(n);case 256:return W_t(n);case 257:return F_t(n);case 258:return z_t(n);case 259:return B_t(n);case 261:return m_t(n);case 209:return h_t(n);case 264:return K_t(n);case 265:return igt(n);case 266:return ogt(n);case 267:return cgt(n);case 307:return ugt(n);case 268:return mgt(n);case 273:return ggt(n);case 272:return vgt(n);case 279:return bgt(n);case 278:return Egt(n);case 243:case 260:Uy(n);return;case 283:return fht(n)}}function P3e(n){Mo(n)&&Je(n,a=>{ZA(a)&&wa(a)})}function L3e(n){if(!Ir(n))if(p3(n)||yD(n)){let a=_a(p3(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,p=n.type,h=Ji(p);Cn(n,c,a,ar(yD(n)&&!(h===yn||h===In)?pi(Bn([h,_e],n.postfix?void 0:Xt)):h))}else Cn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function xgt(n){L3e(n),wa(n.type);let{parent:a}=n;if(to(a)&&vD(a.parent)){Ba(a.parent.parameters)!==a&&Qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}K0(a)||Qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!ff(c)){Qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let p=fk(c);if(!p)return;let h=L0(c);(!h||Ba(h.parameters).symbol!==p)&&Qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function Rgt(n){let a=Ji(n.type),{parent:c}=n,p=n.parent.parent;if(K0(n.parent)&&ff(p)){let h=L0(p),b=fj(p.parent.parent);if(h||b){let I=Zs(b?p.parent.parent.typeExpression.parameters:h.parameters),w=fk(p);if(!I||w&&I.symbol===w&&D_(I))return Yd(a)}}return to(c)&&vD(c.parent)?Yd(a):uu(a)}function rR(n){let a=Wn(n),c=Vr(a);c.flags&1?C.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function k3e(n){let a=Vr(n);a.deferredNodes&&a.deferredNodes.forEach(Dgt),a.deferredNodes=void 0}function Dgt(n){var a,c;(a=xr)==null||a.push(xr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let p=R;switch(R=n,v=0,n.kind){case 214:case 215:case 216:case 171:case 287:DA(n);break;case 219:case 220:case 175:case 174:vmt(n);break;case 178:case 179:UWe(n);break;case 232:J_t(n);break;case 169:rht(n);break;case 286:xpt(n);break;case 285:Dpt(n);break;case 217:case 235:case 218:jft(n);break;case 223:_o(n.expression);break;case 227:mW(n)&&DA(n);break}R=p,(c=xr)==null||c.pop()}function Cgt(n,a){var c,p;(c=xr)==null||c.push(xr.Phase.Check,a?"checkSourceFileNodes":"checkSourceFile",{path:n.path},!0);let h=a?"beforeCheckNodes":"beforeCheck",b=a?"afterCheckNodes":"afterCheck";Rl(h),a?Mgt(n,a):Ngt(n),Rl(b),Lf("Check",h,b),(p=xr)==null||p.pop()}function w3e(n,a){if(a)return!1;switch(n){case 0:return!!O.noUnusedLocals;case 1:return!!O.noUnusedParameters;default:return C.assertNever(n)}}function O3e(n){return Qn.get(n.path)||ae}function Ngt(n){let a=Vr(n);if(!(a.flags&1)){if(oD(n,O,e))return;cFe(n),hi(Ub),hi(bv),hi(Sy),hi(Ey),hi(Ay),a.flags&8388608&&(Ub=a.potentialThisCollisions,bv=a.potentialNewTargetCollisions,Sy=a.potentialWeakMapSetCollisions,Ey=a.potentialReflectCollisions,Ay=a.potentialUnusedRenamedBindingElementsInTypes),Je(n.statements,wa),wa(n.endOfFileToken),k3e(n),Np(n)&&m0(n),r(()=>{!n.isDeclarationFile&&(O.noUnusedLocals||O.noUnusedParameters)&&t3e(O3e(n),(c,p,h)=>{!rI(c)&&w3e(p,!!(c.flags&33554432))&&ns.add(h)}),n.isDeclarationFile||n_t()}),Np(n)&&M3e(n),Ub.length&&(Je(Ub,o_t),hi(Ub)),bv.length&&(Je(bv,a_t),hi(bv)),Sy.length&&(Je(Sy,d_t),hi(Sy)),Ey.length&&(Je(Ey,p_t),hi(Ey)),a.flags|=1}}function Mgt(n,a){let c=Vr(n);if(!(c.flags&1)){if(oD(n,O,e))return;cFe(n),hi(Ub),hi(bv),hi(Sy),hi(Ey),hi(Ay),Je(a,wa),k3e(n),(c.potentialThisCollisions||(c.potentialThisCollisions=[])).push(...Ub),(c.potentialNewTargetCollisions||(c.potentialNewTargetCollisions=[])).push(...bv),(c.potentialWeakMapSetCollisions||(c.potentialWeakMapSetCollisions=[])).push(...Sy),(c.potentialReflectCollisions||(c.potentialReflectCollisions=[])).push(...Ey),(c.potentialUnusedRenamedBindingElementsInTypes||(c.potentialUnusedRenamedBindingElementsInTypes=[])).push(...Ay),c.flags|=8388608;for(let p of a){let h=Vr(p);h.flags|=8388608}}}function W3e(n,a,c){try{return i=a,Pgt(n,c)}finally{i=void 0}}function vye(){for(let n of t)n();t=[]}function bye(n,a){vye();let c=r;r=p=>p(),Cgt(n,a),r=c}function Pgt(n,a){if(n){vye();let c=ns.getGlobalDiagnostics(),p=c.length;bye(n,a);let h=ns.getDiagnostics(n.fileName);if(a)return h;let b=ns.getGlobalDiagnostics();if(b!==c){let I=WQ(c,b,_M);return so(I,h)}else if(p===0&&b.length>0)return so(b,h);return h}return Je(e.getSourceFiles(),c=>bye(c)),ns.getDiagnostics()}function Lgt(){return vye(),ns.getGlobalDiagnostics()}function kgt(n,a){if(n.flags&67108864)return[];let c=da(),p=!1;return h(),c.delete("this"),Ahe(c);function h(){for(;n;){switch(R_(n)&&n.locals&&!$y(n)&&I(n.locals,a),n.kind){case 308:if(!Gc(n))break;case 268:w(Wr(n).exports,a&2623475);break;case 267:I(Wr(n).exports,a&8);break;case 232:n.name&&b(n.symbol,a);case 264:case 265:p||I(Y_(Wr(n)),a&788968);break;case 219:n.name&&b(n.symbol,a);break}Xte(n)&&b(ge,a),p=ua(n),n=n.parent}I(lt,a)}function b(U,H){if(eD(U)&H){let Q=U.escapedName;c.has(Q)||c.set(Q,U)}}function I(U,H){H&&U.forEach(Q=>{b(Q,H)})}function w(U,H){H&&U.forEach(Q=>{!al(Q,282)&&!al(Q,281)&&Q.escapedName!=="default"&&b(Q,H)})}}function wgt(n){return n.kind===80&&AI(n.parent)&&Oo(n.parent)===n}function F3e(n){for(;n.parent.kind===167;)n=n.parent;return n.parent.kind===184}function Ogt(n){for(;n.parent.kind===212;)n=n.parent;return n.parent.kind===234}function z3e(n,a){let c,p=hd(n);for(;p&&!(c=a(p));)p=hd(p);return c}function Wgt(n){return!!Dn(n,a=>Ml(a)&&pm(a.body)||Po(a)?!0:ui(a)||Ms(a)?"quit":!1)}function Tye(n,a){return!!z3e(n,c=>c===a)}function Fgt(n){for(;n.parent.kind===167;)n=n.parent;if(n.parent.kind===272)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===278)return n.parent.expression===n?n.parent:void 0}function C$(n){return Fgt(n)!==void 0}function zgt(n){switch(oc(n.parent.parent)){case 1:case 3:return Af(n.parent);case 5:if(qr(n.parent)&&tD(n.parent)===n)return;case 4:case 2:return Wr(n.parent.parent)}}function Bgt(n){let a=n.parent;for(;Lu(a);)n=a,a=a.parent;if(a&&a.kind===206&&a.qualifier===n)return a}function Ggt(n){if(n.expression.kind===110){let a=yu(n,!1,!1);if(Yo(a)){let c=X8e(a);if(c){let p=XT(c,void 0),h=$8e(c,p);return h&&!wr(h)}}}}function B3e(n){if(P_(n))return Af(n.parent);if(Ir(n)&&n.parent.kind===212&&n.parent===n.parent.parent.left&&!eo(n)&&!X0(n)&&!Ggt(n.parent)){let a=zgt(n);if(a)return a}if(n.parent.kind===278&&Ds(n)){let a=Gl(n,2998271,!0);if(a&&a!==ne)return a}else if(Nu(n)&&C$(n)){let a=w0(n,272);return C.assert(a!==void 0),e0(n,!0)}if(Nu(n)){let a=Bgt(n);if(a){Ji(a);let c=Vr(n).resolvedSymbol;return c===ne?void 0:c}}for(;Wne(n);)n=n.parent;if(Ogt(n)){let a=0;n.parent.kind===234?(a=Uh(n)?788968:111551,fW(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=Ds(n)?Gl(n,a,!0):void 0;if(c)return c}if(n.parent.kind===342)return fk(n.parent);if(n.parent.kind===169&&n.parent.parent.kind===346){C.assert(!Ir(n));let a=une(n.parent);return a&&a.symbol}if(M_(n)){if(Ol(n))return;let a=Dn(n,Ip(ZA,UM,X0)),c=a?901119:111551;if(n.kind===80){if(VR(n)&&tR(n)){let h=XY(n.parent);return h===ne?void 0:h}let p=Gl(n,c,!0,!0,L0(n));if(!p&&a){let h=Dn(n,Ip(ui,gd));if(h)return J9(n,!0,Wr(h))}if(p&&a){let h=g1(n);if(h&&py(h)&&h===p.valueDeclaration)return Gl(n,c,!0,!0,Wn(h))||p}return p}else{if(eo(n))return ZY(n);if(n.kind===212||n.kind===167){let p=Vr(n);return p.resolvedSymbol?p.resolvedSymbol:(n.kind===212?(QY(n,0),p.resolvedSymbol||(p.resolvedSymbol=G3e(Vl(n.expression),ky(n.name)))):R6e(n,0),!p.resolvedSymbol&&a&&Lu(n)?J9(n):p.resolvedSymbol)}else if(X0(n))return J9(n)}}else if(Nu(n)&&F3e(n)){let a=n.parent.kind===184?788968:1920,c=Gl(n,a,!0,!0);return c&&c!==ne?c:$X(n)}if(n.parent.kind===183)return Gl(n,1,!0)}function G3e(n,a){let c=Ehe(n,a);if(c.length&&n.members){let p=JX(Dh(n).members);if(c===Xd(n))return p;if(p){let h=Jr(p),b=Ui(c,w=>w.declaration),I=Vt(b,ss).join(",");if(h.filteredIndexSymbolCache||(h.filteredIndexSymbolCache=new Map),h.filteredIndexSymbolCache.has(I))return h.filteredIndexSymbolCache.get(I);{let w=ja(131072,"__index");return w.declarations=Ui(c,U=>U.declaration),w.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:om(w.declarations[0].parent),h.filteredIndexSymbolCache.set(I,w),w}}}}function J9(n,a,c){if(Nu(n)){let I=Gl(n,901119,a,!0,L0(n));if(!I&&He(n)&&c&&(I=os(Sd(Up(c),n.escapedText,901119))),I)return I}let p=He(n)?c:J9(n.left,a,c),h=He(n)?n.escapedText:n.right.escapedText;if(p){let b=p.flags&111551&&Ea(_r(p),"prototype"),I=b?_r(b):qs(p);return Ea(I,h)}}function om(n,a){if(Yi(n))return Gc(n)?os(n.symbol):void 0;let{parent:c}=n,p=c.parent;if(!(n.flags&67108864)){if(MSe(n)){let h=Wr(c);return lb(n.parent)&&n.parent.propertyName===n?JY(h):h}else if(hk(n))return Wr(c.parent);if(n.kind===80){if(C$(n))return B3e(n);if(c.kind===209&&p.kind===207&&n===c.propertyName){let h=iR(p),b=Ea(h,n.escapedText);if(b)return b}else if(fE(c)&&c.name===n)return c.keywordToken===105&&Kr(n)==="target"?Wge(c).symbol:c.keywordToken===102&&Kr(n)==="meta"?COe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 212:case 167:if(!S1(n))return B3e(n);case 110:let h=yu(n,!1,!1);if(Yo(h)){let w=Rf(h);if(w.thisParameter)return w.thisParameter}if(G6(n))return _o(n).symbol;case 198:return r_e(n).symbol;case 108:return _o(n).symbol;case 137:let b=n.parent;return b&&b.kind===177?b.parent.symbol:void 0;case 11:case 15:if(M0(n.parent.parent)&&qN(n.parent.parent)===n||(n.parent.kind===273||n.parent.kind===279)&&n.parent.moduleSpecifier===n||Ir(n)&&i_(n.parent)&&n.parent.moduleSpecifier===n||Ir(n)&&$u(n.parent,!1)||Yu(n.parent)||lv(n.parent)&&ry(n.parent.parent)&&n.parent.parent.argument===n.parent)return du(n,n,a);if(Zo(c)&&YS(c)&&c.arguments[1]===n)return Wr(c);case 9:let I=Ws(c)?c.argumentExpression===n?wd(c.expression):void 0:lv(c)&&P1(p)?Ji(p.objectType):void 0;return I&&Ea(I,Cl(n.text));case 90:case 100:case 39:case 86:return Af(n.parent);case 206:return ry(n)?om(n.argument.literal,a):void 0;case 95:return ll(n.parent)?C.checkDefined(n.parent.symbol):void 0;case 102:if(fE(n.parent)&&n.parent.name.escapedText==="defer")return;case 105:return fE(n.parent)?uWe(n.parent).symbol:void 0;case 104:if(Nr(n.parent)){let w=wd(n.parent.right),U=Kge(w);return U?.symbol??w.symbol}return;case 237:return _o(n).symbol;case 296:if(VR(n)&&tR(n)){let w=XY(n.parent);return w===ne?void 0:w}default:return}}}function Vgt(n){if(He(n)&&qr(n.parent)&&n.parent.name===n){let a=ky(n),c=wd(n.parent.expression),p=c.flags&1048576?c.types:[c];return Ki(p,h=>Un(Xd(h),b=>Ux(a,b.keyType)))}}function jgt(n){if(n&&n.kind===305)return Gl(n.name,2208703,!0)}function Ugt(n){if(iu(n)){let a=n.propertyName||n.name;return n.parent.parent.moduleSpecifier?DT(n.parent.parent,n):a.kind===11?void 0:Gl(a,2998271,!0)}else return Gl(n,2998271,!0)}function iR(n){if(Yi(n)&&!Gc(n)||n.flags&67108864)return nt;let a=tV(n),c=a&&Zf(Wr(a.class));if(Uh(n)){let p=Ji(n);return c?qp(p,c.thisType):p}if(M_(n))return V3e(n);if(c&&!a.isImplements){let p=Ic(Qm(c));return p?qp(p,c.thisType):nt}if(AI(n)){let p=Wr(n);return qs(p)}if(wgt(n)){let p=om(n);return p?qs(p):nt}if(Ha(n))return Bx(n,!0,0)||nt;if(rd(n)){let p=Wr(n);return p?_r(p):nt}if(MSe(n)){let p=om(n);return p?_r(p):nt}if(Qo(n))return Bx(n.parent,!0,0)||nt;if(C$(n)){let p=om(n);if(p){let h=qs(p);return pr(h)?_r(p):h}}return fE(n.parent)&&n.parent.keywordToken===n.kind?uWe(n.parent):hE(n)?khe(!1):nt}function N$(n){if(C.assert(n.kind===211||n.kind===210),n.parent.kind===251){let h=j9(n.parent);return NA(n,h||nt)}if(n.parent.kind===227){let h=wd(n.parent.right);return NA(n,h||nt)}if(n.parent.kind===304){let h=ma(n.parent.parent,Wa),b=N$(h)||nt,I=wR(h.properties,n.parent);return xWe(h,b,I)}let a=ma(n.parent,Cd),c=N$(a)||nt,p=Vv(65,c,_e,n.parent)||nt;return RWe(a,c,a.elements.indexOf(n),p)}function Hgt(n){let a=N$(ma(n.parent.parent,ON));return a&&Ea(a,n.escapedText)}function V3e(n){return dM(n)&&(n=n.parent),Du(wd(n))}function j3e(n){let a=Af(n.parent);return ua(n)?_r(a):qs(a)}function U3e(n){let a=n.name;switch(a.kind){case 80:return Tp(Kr(a));case 9:case 11:return Tp(a.text);case 168:let c=eh(a);return kd(c,12288)?c:gt;default:return C.fail("Unsupported property name.")}}function Sye(n){n=Ru(n);let a=da(bs(n)),c=na(n,0).length?go:na(n,1).length?Za:void 0;return c&&Je(bs(c),p=>{a.has(p.escapedName)||a.set(p.escapedName,p)}),Vu(a)}function M$(n){return na(n,0).length!==0||na(n,1).length!==0}function H3e(n){let a=qgt(n);return a?Ki(a,H3e):[n]}function qgt(n){if(Wl(n)&6)return Ui(Jr(n).containingType.types,a=>Ea(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:p}}=n;return a?[a,c]:p?[p]:UA(Jgt(n))}}function Jgt(n){let a,c=n;for(;c=Jr(c).target;)a=c;return a}function Kgt(n){if(pl(n))return!1;let a=jo(n,He);if(!a)return!1;let c=a.parent;return c?!((qr(c)||Nc(c))&&c.name===a)&&l8(a)===ge:!1}function Xgt(n){return kL(n.parent)&&n===n.parent.name}function Ygt(n,a){var c;let p=jo(n,He);if(p){let h=l8(p,Xgt(p));if(h){if(h.flags&1048576){let I=os(h.exportSymbol);if(!a&&I.flags&944&&!(I.flags&3))return;h=I}let b=$c(h);if(b){if(b.flags&512&&((c=b.valueDeclaration)==null?void 0:c.kind)===308){let I=b.valueDeclaration,w=Wn(p);return I!==w?void 0:I}return Dn(p.parent,I=>kL(I)&&Wr(I)===b)}}}}function $gt(n){let a=iie(n);if(a)return a;let c=jo(n,He);if(c){let p=pyt(c);if(XE(p,111551)&&!Ah(p,111551))return sp(p)}}function Qgt(n){return n.valueDeclaration&&Ha(n.valueDeclaration)&&WS(n.valueDeclaration).parent.kind===300}function q3e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){let a=Jr(n);if(a.isDeclarationWithCollidingName===void 0){let c=sh(n.valueDeclaration);if(Ite(c)||Qgt(n))if(_t(c.parent,n.escapedName,111551,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(Eye(n.valueDeclaration,16384)){let p=Eye(n.valueDeclaration,32768),h=ub(c,!1),b=c.kind===242&&ub(c.parent,!1);a.isDeclarationWithCollidingName=!Lte(c)&&(!p||!h&&!b)}else a.isDeclarationWithCollidingName=!1}return a.isDeclarationWithCollidingName}return!1}function Zgt(n){if(!pl(n)){let a=jo(n,He);if(a){let c=l8(a);if(c&&q3e(c))return c.valueDeclaration}}}function eyt(n){let a=jo(n,rd);if(a){let c=Wr(a);if(c)return q3e(c)}return!1}function J3e(n){switch(C.assert(We),n.kind){case 272:return P$(Wr(n));case 274:case 275:case 277:case 282:let a=Wr(n);return!!a&&P$(a,!0);case 279:let c=n.exportClause;return!!c&&(w_(c)||vt(c.elements,J3e));case 278:return n.expression&&n.expression.kind===80?P$(Wr(n),!0):!0}return!1}function tyt(n){let a=jo(n,Bc);return a===void 0||a.parent.kind!==308||!KS(a)?!1:P$(Wr(a))&&a.moduleReference&&!Ol(a.moduleReference)}function P$(n,a){if(!n)return!1;let c=Wn(n.valueDeclaration),p=c&&Wr(c);bp(p);let h=Et(ud(n));return h===ne?!a||!Ah(n):!!(lp(n,a,!0)&111551)&&(Sb(O)||!s8(h))}function s8(n){return Jge(n)||!!n.constEnumOnlyModule}function K3e(n,a){if(C.assert(We),Iv(n)){let c=Wr(n),p=c&&Jr(c);if(p?.referenced)return!0;let h=Jr(c).aliasTarget;if(h&&Gd(n)&32&&lp(h)&111551&&(Sb(O)||!s8(h)))return!0}return a?!!Jo(n,c=>K3e(c,a)):!1}function X3e(n){if(pm(n.body)){if(dg(n)||Gh(n))return!1;let a=Wr(n),c=_S(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function nyt(n){let a=Q3e(n);if(!a)return!1;let c=Ji(a);return pr(c)||WC(c)}function K9(n,a){return(ryt(n,a)||iyt(n))&&!nyt(n)}function ryt(n,a){return!ie||v4(n)||ff(n)||!n.initializer?!1:di(n,31)?!!a&&Ms(a):!0}function iyt(n){return ie&&v4(n)&&(ff(n)||!n.initializer)&&di(n,31)}function Y3e(n){let a=jo(n,p=>Ql(p)||yi(p));if(!a)return!1;let c;if(yi(a)){if(a.type||!Ir(a)&&!c8(a))return!1;let p=XN(a);if(!p||!ah(p))return!1;c=Wr(p)}else c=Wr(a);return!c||!(c.flags&16|3)?!1:!!qc(Up(c),p=>p.flags&111551&&RI(p.valueDeclaration))}function oyt(n){let a=jo(n,Ql);if(!a)return ae;let c=Wr(a);return c&&bs(_r(c))||ae}function oR(n){var a;let c=n.id||0;return c<0||c>=_T.length?0:((a=_T[c])==null?void 0:a.flags)||0}function Eye(n,a){return ayt(n,a),!!(oR(n)&a)}function ayt(n,a){if(!O.noCheck&&EM(Wn(n),O)||Vr(n).calculatedFlags&a)return;switch(a){case 16:case 32:return I(n);case 128:case 256:case 2097152:return b(n);case 512:case 8192:case 65536:case 262144:return U(n);case 536870912:return Q(n);case 4096:case 32768:case 16384:return Te(n);default:return C.assertNever(a,`Unhandled node check flag calculation: ${C.formatNodeCheckFlags(a)}`)}function p(Tt,Dt){let $t=Dt(Tt,Tt.parent);if($t!=="skip")return $t||UI(Tt,Dt)}function h(Tt){let Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=2097536,I(Tt)}function b(Tt){p(Tt,h)}function I(Tt){let Dt=Vr(Tt);Dt.calculatedFlags|=48,Tt.kind===108&&BY(Tt)}function w(Tt){let Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=336384,Q(Tt)}function U(Tt){p(Tt,w)}function H(Tt){return M_(Tt)||Ud(Tt.parent)&&(Tt.parent.objectAssignmentInitializer??Tt.parent.name)===Tt}function Q(Tt){let Dt=Vr(Tt);if(Dt.calculatedFlags|=536870912,He(Tt)&&(Dt.calculatedFlags|=49152,H(Tt)&&!(qr(Tt.parent)&&Tt.parent.name===Tt))){let $t=pu(Tt);$t&&$t!==ne&&H8e(Tt,$t)}}function Ie(Tt){let Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=53248,Ze(Tt)}function Te(Tt){let Dt=sh(P_(Tt)?Tt.parent:Tt);p(Dt,Ie)}function Ze(Tt){Q(Tt),va(Tt)&&eh(Tt),eo(Tt)&&Tc(Tt.parent)&&f$(Tt.parent)}}function MA(n){return D3e(n.parent),Vr(n).enumMemberValue??Jc(void 0)}function $3e(n){switch(n.kind){case 307:case 212:case 213:return!0}return!1}function L$(n){if(n.kind===307)return MA(n).value;Vr(n).resolvedSymbol||Vl(n);let a=Vr(n).resolvedSymbol||(Ds(n)?Gl(n,111551,!0):void 0);if(a&&a.flags&8){let c=a.valueDeclaration;if(C0(c.parent))return MA(c).value}}function Aye(n){return!!(n.flags&524288)&&na(n,0).length>0}function syt(n,a){var c;let p=jo(n,Nu);if(!p||a&&(a=jo(a),!a))return 0;let h=!1;if(Lu(p)){let Q=Gl(Pu(p),111551,!0,!0,a);h=!!((c=Q?.declarations)!=null&&c.every(Xy))}let b=Gl(p,111551,!0,!0,a),I=b&&b.flags&2097152?ud(b):b;h||(h=!!(b&&Ah(b,111551)));let w=Gl(p,788968,!0,!0,a),U=w&&w.flags&2097152?ud(w):w;if(b||h||(h=!!(w&&Ah(w,788968))),I&&I===U){let Q=whe(!1);if(Q&&I===Q)return 9;let Ie=_r(I);if(Ie&&Rh(Ie))return h?10:1}if(!U)return h?11:0;let H=qs(U);return pr(H)?h?11:0:H.flags&3?11:kd(H,245760)?2:kd(H,528)?6:kd(H,296)?3:kd(H,2112)?4:kd(H,402653316)?5:Ka(H)?7:kd(H,12288)?8:Aye(H)?10:nm(H)?7:11}function lyt(n,a,c,p,h){let b=jo(n,JW);if(!b)return L.createToken(133);let I=Wr(b);return be.serializeTypeForDeclaration(b,I,a,c|1024,p,h)}function Iye(n){n=jo(n,xL);let a=n.kind===179?178:179,c=al(Wr(n),a),p=c&&c.pos<n.pos?c:n,h=c&&c.pos<n.pos?n:c,b=n.kind===179?n:c,I=n.kind===178?n:c;return{firstAccessor:p,secondAccessor:h,setAccessor:b,getAccessor:I}}function cyt(n,a,c,p,h){let b=jo(n,Yo);return b?be.serializeReturnTypeForSignature(b,a,c|1024,p,h):L.createToken(133)}function dyt(n,a,c,p,h){let b=jo(n,St);return b?be.serializeTypeForExpression(b,a,c|1024,p,h):L.createToken(133)}function uyt(n){return lt.has(Cl(n))}function l8(n,a){let c=Vr(n).resolvedSymbol;if(c)return c;let p=n;if(a){let h=n.parent;rd(h)&&n===h.name&&(p=Pt(h))}return _t(p,n.escapedText,3257279,void 0,!0)}function pyt(n){let a=Vr(n).resolvedSymbol;return a&&a!==ne?a:_t(n,n.escapedText,3257279,void 0,!0,void 0)}function fyt(n){if(!pl(n)){let a=jo(n,He);if(a){let c=l8(a);if(c)return Et(c).valueDeclaration}}}function myt(n){if(!pl(n)){let a=jo(n,He);if(a){let c=l8(a);if(c)return Un(Et(c).declarations,p=>{switch(p.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}}function hyt(n){return HL(n)||yi(n)&&c8(n)?vS(_r(Wr(n))):!1}function _yt(n,a,c){let p=n.flags&1056?be.symbolToExpression(n.symbol,111551,a,void 0,void 0,c):n===ft?L.createTrue():n===tr&&L.createFalse();if(p)return p;let h=n.value;return typeof h=="object"?L.createBigIntLiteral(h):typeof h=="string"?L.createStringLiteral(h):h<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-h)):L.createNumericLiteral(h)}function gyt(n,a){let c=_r(Wr(n));return _yt(c,n,a)}function xye(n){return n?(Hm(n),Wn(n).localJsxFactory||xy):xy}function Rye(n){if(n){let a=Wn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),p=Mo(c)?c[0]:c;if(p)return a.localJsxFragmentFactory=qI(p.arguments.factory,G),a.localJsxFragmentFactory}}if(O.jsxFragmentFactory)return qI(O.jsxFragmentFactory,G)}function Q3e(n){let a=Rc(n);if(a)return a;if(n.kind===170&&n.parent.kind===179){let c=Iye(n.parent).getAccessor;if(c)return Pp(c)}}function yyt(){return{getReferencedExportContainer:Ygt,getReferencedImportDeclaration:$gt,getReferencedDeclarationWithCollidingName:Zgt,isDeclarationWithCollidingName:eyt,isValueAliasDeclaration:a=>{let c=jo(a);return c&&We?J3e(c):!0},hasGlobalName:uyt,isReferencedAliasDeclaration:(a,c)=>{let p=jo(a);return p&&We?K3e(p,c):!0},hasNodeCheckFlag:(a,c)=>{let p=jo(a);return p?Eye(p,c):!1},isTopLevelValueImportEqualsWithEntityName:tyt,isDeclarationVisible:K_,isImplementationOfOverload:X3e,requiresAddingImplicitUndefined:K9,isExpandoFunctionDeclaration:Y3e,getPropertiesOfContainerFunction:oyt,createTypeOfDeclaration:lyt,createReturnTypeOfSignatureDeclaration:cyt,createTypeOfExpression:dyt,createLiteralConstValue:gyt,isSymbolAccessible:n0,isEntityNameVisible:zx,getConstantValue:a=>{let c=jo(a,$3e);return c?L$(c):void 0},getEnumMemberValue:a=>{let c=jo(a,py);return c?MA(c):void 0},collectLinkedAliases:xC,markLinkedReferences:a=>{let c=jo(a);return c&&Zx(c,0)},getReferencedValueDeclaration:fyt,getReferencedValueDeclarations:myt,getTypeReferenceSerializationKind:syt,isOptionalParameter:v4,isArgumentsLocalBinding:Kgt,getExternalModuleFileFromDeclaration:a=>{let c=jo(a,Ote);return c&&Dye(c)},isLiteralConstDeclaration:hyt,isLateBound:a=>{let c=jo(a,rd),p=c&&Wr(c);return!!(p&&Wl(p)&4096)},getJsxFactoryEntity:xye,getJsxFragmentFactoryEntity:Rye,isBindingCapturedByNode:(a,c)=>{let p=jo(a),h=jo(c);return!!p&&!!h&&(yi(h)||Ha(h))&&Rut(p,h)},getDeclarationStatementsForSourceFile:(a,c,p,h)=>{let b=jo(a);C.assert(b&&b.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");let I=Wr(a);return I?(bp(I),I.exports?be.symbolTableToDeclarationStatements(I.exports,a,c,p,h):[]):a.locals?be.symbolTableToDeclarationStatements(a.locals,a,c,p,h):[]},isImportRequiredByAugmentation:n,isDefinitelyReferenceToGlobalSymbolObject:H_,createLateBoundIndexSignatures:(a,c,p,h,b)=>{let I=a.symbol,w=Xd(_r(I)),U=qX(I),H=U&&KX(U,Co(Y_(I).values())),Q;for(let Te of[w,H])if(et(Te)){Q||(Q=[]);for(let Ze of Te){if(Ze.declaration||Ze===So)continue;if(Ze.components&&Vn(Ze.components,$t=>{var Tn;return!!($t.name&&va($t.name)&&Ds($t.name.expression)&&c&&((Tn=zx($t.name.expression,c,!1))==null?void 0:Tn.accessibility)===0)})){let $t=Un(Ze.components,Tn=>!DC(Tn));Q.push(...Vt($t,Tn=>{Ie(Tn.name.expression);let nr=Te===w?[L.createModifier(126)]:void 0;return L.createPropertyDeclaration(Bn(nr,Ze.isReadonly?L.createModifier(148):void 0),Tn.name,(Tu(Tn)||Po(Tn)||Bm(Tn)||Nl(Tn)||dg(Tn)||Gh(Tn))&&Tn.questionToken?L.createToken(58):void 0,be.typeToTypeNode(_r(Tn.symbol),c,p,h,b),void 0)}));continue}let Tt=be.indexInfoToIndexSignatureDeclaration(Ze,c,p,h,b);Tt&&Te===w&&(Tt.modifiers||(Tt.modifiers=L.createNodeArray())).unshift(L.createModifier(126)),Tt&&Q.push(Tt)}}return Q;function Ie(Te){if(!b.trackSymbol)return;let Ze=Pu(Te),Tt=_t(Ze,Ze.escapedText,1160127,void 0,!0);Tt&&b.trackSymbol(Tt,c,111551)}},symbolToDeclarations:(a,c,p,h,b,I)=>be.symbolToDeclarations(a,c,p,h,b,I)};function n(a){let c=Wn(a);if(!c.symbol)return!1;let p=Dye(a);if(!p||p===c)return!1;let h=h_(c.symbol);for(let b of Co(h.values()))if(b.mergeId){let I=os(b);if(I.declarations){for(let w of I.declarations)if(Wn(w)===p)return!0}}return!1}}function Dye(n){let a=n.kind===268?ni(n.name,ka):lI(n),c=vp(a,a,void 0);if(c)return al(c,308)}function vyt(){for(let a of e.getSourceFiles())$oe(a,O);Pl=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!Np(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let p of c.declarations)ns.add(Ar(p,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));f_(lt,a.locals)}a.jsGlobalAugmentations&&f_(lt,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(rp=so(rp,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((p,h)=>{lt.has(h)||lt.set(h,p)})}if(n)for(let a of n)for(let c of a)N_(c.parent)&&iS(c);if(AT(),Jr(ce).type=B,Jr(ge).type=Jl("IArguments",0,!0),Jr(ne).type=nt,Jr(De).type=_c(16,De),es=Jl("Array",1,!0),Jt=Jl("Object",0,!0),er=Jl("Function",0,!0),go=pe&&Jl("CallableFunction",0,!0)||er,Za=pe&&Jl("NewableFunction",0,!0)||er,Pc=Jl("String",0,!0),tl=Jl("Number",0,!0),Ll=Jl("Boolean",0,!0),ql=Jl("RegExp",0,!0),bd=Yd(Ue),ld=Yd(Rt),ld===Ra&&(ld=bl(void 0,k,ae,ae,ae)),Va=WOe("ReadonlyArray",1)||es,Gp=Va?T2(Va,[Ue]):bd,nf=WOe("ThisType",1),n)for(let a of n)for(let c of a)N_(c.parent)||iS(c);Pl.forEach(({firstFile:a,secondFile:c,conflictingSymbols:p})=>{if(p.size<8)p.forEach(({isBlockScoped:h,firstFileLocations:b,secondFileLocations:I},w)=>{let U=h?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let H of b)ET(H,U,w,I);for(let H of I)ET(H,U,w,b)});else{let h=Co(p.keys()).join(", ");ns.add(pa(Ar(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,h),Ar(c,f.Conflicts_are_in_this_file))),ns.add(pa(Ar(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,h),Ar(a,f.Conflicts_are_in_this_file)))}}),Pl=void 0}function Qc(n,a){if(O.importHelpers){let c=Wn(n);if(OR(c,O)&&!(n.flags&33554432)){let p=Tyt(c,n);if(p!==ne){let h=Jr(p);if(h.requestedExternalEmitHelpers??(h.requestedExternalEmitHelpers=0),(h.requestedExternalEmitHelpers&a)!==a){let b=a&~h.requestedExternalEmitHelpers;for(let I=1;I<=16777216;I<<=1)if(b&I)for(let w of byt(I)){let U=hc(Sd(h_(p),Cl(w),111551));U?I&524288?vt(_S(U),H=>Ep(H)>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,pb,w,4):I&1048576?vt(_S(U),H=>Ep(H)>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,pb,w,5):I&1024&&(vt(_S(U),H=>Ep(H)>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,pb,w,3)):Qe(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,pb,w)}}h.requestedExternalEmitHelpers|=a}}}}function byt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return J?["__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["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return C.fail("Unrecognized helper")}}function Tyt(n,a){let c=Vr(n);return c.externalHelpersModule||(c.externalHelpersModule=$E(hvt(n),pb,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ne),c.externalHelpersModule}function Jg(n){var a;let c=Ayt(n)||Syt(n);if(c!==void 0)return c;if(to(n)&&vb(n))return fd(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let p=ac(n)?n.declarationList.flags&7:0,h,b,I,w,U,H=0,Q=!1,Ie=!1;for(let Te of n.modifiers)if(zc(Te)){if(ZL(J,n,n.parent,n.parent.parent)){if(J&&(n.kind===178||n.kind===179)){let Ze=Iye(n);if(uf(Ze.firstAccessor)&&n===Ze.secondAccessor)return fd(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===175&&!pm(n.body)?fd(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):fd(n,f.Decorators_are_not_valid_here);if(H&-34849)return Cn(Te,f.Decorators_are_not_valid_here);if(Ie&&H&98303){C.assertIsDefined(U);let Ze=Wn(Te);return _0(Ze)?!1:(pa(Qe(Te,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Ar(U,f.Decorator_used_before_export_here)),!0)}H|=32768,H&98303?H&32&&(Q=!0):Ie=!0,U??(U=Te)}else{if(Te.kind!==148){if(n.kind===172||n.kind===174)return Cn(Te,f._0_modifier_cannot_appear_on_a_type_member,_a(Te.kind));if(n.kind===182&&(Te.kind!==126||!ui(n.parent)))return Cn(Te,f._0_modifier_cannot_appear_on_an_index_signature,_a(Te.kind))}if(Te.kind!==103&&Te.kind!==147&&Te.kind!==87&&n.kind===169)return Cn(Te,f._0_modifier_cannot_appear_on_a_type_parameter,_a(Te.kind));switch(Te.kind){case 87:{if(n.kind!==267&&n.kind!==169)return Cn(n,f.A_class_member_cannot_have_the_0_keyword,_a(87));let Dt=vm(n.parent)&&k0(n.parent)||n.parent;if(n.kind===169&&!(Ms(Dt)||ui(Dt)||k_(Dt)||dD(Dt)||kI(Dt)||FM(Dt)||Bm(Dt)))return Cn(Te,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,_a(Te.kind));break}case 164:if(H&16)return Cn(Te,f._0_modifier_already_seen,"override");if(H&128)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","readonly");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","accessor");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","async");H|=16,w=Te;break;case 125:case 124:case 123:let Ze=wT(hI(Te.kind));if(H&7)return Cn(Te,f.Accessibility_modifier_already_seen);if(H&16)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"override");if(H&256)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"static");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"accessor");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"readonly");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"async");if(n.parent.kind===269||n.parent.kind===308)return Cn(Te,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ze);if(H&64)return Te.kind===123?Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,Ze,"abstract"):Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"abstract");if(tu(n))return Cn(Te,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);H|=hI(Te.kind);break;case 126:if(H&256)return Cn(Te,f._0_modifier_already_seen,"static");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","readonly");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","async");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===269||n.parent.kind===308)return Cn(Te,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"static");if(H&64)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&16)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","override");H|=256,h=Te;break;case 129:if(H&512)return Cn(Te,f._0_modifier_already_seen,"accessor");if(H&8)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(H&128)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==173)return Cn(Te,f.accessor_modifier_can_only_appear_on_a_property_declaration);H|=512;break;case 148:if(H&8)return Cn(Te,f._0_modifier_already_seen,"readonly");if(n.kind!==173&&n.kind!==172&&n.kind!==182&&n.kind!==170)return Cn(Te,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(H&512)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");H|=8;break;case 95:if(O.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==266&&n.kind!==265&&n.kind!==268&&n.parent.kind===308&&e.getEmitModuleFormatOfFile(Wn(n))===1)return Cn(Te,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(H&32)return Cn(Te,f._0_modifier_already_seen,"export");if(H&128)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","declare");if(H&64)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","abstract");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","async");if(ui(n.parent))return Cn(Te,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"export");if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(p===6)return Cn(Te,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");H|=32;break;case 90:let Tt=n.parent.kind===308?n.parent:n.parent.parent;if(Tt.kind===268&&!gu(Tt))return Cn(Te,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(p===6)return Cn(Te,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(H&32){if(Q)return Cn(U,f.Decorators_are_not_valid_here)}else return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","default");H|=2048;break;case 138:if(H&128)return Cn(Te,f._0_modifier_already_seen,"declare");if(H&1024)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(H&16)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ui(n.parent)&&!Po(n))return Cn(Te,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(p===6)return Cn(Te,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===269)return Cn(Te,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(tu(n))return Cn(Te,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(H&512)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");H|=128,b=Te;break;case 128:if(H&64)return Cn(Te,f._0_modifier_already_seen,"abstract");if(n.kind!==264&&n.kind!==186){if(n.kind!==175&&n.kind!==173&&n.kind!==178&&n.kind!==179)return Cn(Te,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===264&&di(n.parent,64))){let Dt=n.kind===173?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return Cn(Te,Dt)}if(H&256)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&2)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(H&1024&&I)return Cn(I,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(H&16)return Cn(Te,f._0_modifier_must_precede_1_modifier,"abstract","override");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(nd(n)&&n.name.kind===81)return Cn(Te,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");H|=64;break;case 134:if(H&1024)return Cn(Te,f._0_modifier_already_seen,"async");if(H&128||n.parent.flags&33554432)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"async");if(H&64)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");H|=1024,I=Te;break;case 103:case 147:{let Dt=Te.kind===103?8192:16384,$t=Te.kind===103?"in":"out",Tn=vm(n.parent)&&(k0(n.parent)||hn((a=qR(n.parent))==null?void 0:a.tags,yE))||n.parent;if(n.kind!==169||Tn&&!(gd(Tn)||ui(Tn)||ym(Tn)||yE(Tn)))return Cn(Te,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,$t);if(H&Dt)return Cn(Te,f._0_modifier_already_seen,$t);if(Dt&8192&&H&16384)return Cn(Te,f._0_modifier_must_precede_1_modifier,"in","out");H|=Dt;break}}}return n.kind===177?H&256?Cn(h,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):H&16?Cn(w,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):H&1024?Cn(I,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===273||n.kind===272)&&H&128?Cn(b,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===170&&H&31&&Qo(n.name)?Cn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===170&&H&31&&n.dotDotDotToken?Cn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):H&1024?xyt(n,I):!1}function Syt(n){if(!n.modifiers)return!1;let a=Eyt(n);return a&&fd(a,f.Modifiers_cannot_appear_here)}function k$(n,a){let c=hn(n.modifiers,Aa);return c&&c.kind!==a?c:void 0}function Eyt(n){switch(n.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return hn(n.modifiers,Aa);default:if(n.parent.kind===269||n.parent.kind===308)return;switch(n.kind){case 263:return k$(n,134);case 264:case 186:return k$(n,128);case 232:case 265:case 266:return hn(n.modifiers,Aa);case 244:return n.declarationList.flags&4?k$(n,135):hn(n.modifiers,Aa);case 267:return k$(n,87);default:C.assertNever(n)}}}function Ayt(n){let a=Iyt(n);return a&&fd(a,f.Decorators_are_not_valid_here)}function Iyt(n){return Nj(n)?hn(n.modifiers,zc):void 0}function xyt(n,a){switch(n.kind){case 175:case 263:case 219:case 220:return!1}return Cn(a,f._0_modifier_cannot_be_used_here,"async")}function aR(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?YT(n[0],n.end-1,1,a):!1}function Z3e(n,a){if(n&&n.length===0){let c=n.pos-1,p=La(a.text,n.end)+1;return YT(a,c,p-c,f.Type_parameter_list_cannot_be_empty)}return!1}function Ryt(n){let a=!1,c=n.length;for(let p=0;p<c;p++){let h=n[p];if(h.dotDotDotToken){if(p!==c-1)return Cn(h.dotDotDotToken,f.A_rest_parameter_must_be_last_in_a_parameter_list);if(h.flags&33554432||aR(n,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),h.questionToken)return Cn(h.questionToken,f.A_rest_parameter_cannot_be_optional);if(h.initializer)return Cn(h.name,f.A_rest_parameter_cannot_have_an_initializer)}else if(jX(h)){if(a=!0,h.questionToken&&h.initializer)return Cn(h.name,f.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!h.initializer)return Cn(h.name,f.A_required_parameter_cannot_follow_an_optional_parameter)}}function Dyt(n){return Un(n,a=>!!a.initializer||Qo(a.name)||D_(a))}function Cyt(n){if(G>=3){let a=n.body&&ea(n.body)&&xj(n.body.statements);if(a){let c=Dyt(n.parameters);if(et(c)){Je(c,h=>{pa(Qe(h,f.This_parameter_is_not_allowed_with_use_strict_directive),Ar(a,f.use_strict_directive_used_here))});let p=c.map((h,b)=>b===0?Ar(h,f.Non_simple_parameter_declared_here):Ar(h,f.and_here));return pa(Qe(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...p),!0}}}return!1}function w$(n){let a=Wn(n);return Jg(n)||Z3e(n.typeParameters,a)||Ryt(n.parameters)||Myt(n,a)||Ms(n)&&Cyt(n)}function Nyt(n){let a=Wn(n);return Oyt(n)||Z3e(n.typeParameters,a)}function Myt(n,a){if(!Xs(n))return!1;n.typeParameters&&!(et(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Yl(a.fileName,[".mts",".cts"])&&Cn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:c}=n,p=ca(a,c.pos).line,h=ca(a,c.end).line;return p!==h&&Cn(c,f.Line_terminator_not_permitted_before_arrow)}function Pyt(n){let a=n.parameters[0];if(n.parameters.length!==1)return Cn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(aR(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Cn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(YG(a))return Cn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Cn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Cn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Cn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);let c=Ji(a.type);return im(c,p=>!!(p.flags&8576))||VT(c)?Cn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Sp(c,XX)?n.type?!1:Cn(n,f.An_index_signature_must_have_a_type_annotation):Cn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Lyt(n){return Jg(n)||Pyt(n)}function kyt(n,a){if(a&&a.length===0){let c=Wn(n),p=a.pos-1,h=La(c.text,a.end)+1;return YT(c,p,h-p,f.Type_argument_list_cannot_be_empty)}return!1}function X9(n,a){return aR(a)||kyt(n,a)}function wyt(n){return n.questionDotToken||n.flags&64?Cn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function eFe(n){let a=n.types;if(aR(a))return!0;if(a&&a.length===0){let c=_a(n.token);return YT(n,a.pos,0,f._0_list_cannot_be_empty,c)}return vt(a,tFe)}function tFe(n){return dy(n)&&WM(n.expression)&&n.typeArguments?Cn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):X9(n,n.typeArguments)}function Oyt(n){let a=!1,c=!1;if(!Jg(n)&&n.heritageClauses)for(let p of n.heritageClauses){if(p.token===96){if(a)return fd(p,f.extends_clause_already_seen);if(c)return fd(p,f.extends_clause_must_precede_implements_clause);if(p.types.length>1)return fd(p.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(C.assert(p.token===119),c)return fd(p,f.implements_clause_already_seen);c=!0}eFe(p)}}function Wyt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return fd(c,f.extends_clause_already_seen);a=!0}else return C.assert(c.token===119),fd(c,f.Interface_declaration_cannot_have_implements_clause);eFe(c)}return!1}function O$(n){if(n.kind!==168)return!1;let a=n;return a.expression.kind===227&&a.expression.operatorToken.kind===28?Cn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Cye(n){if(n.asteriskToken){if(C.assert(n.kind===263||n.kind===219||n.kind===175),n.flags&33554432)return Cn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Cn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function Nye(n,a){return!!n&&Cn(n,a)}function nFe(n,a){return!!n&&Cn(n,a)}function Fyt(n,a){let c=new Map;for(let p of n.properties){if(p.kind===306){if(a){let I=ds(p.expression);if(Cd(I)||Wa(I))return Cn(p.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}let h=p.name;if(h.kind===168&&O$(h),p.kind===305&&!a&&p.objectAssignmentInitializer&&Cn(p.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),h.kind===81&&Cn(h,f.Private_identifiers_are_not_allowed_outside_class_bodies),bm(p)&&p.modifiers)for(let I of p.modifiers)Aa(I)&&(I.kind!==134||p.kind!==175)&&Cn(I,f._0_modifier_cannot_be_used_here,Al(I));else if(Uie(p)&&p.modifiers)for(let I of p.modifiers)Aa(I)&&Cn(I,f._0_modifier_cannot_be_used_here,Al(I));let b;switch(p.kind){case 305:case 304:nFe(p.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),Nye(p.questionToken,f.An_object_member_cannot_be_declared_optional),h.kind===9&&dFe(h),h.kind===10&&Mg(!0,Ar(h,f.A_bigint_literal_cannot_be_used_as_a_property_name)),b=4;break;case 175:b=8;break;case 178:b=1;break;case 179:b=2;break;default:C.assertNever(p,"Unexpected syntax kind:"+p.kind)}if(!a){let I=Lye(h);if(I===void 0)continue;let w=c.get(I);if(!w)c.set(I,b);else if(b&8&&w&8)Cn(h,f.Duplicate_identifier_0,Al(h));else if(b&4&&w&4)Cn(h,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Al(h));else if(b&3&&w&3)if(w!==3&&b!==w)c.set(I,b|w);else return Cn(h,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Cn(h,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function zyt(n){Byt(n.tagName),X9(n,n.typeArguments);let a=new Map;for(let c of n.attributes.properties){if(c.kind===294)continue;let{name:p,initializer:h}=c,b=CM(p);if(!a.get(b))a.set(b,!0);else return Cn(p,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(h&&h.kind===295&&!h.expression)return Cn(h,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Byt(n){if(qr(n)&&fh(n.expression))return Cn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(fh(n)&&DW(O)&&!YR(n.namespace.escapedText))return Cn(n,f.React_components_cannot_include_JSX_namespace_names)}function Gyt(n){if(n.expression&&JM(n.expression))return Cn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function rFe(n){if(Uy(n))return!0;if(n.kind===251&&n.awaitModifier&&!(n.flags&65536)){let a=Wn(n);if(F6(n)){if(!_0(a))switch(OR(a,O)||ns.add(Ar(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)),j){case 100:case 101:case 102:case 199:if(a.impliedNodeFormat===1){ns.add(Ar(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(G>=4)break;default:ns.add(Ar(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!_0(a)){let c=Ar(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),p=cf(n);if(p&&p.kind!==177){C.assert((dc(p)&2)===0,"Enclosing function should never be an async function.");let h=Ar(p,f.Did_you_mean_to_mark_this_function_as_async);pa(c,h)}return ns.add(c),!0}}if(aw(n)&&!(n.flags&65536)&&He(n.initializer)&&n.initializer.escapedText==="async")return Cn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===262){let a=n.initializer;if(!Pye(a)){let c=a.declarations;if(!c.length)return!1;if(c.length>1){let h=n.kind===250?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 fd(a.declarations[1],h)}let p=c[0];if(p.initializer){let h=n.kind===250?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 Cn(p.name,h)}if(p.type){let h=n.kind===250?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 Cn(p,h)}}}return!1}function Vyt(n){if(!(n.flags&33554432)&&n.parent.kind!==188&&n.parent.kind!==265){if(G<2&&eo(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!di(n,64))return YT(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(di(n,64))return Cn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===188||n.parent.kind===265)return Cn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Cn(n.name,f.An_accessor_cannot_have_type_parameters);if(!jyt(n))return Cn(n.name,n.kind===178?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===179){if(n.type)return Cn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);let a=C.checkDefined(lM(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Cn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Cn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Cn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function jyt(n){return Mye(n)||n.parameters.length===(n.kind===178?0:1)}function Mye(n){if(n.parameters.length===(n.kind===178?1:2))return T1(n)}function Uyt(n){if(n.operator===158){if(n.type.kind!==155)return Cn(n.type,f._0_expected,_a(155));let a=mk(n.parent);if(Ir(a)&&K0(a)){let c=g1(a);c&&(a=uI(c)||c)}switch(a.kind){case 261:let c=a;if(c.name.kind!==80)return Cn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!jN(c))return Cn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Cn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!ua(a)||!nE(a))return Cn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!di(a,8))return Cn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Cn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==189&&n.type.kind!==190)return fd(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,_a(155))}function z2(n,a){if(zwe(n)&&!Ds(Ws(n)?ds(n.argumentExpression):n.expression))return Cn(n,a)}function iFe(n){if(w$(n))return!0;if(n.kind===175){if(n.parent.kind===211){if(n.modifiers&&!(n.modifiers.length===1&&$a(n.modifiers).kind===134))return fd(n,f.Modifiers_cannot_appear_here);if(Nye(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(nFe(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return YT(n,n.end-1,1,f._0_expected,"{")}if(Cye(n))return!0}if(ui(n.parent)){if(G<2&&eo(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return z2(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===175&&!n.body)return z2(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===265)return z2(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===188)return z2(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(MR(a))return Cn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 257:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===252&&!ub(a.statement,!0)?Cn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 256:if(n.kind===253&&!n.label)return!1;break;default:if(ub(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){let c=n.kind===253?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 Cn(n,c)}else{let c=n.kind===253?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 Cn(n,c)}}function qyt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==Ba(a))return Cn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(aR(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Cn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return YT(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function oFe(n){return df(n)||n.kind===225&&n.operator===41&&n.operand.kind===9}function Jyt(n){return n.kind===10||n.kind===225&&n.operator===41&&n.operand.kind===10}function Kyt(n){if((qr(n)||Ws(n)&&oFe(n.argumentExpression))&&Ds(n.expression))return!!(Vl(n).flags&1056)}function aFe(n){let a=n.initializer;if(a){let c=!(oFe(a)||Kyt(a)||a.kind===112||a.kind===97||Jyt(a));if((HL(n)||yi(n)&&c8(n))&&!n.type){if(c)return Cn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Cn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function Xyt(n){let a=RS(n),c=a&7;if(Qo(n.name))switch(c){case 6:return Cn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Cn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==250&&n.parent.parent.kind!==251){if(a&33554432)aFe(n);else if(!n.initializer){if(Qo(n.name)&&!Qo(n.parent))return Cn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Cn(n,f._0_declarations_must_be_initialized,"await using");case 4:return Cn(n,f._0_declarations_must_be_initialized,"using");case 2:return Cn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==244||!n.type||n.initializer||a&33554432)){let p=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 Cn(n.exclamationToken,p)}return e.getEmitModuleFormatOfFile(Wn(n))<4&&!(n.parent.parent.flags&33554432)&&di(n.parent.parent,32)&&sFe(n.name),!!c&&lFe(n.name)}function sFe(n){if(n.kind===80){if(Kr(n)==="__esModule")return Qyt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=n.elements;for(let c of a)if(!Kc(c))return sFe(c.name)}return!1}function lFe(n){if(n.kind===80){if(n.escapedText==="let")return Cn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=n.elements;for(let c of a)Kc(c)||lFe(c.name)}return!1}function Pye(n){let a=n.declarations;if(aR(n.declarations))return!0;if(!n.declarations.length)return YT(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);let c=n.flags&7;if(c===4||c===6){if(d3(n.parent))return Cn(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);if(n.flags&33554432)return Cn(n,c===4?f.using_declarations_are_not_allowed_in_ambient_contexts:f.await_using_declarations_are_not_allowed_in_ambient_contexts);if(c===6)return IWe(n)}return!1}function W$(n){switch(n.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return W$(n.parent)}return!0}function Yyt(n){if(!W$(n.parent)){let a=RS(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":C.fail("Unknown BlockScope flag");Qe(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function $yt(n){let a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),_a(n.keywordToken),"target");break;case 102:if(a!=="meta"){let c=Zo(n.parent)&&n.parent.expression===n;if(a==="defer"){if(!c)return YT(n,n.end,0,f._0_expected,"(")}else return c?Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,Vi(n.name.escapedText)):Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),_a(n.keywordToken),"meta")}break}}function _0(n){return n.parseDiagnostics.length>0}function fd(n,a,...c){let p=Wn(n);if(!_0(p)){let h=Vh(p,n.pos);return ns.add(Fc(p,h.start,h.length,a,...c)),!0}return!1}function YT(n,a,c,p,...h){let b=Wn(n);return _0(b)?!1:(ns.add(Fc(b,a,c,p,...h)),!0)}function Qyt(n,a,c,...p){let h=Wn(a);return _0(h)?!1:(Tv(n,a,c,...p),!0)}function Cn(n,a,...c){let p=Wn(n);return _0(p)?!1:(Qe(n,a,...c),!0)}function Zyt(n){let a=Ir(n)?dW(n):void 0,c=n.typeParameters||a&&Ic(a);if(c){let p=c.pos===c.end?c.pos:La(Wn(n).text,c.pos);return YT(n,p,c.end-p,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function evt(n){let a=n.type||Pp(n);if(a)return Cn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function tvt(n){if(va(n.name)&&Nr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Cn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(ui(n.parent)){if(ka(n.name)&&n.name.text==="constructor")return Cn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(z2(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(G<2&&eo(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(G<2&&Ku(n)&&!(n.flags&33554432))return Cn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Ku(n)&&Nye(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===265){if(z2(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(C.assertNode(n,Tu),n.initializer)return Cn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(ku(n.parent)){if(z2(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(C.assertNode(n,Tu),n.initializer)return Cn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&aFe(n),Po(n)&&n.exclamationToken&&(!ui(n.parent)||!n.type||n.initializer||n.flags&33554432||ua(n)||A1(n))){let 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 Cn(n.exclamationToken,a)}}function nvt(n){return n.kind===265||n.kind===266||n.kind===273||n.kind===272||n.kind===279||n.kind===278||n.kind===271||di(n,2208)?!1:fd(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function rvt(n){for(let a of n.statements)if((rd(a)||a.kind===244)&&nvt(a))return!0;return!1}function cFe(n){return!!(n.flags&33554432)&&rvt(n)}function Uy(n){if(n.flags&33554432){if(!Vr(n).hasReportedStatementInAmbientContext&&(Yo(n.parent)||db(n.parent)))return Vr(n).hasReportedStatementInAmbientContext=fd(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===242||n.parent.kind===269||n.parent.kind===308){let c=Vr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=fd(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function dFe(n){let a=Al(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||Mg(!1,Ar(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function ivt(n){return!!(!(lv(n.parent)||j0(n.parent)&&lv(n.parent.parent))&&!(n.flags&33554432)&&G<7&&Cn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function ovt(n,a,...c){let p=Wn(n);if(!_0(p)){let h=Vh(p,n.pos);return ns.add(Fc(p,Dl(h),0,a,...c)),!0}return!1}function avt(){return tf||(tf=[],lt.forEach((n,a)=>{rae.test(a)&&tf.push(n)})),tf}function svt(n){var a,c;if(n.phaseModifier===156){if(n.name&&n.namedBindings)return Cn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(((a=n.namedBindings)==null?void 0:a.kind)===276)return uFe(n.namedBindings)}else if(n.phaseModifier===166){if(n.name)return Cn(n,f.Default_imports_are_not_allowed_in_a_deferred_import);if(((c=n.namedBindings)==null?void 0:c.kind)===276)return Cn(n,f.Named_imports_are_not_allowed_in_a_deferred_import);if(j!==99&&j!==200)return Cn(n,f.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}function uFe(n){return!!Je(n.elements,a=>{if(a.isTypeOnly)return fd(a,a.kind===277?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 lvt(n){if(O.verbatimModuleSyntax&&j===1)return Cn(n,jE(n));if(n.expression.kind===237){if(j!==99&&j!==200)return Cn(n,f.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(j===5)return Cn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(n.typeArguments)return Cn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=n.arguments;if(!(100<=j&&j<=199)&&j!==99&&j!==200&&(aR(a),a.length>1)){let p=a[1];return Cn(p,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(a.length===0||a.length>2)return Cn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let c=hn(a,Uf);return c?Cn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function cvt(n,a){let c=Hr(n);if(c&20&&a.flags&1048576)return hn(a.types,p=>{if(p.flags&524288){let h=c&Hr(p);if(h&4)return n.target===p.target;if(h&16)return!!n.aliasSymbol&&n.aliasSymbol===p.aliasSymbol}return!1})}function dvt(n,a){if(Hr(n)&128&&im(a,Bv))return hn(a.types,c=>!Bv(c))}function uvt(n,a){let c=0;if(na(n,c).length>0||(c=1,na(n,c).length>0))return hn(a.types,h=>na(h,c).length>0)}function pvt(n,a){let c;if(!(n.flags&406978556)){let p=0;for(let h of a.types)if(!(h.flags&406978556)){let b=Ma([v_(n),v_(h)]);if(b.flags&4194304)return h;if(Nh(b)||b.flags&1048576){let I=b.flags&1048576?Io(b.types,Nh):1;I>=p&&(c=h,p=I)}}}return c}function fvt(n){if(ec(n,67108864)){let a=Ac(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function pFe(n,a,c){if(a.flags&1048576&&n.flags&2621440){let p=f8e(a,n);if(p)return p;let h=bs(n);if(h){let b=p8e(h,a);if(b){let I=h_e(a,Vt(b,w=>[()=>_r(w),w.escapedName]),c);if(I!==a)return I}}}}function Lye(n){let a=eE(n);return a||(va(n)?G_e(wd(n.expression)):void 0)}function F$(n){return gn===n||(gn=n,Kn=I0(n)),Kn}function RS(n){return Wt===n||(Wt=n,cn=ty(n)),cn}function c8(n){let a=RS(n)&7;return a===2||a===4||a===6}function mvt(n,a){let c=O.importHelpers?1:0,p=n?.imports[c];return p&&C.assert(Os(p)&&p.text===a,`Expected sourceFile.imports[${c}] to be the synthesized JSX runtime import`),p}function hvt(n){C.assert(O.importHelpers,"Expected importHelpers to be enabled");let a=n.imports[0];return C.assert(a&&Os(a)&&a.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),a}}function $je(e){return!db(e)}function NSe(e){return e.kind!==263&&e.kind!==175||!!e.body}function MSe(e){switch(e.parent.kind){case 277:case 282:return He(e)||e.kind===11;default:return P_(e)}}var hf;(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"})(hf||(hf={}));var IU;(e=>{e.Fragment="Fragment"})(IU||(IU={}));function PSe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function au(e){return!!(e.flags&1)}function LSe(e){return!!(e.flags&2)}function Qje(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:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,r)=>e.getModeForResolutionAtIndex(t,r),getGlobalTypingsCacheLocation:ia(e,e.getGlobalTypingsCacheLocation)}}var aae=class a9e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof a9e;)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())}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}reportInferenceFallback(t){var r;(r=this.inner)!=null&&r.reportInferenceFallback&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(t))}pushErrorFallbackNode(t){var r,i;return(i=(r=this.inner)==null?void 0:r.pushErrorFallbackNode)==null?void 0:i.call(r,t)}popErrorFallbackNode(){var t,r;return(r=(t=this.inner)==null?void 0:t.popErrorFallbackNode)==null?void 0:r.call(t)}};function st(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return Mo(o)?s=(i||iUe)(o):s=o,C.assertNode(s,r),s}function Xn(e,t,r,i,o){if(e===void 0)return e;let s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,d=-1;i>0||o<s?l=e.hasTrailingComma&&i+o===s:(u=e.pos,d=e.end,l=e.hasTrailingComma);let g=kSe(e,t,r,i,o);if(g!==e){let _=L.createNodeArray(g,l);return uh(_,u,d),_}return e}function iP(e,t,r,i,o){if(e===void 0)return e;let s=e.length;return(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i),kSe(e,t,r,i,o)}function kSe(e,t,r,i,o){let s,l=e.length;(i>0||o<l)&&(s=[]);for(let u=0;u<o;u++){let d=e[u+i],g=d!==void 0?t?t(d):d:void 0;if((s!==void 0||g===void 0||g!==d)&&(s===void 0&&(s=e.slice(0,u),C.assertEachNode(s,r)),g))if(Mo(g))for(let _ of g)C.assertNode(_,r),s.push(_);else C.assertNode(g,r),s.push(g)}return s||(C.assertEachNode(e,r),e)}function xU(e,t,r,i,o,s=Xn){return r.startLexicalEnvironment(),e=s(e,t,ji,i),o&&(e=r.factory.ensureUseStrict(e)),L.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Fl(e,t,r,i=Xn){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,to),r.getLexicalEnvironmentFlags()&2&&Ga(r.getCompilerOptions())>=2&&(o=Zje(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function Zje(e,t){let r;for(let i=0;i<e.length;i++){let o=e[i],s=eUe(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?bt(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function eUe(e,t){return e.dotDotDotToken?e:Qo(e.name)?tUe(e,t):e.initializer?nUe(e,e.name,e.initializer,t):e}function tUe(e,t){let{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 nUe(e,t,r,i){let o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),Cr(bt(o.createBlock([o.createExpressionStatement(Cr(bt(o.createAssignment(Cr(o.cloneNode(t),96),Cr(r,96|Qa(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function _f(e,t,r,i=st){r.resumeLexicalEnvironment();let o=i(e,t,u6),s=r.endLexicalEnvironment();if(vt(s)){if(!o)return r.factory.createBlock(s);let l=r.factory.converters.convertToFunctionBlock(o),u=L.mergeLexicalEnvironment(l.statements,s);return r.factory.updateBlock(l,u)}return o}function Ou(e,t,r,i=st){r.startBlockScope();let o=i(e,t,ji,r.factory.liftToBlock);C.assert(o);let s=r.endBlockScope();return vt(s)?ea(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function nF(e,t,r=t){if(r===t||e.length<=1)return Xn(e,t,St);let i=0,o=e.length;return Xn(e,s=>{let l=i<o-1;return i++,l?r(s):t(s)},St)}function kn(e,t,r=Gw,i=Xn,o,s=st){if(e===void 0)return;let l=rUe[e.kind];return l===void 0?e:l(e,t,r,i,s,o)}var rUe={167:function(t,r,i,o,s,l){return i.factory.updateQualifiedName(t,C.checkDefined(s(t.left,r,Nu)),C.checkDefined(s(t.right,r,He)))},168:function(t,r,i,o,s,l){return i.factory.updateComputedPropertyName(t,C.checkDefined(s(t.expression,r,St)))},169:function(t,r,i,o,s,l){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,Aa),C.checkDefined(s(t.name,r,He)),s(t.constraint,r,Ri),s(t.default,r,Ri))},170:function(t,r,i,o,s,l){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,fl),l?s(t.dotDotDotToken,l,r3):t.dotDotDotToken,C.checkDefined(s(t.name,r,VS)),l?s(t.questionToken,l,Rb):t.questionToken,s(t.type,r,Ri),s(t.initializer,r,St))},171:function(t,r,i,o,s,l){return i.factory.updateDecorator(t,C.checkDefined(s(t.expression,r,St)))},172:function(t,r,i,o,s,l){return i.factory.updatePropertySignature(t,o(t.modifiers,r,Aa),C.checkDefined(s(t.name,r,bc)),l?s(t.questionToken,l,Rb):t.questionToken,s(t.type,r,Ri))},173:function(t,r,i,o,s,l){return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,fl),C.checkDefined(s(t.name,r,bc)),l?s(t.questionToken??t.exclamationToken,l,Hie):t.questionToken??t.exclamationToken,s(t.type,r,Ri),s(t.initializer,r,St))},174:function(t,r,i,o,s,l){return i.factory.updateMethodSignature(t,o(t.modifiers,r,Aa),C.checkDefined(s(t.name,r,bc)),l?s(t.questionToken,l,Rb):t.questionToken,o(t.typeParameters,r,sl),o(t.parameters,r,to),s(t.type,r,Ri))},175:function(t,r,i,o,s,l){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,fl),l?s(t.asteriskToken,l,nw):t.asteriskToken,C.checkDefined(s(t.name,r,bc)),l?s(t.questionToken,l,Rb):t.questionToken,o(t.typeParameters,r,sl),Fl(t.parameters,r,i,o),s(t.type,r,Ri),_f(t.body,r,i,s))},177:function(t,r,i,o,s,l){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,fl),Fl(t.parameters,r,i,o),_f(t.body,r,i,s))},178:function(t,r,i,o,s,l){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,fl),C.checkDefined(s(t.name,r,bc)),Fl(t.parameters,r,i,o),s(t.type,r,Ri),_f(t.body,r,i,s))},179:function(t,r,i,o,s,l){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,fl),C.checkDefined(s(t.name,r,bc)),Fl(t.parameters,r,i,o),_f(t.body,r,i,s))},176:function(t,r,i,o,s,l){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,_f(t.body,r,i,s))},180:function(t,r,i,o,s,l){return i.factory.updateCallSignature(t,o(t.typeParameters,r,sl),o(t.parameters,r,to),s(t.type,r,Ri))},181:function(t,r,i,o,s,l){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,sl),o(t.parameters,r,to),s(t.type,r,Ri))},182:function(t,r,i,o,s,l){return i.factory.updateIndexSignature(t,o(t.modifiers,r,fl),o(t.parameters,r,to),C.checkDefined(s(t.type,r,Ri)))},183:function(t,r,i,o,s,l){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,pie),C.checkDefined(s(t.parameterName,r,qie)),s(t.type,r,Ri))},184:function(t,r,i,o,s,l){return i.factory.updateTypeReferenceNode(t,C.checkDefined(s(t.typeName,r,Nu)),o(t.typeArguments,r,Ri))},185:function(t,r,i,o,s,l){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,sl),o(t.parameters,r,to),C.checkDefined(s(t.type,r,Ri)))},186:function(t,r,i,o,s,l){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,Aa),o(t.typeParameters,r,sl),o(t.parameters,r,to),C.checkDefined(s(t.type,r,Ri)))},187:function(t,r,i,o,s,l){return i.factory.updateTypeQueryNode(t,C.checkDefined(s(t.exprName,r,Nu)),o(t.typeArguments,r,Ri))},188:function(t,r,i,o,s,l){return i.factory.updateTypeLiteralNode(t,o(t.members,r,l1))},189:function(t,r,i,o,s,l){return i.factory.updateArrayTypeNode(t,C.checkDefined(s(t.elementType,r,Ri)))},190:function(t,r,i,o,s,l){return i.factory.updateTupleTypeNode(t,o(t.elements,r,Ri))},191:function(t,r,i,o,s,l){return i.factory.updateOptionalTypeNode(t,C.checkDefined(s(t.type,r,Ri)))},192:function(t,r,i,o,s,l){return i.factory.updateRestTypeNode(t,C.checkDefined(s(t.type,r,Ri)))},193:function(t,r,i,o,s,l){return i.factory.updateUnionTypeNode(t,o(t.types,r,Ri))},194:function(t,r,i,o,s,l){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,Ri))},195:function(t,r,i,o,s,l){return i.factory.updateConditionalTypeNode(t,C.checkDefined(s(t.checkType,r,Ri)),C.checkDefined(s(t.extendsType,r,Ri)),C.checkDefined(s(t.trueType,r,Ri)),C.checkDefined(s(t.falseType,r,Ri)))},196:function(t,r,i,o,s,l){return i.factory.updateInferTypeNode(t,C.checkDefined(s(t.typeParameter,r,sl)))},206:function(t,r,i,o,s,l){return i.factory.updateImportTypeNode(t,C.checkDefined(s(t.argument,r,Ri)),s(t.attributes,r,hE),s(t.qualifier,r,Nu),o(t.typeArguments,r,Ri),t.isTypeOf)},303:function(t,r,i,o,s,l){return i.factory.updateImportTypeAssertionContainer(t,C.checkDefined(s(t.assertClause,r,Sie)),t.multiLine)},203:function(t,r,i,o,s,l){return i.factory.updateNamedTupleMember(t,l?s(t.dotDotDotToken,l,r3):t.dotDotDotToken,C.checkDefined(s(t.name,r,He)),l?s(t.questionToken,l,Rb):t.questionToken,C.checkDefined(s(t.type,r,Ri)))},197:function(t,r,i,o,s,l){return i.factory.updateParenthesizedType(t,C.checkDefined(s(t.type,r,Ri)))},199:function(t,r,i,o,s,l){return i.factory.updateTypeOperatorNode(t,C.checkDefined(s(t.type,r,Ri)))},200:function(t,r,i,o,s,l){return i.factory.updateIndexedAccessTypeNode(t,C.checkDefined(s(t.objectType,r,Ri)),C.checkDefined(s(t.indexType,r,Ri)))},201:function(t,r,i,o,s,l){return i.factory.updateMappedTypeNode(t,l?s(t.readonlyToken,l,Jie):t.readonlyToken,C.checkDefined(s(t.typeParameter,r,sl)),s(t.nameType,r,Ri),l?s(t.questionToken,l,Kie):t.questionToken,s(t.type,r,Ri),o(t.members,r,l1))},202:function(t,r,i,o,s,l){return i.factory.updateLiteralTypeNode(t,C.checkDefined(s(t.literal,r,ste)))},204:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralType(t,C.checkDefined(s(t.head,r,MI)),o(t.templateSpans,r,sj))},205:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralTypeSpan(t,C.checkDefined(s(t.type,r,Ri)),C.checkDefined(s(t.literal,r,s6)))},207:function(t,r,i,o,s,l){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,Ha))},208:function(t,r,i,o,s,l){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,c6))},209:function(t,r,i,o,s,l){return i.factory.updateBindingElement(t,l?s(t.dotDotDotToken,l,r3):t.dotDotDotToken,s(t.propertyName,r,bc),C.checkDefined(s(t.name,r,VS)),s(t.initializer,r,St))},210:function(t,r,i,o,s,l){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,St))},211:function(t,r,i,o,s,l){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,ny))},212:function(t,r,i,o,s,l){return r6(t)?i.factory.updatePropertyAccessChain(t,C.checkDefined(s(t.expression,r,St)),l?s(t.questionDotToken,l,i3):t.questionDotToken,C.checkDefined(s(t.name,r,cg))):i.factory.updatePropertyAccessExpression(t,C.checkDefined(s(t.expression,r,St)),C.checkDefined(s(t.name,r,cg)))},213:function(t,r,i,o,s,l){return MB(t)?i.factory.updateElementAccessChain(t,C.checkDefined(s(t.expression,r,St)),l?s(t.questionDotToken,l,i3):t.questionDotToken,C.checkDefined(s(t.argumentExpression,r,St))):i.factory.updateElementAccessExpression(t,C.checkDefined(s(t.expression,r,St)),C.checkDefined(s(t.argumentExpression,r,St)))},214:function(t,r,i,o,s,l){return zS(t)?i.factory.updateCallChain(t,C.checkDefined(s(t.expression,r,St)),l?s(t.questionDotToken,l,i3):t.questionDotToken,o(t.typeArguments,r,Ri),o(t.arguments,r,St)):i.factory.updateCallExpression(t,C.checkDefined(s(t.expression,r,St)),o(t.typeArguments,r,Ri),o(t.arguments,r,St))},215:function(t,r,i,o,s,l){return i.factory.updateNewExpression(t,C.checkDefined(s(t.expression,r,St)),o(t.typeArguments,r,Ri),o(t.arguments,r,St))},216:function(t,r,i,o,s,l){return i.factory.updateTaggedTemplateExpression(t,C.checkDefined(s(t.tag,r,St)),o(t.typeArguments,r,Ri),C.checkDefined(s(t.template,r,QA)))},217:function(t,r,i,o,s,l){return i.factory.updateTypeAssertion(t,C.checkDefined(s(t.type,r,Ri)),C.checkDefined(s(t.expression,r,St)))},218:function(t,r,i,o,s,l){return i.factory.updateParenthesizedExpression(t,C.checkDefined(s(t.expression,r,St)))},219:function(t,r,i,o,s,l){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,Aa),l?s(t.asteriskToken,l,nw):t.asteriskToken,s(t.name,r,He),o(t.typeParameters,r,sl),Fl(t.parameters,r,i,o),s(t.type,r,Ri),_f(t.body,r,i,s))},220:function(t,r,i,o,s,l){return i.factory.updateArrowFunction(t,o(t.modifiers,r,Aa),o(t.typeParameters,r,sl),Fl(t.parameters,r,i,o),s(t.type,r,Ri),l?C.checkDefined(s(t.equalsGreaterThanToken,l,uie)):t.equalsGreaterThanToken,_f(t.body,r,i,s))},221:function(t,r,i,o,s,l){return i.factory.updateDeleteExpression(t,C.checkDefined(s(t.expression,r,St)))},222:function(t,r,i,o,s,l){return i.factory.updateTypeOfExpression(t,C.checkDefined(s(t.expression,r,St)))},223:function(t,r,i,o,s,l){return i.factory.updateVoidExpression(t,C.checkDefined(s(t.expression,r,St)))},224:function(t,r,i,o,s,l){return i.factory.updateAwaitExpression(t,C.checkDefined(s(t.expression,r,St)))},225:function(t,r,i,o,s,l){return i.factory.updatePrefixUnaryExpression(t,C.checkDefined(s(t.operand,r,St)))},226:function(t,r,i,o,s,l){return i.factory.updatePostfixUnaryExpression(t,C.checkDefined(s(t.operand,r,St)))},227:function(t,r,i,o,s,l){return i.factory.updateBinaryExpression(t,C.checkDefined(s(t.left,r,St)),l?C.checkDefined(s(t.operatorToken,l,Yie)):t.operatorToken,C.checkDefined(s(t.right,r,St)))},228:function(t,r,i,o,s,l){return i.factory.updateConditionalExpression(t,C.checkDefined(s(t.condition,r,St)),l?C.checkDefined(s(t.questionToken,l,Rb)):t.questionToken,C.checkDefined(s(t.whenTrue,r,St)),l?C.checkDefined(s(t.colonToken,l,die)):t.colonToken,C.checkDefined(s(t.whenFalse,r,St)))},229:function(t,r,i,o,s,l){return i.factory.updateTemplateExpression(t,C.checkDefined(s(t.head,r,MI)),o(t.templateSpans,r,hD))},230:function(t,r,i,o,s,l){return i.factory.updateYieldExpression(t,l?s(t.asteriskToken,l,nw):t.asteriskToken,s(t.expression,r,St))},231:function(t,r,i,o,s,l){return i.factory.updateSpreadElement(t,C.checkDefined(s(t.expression,r,St)))},232:function(t,r,i,o,s,l){return i.factory.updateClassExpression(t,o(t.modifiers,r,fl),s(t.name,r,He),o(t.typeParameters,r,sl),o(t.heritageClauses,r,Op),o(t.members,r,Tc))},234:function(t,r,i,o,s,l){return i.factory.updateExpressionWithTypeArguments(t,C.checkDefined(s(t.expression,r,St)),o(t.typeArguments,r,Ri))},235:function(t,r,i,o,s,l){return i.factory.updateAsExpression(t,C.checkDefined(s(t.expression,r,St)),C.checkDefined(s(t.type,r,Ri)))},239:function(t,r,i,o,s,l){return i.factory.updateSatisfiesExpression(t,C.checkDefined(s(t.expression,r,St)),C.checkDefined(s(t.type,r,Ri)))},236:function(t,r,i,o,s,l){return eu(t)?i.factory.updateNonNullChain(t,C.checkDefined(s(t.expression,r,St))):i.factory.updateNonNullExpression(t,C.checkDefined(s(t.expression,r,St)))},237:function(t,r,i,o,s,l){return i.factory.updateMetaProperty(t,C.checkDefined(s(t.name,r,He)))},240:function(t,r,i,o,s,l){return i.factory.updateTemplateSpan(t,C.checkDefined(s(t.expression,r,St)),C.checkDefined(s(t.literal,r,s6)))},242:function(t,r,i,o,s,l){return i.factory.updateBlock(t,o(t.statements,r,ji))},244:function(t,r,i,o,s,l){return i.factory.updateVariableStatement(t,o(t.modifiers,r,fl),C.checkDefined(s(t.declarationList,r,_d)))},245:function(t,r,i,o,s,l){return i.factory.updateExpressionStatement(t,C.checkDefined(s(t.expression,r,St)))},246:function(t,r,i,o,s,l){return i.factory.updateIfStatement(t,C.checkDefined(s(t.expression,r,St)),C.checkDefined(s(t.thenStatement,r,ji,i.factory.liftToBlock)),s(t.elseStatement,r,ji,i.factory.liftToBlock))},247:function(t,r,i,o,s,l){return i.factory.updateDoStatement(t,Ou(t.statement,r,i,s),C.checkDefined(s(t.expression,r,St)))},248:function(t,r,i,o,s,l){return i.factory.updateWhileStatement(t,C.checkDefined(s(t.expression,r,St)),Ou(t.statement,r,i,s))},249:function(t,r,i,o,s,l){return i.factory.updateForStatement(t,s(t.initializer,r,kf),s(t.condition,r,St),s(t.incrementor,r,St),Ou(t.statement,r,i,s))},250:function(t,r,i,o,s,l){return i.factory.updateForInStatement(t,C.checkDefined(s(t.initializer,r,kf)),C.checkDefined(s(t.expression,r,St)),Ou(t.statement,r,i,s))},251:function(t,r,i,o,s,l){return i.factory.updateForOfStatement(t,l?s(t.awaitModifier,l,oj):t.awaitModifier,C.checkDefined(s(t.initializer,r,kf)),C.checkDefined(s(t.expression,r,St)),Ou(t.statement,r,i,s))},252:function(t,r,i,o,s,l){return i.factory.updateContinueStatement(t,s(t.label,r,He))},253:function(t,r,i,o,s,l){return i.factory.updateBreakStatement(t,s(t.label,r,He))},254:function(t,r,i,o,s,l){return i.factory.updateReturnStatement(t,s(t.expression,r,St))},255:function(t,r,i,o,s,l){return i.factory.updateWithStatement(t,C.checkDefined(s(t.expression,r,St)),C.checkDefined(s(t.statement,r,ji,i.factory.liftToBlock)))},256:function(t,r,i,o,s,l){return i.factory.updateSwitchStatement(t,C.checkDefined(s(t.expression,r,St)),C.checkDefined(s(t.caseBlock,r,VM)))},257:function(t,r,i,o,s,l){return i.factory.updateLabeledStatement(t,C.checkDefined(s(t.label,r,He)),C.checkDefined(s(t.statement,r,ji,i.factory.liftToBlock)))},258:function(t,r,i,o,s,l){return i.factory.updateThrowStatement(t,C.checkDefined(s(t.expression,r,St)))},259:function(t,r,i,o,s,l){return i.factory.updateTryStatement(t,C.checkDefined(s(t.tryBlock,r,ea)),s(t.catchClause,r,O1),s(t.finallyBlock,r,ea))},261:function(t,r,i,o,s,l){return i.factory.updateVariableDeclaration(t,C.checkDefined(s(t.name,r,VS)),l?s(t.exclamationToken,l,rw):t.exclamationToken,s(t.type,r,Ri),s(t.initializer,r,St))},262:function(t,r,i,o,s,l){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,yi))},263:function(t,r,i,o,s,l){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,Aa),l?s(t.asteriskToken,l,nw):t.asteriskToken,s(t.name,r,He),o(t.typeParameters,r,sl),Fl(t.parameters,r,i,o),s(t.type,r,Ri),_f(t.body,r,i,s))},264:function(t,r,i,o,s,l){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,fl),s(t.name,r,He),o(t.typeParameters,r,sl),o(t.heritageClauses,r,Op),o(t.members,r,Tc))},265:function(t,r,i,o,s,l){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,fl),C.checkDefined(s(t.name,r,He)),o(t.typeParameters,r,sl),o(t.heritageClauses,r,Op),o(t.members,r,l1))},266:function(t,r,i,o,s,l){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,fl),C.checkDefined(s(t.name,r,He)),o(t.typeParameters,r,sl),C.checkDefined(s(t.type,r,Ri)))},267:function(t,r,i,o,s,l){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,fl),C.checkDefined(s(t.name,r,He)),o(t.members,r,py))},268:function(t,r,i,o,s,l){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,fl),C.checkDefined(s(t.name,r,Xie)),s(t.body,r,cte))},269:function(t,r,i,o,s,l){return i.factory.updateModuleBlock(t,o(t.statements,r,ji))},270:function(t,r,i,o,s,l){return i.factory.updateCaseBlock(t,o(t.clauses,r,f6))},271:function(t,r,i,o,s,l){return i.factory.updateNamespaceExportDeclaration(t,C.checkDefined(s(t.name,r,He)))},272:function(t,r,i,o,s,l){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,fl),t.isTypeOnly,C.checkDefined(s(t.name,r,He)),C.checkDefined(s(t.moduleReference,r,mte)))},273:function(t,r,i,o,s,l){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,fl),s(t.importClause,r,Gm),C.checkDefined(s(t.moduleSpecifier,r,St)),s(t.attributes,r,hE))},301:function(t,r,i,o,s,l){return i.factory.updateImportAttributes(t,o(t.elements,r,Eie),t.multiLine)},302:function(t,r,i,o,s,l){return i.factory.updateImportAttribute(t,C.checkDefined(s(t.name,r,tte)),C.checkDefined(s(t.value,r,St)))},274:function(t,r,i,o,s,l){return i.factory.updateImportClause(t,t.phaseModifier,s(t.name,r,He),s(t.namedBindings,r,UB))},275:function(t,r,i,o,s,l){return i.factory.updateNamespaceImport(t,C.checkDefined(s(t.name,r,He)))},281:function(t,r,i,o,s,l){return i.factory.updateNamespaceExport(t,C.checkDefined(s(t.name,r,He)))},276:function(t,r,i,o,s,l){return i.factory.updateNamedImports(t,o(t.elements,r,Su))},277:function(t,r,i,o,s,l){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,u3),C.checkDefined(s(t.name,r,He)))},278:function(t,r,i,o,s,l){return i.factory.updateExportAssignment(t,o(t.modifiers,r,fl),C.checkDefined(s(t.expression,r,St)))},279:function(t,r,i,o,s,l){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,fl),t.isTypeOnly,s(t.exportClause,r,LB),s(t.moduleSpecifier,r,St),s(t.attributes,r,hE))},280:function(t,r,i,o,s,l){return i.factory.updateNamedExports(t,o(t.elements,r,iu))},282:function(t,r,i,o,s,l){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,u3),C.checkDefined(s(t.name,r,u3)))},284:function(t,r,i,o,s,l){return i.factory.updateExternalModuleReference(t,C.checkDefined(s(t.expression,r,St)))},285:function(t,r,i,o,s,l){return i.factory.updateJsxElement(t,C.checkDefined(s(t.openingElement,r,ph)),o(t.children,r,OL),C.checkDefined(s(t.closingElement,r,k1)))},286:function(t,r,i,o,s,l){return i.factory.updateJsxSelfClosingElement(t,C.checkDefined(s(t.tagName,r,WN)),o(t.typeArguments,r,Ri),C.checkDefined(s(t.attributes,r,w1)))},287:function(t,r,i,o,s,l){return i.factory.updateJsxOpeningElement(t,C.checkDefined(s(t.tagName,r,WN)),o(t.typeArguments,r,Ri),C.checkDefined(s(t.attributes,r,w1)))},288:function(t,r,i,o,s,l){return i.factory.updateJsxClosingElement(t,C.checkDefined(s(t.tagName,r,WN)))},296:function(t,r,i,o,s,l){return i.factory.updateJsxNamespacedName(t,C.checkDefined(s(t.namespace,r,He)),C.checkDefined(s(t.name,r,He)))},289:function(t,r,i,o,s,l){return i.factory.updateJsxFragment(t,C.checkDefined(s(t.openingFragment,r,Vm)),o(t.children,r,OL),C.checkDefined(s(t.closingFragment,r,Iie)))},292:function(t,r,i,o,s,l){return i.factory.updateJsxAttribute(t,C.checkDefined(s(t.name,r,Lre)),s(t.initializer,r,hte))},293:function(t,r,i,o,s,l){return i.factory.updateJsxAttributes(t,o(t.properties,r,p6))},294:function(t,r,i,o,s,l){return i.factory.updateJsxSpreadAttribute(t,C.checkDefined(s(t.expression,r,St)))},295:function(t,r,i,o,s,l){return i.factory.updateJsxExpression(t,s(t.expression,r,St))},297:function(t,r,i,o,s,l){return i.factory.updateCaseClause(t,C.checkDefined(s(t.expression,r,St)),o(t.statements,r,ji))},298:function(t,r,i,o,s,l){return i.factory.updateDefaultClause(t,o(t.statements,r,ji))},299:function(t,r,i,o,s,l){return i.factory.updateHeritageClause(t,o(t.types,r,dy))},300:function(t,r,i,o,s,l){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,yi),C.checkDefined(s(t.block,r,ea)))},304:function(t,r,i,o,s,l){return i.factory.updatePropertyAssignment(t,C.checkDefined(s(t.name,r,bc)),C.checkDefined(s(t.initializer,r,St)))},305:function(t,r,i,o,s,l){return i.factory.updateShorthandPropertyAssignment(t,C.checkDefined(s(t.name,r,He)),s(t.objectAssignmentInitializer,r,St))},306:function(t,r,i,o,s,l){return i.factory.updateSpreadAssignment(t,C.checkDefined(s(t.expression,r,St)))},307:function(t,r,i,o,s,l){return i.factory.updateEnumMember(t,C.checkDefined(s(t.name,r,bc)),s(t.initializer,r,St))},308:function(t,r,i,o,s,l){return i.factory.updateSourceFile(t,xU(t.statements,r,i))},356:function(t,r,i,o,s,l){return i.factory.updatePartiallyEmittedExpression(t,C.checkDefined(s(t.expression,r,St)))},357:function(t,r,i,o,s,l){return i.factory.updateCommaListExpression(t,o(t.elements,r,St))}};function iUe(e){return C.assert(e.length<=1,"Too many nodes written to output."),ig(e)}function sae(e,t,r,i,o){var{enter:s,exit:l}=o.extendedDiagnostics?Vz("Source Map","beforeSourcemap","afterSourcemap"):oZ,u=[],d=[],g=new Map,_,v=[],E,A=[],R="",N=0,P=0,k=0,F=0,O=0,G=0,j=!1,J=0,Z=0,q=0,ye=0,ie=0,K=0,pe=!1,de=!1,fe=!1;return{getSources:()=>u,addSource:ve,setSourceContent:xe,addName:Y,addMapping:Se,appendSourceMap:re,toJSON:ce,toString:()=>JSON.stringify(ce())};function ve(ge){s();let je=ER(i,ge,e.getCurrentDirectory(),e.getCanonicalFileName,!0),Ge=g.get(je);return Ge===void 0&&(Ge=d.length,d.push(je),u.push(ge),g.set(je,Ge)),l(),Ge}function xe(ge,je){if(s(),je!==null){for(_||(_=[]);_.length<ge;)_.push(null);_[ge]=je}l()}function Y(ge){s(),E||(E=new Map);let je=E.get(ge);return je===void 0&&(je=v.length,v.push(ge),E.set(ge,je)),l(),je}function Ce(ge,je){return!pe||J!==ge||Z!==je}function Xe(ge,je,Ge){return ge!==void 0&&je!==void 0&&Ge!==void 0&&q===ge&&(ye>je||ye===je&&ie>Ge)}function Se(ge,je,Ge,We,at,Wt){C.assert(ge>=J,"generatedLine cannot backtrack"),C.assert(je>=0,"generatedCharacter cannot be negative"),C.assert(Ge===void 0||Ge>=0,"sourceIndex cannot be negative"),C.assert(We===void 0||We>=0,"sourceLine cannot be negative"),C.assert(at===void 0||at>=0,"sourceCharacter cannot be negative"),s(),(Ce(ge,je)||Xe(Ge,We,at))&&(Be(),J=ge,Z=je,de=!1,fe=!1,pe=!0),Ge!==void 0&&We!==void 0&&at!==void 0&&(q=Ge,ye=We,ie=at,de=!0,Wt!==void 0&&(K=Wt,fe=!0)),l()}function re(ge,je,Ge,We,at,Wt){C.assert(ge>=J,"generatedLine cannot backtrack"),C.assert(je>=0,"generatedCharacter cannot be negative"),s();let cn=[],gn,Kn=NU(Ge.mappings);for(let _t of Kn){if(Wt&&(_t.generatedLine>Wt.line||_t.generatedLine===Wt.line&&_t.generatedCharacter>Wt.character))break;if(at&&(_t.generatedLine<at.line||at.line===_t.generatedLine&&_t.generatedCharacter<at.character))continue;let en,ir,Di,lo;if(_t.sourceIndex!==void 0){if(en=cn[_t.sourceIndex],en===void 0){let Pr=Ge.sources[_t.sourceIndex],Ci=Ge.sourceRoot?Qr(Ge.sourceRoot,Pr):Pr,$e=Qr(ci(We),Ci);cn[_t.sourceIndex]=en=ve($e),Ge.sourcesContent&&typeof Ge.sourcesContent[_t.sourceIndex]=="string"&&xe(en,Ge.sourcesContent[_t.sourceIndex])}ir=_t.sourceLine,Di=_t.sourceCharacter,Ge.names&&_t.nameIndex!==void 0&&(gn||(gn=[]),lo=gn[_t.nameIndex],lo===void 0&&(gn[_t.nameIndex]=lo=Y(Ge.names[_t.nameIndex])))}let zt=_t.generatedLine-(at?at.line:0),Zr=zt+ge,Ai=at&&at.line===_t.generatedLine?_t.generatedCharacter-at.character:_t.generatedCharacter,Ni=zt===0?Ai+je:Ai;Se(Zr,Ni,en,ir,Di,lo)}l()}function be(){return!j||N!==J||P!==Z||k!==q||F!==ye||O!==ie||G!==K}function Ne(ge){A.push(ge),A.length>=1024&&lt()}function Be(){if(!(!pe||!be())){if(s(),N<J){do Ne(59),N++;while(N<J);P=0}else C.assertEqual(N,J,"generatedLine cannot backtrack"),j&&Ne(44);De(Z-P),P=Z,de&&(De(q-k),k=q,De(ye-F),F=ye,De(ie-O),O=ie,fe&&(De(K-G),G=K)),j=!0,l()}}function lt(){A.length>0&&(R+=String.fromCharCode.apply(void 0,A),A.length=0)}function ce(){return Be(),lt(),{version:3,file:t,sourceRoot:r,sources:d,names:v,mappings:R,sourcesContent:_}}function De(ge){ge<0?ge=(-ge<<1)+1:ge=ge<<1;do{let je=ge&31;ge=ge>>5,ge>0&&(je=je|32),Ne(sUe(je))}while(ge>0)}}var lae=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,RU=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,DU=/^\s*(\/\/[@#] .*)?$/;function CU(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function cae(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=RU.exec(r);if(i)return i[1].trimEnd();if(!r.match(DU))break}}function oUe(e){return typeof e=="string"||e===null}function aUe(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Mo(e.sources)&&Vn(e.sources,Bo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Mo(e.sourcesContent)&&Vn(e.sourcesContent,oUe))&&(e.names===void 0||e.names===null||Mo(e.names)&&Vn(e.names,Bo))}function dae(e){try{let t=JSON.parse(e);if(aUe(t))return t}catch{}}function NU(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,d=0,g;return{get pos(){return r},get error(){return g},get state(){return _(!0,!0)},next(){for(;!t&&r<e.length;){let k=e.charCodeAt(r);if(k===59){i++,o=0,r++;continue}if(k===44){r++;continue}let F=!1,O=!1;if(o+=P(),R())return v();if(o<0)return A("Invalid generatedCharacter found");if(!N()){if(F=!0,s+=P(),R())return v();if(s<0)return A("Invalid sourceIndex found");if(N())return A("Unsupported Format: No entries after sourceIndex");if(l+=P(),R())return v();if(l<0)return A("Invalid sourceLine found");if(N())return A("Unsupported Format: No entries after sourceLine");if(u+=P(),R())return v();if(u<0)return A("Invalid sourceCharacter found");if(!N()){if(O=!0,d+=P(),R())return v();if(d<0)return A("Invalid nameIndex found");if(!N())return A("Unsupported Error Format: Entries after nameIndex")}}return{value:_(F,O),done:t}}return v()},[Symbol.iterator](){return this}};function _(k,F){return{generatedLine:i,generatedCharacter:o,sourceIndex:k?s:void 0,sourceLine:k?l:void 0,sourceCharacter:k?u:void 0,nameIndex:F?d:void 0}}function v(){return t=!0,{value:void 0,done:!0}}function E(k){g===void 0&&(g=k)}function A(k){return E(k),v()}function R(){return g!==void 0}function N(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function P(){let k=!0,F=0,O=0;for(;k;r++){if(r>=e.length)return E("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let G=lUe(e.charCodeAt(r));if(G===-1)return E("Invalid character in VLQ"),-1;k=(G&32)!==0,O=O|(G&31)<<F,F+=5}return(O&1)===0?O=O>>1:(O=O>>1,O=-O),O}}function wSe(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 uae(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function sUe(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:C.fail(`${e}: not a base64 value`)}function lUe(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 OSe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function WSe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function cUe(e,t){return C.assert(e.sourceIndex===t.sourceIndex),js(e.sourcePosition,t.sourcePosition)}function dUe(e,t){return js(e.generatedPosition,t.generatedPosition)}function uUe(e){return e.sourcePosition}function pUe(e){return e.generatedPosition}function pae(e,t,r){let i=ci(r),o=t.sourceRoot?To(t.sourceRoot,i):i,s=To(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(F=>To(F,o)),d=new Map(u.map((F,O)=>[e.getCanonicalFileName(F),O])),g,_,v;return{getSourcePosition:k,getGeneratedPosition:P};function E(F){let O=l!==void 0?fL(l,F.generatedLine,F.generatedCharacter,!0):-1,G,j;if(uae(F)){let J=e.getSourceFileLike(u[F.sourceIndex]);G=t.sources[F.sourceIndex],j=J!==void 0?fL(J,F.sourceLine,F.sourceCharacter,!0):-1}return{generatedPosition:O,source:G,sourceIndex:F.sourceIndex,sourcePosition:j,nameIndex:F.nameIndex}}function A(){if(g===void 0){let F=NU(t.mappings),O=Co(F,E);F.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${F.error}`),g=ae):g=O}return g}function R(F){if(v===void 0){let O=[];for(let G of A()){if(!OSe(G))continue;let j=O[G.sourceIndex];j||(O[G.sourceIndex]=j=[]),j.push(G)}v=O.map(G=>dN(G,cUe,WSe))}return v[F]}function N(){if(_===void 0){let F=[];for(let O of A())F.push(O);_=dN(F,dUe,WSe)}return _}function P(F){let O=d.get(e.getCanonicalFileName(F.fileName));if(O===void 0)return F;let G=R(O);if(!vt(G))return F;let j=BA(G,F.pos,uUe,js);j<0&&(j=~j);let J=G[j];return J===void 0||J.sourceIndex!==O?F:{fileName:s,pos:J.generatedPosition}}function k(F){let O=N();if(!vt(O))return F;let G=BA(O,F.pos,pUe,js);G<0&&(G=~G);let j=O[G];return j===void 0||!OSe(j)?F:{fileName:u[j.sourceIndex],pos:j.sourcePosition}}}var MU={getSourcePosition:Vs,getGeneratedPosition:Vs};function Wu(e){return e=yl(e),e?ss(e):0}function FSe(e){return!e||!t_(e)&&!Hf(e)?!1:vt(e.elements,zSe)}function zSe(e){return C_(e.propertyName||e.name)}function hh(e,t){return r;function r(o){return o.kind===308?t(o):i(o)}function i(o){return e.factory.createBundle(Vt(o.sourceFiles,t))}}function fae(e){return!!UR(e)}function rF(e){if(UR(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!t_(t))return!1;let r=0;for(let i of t.elements)zSe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&QS(e)}function PU(e){return!rF(e)&&(QS(e)||!!e.importClause&&t_(e.importClause.namedBindings)&&FSe(e.importClause.namedBindings))}function LU(e,t){let r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new fUe,l=[],u=new Map,d=new Set,g,_=!1,v,E=!1,A=!1,R=!1;for(let F of t.statements)switch(F.kind){case 273:o.push(F),!A&&rF(F)&&(A=!0),!R&&PU(F)&&(R=!0);break;case 272:F.moduleReference.kind===284&&o.push(F);break;case 279:if(F.moduleSpecifier)if(!F.exportClause)o.push(F),E=!0;else if(o.push(F),Hf(F.exportClause))P(F),R||(R=FSe(F.exportClause));else{let O=F.exportClause.name,G=hb(O);u.get(G)||(oP(l,Wu(F),O),u.set(G,!0),g=Bn(g,O)),A=!0}else P(F);break;case 278:F.isExportEquals&&!v&&(v=F);break;case 244:if(di(F,32))for(let O of F.declarationList.declarations)g=BSe(O,u,g,l);break;case 263:di(F,32)&&k(F,void 0,di(F,2048));break;case 264:if(di(F,32))if(di(F,2048))_||(oP(l,Wu(F),e.factory.getDeclarationName(F)),_=!0);else{let O=F.name;O&&!u.get(Kr(O))&&(oP(l,Wu(F),O),u.set(Kr(O),!0),g=Bn(g,O))}break}let N=Rj(e.factory,e.getEmitHelperFactory(),t,i,E,A,R);return N&&o.unshift(N),{externalImports:o,exportSpecifiers:s,exportEquals:v,hasExportStarsToExportValues:E,exportedBindings:l,exportedNames:g,exportedFunctions:d,externalHelpersImportDeclaration:N};function P(F){for(let O of ma(F.exportClause,Hf).elements){let G=hb(O.name);if(!u.get(G)){let j=O.propertyName||O.name;if(j.kind!==11){F.moduleSpecifier||s.add(j,O);let J=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);if(J){if(J.kind===263){k(J,O.name,C_(O.name));continue}oP(l,Wu(J),O.name)}}u.set(G,!0),g=Bn(g,O.name)}}}function k(F,O,G){if(d.add(yl(F,Ql)),G)_||(oP(l,Wu(F),O??e.factory.getDeclarationName(F)),_=!0);else{O??(O=F.name);let j=hb(O);u.get(j)||(oP(l,Wu(F),O),u.set(j,!0))}}}function BSe(e,t,r,i){if(Qo(e.name))for(let o of e.name.elements)Kc(o)||(r=BSe(o,t,r,i));else if(!pl(e.name)){let o=Kr(e.name);t.get(o)||(t.set(o,!0),r=Bn(r,e.name),fy(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}var kD=class lN{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(lN.toKey(t))}get(t){return this._map.get(lN.toKey(t))}set(t,r){return this._map.set(lN.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(lN.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(GS(t)||pl(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=_w(t),o=cg(i)&&i!==t?lN.toKey(i):`(generated@${ss(i)})`;return Y0(!1,r.prefix,o,r.suffix,lN.toKey)}else{let i=`(auto@${r.id})`;return Y0(!1,r.prefix,i,r.suffix,lN.toKey)}}return eo(t)?Kr(t).slice(1):Kr(t)}},fUe=class extends kD{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){let r=this.get(e);r&&(jA(r,t),r.length||this.delete(e))}};function B1(e){return cs(e)||e.kind===9||Qu(e.kind)||He(e)}function F_(e){return!He(e)&&B1(e)}function aP(e){return e>=65&&e<=79}function sP(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 iF(e){if(!od(e))return;let t=ds(e.expression);return JS(t)?t:void 0}function GSe(e,t,r){for(let i=t;i<e.length;i+=1){let o=e[i];if(iF(o))return r.unshift(i),!0;if(mE(o)&&GSe(o.tryBlock.statements,0,r))return r.unshift(i),!0}return!1}function oF(e,t){let r=[];return GSe(e,t,r),r}function kU(e,t,r){return Un(e.members,i=>hUe(i,t,r))}function mUe(e){return _Ue(e)||$l(e)}function aF(e){return Un(e.members,mUe)}function hUe(e,t,r){return Po(e)&&(!!e.initializer||!t)&&Wc(e)===r}function _Ue(e){return Po(e)&&Wc(e)}function kw(e){return e.kind===173&&e.initializer!==void 0}function mae(e){return!ua(e)&&($A(e)||Ku(e))&&eo(e.name)}function hae(e){let t;if(e){let r=e.parameters,i=r.length>0&&vb(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;l<s;l++){let u=r[l+o];(t||uf(u))&&(t||(t=new Array(s)),t[l]=ob(u))}}return t}function wU(e,t){let r=ob(e),i=t?hae(gg(e)):void 0;if(!(!vt(r)&&!vt(i)))return{decorators:r,parameters:i}}function sF(e,t,r){switch(e.kind){case 178:case 179:return r?gUe(e,t):VSe(e,!1);case 175:return VSe(e,r);case 173:return yUe(e);default:return}}function gUe(e,t,r){if(!e.body)return;let{firstAccessor:i,secondAccessor:o,getAccessor:s,setAccessor:l}=E1(t.members,e),u=uf(i)?i:o&&uf(o)?o:void 0;if(!u||e!==u)return;let d=ob(u),g=hae(l);if(!(!vt(d)&&!vt(g)))return{decorators:d,parameters:g,getDecorators:s&&ob(s),setDecorators:l&&ob(l)}}function VSe(e,t){if(!e.body)return;let r=ob(e),i=t?hae(e):void 0;if(!(!vt(r)&&!vt(i)))return{decorators:r,parameters:i}}function yUe(e){let t=ob(e);if(vt(t))return{decorators:t}}function vUe(e,t){for(;e;){let r=t(e);if(r!==void 0)return r;e=e.previous}}function _ae(e){return{data:e}}function OU(e,t){var r,i;return GS(t)?(r=e?.generatedIdentifiers)==null?void 0:r.get(_w(t)):(i=e?.identifiers)==null?void 0:i.get(t.escapedText)}function AE(e,t,r){GS(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(_w(t),r)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function gae(e,t){return vUe(e,r=>OU(r.privateEnv,t))}function bUe(e){return!e.initializer&&He(e.name)}function ww(e){return Vn(e,bUe)}function YI(e,t){if(!e||!ka(e)||!dk(e.text,t))return e;let r=rv(e.text,Vw(e.text,t));return r!==e.text?jr(bt(L.createStringLiteral(r,e.singleQuote),e),e):e}var yae=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(yae||{});function IE(e,t,r,i,o,s){let l=e,u;if(ev(e))for(u=e.right;zne(e.left)||rV(e.left);)if(ev(u))l=e=u,u=e.right;else return C.checkDefined(st(u,t,St));let d,g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:v,createArrayBindingOrAssignmentPattern:E=>DUe(r.factory,E),createObjectBindingOrAssignmentPattern:E=>NUe(r.factory,E),createArrayBindingOrAssignmentElement:PUe,visitor:t};if(u&&(u=st(u,t,St),C.assert(u),He(u)&&vae(e,u.escapedText)||bae(e)?u=$I(g,u,!1,l):o?u=$I(g,u,!0,l):Os(e)&&(l=u)),lP(g,e,u,l,ev(e)),u&&o){if(!vt(d))return u;d.push(u)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function _(E){d=Bn(d,E)}function v(E,A,R,N){C.assertNode(E,s?He:St);let P=s?s(E,A,R):bt(r.factory.createAssignment(C.checkDefined(st(E,t,St)),A),R);P.original=N,_(P)}}function vae(e,t){let r=Mb(e);return CL(r)?TUe(r,t):He(r)?r.escapedText===t:!1}function TUe(e,t){let r=AD(e);for(let i of r)if(vae(i,t))return!0;return!1}function bae(e){let t=S3(e);if(t&&va(t)&&!BS(t.expression))return!0;let r=Mb(e);return!!r&&CL(r)&&SUe(r)}function SUe(e){return!!Je(AD(e),bae)}function G1(e,t,r,i,o,s=!1,l){let u,d=[],g=[],_={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:v,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:A=>RUe(r.factory,A),createObjectBindingOrAssignmentPattern:A=>CUe(r.factory,A),createArrayBindingOrAssignmentElement:A=>MUe(r.factory,A),visitor:t};if(yi(e)){let A=mw(e);A&&(He(A)&&vae(e,A.escapedText)||bae(e))&&(A=$I(_,C.checkDefined(st(A,_.visitor,St)),!1,A),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,A))}if(lP(_,e,o,e,l),u){let A=r.factory.createTempVariable(void 0);if(s){let R=r.factory.inlineExpressions(u);u=void 0,E(A,R,void 0,void 0)}else{r.hoistVariableDeclaration(A);let R=Ba(d);R.pendingExpressions=Bn(R.pendingExpressions,r.factory.createAssignment(A,R.value)),Xr(R.pendingExpressions,u),R.value=A}}for(let{pendingExpressions:A,name:R,value:N,location:P,original:k}of d){let F=r.factory.createVariableDeclaration(R,void 0,void 0,A?r.factory.inlineExpressions(Bn(A,N)):N);F.original=k,bt(F,P),g.push(F)}return g;function v(A){u=Bn(u,A)}function E(A,R,N,P){C.assertNode(A,VS),u&&(R=r.factory.inlineExpressions(Bn(u,R)),u=void 0),d.push({pendingExpressions:u,name:A,value:R,location:N,original:P})}}function lP(e,t,r,i,o){let s=Mb(t);if(!o){let l=st(mw(t),e.visitor,St);l?r?(r=IUe(e,r,l,i),!F_(l)&&CL(s)&&(r=$I(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}zB(s)?EUe(e,t,s,r,i):BB(s)?AUe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function EUe(e,t,r,i,o){let s=AD(r),l=s.length;if(l!==1){let g=!DL(t)||l!==0;i=$I(e,i,g,o)}let u,d;for(let g=0;g<l;g++){let _=s[g];if(T3(_)){if(g===l-1){u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);let v=e.context.getEmitHelperFactory().createRestHelper(i,s,d,r);lP(e,_,v,_)}}else{let v=Dj(_);if(e.level>=1&&!(_.transformFlags&98304)&&!(Mb(_).transformFlags&98304)&&!va(v))u=Bn(u,st(_,e.visitor,ite));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);let E=xUe(e,i,v);va(v)&&(d=Bn(d,E.argumentExpression)),lP(e,_,E,_)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function AUe(e,t,r,i,o){let s=AD(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=$I(e,bt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&T3(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Vn(s,Kc)){let g=!DL(t)||l!==0;i=$I(e,i,g,o)}let u,d;for(let g=0;g<l;g++){let _=s[g];if(e.level>=1)if(_.transformFlags&65536||e.hasTransformedPriorElement&&!jSe(_)){e.hasTransformedPriorElement=!0;let v=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(v),d=Bn(d,[v,_]),u=Bn(u,e.createArrayBindingOrAssignmentElement(v))}else u=Bn(u,_);else{if(Kc(_))continue;if(T3(_)){if(g===l-1){let v=e.context.factory.createArraySliceCall(i,g);lP(e,_,v,_)}}else{let v=e.context.factory.createElementAccessExpression(i,g);lP(e,_,v,_)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),d)for(let[g,_]of d)lP(e,_,g,_)}function jSe(e){let t=Mb(e);if(!t||Kc(t))return!0;let r=S3(e);if(r&&!Hh(r))return!1;let i=mw(e);return i&&!F_(i)?!1:CL(t)?Vn(AD(t),jSe):He(t)}function IUe(e,t,r,i){return t=$I(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function xUe(e,t,r){let{factory:i}=e.context;if(va(r)){let o=$I(e,C.checkDefined(st(r.expression,e.visitor,St)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(df(r)||cD(r)){let o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{let o=e.context.factory.createIdentifier(Kr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function $I(e,t,r,i){if(He(t)&&r)return t;{let o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(bt(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function RUe(e,t){return C.assertEachNode(t,c6),e.createArrayBindingPattern(t)}function DUe(e,t){return C.assertEachNode(t,ML),e.createArrayLiteralExpression(Vt(t,e.converters.convertToArrayAssignmentElement))}function CUe(e,t){return C.assertEachNode(t,Ha),e.createObjectBindingPattern(t)}function NUe(e,t){return C.assertEachNode(t,NL),e.createObjectLiteralExpression(Vt(t,e.converters.convertToObjectAssignmentElement))}function MUe(e,t){return e.createBindingElement(void 0,void 0,t)}function PUe(e){return e}function LUe(e,t,r=e.createThis()){let i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return jd(l).classThis=t,l}function cP(e){var t;if(!$l(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return od(r)&&id(r.expression,!0)&&He(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function WU(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&vt(e.members,cP)}function Tae(e,t,r,i){if(WU(t))return t;let o=LUe(e,r,i);t.name&&Ua(o.body.statements[0],t.name);let s=e.createNodeArray([o,...t.members]);bt(s,t.members);let l=Cc(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 jd(l).classThis=r,l}function lF(e,t,r){let i=yl(Ul(r));return(Cc(i)||Ql(i))&&!i.name&&di(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function USe(e,t,r){let{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(Hh(t)||eo(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Hh(t.expression)&&!He(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);let s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function kUe(e,t,r=e.factory.createThis()){let{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return jd(u).assignedName=t,u}function QI(e){var t;if(!$l(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return od(r)&&kM(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function cF(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&vt(e.members,QI)}function FU(e){return!!e.name||cF(e)}function dF(e,t,r,i){if(cF(t))return t;let{factory:o}=e,s=kUe(e,r,i);t.name&&Ua(s.body.statements[0],t.name);let l=ho(t.members,cP)+1,u=t.members.slice(0,l),d=t.members.slice(l),g=o.createNodeArray([...u,s,...d]);return bt(g,t.members),t=Cc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),jd(t).assignedName=r,t}function wD(e,t,r,i){if(i&&ka(r)&&yG(r))return t;let{factory:o}=e,s=Ul(t),l=uc(s)?ma(dF(e,s,r),uc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function wUe(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=USe(e,t.name,i),u=wD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function OUe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):lF(o,t.name,t.objectAssignmentInitializer),l=wD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function WUe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):lF(o,t.name,t.initializer),l=wD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function FUe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):lF(o,t.name,t.initializer),l=wD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function zUe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):lF(o,t.name,t.initializer),l=wD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function BUe(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=USe(e,t.name,i),u=wD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function GUe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):lF(o,t.left,t.right),l=wD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function VUe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=wD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function Wp(e,t,r,i){switch(t.kind){case 304:return wUe(e,t,r,i);case 305:return OUe(e,t,r,i);case 261:return WUe(e,t,r,i);case 170:return FUe(e,t,r,i);case 209:return zUe(e,t,r,i);case 173:return BUe(e,t,r,i);case 227:return GUe(e,t,r,i);case 278:return VUe(e,t,r,i)}}var Sae=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Sae||{});function zU(e,t,r,i,o,s){let l=st(t.tag,r,St);C.assert(l);let u=[void 0],d=[],g=[],_=t.template;if(s===0&&!BG(_))return kn(t,r,e);let{factory:v}=e;if(lE(_))d.push(Eae(v,_)),g.push(Aae(v,_,i));else{d.push(Eae(v,_.head)),g.push(Aae(v,_.head,i));for(let A of _.templateSpans)d.push(Eae(v,A.literal)),g.push(Aae(v,A.literal,i)),u.push(C.checkDefined(st(A.expression,r,St)))}let E=e.getEmitHelperFactory().createTemplateObjectHelper(v.createArrayLiteralExpression(d),v.createArrayLiteralExpression(g));if(Gc(i)){let A=v.createUniqueName("templateObject");o(A),u[0]=v.createLogicalOr(A,v.createAssignment(A,E))}else u[0]=E;return v.createCallExpression(l,void 0,u)}function Eae(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Aae(e,t,r){let i=t.rawText;if(i===void 0){C.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=u1(r,t);let o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,`
`),bt(e.createStringLiteral(i),t)}function Iae(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),d=e.getCompilerOptions(),g=Ga(d),_=vu(d),v=!!d.experimentalDecorators,E=d.emitDecoratorMetadata?Rae(e):void 0,A=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=Zl,e.onSubstituteNode=vf,e.enableSubstitution(212),e.enableSubstitution(213);let N,P,k,F,O,G=0,j;return J;function J(Ee){return Ee.kind===309?Z(Ee):q(Ee)}function Z(Ee){return t.createBundle(Ee.sourceFiles.map(q))}function q(Ee){if(Ee.isDeclarationFile)return Ee;N=Ee;let $=ye(Ee,De);return Eg($,e.readEmitHelpers()),N=void 0,$}function ye(Ee,$){let pt=F,qt=O;ie(Ee);let fn=$(Ee);return F!==pt&&(O=qt),F=pt,fn}function ie(Ee){switch(Ee.kind){case 308:case 270:case 269:case 242:F=Ee,O=void 0;break;case 264:case 263:if(di(Ee,128))break;Ee.name?B(Ee):C.assert(Ee.kind===264||di(Ee,2048));break}}function K(Ee){return ye(Ee,pe)}function pe(Ee){return Ee.transformFlags&1?ce(Ee):Ee}function de(Ee){return ye(Ee,fe)}function fe(Ee){switch(Ee.kind){case 273:case 272:case 278:case 279:return xe(Ee);default:return pe(Ee)}}function ve(Ee){let $=jo(Ee);if($===Ee||ll(Ee))return!1;if(!$||$.kind!==Ee.kind)return!0;switch(Ee.kind){case 273:if(C.assertNode($,vl),Ee.importClause!==$.importClause||Ee.attributes!==$.attributes)return!0;break;case 272:if(C.assertNode($,Bc),Ee.name!==$.name||Ee.isTypeOnly!==$.isTypeOnly||Ee.moduleReference!==$.moduleReference&&(Nu(Ee.moduleReference)||Nu($.moduleReference)))return!0;break;case 279:if(C.assertNode($,fc),Ee.exportClause!==$.exportClause||Ee.attributes!==$.attributes)return!0;break}return!1}function xe(Ee){if(ve(Ee))return Ee.transformFlags&1?kn(Ee,K,e):Ee;switch(Ee.kind){case 273:return Bt(Ee);case 272:return En(Ee);case 278:return ft(Ee);case 279:return Mt(Ee);default:C.fail("Unhandled ellided statement")}}function Y(Ee){return ye(Ee,Ce)}function Ce(Ee){if(!(Ee.kind===279||Ee.kind===273||Ee.kind===274||Ee.kind===272&&Ee.moduleReference.kind===284))return Ee.transformFlags&1||di(Ee,32)?ce(Ee):Ee}function Xe(Ee){return $=>ye($,pt=>Se(pt,Ee))}function Se(Ee,$){switch(Ee.kind){case 177:return $e(Ee);case 173:return Ci(Ee,$);case 178:return qi(Ee,$);case 179:return $o(Ee,$);case 175:return ri(Ee,$);case 176:return kn(Ee,K,e);case 241:return Ee;case 182:return;default:return C.failBadSyntaxKind(Ee)}}function re(Ee){return $=>ye($,pt=>be(pt,Ee))}function be(Ee,$){switch(Ee.kind){case 304:case 305:case 306:return K(Ee);case 178:return qi(Ee,$);case 179:return $o(Ee,$);case 175:return ri(Ee,$);default:return C.failBadSyntaxKind(Ee)}}function Ne(Ee){return zc(Ee)?void 0:K(Ee)}function Be(Ee){return Aa(Ee)?void 0:K(Ee)}function lt(Ee){if(!zc(Ee)&&!(hI(Ee.kind)&28895)&&!(P&&Ee.kind===95))return Ee}function ce(Ee){if(ji(Ee)&&di(Ee,128))return t.createNotEmittedStatement(Ee);switch(Ee.kind){case 95:case 90:return P?void 0:Ee;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:return;case 266:return t.createNotEmittedStatement(Ee);case 271:return;case 265:return t.createNotEmittedStatement(Ee);case 264:return at(Ee);case 232:return Wt(Ee);case 299:return Ai(Ee);case 234:return Ni(Ee);case 211:return ge(Ee);case 177:case 173:case 175:case 178:case 179:case 176:return C.fail("Class and object literal elements must be visited with their respective visitors");case 263:return Ia(Ee);case 219:return Mn(Ee);case 220:return Uo(Ee);case 170:return ot(Ee);case 218:return ne(Ee);case 217:case 235:return Fe(Ee);case 239:return dt(Ee);case 214:return Lt(Ee);case 215:return Ue(Ee);case 216:return Rt(Ee);case 236:return it(Ee);case 267:return Kt(Ee);case 244:return Ft(Ee);case 261:return ht(Ee);case 268:return Xt(Ee);case 272:return En(Ee);case 286:return It(Ee);case 287:return Ot(Ee);default:return kn(Ee,K,e)}}function De(Ee){let $=Vd(d,"alwaysStrict")&&!(Gc(Ee)&&_>=5)&&!Of(Ee);return t.updateSourceFile(Ee,xU(Ee.statements,de,e,0,$))}function ge(Ee){return t.updateObjectLiteralExpression(Ee,Xn(Ee.properties,re(Ee),ny))}function je(Ee){let $=0;vt(kU(Ee,!0,!0))&&($|=1);let pt=lh(Ee);return pt&&Ul(pt.expression).kind!==106&&($|=64),Qy(v,Ee)&&($|=2),HN(v,Ee)&&($|=4),xn(Ee)?$|=8:Ii(Ee)?$|=32:ln(Ee)&&($|=16),$}function Ge(Ee){return!!(Ee.transformFlags&8192)}function We(Ee){return uf(Ee)||vt(Ee.typeParameters)||vt(Ee.heritageClauses,Ge)||vt(Ee.members,Ge)}function at(Ee){let $=je(Ee),pt=g<=1&&!!($&7);if(!We(Ee)&&!Qy(v,Ee)&&!xn(Ee))return t.updateClassDeclaration(Ee,Xn(Ee.modifiers,lt,Aa),Ee.name,void 0,Xn(Ee.heritageClauses,K,Op),Xn(Ee.members,Xe(Ee),Tc));pt&&e.startLexicalEnvironment();let qt=pt||$&8,fn=qt?Xn(Ee.modifiers,Be,fl):Xn(Ee.modifiers,K,fl);$&2&&(fn=gn(fn,Ee));let si=qt&&!Ee.name||$&4||$&1?Ee.name??t.getGeneratedNameForNode(Ee):Ee.name,Dr=t.updateClassDeclaration(Ee,fn,si,void 0,Xn(Ee.heritageClauses,K,Op),cn(Ee)),Fn=Qa(Ee);$&1&&(Fn|=64),Cr(Dr,Fn);let ro;if(pt){let So=[Dr],Ns=oV(La(N.text,Ee.members.end),20),Da=t.getInternalName(Ee),Qs=t.createPartiallyEmittedExpression(Da);aD(Qs,Ns.end),Cr(Qs,3072);let Ec=t.createReturnStatement(Qs);IM(Ec,Ns.pos),Cr(Ec,3840),So.push(Ec),fg(So,e.endLexicalEnvironment());let mc=t.createImmediatelyInvokedArrowFunction(So);Zk(mc,1);let Hs=t.createVariableDeclaration(t.getLocalName(Ee,!1,!1),void 0,void 0,mc);jr(Hs,Ee);let Pl=t.createVariableStatement(void 0,t.createVariableDeclarationList([Hs],1));jr(Pl,Ee),Dc(Pl,Ee),Ua(Pl,ly(Ee)),ou(Pl),ro=Pl}else ro=Dr;if(qt){if($&8)return[ro,ra(Ee)];if($&32)return[ro,t.createExportDefault(t.getLocalName(Ee,!1,!0))];if($&16)return[ro,t.createExternalModuleExport(t.getDeclarationName(Ee,!1,!0))]}return ro}function Wt(Ee){let $=Xn(Ee.modifiers,Be,fl);return Qy(v,Ee)&&($=gn($,Ee)),t.updateClassExpression(Ee,$,Ee.name,void 0,Xn(Ee.heritageClauses,K,Op),cn(Ee))}function cn(Ee){let $=Xn(Ee.members,Xe(Ee),Tc),pt,qt=gg(Ee),fn=qt&&Un(qt.parameters,ur=>Dp(ur,qt));if(fn)for(let ur of fn){let si=t.createPropertyDeclaration(void 0,ur.name,void 0,void 0,void 0);jr(si,ur),pt=Bn(pt,si)}return pt?(pt=Xr(pt,$),bt(t.createNodeArray(pt),Ee.members)):$}function gn(Ee,$){let pt=_t($,$);if(vt(pt)){let qt=[];Xr(qt,Bz(Ee,hw)),Xr(qt,Un(Ee,zc)),Xr(qt,pt),Xr(qt,Un(QQ(Ee,hw),Aa)),Ee=bt(t.createNodeArray(qt),Ee)}return Ee}function Kn(Ee,$,pt){if(ui(pt)&&gG(v,$,pt)){let qt=_t($,pt);if(vt(qt)){let fn=[];Xr(fn,Un(Ee,zc)),Xr(fn,qt),Xr(fn,Un(Ee,Aa)),Ee=bt(t.createNodeArray(fn),Ee)}}return Ee}function _t(Ee,$){if(v)return en(Ee,$)}function en(Ee,$){if(E){let pt;if(ir(Ee)){let qt=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:F,currentNameScope:$},Ee,$));pt=Bn(pt,t.createDecorator(qt))}if(lo(Ee)){let qt=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:F,currentNameScope:$},Ee,$));pt=Bn(pt,t.createDecorator(qt))}if(Di(Ee)){let qt=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:F,currentNameScope:$},Ee));pt=Bn(pt,t.createDecorator(qt))}return pt}}function ir(Ee){let $=Ee.kind;return $===175||$===178||$===179||$===173}function Di(Ee){return Ee.kind===175}function lo(Ee){switch(Ee.kind){case 264:case 232:return gg(Ee)!==void 0;case 175:case 178:case 179:return!0}return!1}function zt(Ee,$){let pt=Ee.name;return eo(pt)?t.createIdentifier(""):va(pt)?pt.expression:He(pt)?t.createStringLiteral(Kr(pt)):t.cloneNode(pt)}function Zr(Ee){let $=Ee.name;if(v&&va($)&&uf(Ee)){let pt=st($.expression,K,St);C.assert(pt);let qt=Om(pt);if(!F_(qt)){let fn=t.getGeneratedNameForNode($);return l(fn),t.updateComputedPropertyName($,t.createAssignment(fn,pt))}}return C.checkDefined(st($,K,bc))}function Ai(Ee){if(Ee.token!==119)return kn(Ee,K,e)}function Ni(Ee){return t.updateExpressionWithTypeArguments(Ee,C.checkDefined(st(Ee.expression,K,Xu)),void 0)}function Pr(Ee){return!Ol(Ee.body)}function Ci(Ee,$){let pt=Ee.flags&33554432||di(Ee,64);if(pt&&!(v&&uf(Ee)))return;let qt=ui($)?pt?Xn(Ee.modifiers,Be,fl):Xn(Ee.modifiers,K,fl):Xn(Ee.modifiers,Ne,fl);return qt=Kn(qt,Ee,$),pt?t.updatePropertyDeclaration(Ee,so(qt,t.createModifiersFromModifierFlags(128)),C.checkDefined(st(Ee.name,K,bc)),void 0,void 0,void 0):t.updatePropertyDeclaration(Ee,qt,Zr(Ee),void 0,void 0,st(Ee.initializer,K,St))}function $e(Ee){if(Pr(Ee))return t.updateConstructorDeclaration(Ee,void 0,Fl(Ee.parameters,K,e),mn(Ee.body,Ee))}function At(Ee,$,pt,qt,fn,ur){let si=qt[fn],Dr=$[si];if(Xr(Ee,Xn($,K,ji,pt,si-pt)),mE(Dr)){let Fn=[];At(Fn,Dr.tryBlock.statements,0,qt,fn+1,ur);let ro=t.createNodeArray(Fn);bt(ro,Dr.tryBlock.statements),Ee.push(t.updateTryStatement(Dr,t.updateBlock(Dr.tryBlock,Fn),st(Dr.catchClause,K,O1),st(Dr.finallyBlock,K,ea)))}else Xr(Ee,Xn($,K,ji,si,1)),Xr(Ee,ur);Xr(Ee,Xn($,K,ji,si+1))}function mn(Ee,$){let pt=$&&Un($.parameters,Fn=>Dp(Fn,$));if(!vt(pt))return _f(Ee,K,e);let qt=[];o();let fn=t.copyPrologue(Ee.statements,qt,!1,K),ur=oF(Ee.statements,fn),si=Ui(pt,dr);ur.length?At(qt,Ee.statements,fn,ur,0,si):(Xr(qt,si),Xr(qt,Xn(Ee.statements,K,ji,fn))),qt=t.mergeLexicalEnvironment(qt,s());let Dr=t.createBlock(bt(t.createNodeArray(qt),Ee.statements),!0);return bt(Dr,Ee),jr(Dr,Ee),Dr}function dr(Ee){let $=Ee.name;if(!He($))return;let pt=us(bt(t.cloneNode($),$),$.parent);Cr(pt,3168);let qt=us(bt(t.cloneNode($),$),$.parent);return Cr(qt,3072),ou(Qk(bt(jr(t.createExpressionStatement(t.createAssignment(bt(t.createPropertyAccessExpression(t.createThis(),pt),Ee.name),qt)),Ee),W0(Ee,-1))))}function ri(Ee,$){if(!(Ee.transformFlags&1))return Ee;if(!Pr(Ee))return;let pt=ui($)?Xn(Ee.modifiers,K,fl):Xn(Ee.modifiers,Ne,fl);return pt=Kn(pt,Ee,$),t.updateMethodDeclaration(Ee,pt,Ee.asteriskToken,Zr(Ee),void 0,void 0,Fl(Ee.parameters,K,e),void 0,_f(Ee.body,K,e))}function ai(Ee){return!(Ol(Ee.body)&&di(Ee,64))}function qi(Ee,$){if(!(Ee.transformFlags&1))return Ee;if(!ai(Ee))return;let pt=ui($)?Xn(Ee.modifiers,K,fl):Xn(Ee.modifiers,Ne,fl);return pt=Kn(pt,Ee,$),t.updateGetAccessorDeclaration(Ee,pt,Zr(Ee),Fl(Ee.parameters,K,e),void 0,_f(Ee.body,K,e)||t.createBlock([]))}function $o(Ee,$){if(!(Ee.transformFlags&1))return Ee;if(!ai(Ee))return;let pt=ui($)?Xn(Ee.modifiers,K,fl):Xn(Ee.modifiers,Ne,fl);return pt=Kn(pt,Ee,$),t.updateSetAccessorDeclaration(Ee,pt,Zr(Ee),Fl(Ee.parameters,K,e),_f(Ee.body,K,e)||t.createBlock([]))}function Ia(Ee){if(!Pr(Ee))return t.createNotEmittedStatement(Ee);let $=t.updateFunctionDeclaration(Ee,Xn(Ee.modifiers,lt,Aa),Ee.asteriskToken,Ee.name,void 0,Fl(Ee.parameters,K,e),void 0,_f(Ee.body,K,e)||t.createBlock([]));if(xn(Ee)){let pt=[$];return sa(pt,Ee),pt}return $}function Mn(Ee){return Pr(Ee)?t.updateFunctionExpression(Ee,Xn(Ee.modifiers,lt,Aa),Ee.asteriskToken,Ee.name,void 0,Fl(Ee.parameters,K,e),void 0,_f(Ee.body,K,e)||t.createBlock([])):t.createOmittedExpression()}function Uo(Ee){return t.updateArrowFunction(Ee,Xn(Ee.modifiers,lt,Aa),void 0,Fl(Ee.parameters,K,e),void 0,Ee.equalsGreaterThanToken,_f(Ee.body,K,e))}function ot(Ee){if(vb(Ee))return;let $=t.updateParameterDeclaration(Ee,Xn(Ee.modifiers,pt=>zc(pt)?K(pt):void 0,fl),Ee.dotDotDotToken,C.checkDefined(st(Ee.name,K,VS)),void 0,void 0,st(Ee.initializer,K,St));return $!==Ee&&(Dc($,Ee),bt($,Xh(Ee)),Ua($,Xh(Ee)),Cr($.name,64)),$}function Ft(Ee){if(xn(Ee)){let $=fM(Ee.declarationList);return $.length===0?void 0:bt(t.createExpressionStatement(t.inlineExpressions(Vt($,le))),Ee)}else return kn(Ee,K,e)}function le(Ee){let $=Ee.name;return Qo($)?IE(Ee,K,e,0,!1,Bl):bt(t.createAssignment(xl($),C.checkDefined(st(Ee.initializer,K,St))),Ee)}function ht(Ee){let $=t.updateVariableDeclaration(Ee,C.checkDefined(st(Ee.name,K,VS)),void 0,void 0,st(Ee.initializer,K,St));return Ee.type&&tie($.name,Ee.type),$}function ne(Ee){let $=Ul(Ee.expression,-55);if(d1($)||mD($)){let pt=st(Ee.expression,K,St);return C.assert(pt),t.createPartiallyEmittedExpression(pt,Ee)}return kn(Ee,K,e)}function Fe(Ee){let $=st(Ee.expression,K,St);return C.assert($),t.createPartiallyEmittedExpression($,Ee)}function it(Ee){let $=st(Ee.expression,K,Xu);return C.assert($),t.createPartiallyEmittedExpression($,Ee)}function dt(Ee){let $=st(Ee.expression,K,St);return C.assert($),t.createPartiallyEmittedExpression($,Ee)}function Lt(Ee){return t.updateCallExpression(Ee,C.checkDefined(st(Ee.expression,K,St)),void 0,Xn(Ee.arguments,K,St))}function Ue(Ee){return t.updateNewExpression(Ee,C.checkDefined(st(Ee.expression,K,St)),void 0,Xn(Ee.arguments,K,St))}function Rt(Ee){return t.updateTaggedTemplateExpression(Ee,C.checkDefined(st(Ee.tag,K,St)),void 0,C.checkDefined(st(Ee.template,K,QA)))}function It(Ee){return t.updateJsxSelfClosingElement(Ee,C.checkDefined(st(Ee.tagName,K,WN)),void 0,C.checkDefined(st(Ee.attributes,K,w1)))}function Ot(Ee){return t.updateJsxOpeningElement(Ee,C.checkDefined(st(Ee.tagName,K,WN)),void 0,C.checkDefined(st(Ee.attributes,K,w1)))}function nt(Ee){return!C0(Ee)||Sb(d)}function Kt(Ee){if(!nt(Ee))return t.createNotEmittedStatement(Ee);let $=[],pt=4,qt=xt($,Ee);qt&&(_!==4||F!==N)&&(pt|=1024);let fn=Ps(Ee),ur=co(Ee),si=xn(Ee)?t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0):t.getDeclarationName(Ee,!1,!0),Dr=t.createLogicalOr(si,t.createAssignment(si,t.createObjectLiteralExpression()));if(xn(Ee)){let ro=t.getLocalName(Ee,!1,!0);Dr=t.createAssignment(ro,Dr)}let Fn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fn)],void 0,Sr(Ee,ur)),void 0,[Dr]));return jr(Fn,Ee),qt&&(B0(Fn,void 0),DI(Fn,void 0)),bt(Fn,Ee),$h(Fn,pt),$.push(Fn),$}function Sr(Ee,$){let pt=k;k=$;let qt=[];i();let fn=Vt(Ee.members,Oe);return fg(qt,s()),Xr(qt,fn),k=pt,t.createBlock(bt(t.createNodeArray(qt),Ee.members),!0)}function Oe(Ee){let $=zt(Ee),pt=u.getEnumMemberValue(Ee),qt=Nt(Ee,pt?.value),fn=t.createAssignment(t.createElementAccessExpression(k,$),qt),ur=typeof pt?.value=="string"||pt?.isSyntacticallyString?fn:t.createAssignment(t.createElementAccessExpression(k,fn),$);return bt(t.createExpressionStatement(bt(ur,Ee)),Ee)}function Nt(Ee,$){return $!==void 0?typeof $=="string"?t.createStringLiteral($):$<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-$)):t.createNumericLiteral($):(Go(),Ee.initializer?C.checkDefined(st(Ee.initializer,K,St)):t.createVoidZero())}function _e(Ee){let $=jo(Ee,pc);return $?AU($,Sb(d)):!0}function B(Ee){O||(O=new Map);let $=te(Ee);O.has($)||O.set($,Ee)}function Ae(Ee){if(O){let $=te(Ee);return O.get($)===Ee}return!0}function te(Ee){return C.assertNode(Ee.name,He),Ee.name.escapedText}function xt(Ee,$){let pt=t.createVariableDeclaration(t.getLocalName($,!1,!0)),qt=F.kind===308?0:1,fn=t.createVariableStatement(Xn($.modifiers,lt,Aa),t.createVariableDeclarationList([pt],qt));return jr(pt,$),B0(pt,void 0),DI(pt,void 0),jr(fn,$),B($),Ae($)?($.kind===267?Ua(fn.declarationList,$):Ua(fn,$),Dc(fn,$),$h(fn,2048),Ee.push(fn),!0):!1}function Xt(Ee){if(!_e(Ee))return t.createNotEmittedStatement(Ee);C.assertNode(Ee.name,He,"A TypeScript namespace should have an Identifier name."),Sc();let $=[],pt=4,qt=xt($,Ee);qt&&(_!==4||F!==N)&&(pt|=1024);let fn=Ps(Ee),ur=co(Ee),si=xn(Ee)?t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0):t.getDeclarationName(Ee,!1,!0),Dr=t.createLogicalOr(si,t.createAssignment(si,t.createObjectLiteralExpression()));if(xn(Ee)){let ro=t.getLocalName(Ee,!1,!0);Dr=t.createAssignment(ro,Dr)}let Fn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fn)],void 0,Le(Ee,ur)),void 0,[Dr]));return jr(Fn,Ee),qt&&(B0(Fn,void 0),DI(Fn,void 0)),bt(Fn,Ee),$h(Fn,pt),$.push(Fn),$}function Le(Ee,$){let pt=k,qt=P,fn=O;k=$,P=Ee,O=void 0;let ur=[];i();let si,Dr;if(Ee.body)if(Ee.body.kind===269)ye(Ee.body,ro=>Xr(ur,Xn(ro.statements,Y,ji))),si=Ee.body.statements,Dr=Ee.body;else{let ro=Xt(Ee.body);ro&&(Mo(ro)?Xr(ur,ro):ur.push(ro));let So=gt(Ee).body;si=W0(So.statements,-1)}fg(ur,s()),k=pt,P=qt,O=fn;let Fn=t.createBlock(bt(t.createNodeArray(ur),si),!0);return bt(Fn,Dr),(!Ee.body||Ee.body.kind!==269)&&Cr(Fn,Qa(Fn)|3072),Fn}function gt(Ee){if(Ee.body.kind===268)return gt(Ee.body)||Ee.body}function Bt(Ee){if(!Ee.importClause)return Ee;if(Ee.importClause.isTypeOnly)return;let $=st(Ee.importClause,gr,Gm);return $?t.updateImportDeclaration(Ee,void 0,$,Ee.moduleSpecifier,Ee.attributes):void 0}function gr(Ee){C.assert(Ee.phaseModifier!==156);let $=Fs(Ee)?Ee.name:void 0,pt=st(Ee.namedBindings,tr,UB);return $||pt?t.updateImportClause(Ee,Ee.phaseModifier,$,pt):void 0}function tr(Ee){if(Ee.kind===275)return Fs(Ee)?Ee:void 0;{let $=d.verbatimModuleSyntax,pt=Xn(Ee.elements,Jn,Su);return $||vt(pt)?t.updateNamedImports(Ee,pt):void 0}}function Jn(Ee){return!Ee.isTypeOnly&&Fs(Ee)?Ee:void 0}function ft(Ee){return d.verbatimModuleSyntax||u.isValueAliasDeclaration(Ee)?kn(Ee,K,e):void 0}function Mt(Ee){if(Ee.isTypeOnly)return;if(!Ee.exportClause||w_(Ee.exportClause))return t.updateExportDeclaration(Ee,Ee.modifiers,Ee.isTypeOnly,Ee.exportClause,Ee.moduleSpecifier,Ee.attributes);let $=!!d.verbatimModuleSyntax,pt=st(Ee.exportClause,qt=>In(qt,$),LB);return pt?t.updateExportDeclaration(Ee,void 0,Ee.isTypeOnly,pt,Ee.moduleSpecifier,Ee.attributes):void 0}function jt(Ee,$){let pt=Xn(Ee.elements,yn,iu);return $||vt(pt)?t.updateNamedExports(Ee,pt):void 0}function Qt(Ee){return t.updateNamespaceExport(Ee,C.checkDefined(st(Ee.name,K,He)))}function In(Ee,$){return w_(Ee)?Qt(Ee):jt(Ee,$)}function yn(Ee){return!Ee.isTypeOnly&&(d.verbatimModuleSyntax||u.isValueAliasDeclaration(Ee))?Ee:void 0}function wt(Ee){return Fs(Ee)||!Gc(N)&&u.isTopLevelValueImportEqualsWithEntityName(Ee)}function En(Ee){if(Ee.isTypeOnly)return;if(M0(Ee))return Fs(Ee)?kn(Ee,K,e):void 0;if(!wt(Ee))return;let $=dw(t,Ee.moduleReference);return Cr($,7168),ln(Ee)||!xn(Ee)?jr(bt(t.createVariableStatement(Xn(Ee.modifiers,lt,Aa),t.createVariableDeclarationList([jr(t.createVariableDeclaration(Ee.name,void 0,void 0,$),Ee)])),Ee),Ee):jr(zo(Ee.name,$,Ee),Ee)}function xn(Ee){return P!==void 0&&di(Ee,32)}function Ln(Ee){return P===void 0&&di(Ee,32)}function ln(Ee){return Ln(Ee)&&!di(Ee,2048)}function Ii(Ee){return Ln(Ee)&&di(Ee,2048)}function ra(Ee){let $=t.createAssignment(t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0),t.getLocalName(Ee));Ua($,Ff(Ee.name?Ee.name.pos:Ee.pos,Ee.end));let pt=t.createExpressionStatement($);return Ua(pt,Ff(-1,Ee.end)),pt}function sa(Ee,$){Ee.push(ra($))}function zo(Ee,$,pt){return bt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(k,Ee,!1,!0),$)),pt)}function Bl(Ee,$,pt){return bt(t.createAssignment(xl(Ee),$),pt)}function xl(Ee){return t.getNamespaceMemberName(k,Ee,!1,!0)}function Ps(Ee){let $=t.getGeneratedNameForNode(Ee);return Ua($,Ee.name),$}function co(Ee){return t.getGeneratedNameForNode(Ee)}function Go(){(G&8)===0&&(G|=8,e.enableSubstitution(80))}function Sc(){(G&2)===0&&(G|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268))}function $s(Ee){return yl(Ee).kind===268}function Ra(Ee){return yl(Ee).kind===267}function Zl(Ee,$,pt){let qt=j,fn=N;Yi($)&&(N=$),G&2&&$s($)&&(j|=2),G&8&&Ra($)&&(j|=8),A(Ee,$,pt),j=qt,N=fn}function vf(Ee,$){return $=R(Ee,$),Ee===1?fa($):Ud($)?Lo($):$}function Lo(Ee){if(G&2){let $=Ee.name,pt=qa($);if(pt){if(Ee.objectAssignmentInitializer){let qt=t.createAssignment(pt,Ee.objectAssignmentInitializer);return bt(t.createPropertyAssignment($,qt),Ee)}return bt(t.createPropertyAssignment($,pt),Ee)}}return Ee}function fa(Ee){switch(Ee.kind){case 80:return is(Ee);case 212:return Zt(Ee);case 213:return As(Ee)}return Ee}function is(Ee){return qa(Ee)||Ee}function qa(Ee){if(G&j&&!pl(Ee)&&!fy(Ee)){let $=u.getReferencedExportContainer(Ee,!1);if($&&$.kind!==308&&(j&2&&$.kind===268||j&8&&$.kind===267))return bt(t.createPropertyAccessExpression(t.getGeneratedNameForNode($),Ee),Ee)}}function Zt(Ee){return sc(Ee)}function As(Ee){return sc(Ee)}function Hl(Ee){return Ee.replace(/\*\//g,"*_/")}function sc(Ee){let $=vd(Ee);if($!==void 0){Zre(Ee,$);let pt=typeof $=="string"?t.createStringLiteral($):$<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-$)):t.createNumericLiteral($);if(!d.removeComments){let qt=yl(Ee,Ks);LM(pt,3,` ${Hl(Al(qt))} `)}return pt}return Ee}function vd(Ee){if(!gm(d))return qr(Ee)||Ws(Ee)?u.getConstantValue(Ee):void 0}function Fs(Ee){return d.verbatimModuleSyntax||Ir(Ee)||u.isReferencedAliasDeclaration(Ee)}}function xae(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,d=e.getEmitResolver(),g=e.getCompilerOptions(),_=Ga(g),v=Ok(g),E=!!g.experimentalDecorators,A=!v,R=v&&_<9,N=A||R,P=_<9,k=_<99?-1:v?0:3,F=_<9,O=F&&_>=2,G=N||P||k===-1,j=e.onSubstituteNode;e.onSubstituteNode=Hl;let J=e.onEmitNode;e.onEmitNode=As;let Z=!1,q=0,ye,ie,K,pe,de=new Map,fe=new Set,ve,xe,Y=!1,Ce=!1;return hh(e,Xe);function Xe($){if($.isDeclarationFile||(pe=void 0,Z=!!(Wm($)&32),!G&&!Z))return $;let pt=kn($,re,e);return Eg(pt,e.readEmitHelpers()),pt}function Se($){switch($.kind){case 129:return At()?void 0:$;default:return ni($,Aa)}}function re($){if(!($.transformFlags&16777216)&&!($.transformFlags&134234112))return $;switch($.kind){case 264:return Kt($);case 232:return Oe($);case 176:case 173:return C.fail("Use `classElementVisitor` instead.");case 304:return We($);case 244:return at($);case 261:return Wt($);case 170:return cn($);case 209:return gn($);case 278:return Kn($);case 81:return je($);case 212:return $o($);case 213:return Ia($);case 225:case 226:return Mn($,!1);case 227:return it($,!1);case 218:return Lt($,!1);case 214:return le($);case 245:return ot($);case 216:return ht($);case 249:return Uo($);case 110:return B($);case 263:case 219:return zt(void 0,be,$);case 177:case 175:case 178:case 179:return zt($,be,$);default:return be($)}}function be($){return kn($,re,e)}function Ne($){switch($.kind){case 225:case 226:return Mn($,!0);case 227:return it($,!0);case 357:return dt($);case 218:return Lt($,!0);default:return re($)}}function Be($){switch($.kind){case 299:return kn($,Be,e);case 234:return Ot($);default:return re($)}}function lt($){switch($.kind){case 211:case 210:return Zt($);default:return re($)}}function ce($){switch($.kind){case 177:return zt($,ir,$);case 178:case 179:case 175:return zt($,lo,$);case 173:return zt($,mn,$);case 176:return zt($,_e,$);case 168:return en($);case 241:return $;default:return fl($)?Se($):re($)}}function De($){switch($.kind){case 168:return en($);default:return re($)}}function ge($){switch($.kind){case 173:return $e($);case 178:case 179:return ce($);default:C.assertMissingNode($,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function je($){return!P||ji($.parent)?$:jr(t.createIdentifier(""),$)}function Ge($){let pt=Go($.left);if(pt){let qt=st($.right,re,St);return jr(r().createClassPrivateFieldInHelper(pt.brandCheckIdentifier,qt),$)}return kn($,re,e)}function We($){return Mp($,Fe)&&($=Wp(e,$)),kn($,re,e)}function at($){let pt=K;K=[];let qt=kn($,re,e),fn=vt(K)?[qt,...K]:qt;return K=pt,fn}function Wt($){return Mp($,Fe)&&($=Wp(e,$)),kn($,re,e)}function cn($){return Mp($,Fe)&&($=Wp(e,$)),kn($,re,e)}function gn($){return Mp($,Fe)&&($=Wp(e,$)),kn($,re,e)}function Kn($){return Mp($,Fe)&&($=Wp(e,$,!0,$.isExportEquals?"":"default")),kn($,re,e)}function _t($){return vt(ie)&&(wu($)?(ie.push($.expression),$=t.updateParenthesizedExpression($,t.inlineExpressions(ie))):(ie.push($),$=t.inlineExpressions(ie)),ie=void 0),$}function en($){let pt=st($.expression,re,St);return t.updateComputedPropertyName($,_t(pt))}function ir($){return ve?xt($,ve):be($)}function Di($){return!!(P||Wc($)&&Wm($)&32)}function lo($){if(C.assert(!uf($)),!tu($)||!Di($))return kn($,ce,e);let pt=Go($.name);if(C.assert(pt,"Undeclared private name for property declaration."),!pt.isValid)return $;let qt=Zr($);qt&&Ln().push(t.createAssignment(qt,t.createFunctionExpression(Un($.modifiers,fn=>Aa(fn)&&!LI(fn)&&!aj(fn)),$.asteriskToken,qt,void 0,Fl($.parameters,re,e),void 0,_f($.body,re,e))))}function zt($,pt,qt){if($!==xe){let fn=xe;xe=$;let ur=pt(qt);return xe=fn,ur}return pt(qt)}function Zr($){C.assert(eo($.name));let pt=Go($.name);if(C.assert(pt,"Undeclared private name for property declaration."),pt.kind==="m")return pt.methodName;if(pt.kind==="a"){if(dg($))return pt.getterName;if(Gh($))return pt.setterName}}function Ai(){let $=En();return $.classThis??$.classConstructor??ve?.name}function Ni($){let pt=Qh($),qt=ov($),fn=$.name,ur=fn,si=fn;if(va(fn)&&!F_(fn.expression)){let Qs=A3(fn);if(Qs)ur=t.updateComputedPropertyName(fn,st(fn.expression,re,St)),si=t.updateComputedPropertyName(fn,Qs.left);else{let Ec=t.createTempVariable(i);Ua(Ec,fn.expression);let mc=st(fn.expression,re,St),Hs=t.createAssignment(Ec,mc);Ua(Hs,fn.expression),ur=t.updateComputedPropertyName(fn,Hs),si=t.updateComputedPropertyName(fn,Ec)}}let Dr=Xn($.modifiers,Se,Aa),Fn=Lj(t,$,Dr,$.initializer);jr(Fn,$),Cr(Fn,3072),Ua(Fn,qt);let ro=ua($)?Ai()??t.createThis():t.createThis(),So=Qie(t,$,Dr,ur,ro);jr(So,$),Dc(So,pt),Ua(So,qt);let Ns=t.createModifiersFromModifierFlags(Kh(Dr)),Da=Zie(t,$,Ns,si,ro);return jr(Da,$),Cr(Da,3072),Ua(Da,qt),iP([Fn,So,Da],ge,Tc)}function Pr($){if(Di($)){let pt=Go($.name);if(C.assert(pt,"Undeclared private name for property declaration."),!pt.isValid)return $;if(pt.isStatic&&!P){let qt=Bt($,t.createThis());if(qt)return t.createClassStaticBlockDeclaration(t.createBlock([qt],!0))}return}return A&&!ua($)&&pe?.data&&pe.data.facts&16?t.updatePropertyDeclaration($,Xn($.modifiers,re,fl),$.name,void 0,void 0,void 0):(Mp($,Fe)&&($=Wp(e,$)),t.updatePropertyDeclaration($,Xn($.modifiers,Se,Aa),st($.name,De,bc),void 0,void 0,st($.initializer,re,St)))}function Ci($){if(N&&!Ku($)){let pt=In($.name,!!$.initializer||v);if(pt&&Ln().push(...eoe(pt)),ua($)&&!P){let qt=Bt($,t.createThis());if(qt){let fn=t.createClassStaticBlockDeclaration(t.createBlock([qt]));return jr(fn,$),Dc(fn,$),Dc(qt,{pos:-1,end:-1}),B0(qt,void 0),DI(qt,void 0),fn}}return}return t.updatePropertyDeclaration($,Xn($.modifiers,Se,Aa),st($.name,De,bc),void 0,void 0,st($.initializer,re,St))}function $e($){return C.assert(!uf($),"Decorators should already have been transformed and elided."),tu($)?Pr($):Ci($)}function At(){return k===-1||k===3&&!!pe?.data&&!!(pe.data.facts&16)}function mn($){return Ku($)&&(At()||Wc($)&&Wm($)&32)?Ni($):$e($)}function dr(){return!!xe&&Wc(xe)&&db(xe)&&Ku(yl(xe))}function ri($){if(dr()){let pt=Ul($);pt.kind===110&&fe.add(pt)}}function ai($,pt){return pt=st(pt,re,St),ri(pt),qi($,pt)}function qi($,pt){switch(Dc(pt,W0(pt,-1)),$.kind){case"a":return r().createClassPrivateFieldGetHelper(pt,$.brandCheckIdentifier,$.kind,$.getterName);case"m":return r().createClassPrivateFieldGetHelper(pt,$.brandCheckIdentifier,$.kind,$.methodName);case"f":return r().createClassPrivateFieldGetHelper(pt,$.brandCheckIdentifier,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever($,"Unknown private element type")}}function $o($){if(eo($.name)){let pt=Go($.name);if(pt)return bt(jr(ai(pt,$.expression),$),$)}if(O&&xe&&fp($)&&He($.name)&&dP(xe)&&pe?.data){let{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt($);if(pt&&qt){let ur=t.createReflectGetCall(qt,t.createStringLiteralFromNode($.name),pt);return jr(ur,$.expression),bt(ur,$.expression),ur}}return kn($,re,e)}function Ia($){if(O&&xe&&fp($)&&dP(xe)&&pe?.data){let{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt($);if(pt&&qt){let ur=t.createReflectGetCall(qt,st($.argumentExpression,re,St),pt);return jr(ur,$.expression),bt(ur,$.expression),ur}}return kn($,re,e)}function Mn($,pt){if($.operator===46||$.operator===47){let qt=ds($.operand);if(NR(qt)){let fn;if(fn=Go(qt.name)){let ur=st(qt.expression,re,St);ri(ur);let{readExpression:si,initializeExpression:Dr}=Ft(ur),Fn=ai(fn,si),ro=j0($)||pt?void 0:t.createTempVariable(i);return Fn=y3(t,$,Fn,i,ro),Fn=Ue(fn,Dr||si,Fn,64),jr(Fn,$),bt(Fn,$),ro&&(Fn=t.createComma(Fn,ro),bt(Fn,$)),Fn}}else if(O&&xe&&fp(qt)&&dP(xe)&&pe?.data){let{classConstructor:fn,superClassReference:ur,facts:si}=pe.data;if(si&1){let Dr=Qt(qt);return j0($)?t.updatePrefixUnaryExpression($,Dr):t.updatePostfixUnaryExpression($,Dr)}if(fn&&ur){let Dr,Fn;if(qr(qt)?He(qt.name)&&(Fn=Dr=t.createStringLiteralFromNode(qt.name)):F_(qt.argumentExpression)?Fn=Dr=qt.argumentExpression:(Fn=t.createTempVariable(i),Dr=t.createAssignment(Fn,st(qt.argumentExpression,re,St))),Dr&&Fn){let ro=t.createReflectGetCall(ur,Fn,fn);bt(ro,qt);let So=pt?void 0:t.createTempVariable(i);return ro=y3(t,$,ro,i,So),ro=t.createReflectSetCall(ur,Dr,ro,fn),jr(ro,$),bt(ro,$),So&&(ro=t.createComma(ro,So),bt(ro,$)),ro}}}}return kn($,re,e)}function Uo($){return t.updateForStatement($,st($.initializer,Ne,kf),st($.condition,re,St),st($.incrementor,Ne,St),Ou($.statement,re,e))}function ot($){return t.updateExpressionStatement($,st($.expression,Ne,St))}function Ft($){let pt=Os($)?$:t.cloneNode($);if($.kind===110&&fe.has($)&&fe.add(pt),F_($))return{readExpression:pt,initializeExpression:void 0};let qt=t.createTempVariable(i),fn=t.createAssignment(qt,pt);return{readExpression:qt,initializeExpression:fn}}function le($){var pt;if(NR($.expression)&&Go($.expression.name)){let{thisArg:qt,target:fn}=t.createCallBinding($.expression,i,_);return zS($)?t.updateCallChain($,t.createPropertyAccessChain(st(fn,re,St),$.questionDotToken,"call"),void 0,void 0,[st(qt,re,St),...Xn($.arguments,re,St)]):t.updateCallExpression($,t.createPropertyAccessExpression(st(fn,re,St),"call"),void 0,[st(qt,re,St),...Xn($.arguments,re,St)])}if(O&&xe&&fp($.expression)&&dP(xe)&&((pt=pe?.data)!=null&&pt.classConstructor)){let qt=t.createFunctionCallCall(st($.expression,re,St),pe.data.classConstructor,Xn($.arguments,re,St));return jr(qt,$),bt(qt,$),qt}return kn($,re,e)}function ht($){var pt;if(NR($.tag)&&Go($.tag.name)){let{thisArg:qt,target:fn}=t.createCallBinding($.tag,i,_);return t.updateTaggedTemplateExpression($,t.createCallExpression(t.createPropertyAccessExpression(st(fn,re,St),"bind"),void 0,[st(qt,re,St)]),void 0,st($.template,re,QA))}if(O&&xe&&fp($.tag)&&dP(xe)&&((pt=pe?.data)!=null&&pt.classConstructor)){let qt=t.createFunctionBindCall(st($.tag,re,St),pe.data.classConstructor,[]);return jr(qt,$),bt(qt,$),t.updateTaggedTemplateExpression($,qt,void 0,st($.template,re,QA))}return kn($,re,e)}function ne($){if(pe&&de.set(yl($),pe),P){if(cP($)){let fn=st($.body.statements[0].expression,re,St);return id(fn,!0)&&fn.left===fn.right?void 0:fn}if(QI($))return st($.body.statements[0].expression,re,St);s();let pt=zt($,fn=>Xn(fn,re,ji),$.body.statements);pt=t.mergeLexicalEnvironment(pt,o());let qt=t.createImmediatelyInvokedArrowFunction(pt);return jr(ds(qt.expression),$),$h(ds(qt.expression),4),jr(qt,$),bt(qt,$),qt}}function Fe($){if(uc($)&&!$.name){let pt=aF($);return vt(pt,QI)?!1:(P||!!Wm($))&&vt(pt,fn=>$l(fn)||tu(fn)||N&&kw(fn))}return!1}function it($,pt){if(ev($)){let qt=ie;ie=void 0,$=t.updateBinaryExpression($,st($.left,lt,St),$.operatorToken,st($.right,re,St));let fn=vt(ie)?t.inlineExpressions(rL([...ie,$])):$;return ie=qt,fn}if(id($)){Mp($,Fe)&&($=Wp(e,$),C.assertNode($,id));let qt=Ul($.left,9);if(NR(qt)){let fn=Go(qt.name);if(fn)return bt(jr(Ue(fn,qt.expression,$.right,$.operatorToken.kind),$),$)}else if(O&&xe&&fp($.left)&&dP(xe)&&pe?.data){let{classConstructor:fn,superClassReference:ur,facts:si}=pe.data;if(si&1)return t.updateBinaryExpression($,Qt($.left),$.operatorToken,st($.right,re,St));if(fn&&ur){let Dr=Ws($.left)?st($.left.argumentExpression,re,St):He($.left.name)?t.createStringLiteralFromNode($.left.name):void 0;if(Dr){let Fn=st($.right,re,St);if(aP($.operatorToken.kind)){let So=Dr;F_(Dr)||(So=t.createTempVariable(i),Dr=t.createAssignment(So,Dr));let Ns=t.createReflectGetCall(ur,So,fn);jr(Ns,$.left),bt(Ns,$.left),Fn=t.createBinaryExpression(Ns,sP($.operatorToken.kind),Fn),bt(Fn,$)}let ro=pt?void 0:t.createTempVariable(i);return ro&&(Fn=t.createAssignment(ro,Fn),bt(ro,$)),Fn=t.createReflectSetCall(ur,Dr,Fn,fn),jr(Fn,$),bt(Fn,$),ro&&(Fn=t.createComma(Fn,ro),bt(Fn,$)),Fn}}}}return JUe($)?Ge($):kn($,re,e)}function dt($,pt){let qt=nF($.elements,Ne);return t.updateCommaListExpression($,qt)}function Lt($,pt){let qt=pt?Ne:re,fn=st($.expression,qt,St);return t.updateParenthesizedExpression($,fn)}function Ue($,pt,qt,fn){if(pt=st(pt,re,St),qt=st(qt,re,St),ri(pt),aP(fn)){let{readExpression:ur,initializeExpression:si}=Ft(pt);pt=si||ur,qt=t.createBinaryExpression(qi($,ur),sP(fn),qt)}switch(Dc(pt,W0(pt,-1)),$.kind){case"a":return r().createClassPrivateFieldSetHelper(pt,$.brandCheckIdentifier,qt,$.kind,$.setterName);case"m":return r().createClassPrivateFieldSetHelper(pt,$.brandCheckIdentifier,qt,$.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(pt,$.brandCheckIdentifier,qt,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever($,"Unknown private element type")}}function Rt($){return Un($.members,mae)}function It($){var pt;let qt=0,fn=yl($);ui(fn)&&Qy(E,fn)&&(qt|=1),P&&(WU($)||cF($))&&(qt|=2);let ur=!1,si=!1,Dr=!1,Fn=!1;for(let So of $.members)ua(So)?((So.name&&(eo(So.name)||Ku(So))&&P||Ku(So)&&k===-1&&!$.name&&!((pt=$.emitNode)!=null&&pt.classThis))&&(qt|=2),(Po(So)||$l(So))&&(F&&So.transformFlags&16384&&(qt|=8,qt&1||(qt|=2)),O&&So.transformFlags&134217728&&(qt&1||(qt|=6)))):A1(yl(So))||(Ku(So)?(Fn=!0,Dr||(Dr=tu(So))):tu(So)?(Dr=!0,d.hasNodeCheckFlag(So,262144)&&(qt|=2)):Po(So)&&(ur=!0,si||(si=!!So.initializer)));return(R&&ur||A&&si||P&&Dr||P&&Fn&&k===-1)&&(qt|=16),qt}function Ot($){var pt;if((((pt=pe?.data)==null?void 0:pt.facts)||0)&4){let fn=t.createTempVariable(i,!0);return En().superClassReference=fn,t.updateExpressionWithTypeArguments($,t.createAssignment(fn,st($.expression,re,St)),void 0)}return kn($,re,e)}function nt($,pt){var qt;let fn=ve,ur=ie,si=pe;ve=$,ie=void 0,yn();let Dr=Wm($)&32;if(P||Dr){let So=Oo($);if(So&&He(So))xn().data.className=So;else if((qt=$.emitNode)!=null&&qt.assignedName&&ka($.emitNode.assignedName)){if($.emitNode.assignedName.textSourceNode&&He($.emitNode.assignedName.textSourceNode))xn().data.className=$.emitNode.assignedName.textSourceNode;else if(pp($.emitNode.assignedName.text,_)){let Ns=t.createIdentifier($.emitNode.assignedName.text);xn().data.className=Ns}}}if(P){let So=Rt($);vt(So)&&(xn().data.weakSetName=Ps("instances",So[0].name))}let Fn=It($);Fn&&(En().facts=Fn),Fn&8&&Mt();let ro=pt($,Fn);return wt(),C.assert(pe===si),ve=fn,ie=ur,ro}function Kt($){return nt($,Sr)}function Sr($,pt){var qt,fn;let ur;if(pt&2)if(P&&((qt=$.emitNode)!=null&&qt.classThis))En().classConstructor=$.emitNode.classThis,ur=t.createAssignment($.emitNode.classThis,t.getInternalName($));else{let Hs=t.createTempVariable(i,!0);En().classConstructor=t.cloneNode(Hs),ur=t.createAssignment(Hs,t.getInternalName($))}(fn=$.emitNode)!=null&&fn.classThis&&(En().classThis=$.emitNode.classThis);let si=d.hasNodeCheckFlag($,262144),Dr=di($,32),Fn=di($,2048),ro=Xn($.modifiers,Se,Aa),So=Xn($.heritageClauses,Be,Op),{members:Ns,prologue:Da}=Ae($),Qs=[];if(ur&&Ln().unshift(ur),vt(ie)&&Qs.push(t.createExpressionStatement(t.inlineExpressions(ie))),A||P||Wm($)&32){let Hs=aF($);vt(Hs)&&gt(Qs,Hs,t.getInternalName($))}Qs.length>0&&Dr&&Fn&&(ro=Xn(ro,Hs=>hw(Hs)?void 0:Hs,Aa),Qs.push(t.createExportAssignment(void 0,!1,t.getLocalName($,!1,!0))));let Ec=En().classConstructor;si&&Ec&&(ft(),ye[Wu($)]=Ec);let mc=t.updateClassDeclaration($,ro,$.name,void 0,So,Ns);return Qs.unshift(mc),Da&&Qs.unshift(t.createExpressionStatement(Da)),Qs}function Oe($){return nt($,Nt)}function Nt($,pt){var qt,fn,ur;let si=!!(pt&1),Dr=aF($),Fn=d.hasNodeCheckFlag($,262144),ro=d.hasNodeCheckFlag($,32768),So;function Ns(){var Pd;if(P&&((Pd=$.emitNode)!=null&&Pd.classThis))return En().classConstructor=$.emitNode.classThis;let tf=t.createTempVariable(ro?u:i,!0);return En().classConstructor=t.cloneNode(tf),tf}(qt=$.emitNode)!=null&&qt.classThis&&(En().classThis=$.emitNode.classThis),pt&2&&(So??(So=Ns()));let Da=Xn($.modifiers,Se,Aa),Qs=Xn($.heritageClauses,Be,Op),{members:Ec,prologue:mc}=Ae($),Hs=t.updateClassExpression($,Da,$.name,void 0,Qs,Ec),Pl=[];if(mc&&Pl.push(mc),(P||Wm($)&32)&&vt(Dr,Pd=>$l(Pd)||tu(Pd)||N&&kw(Pd))||vt(ie))if(si)C.assertIsDefined(K,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),vt(ie)&&Xr(K,Vt(ie,t.createExpressionStatement)),vt(Dr)&&gt(K,Dr,((fn=$.emitNode)==null?void 0:fn.classThis)??t.getInternalName($)),So?Pl.push(t.createAssignment(So,Hs)):P&&((ur=$.emitNode)!=null&&ur.classThis)?Pl.push(t.createAssignment($.emitNode.classThis,Hs)):Pl.push(Hs);else{if(So??(So=Ns()),Fn){ft();let Pd=t.cloneNode(So);Pd.emitNode.autoGenerate.flags&=-9,ye[Wu($)]=Pd}Pl.push(t.createAssignment(So,Hs)),Xr(Pl,ie),Xr(Pl,gr(Dr,So)),Pl.push(t.cloneNode(So))}else Pl.push(Hs);return Pl.length>1&&($h(Hs,131072),Pl.forEach(ou)),t.inlineExpressions(Pl)}function _e($){if(!P)return kn($,re,e)}function B($){if(F&&xe&&$l(xe)&&pe?.data){let{classThis:pt,classConstructor:qt}=pe.data;return pt??qt??$}return $}function Ae($){let pt=!!(Wm($)&32);if(P||Z){for(let Dr of $.members)if(tu(Dr))if(Di(Dr))xl(Dr,Dr.name,ln);else{let Fn=xn();AE(Fn,Dr.name,{kind:"untransformed"})}if(P&&vt(Rt($))&&te(),At()){for(let Dr of $.members)if(Ku(Dr)){let Fn=t.getGeneratedPrivateNameForNode(Dr.name,void 0,"_accessor_storage");if(P||pt&&Wc(Dr))xl(Dr,Fn,Ii);else{let ro=xn();AE(ro,Fn,{kind:"untransformed"})}}}}let qt=Xn($.members,ce,Tc),fn;vt(qt,Ml)||(fn=xt(void 0,$));let ur,si;if(!P&&vt(ie)){let Dr=t.createExpressionStatement(t.inlineExpressions(ie));if(Dr.transformFlags&134234112){let ro=t.createTempVariable(i),So=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Dr]));ur=t.createAssignment(ro,So),Dr=t.createExpressionStatement(t.createCallExpression(ro,void 0,[]))}let Fn=t.createBlock([Dr]);si=t.createClassStaticBlockDeclaration(Fn),ie=void 0}if(fn||si){let Dr,Fn=hn(qt,cP),ro=hn(qt,QI);Dr=Bn(Dr,Fn),Dr=Bn(Dr,ro),Dr=Bn(Dr,fn),Dr=Bn(Dr,si);let So=Fn||ro?Un(qt,Ns=>Ns!==Fn&&Ns!==ro):qt;Dr=Xr(Dr,So),qt=bt(t.createNodeArray(Dr),$.members)}return{members:qt,prologue:ur}}function te(){let{weakSetName:$}=xn().data;C.assert($,"weakSetName should be set in private identifier environment"),Ln().push(t.createAssignment($,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function xt($,pt){if($=st($,re,Ml),!pe?.data||!(pe.data.facts&16))return $;let qt=lh(pt),fn=!!(qt&&Ul(qt.expression).kind!==106),ur=Fl($?$.parameters:void 0,re,e),si=Le(pt,$,fn);return si?$?(C.assert(ur),t.updateConstructorDeclaration($,void 0,ur,si)):ou(jr(bt(t.createConstructorDeclaration(void 0,ur??[],si),$||pt),$)):$}function Xt($,pt,qt,fn,ur,si,Dr){let Fn=fn[ur],ro=pt[Fn];if(Xr($,Xn(pt,re,ji,qt,Fn-qt)),qt=Fn+1,mE(ro)){let So=[];Xt(So,ro.tryBlock.statements,0,fn,ur+1,si,Dr);let Ns=t.createNodeArray(So);bt(Ns,ro.tryBlock.statements),$.push(t.updateTryStatement(ro,t.updateBlock(ro.tryBlock,So),st(ro.catchClause,re,O1),st(ro.finallyBlock,re,ea)))}else{for(Xr($,Xn(pt,re,ji,Fn,1));qt<pt.length;){let So=pt[qt];if(Dp(yl(So),Dr))qt++;else break}Xr($,si)}Xr($,Xn(pt,re,ji,qt))}function Le($,pt,qt){var fn;let ur=kU($,!1,!1),si=ur;v||(si=Un(si,mc=>!!mc.initializer||eo(mc.name)||Jh(mc)));let Dr=Rt($),Fn=vt(si)||vt(Dr);if(!pt&&!Fn)return _f(void 0,re,e);l();let ro=!pt&&qt,So=0,Ns=[],Da=[],Qs=t.createThis();if(jt(Da,Dr,Qs),pt){let mc=Un(ur,Pl=>Dp(yl(Pl),pt)),Hs=Un(si,Pl=>!Dp(yl(Pl),pt));gt(Da,mc,Qs),gt(Da,Hs,Qs)}else gt(Da,si,Qs);if(pt?.body){So=t.copyPrologue(pt.body.statements,Ns,!1,re);let mc=oF(pt.body.statements,So);if(mc.length)Xt(Ns,pt.body.statements,So,mc,0,Da,pt);else{for(;So<pt.body.statements.length;){let Hs=pt.body.statements[So];if(Dp(yl(Hs),pt))So++;else break}Xr(Ns,Da),Xr(Ns,Xn(pt.body.statements,re,ji,So))}}else ro&&Ns.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Xr(Ns,Da);if(Ns=t.mergeLexicalEnvironment(Ns,o()),Ns.length===0&&!pt)return;let Ec=pt?.body&&pt.body.statements.length>=Ns.length?pt.body.multiLine??Ns.length>0:Ns.length>0;return bt(t.createBlock(bt(t.createNodeArray(Ns),((fn=pt?.body)==null?void 0:fn.statements)??$.members),Ec),pt?.body)}function gt($,pt,qt){for(let fn of pt){if(ua(fn)&&!P)continue;let ur=Bt(fn,qt);ur&&$.push(ur)}}function Bt($,pt){let qt=$l($)?zt($,ne,$):tr($,pt);if(!qt)return;let fn=t.createExpressionStatement(qt);jr(fn,$),$h(fn,Qa($)&3072),Dc(fn,$);let ur=yl($);return to(ur)?(Ua(fn,ur),Qk(fn)):Ua(fn,Xh($)),B0(qt,void 0),DI(qt,void 0),Jh(ur)&&$h(fn,3072),fn}function gr($,pt){let qt=[];for(let fn of $){let ur=$l(fn)?zt(fn,ne,fn):zt(fn,()=>tr(fn,pt),void 0);ur&&(ou(ur),jr(ur,fn),$h(ur,Qa(fn)&3072),Ua(ur,Xh(fn)),Dc(ur,fn),qt.push(ur))}return qt}function tr($,pt){var qt;let fn=xe,ur=Jn($,pt);return ur&&Wc($)&&((qt=pe?.data)!=null&&qt.facts)&&(jr(ur,$),$h(ur,4),Ua(ur,ov($.name)),de.set(yl($),pe)),xe=fn,ur}function Jn($,pt){let qt=!v;Mp($,Fe)&&($=Wp(e,$));let fn=Jh($)?t.getGeneratedPrivateNameForNode($.name):va($.name)&&!F_($.name.expression)?t.updateComputedPropertyName($.name,t.getGeneratedNameForNode($.name)):$.name;if(Wc($)&&(xe=$),eo(fn)&&Di($)){let Dr=Go(fn);if(Dr)return Dr.kind==="f"?Dr.isStatic?jUe(t,Dr.variableName,st($.initializer,re,St)):UUe(t,pt,st($.initializer,re,St),Dr.brandCheckIdentifier):void 0;C.fail("Undeclared private name for property declaration.")}if((eo(fn)||Wc($))&&!$.initializer)return;let ur=yl($);if(di(ur,64))return;let si=st($.initializer,re,St);if(Dp(ur,ur.parent)&&He(fn)){let Dr=t.cloneNode(fn);si?(wu(si)&&uw(si.expression)&&kM(si.expression.left,"___runInitializers")&&FI(si.expression.right)&&ep(si.expression.right.expression)&&(si=si.expression.left),si=t.inlineExpressions([si,Dr])):si=Dr,Cr(fn,3168),Ua(Dr,ur.name),Cr(Dr,3072)}else si??(si=t.createVoidZero());if(qt||eo(fn)){let Dr=vE(t,pt,fn,fn);return $h(Dr,1024),t.createAssignment(Dr,si)}else{let Dr=va(fn)?fn.expression:He(fn)?t.createStringLiteral(Vi(fn.escapedText)):fn,Fn=t.createPropertyDescriptor({value:si,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(pt,Dr,Fn)}}function ft(){(q&1)===0&&(q|=1,e.enableSubstitution(80),ye=[])}function Mt(){(q&2)===0&&(q|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168))}function jt($,pt,qt){if(!P||!vt(pt))return;let{weakSetName:fn}=xn().data;C.assert(fn,"weakSetName should be set in private identifier environment"),$.push(t.createExpressionStatement(HUe(t,qt,fn)))}function Qt($){return qr($)?t.updatePropertyAccessExpression($,t.createVoidZero(),$.name):t.updateElementAccessExpression($,t.createVoidZero(),st($.argumentExpression,re,St))}function In($,pt){if(va($)){let qt=A3($),fn=st($.expression,re,St),ur=Om(fn),si=F_(ur);if(!(!!qt||id(ur)&&pl(ur.left))&&!si&&pt){let Fn=t.getGeneratedNameForNode($);return d.hasNodeCheckFlag($,32768)?u(Fn):i(Fn),t.createAssignment(Fn,fn)}return si||He(ur)?void 0:fn}}function yn(){pe={previous:pe,data:void 0}}function wt(){pe=pe?.previous}function En(){return C.assert(pe),pe.data??(pe.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function xn(){return C.assert(pe),pe.privateEnv??(pe.privateEnv=_ae({className:void 0,weakSetName:void 0}))}function Ln(){return ie??(ie=[])}function ln($,pt,qt,fn,ur,si,Dr){Ku($)?Bl($,pt,qt,fn,ur,si):Po($)?Ii($,pt,qt,fn,ur,si):Nl($)?ra($,pt,qt,fn,ur,si):jf($)?sa($,pt,qt,fn,ur,si,Dr):_p($)&&zo($,pt,qt,fn,ur,si,Dr)}function Ii($,pt,qt,fn,ur,si,Dr){if(ur){let Fn=C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"),ro=co(pt);AE(fn,pt,{kind:"f",isStatic:!0,brandCheckIdentifier:Fn,variableName:ro,isValid:si})}else{let Fn=co(pt);AE(fn,pt,{kind:"f",isStatic:!1,brandCheckIdentifier:Fn,isValid:si}),Ln().push(t.createAssignment(Fn,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function ra($,pt,qt,fn,ur,si,Dr){let Fn=co(pt),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");AE(fn,pt,{kind:"m",methodName:Fn,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function sa($,pt,qt,fn,ur,si,Dr){let Fn=co(pt,"_get"),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");Dr?.kind==="a"&&Dr.isStatic===ur&&!Dr.getterName?Dr.getterName=Fn:AE(fn,pt,{kind:"a",getterName:Fn,setterName:void 0,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function zo($,pt,qt,fn,ur,si,Dr){let Fn=co(pt,"_set"),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");Dr?.kind==="a"&&Dr.isStatic===ur&&!Dr.setterName?Dr.setterName=Fn:AE(fn,pt,{kind:"a",getterName:void 0,setterName:Fn,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function Bl($,pt,qt,fn,ur,si,Dr){let Fn=co(pt,"_get"),ro=co(pt,"_set"),So=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");AE(fn,pt,{kind:"a",getterName:Fn,setterName:ro,brandCheckIdentifier:So,isStatic:ur,isValid:si})}function xl($,pt,qt){let fn=En(),ur=xn(),si=OU(ur,pt),Dr=Wc($),Fn=!qUe(pt)&&si===void 0;qt($,pt,fn,ur,Dr,Fn,si)}function Ps($,pt,qt){let{className:fn}=xn().data,ur=fn?{prefix:"_",node:fn,suffix:"_"}:"_",si=typeof $=="object"?t.getGeneratedNameForNode($,24,ur,qt):typeof $=="string"?t.createUniqueName($,16,ur,qt):t.createTempVariable(void 0,!0,ur,qt);return d.hasNodeCheckFlag(pt,32768)?u(si):i(si),si}function co($,pt){let qt=GN($);return Ps(qt?.substring(1)??$,$,pt)}function Go($){let pt=gae(pe,$);return pt?.kind==="untransformed"?void 0:pt}function Sc($){let pt=t.getGeneratedNameForNode($),qt=Go($.name);if(!qt)return kn($,re,e);let fn=$.expression;return($L($)||fp($)||!B1($.expression))&&(fn=t.createTempVariable(i,!0),Ln().push(t.createBinaryExpression(fn,64,st($.expression,re,St)))),t.createAssignmentTargetWrapper(pt,Ue(qt,fn,pt,64))}function $s($){if(Wa($)||Cd($))return Zt($);if(NR($))return Sc($);if(O&&xe&&fp($)&&dP(xe)&&pe?.data){let{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt($);if(pt&&qt){let ur=Ws($)?st($.argumentExpression,re,St):He($.name)?t.createStringLiteralFromNode($.name):void 0;if(ur){let si=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(si,t.createReflectSetCall(qt,ur,si,pt))}}}return kn($,re,e)}function Ra($){if(Mp($,Fe)&&($=Wp(e,$)),id($,!0)){let pt=$s($.left),qt=st($.right,re,St);return t.updateBinaryExpression($,pt,$.operatorToken,qt)}return $s($)}function Zl($){if(Xu($.expression)){let pt=$s($.expression);return t.updateSpreadElement($,pt)}return kn($,re,e)}function vf($){if(ML($)){if(Uf($))return Zl($);if(!Kc($))return Ra($)}return kn($,re,e)}function Lo($){let pt=st($.name,re,bc);if(id($.initializer,!0)){let qt=Ra($.initializer);return t.updatePropertyAssignment($,pt,qt)}if(Xu($.initializer)){let qt=$s($.initializer);return t.updatePropertyAssignment($,pt,qt)}return kn($,re,e)}function fa($){return Mp($,Fe)&&($=Wp(e,$)),kn($,re,e)}function is($){if(Xu($.expression)){let pt=$s($.expression);return t.updateSpreadAssignment($,pt)}return kn($,re,e)}function qa($){return C.assertNode($,NL),Ig($)?is($):Ud($)?fa($):Nc($)?Lo($):kn($,re,e)}function Zt($){return Cd($)?t.updateArrayLiteralExpression($,Xn($.elements,vf,St)):t.updateObjectLiteralExpression($,Xn($.properties,qa,ny))}function As($,pt,qt){let fn=yl(pt),ur=de.get(fn);if(ur){let si=pe,Dr=Ce;pe=ur,Ce=Y,Y=!$l(fn)||!(Wm(fn)&32),J($,pt,qt),Y=Ce,Ce=Dr,pe=si;return}switch(pt.kind){case 219:if(Xs(fn)||Qa(pt)&524288)break;case 263:case 177:case 178:case 179:case 175:case 173:{let si=pe,Dr=Ce;pe=void 0,Ce=Y,Y=!1,J($,pt,qt),Y=Ce,Ce=Dr,pe=si;return}case 168:{let si=pe,Dr=Y;pe=pe?.previous,Y=Ce,J($,pt,qt),Y=Dr,pe=si;return}}J($,pt,qt)}function Hl($,pt){return pt=j($,pt),$===1?sc(pt):pt}function sc($){switch($.kind){case 80:return Fs($);case 110:return vd($)}return $}function vd($){if(q&2&&pe?.data&&!fe.has($)){let{facts:pt,classConstructor:qt,classThis:fn}=pe.data,ur=Y?fn??qt:qt;if(ur)return bt(jr(t.cloneNode(ur),$),$);if(pt&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return $}function Fs($){return Ee($)||$}function Ee($){if(q&1&&d.hasNodeCheckFlag($,536870912)){let pt=d.getReferencedValueDeclaration($);if(pt){let qt=ye[pt.id];if(qt){let fn=t.cloneNode(qt);return Ua(fn,$),Dc(fn,$),fn}}}}}function jUe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function UUe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function HUe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function qUe(e){return!GS(e)&&e.escapedText==="#constructor"}function JUe(e){return eo(e.left)&&e.operatorToken.kind===103}function KUe(e){return Po(e)&&Wc(e)}function dP(e){return $l(e)||KUe(e)}function Rae(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=Ga(o),l=Vd(o,"strictNullChecks"),u,d;return{serializeTypeNode:(ie,K)=>g(ie,N,K),serializeTypeOfNode:(ie,K,pe)=>g(ie,v,K,pe),serializeParameterTypesOfNode:(ie,K,pe)=>g(ie,E,K,pe),serializeReturnTypeOfNode:(ie,K)=>g(ie,R,K)};function g(ie,K,pe,de){let fe=u,ve=d;u=ie.currentLexicalScope,d=ie.currentNameScope;let xe=de===void 0?K(pe):K(pe,de);return u=fe,d=ve,xe}function _(ie,K){let pe=E1(K.members,ie);return pe.setAccessor&&Rne(pe.setAccessor)||pe.getAccessor&&Pp(pe.getAccessor)}function v(ie,K){switch(ie.kind){case 173:case 170:return N(ie.type);case 179:case 178:return N(_(ie,K));case 264:case 232:case 175:return t.createIdentifier("Function");default:return t.createVoidZero()}}function E(ie,K){let pe=ui(ie)?gg(ie):Yo(ie)&&pm(ie.body)?ie:void 0,de=[];if(pe){let fe=A(pe,K),ve=fe.length;for(let xe=0;xe<ve;xe++){let Y=fe[xe];xe===0&&He(Y.name)&&Y.name.escapedText==="this"||(Y.dotDotDotToken?de.push(N(hG(Y.type))):de.push(v(Y,K)))}}return t.createArrayLiteralExpression(de)}function A(ie,K){if(K&&ie.kind===178){let{setAccessor:pe}=E1(K.members,ie);if(pe)return pe.parameters}return ie.parameters}function R(ie){return Yo(ie)&&ie.type?N(ie.type):nM(ie)?t.createIdentifier("Promise"):t.createVoidZero()}function N(ie){if(ie===void 0)return t.createIdentifier("Object");switch(ie=QN(ie),ie.kind){case 116:case 157:case 146:return t.createVoidZero();case 185:case 186:return t.createIdentifier("Function");case 189:case 190:return t.createIdentifier("Array");case 183:return ie.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 204:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 202:return P(ie.literal);case 150:return t.createIdentifier("Number");case 163:return ye("BigInt",7);case 155:return ye("Symbol",2);case 184:return O(ie);case 194:return k(ie.types,!0);case 193:return k(ie.types,!1);case 195:return k([ie.trueType,ie.falseType],!1);case 199:if(ie.operator===148)return N(ie.type);break;case 187:case 200:case 201:case 188:case 133:case 159:case 198:case 206:break;case 313:case 314:case 318:case 319:case 320:break;case 315:case 316:case 317:return N(ie.type);default:return C.failBadSyntaxKind(ie)}return t.createIdentifier("Object")}function P(ie){switch(ie.kind){case 11:case 15:return t.createIdentifier("String");case 225:{let K=ie.operand;switch(K.kind){case 9:case 10:return P(K);default:return C.failBadSyntaxKind(K)}}case 9:return t.createIdentifier("Number");case 10:return ye("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return C.failBadSyntaxKind(ie)}}function k(ie,K){let pe;for(let de of ie){if(de=QN(de),de.kind===146){if(K)return t.createVoidZero();continue}if(de.kind===159){if(!K)return t.createIdentifier("Object");continue}if(de.kind===133)return t.createIdentifier("Object");if(!l&&(lv(de)&&de.literal.kind===106||de.kind===157))continue;let fe=N(de);if(He(fe)&&fe.escapedText==="Object")return fe;if(pe){if(!F(pe,fe))return t.createIdentifier("Object")}else pe=fe}return pe??t.createVoidZero()}function F(ie,K){return pl(ie)?pl(K):He(ie)?He(K)&&ie.escapedText===K.escapedText:qr(ie)?qr(K)&&F(ie.expression,K.expression)&&F(ie.name,K.name):FI(ie)?FI(K)&&ep(ie.expression)&&ie.expression.text==="0"&&ep(K.expression)&&K.expression.text==="0":ka(ie)?ka(K)&&ie.text===K.text:pD(ie)?pD(K)&&F(ie.expression,K.expression):wu(ie)?wu(K)&&F(ie.expression,K.expression):pE(ie)?pE(K)&&F(ie.condition,K.condition)&&F(ie.whenTrue,K.whenTrue)&&F(ie.whenFalse,K.whenFalse):Nr(ie)?Nr(K)&&ie.operatorToken.kind===K.operatorToken.kind&&F(ie.left,K.left)&&F(ie.right,K.right):!1}function O(ie){let K=i.getTypeReferenceSerializationKind(ie.typeName,d??u);switch(K){case 0:if(Dn(ie,fe=>fe.parent&&M1(fe.parent)&&(fe.parent.trueType===fe||fe.parent.falseType===fe)))return t.createIdentifier("Object");let pe=j(ie.typeName),de=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(de,pe),"function"),void 0,de,void 0,t.createIdentifier("Object"));case 1:return J(ie.typeName);case 2:return t.createVoidZero();case 4:return ye("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 ye("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return C.assertNever(K)}}function G(ie,K){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ie),t.createStringLiteral("undefined")),K)}function j(ie){if(ie.kind===80){let de=J(ie);return G(de,de)}if(ie.left.kind===80)return G(J(ie.left),J(ie));let K=j(ie.left),pe=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(K.left,t.createStrictInequality(t.createAssignment(pe,K.right),t.createVoidZero())),t.createPropertyAccessExpression(pe,ie.right))}function J(ie){switch(ie.kind){case 80:let K=us(bt($0.cloneNode(ie),ie),ie.parent);return K.original=void 0,us(K,jo(u)),K;case 167:return Z(ie)}}function Z(ie){return t.createPropertyAccessExpression(J(ie.left),ie.right)}function q(ie){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ie),"function"),void 0,t.createIdentifier(ie),void 0,t.createIdentifier("Object"))}function ye(ie,K){return s<K?q(ie):t.createIdentifier(ie)}}function Dae(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Ga(s),u=e.onSubstituteNode;e.onSubstituteNode=De;let d;return hh(e,g);function g(We){let at=kn(We,v,e);return Eg(at,e.readEmitHelpers()),at}function _(We){return zc(We)?void 0:We}function v(We){if(!(We.transformFlags&33554432))return We;switch(We.kind){case 171:return;case 264:return E(We);case 232:return O(We);case 177:return G(We);case 175:return J(We);case 179:return q(We);case 178:return Z(We);case 173:return ye(We);case 170:return ie(We);default:return kn(We,v,e)}}function E(We){if(!(Qy(!0,We)||HN(!0,We)))return kn(We,v,e);let at=Qy(!0,We)?F(We,We.name):k(We,We.name);return A_(at)}function A(We){return!!(We.transformFlags&536870912)}function R(We){return vt(We,A)}function N(We){for(let at of We.members){if(!F1(at))continue;let Wt=sF(at,We,!0);if(vt(Wt?.decorators,A)||vt(Wt?.parameters,R))return!0}return!1}function P(We,at){let Wt=[];return de(Wt,We,!1),de(Wt,We,!0),N(We)&&(at=bt(t.createNodeArray([...at,t.createClassStaticBlockDeclaration(t.createBlock(Wt,!0))]),at),Wt=void 0),{decorationStatements:Wt,members:at}}function k(We,at){let Wt=Xn(We.modifiers,_,Aa),cn=Xn(We.heritageClauses,v,Op),gn=Xn(We.members,v,Tc),Kn=[];({members:gn,decorationStatements:Kn}=P(We,gn));let _t=t.updateClassDeclaration(We,Wt,at,void 0,cn,gn);return Xr([_t],Kn)}function F(We,at){let Wt=di(We,32),cn=di(We,2048),gn=Xn(We.modifiers,At=>hw(At)||zc(At)?void 0:At,fl),Kn=Xh(We),_t=Be(We),en=l<2?t.getInternalName(We,!1,!0):t.getLocalName(We,!1,!0),ir=Xn(We.heritageClauses,v,Op),Di=Xn(We.members,v,Tc),lo=[];({members:Di,decorationStatements:lo}=P(We,Di));let zt=l>=9&&!!_t&&vt(Di,At=>Po(At)&&di(At,256)||$l(At));zt&&(Di=bt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(_t,t.createThis()))])),...Di]),Di));let Zr=t.createClassExpression(gn,at&&pl(at)?void 0:at,void 0,ir,Di);jr(Zr,We),bt(Zr,Kn);let Ai=_t&&!zt?t.createAssignment(_t,Zr):Zr,Ni=t.createVariableDeclaration(en,void 0,void 0,Ai);jr(Ni,We);let Pr=t.createVariableDeclarationList([Ni],1),Ci=t.createVariableStatement(void 0,Pr);jr(Ci,We),bt(Ci,Kn),Dc(Ci,We);let $e=[Ci];if(Xr($e,lo),Ce($e,We),Wt)if(cn){let At=t.createExportDefault(en);$e.push(At)}else{let At=t.createExternalModuleExport(t.getDeclarationName(We));$e.push(At)}return $e}function O(We){return t.updateClassExpression(We,Xn(We.modifiers,_,Aa),We.name,void 0,Xn(We.heritageClauses,v,Op),Xn(We.members,v,Tc))}function G(We){return t.updateConstructorDeclaration(We,Xn(We.modifiers,_,Aa),Xn(We.parameters,v,to),st(We.body,v,ea))}function j(We,at){return We!==at&&(Dc(We,at),Ua(We,Xh(at))),We}function J(We){return j(t.updateMethodDeclaration(We,Xn(We.modifiers,_,Aa),We.asteriskToken,C.checkDefined(st(We.name,v,bc)),void 0,void 0,Xn(We.parameters,v,to),void 0,st(We.body,v,ea)),We)}function Z(We){return j(t.updateGetAccessorDeclaration(We,Xn(We.modifiers,_,Aa),C.checkDefined(st(We.name,v,bc)),Xn(We.parameters,v,to),void 0,st(We.body,v,ea)),We)}function q(We){return j(t.updateSetAccessorDeclaration(We,Xn(We.modifiers,_,Aa),C.checkDefined(st(We.name,v,bc)),Xn(We.parameters,v,to),st(We.body,v,ea)),We)}function ye(We){if(!(We.flags&33554432||di(We,128)))return j(t.updatePropertyDeclaration(We,Xn(We.modifiers,_,Aa),C.checkDefined(st(We.name,v,bc)),void 0,void 0,st(We.initializer,v,St)),We)}function ie(We){let at=t.updateParameterDeclaration(We,$ie(t,We.modifiers),We.dotDotDotToken,C.checkDefined(st(We.name,v,VS)),void 0,void 0,st(We.initializer,v,St));return at!==We&&(Dc(at,We),bt(at,Xh(We)),Ua(at,Xh(We)),Cr(at.name,64)),at}function K(We){return kM(We.expression,"___metadata")}function pe(We){if(!We)return;let{false:at,true:Wt}=Cz(We.decorators,K),cn=[];return Xr(cn,Vt(at,Se)),Xr(cn,Ki(We.parameters,re)),Xr(cn,Vt(Wt,Se)),cn}function de(We,at,Wt){Xr(We,Vt(xe(at,Wt),cn=>t.createExpressionStatement(cn)))}function fe(We,at,Wt){return ek(!0,We,Wt)&&at===ua(We)}function ve(We,at){return Un(We.members,Wt=>fe(Wt,at,We))}function xe(We,at){let Wt=ve(We,at),cn;for(let gn of Wt)cn=Bn(cn,Y(We,gn));return cn}function Y(We,at){let Wt=sF(at,We,!0),cn=pe(Wt);if(!cn)return;let gn=ce(We,at),Kn=be(at,!di(at,128)),_t=Po(at)&&!Jh(at)?t.createVoidZero():t.createNull(),en=r().createDecorateHelper(cn,gn,Kn,_t);return Cr(en,3072),Ua(en,Xh(at)),en}function Ce(We,at){let Wt=Xe(at);Wt&&We.push(jr(t.createExpressionStatement(Wt),at))}function Xe(We){let at=wU(We,!0),Wt=pe(at);if(!Wt)return;let cn=d&&d[Wu(We)],gn=l<2?t.getInternalName(We,!1,!0):t.getDeclarationName(We,!1,!0),Kn=r().createDecorateHelper(Wt,gn),_t=t.createAssignment(gn,cn?t.createAssignment(cn,Kn):Kn);return Cr(_t,3072),Ua(_t,Xh(We)),_t}function Se(We){return C.checkDefined(st(We.expression,v,St))}function re(We,at){let Wt;if(We){Wt=[];for(let cn of We){let gn=r().createParamHelper(Se(cn),at);bt(gn,cn.expression),Cr(gn,3072),Wt.push(gn)}}return Wt}function be(We,at){let Wt=We.name;return eo(Wt)?t.createIdentifier(""):va(Wt)?at&&!F_(Wt.expression)?t.getGeneratedNameForNode(Wt):Wt.expression:He(Wt)?t.createStringLiteral(Kr(Wt)):t.cloneNode(Wt)}function Ne(){d||(e.enableSubstitution(80),d=[])}function Be(We){if(o.hasNodeCheckFlag(We,262144)){Ne();let at=t.createUniqueName(We.name&&!pl(We.name)?Kr(We.name):"default");return d[Wu(We)]=at,i(at),at}}function lt(We){return t.createPropertyAccessExpression(t.getDeclarationName(We),"prototype")}function ce(We,at){return ua(at)?t.getDeclarationName(We):lt(We)}function De(We,at){return at=u(We,at),We===1?ge(at):at}function ge(We){switch(We.kind){case 80:return je(We)}return We}function je(We){return Ge(We)??We}function Ge(We){if(d&&o.hasNodeCheckFlag(We,536870912)){let at=o.getReferencedValueDeclaration(We);if(at){let Wt=d[at.id];if(Wt){let cn=t.cloneNode(Wt);return Ua(cn,We),Dc(cn,We),cn}}}}}function Cae(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=Ga(e.getCompilerOptions()),u,d,g,_,v,E;return hh(e,A);function A(B){u=void 0,E=!1;let Ae=kn(B,q,e);return Eg(Ae,e.readEmitHelpers()),E&&(aE(Ae,32),E=!1),Ae}function R(){switch(d=void 0,g=void 0,_=void 0,u?.kind){case"class":d=u.classInfo;break;case"class-element":d=u.next.classInfo,g=u.classThis,_=u.classSuper;break;case"name":let B=u.next.next.next;B?.kind==="class-element"&&(d=B.next.classInfo,g=B.classThis,_=B.classSuper);break}}function N(B){u={kind:"class",next:u,classInfo:B,savedPendingExpressions:v},v=void 0,R()}function P(){C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),v=u.savedPendingExpressions,u=u.next,R()}function k(B){var Ae,te;C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),u={kind:"class-element",next:u},($l(B)||Po(B)&&Wc(B))&&(u.classThis=(Ae=u.next.classInfo)==null?void 0:Ae.classThis,u.classSuper=(te=u.next.classInfo)==null?void 0:te.classSuper),R()}function F(){var B;C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),C.assert(((B=u.next)==null?void 0:B.kind)==="class","Incorrect value for top.next.kind.",()=>{var Ae;return`Expected top.next.kind to be 'class' but got '${(Ae=u.next)==null?void 0:Ae.kind}' instead.`}),u=u.next,R()}function O(){C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),u={kind:"name",next:u},R()}function G(){C.assert(u?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u?.kind}' instead.`),u=u.next,R()}function j(){u?.kind==="other"?(C.assert(!v),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:v},v=void 0,R())}function J(){C.assert(u?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u?.kind}' instead.`),u.depth>0?(C.assert(!v),u.depth--):(v=u.savedPendingExpressions,u=u.next,R())}function Z(B){return!!(B.transformFlags&33554432)||!!g&&!!(B.transformFlags&16384)||!!g&&!!_&&!!(B.transformFlags&134217728)}function q(B){if(!Z(B))return B;switch(B.kind){case 171:return C.fail("Use `modifierVisitor` instead.");case 264:return Xe(B);case 232:return Se(B);case 177:case 173:case 176:return C.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return Kn(B);case 227:return lo(B,!1);case 304:return Ci(B);case 261:return $e(B);case 209:return At(B);case 278:return ot(B);case 110:return We(B);case 249:return ir(B);case 245:return Di(B);case 357:return Zr(B,!1);case 218:return Ft(B,!1);case 356:return le(B);case 214:return at(B);case 216:return Wt(B);case 225:case 226:return zt(B,!1);case 212:return cn(B);case 213:return gn(B);case 168:return Pr(B);case 175:case 179:case 178:case 219:case 263:{j();let Ae=kn(B,ye,e);return J(),Ae}default:return kn(B,ye,e)}}function ye(B){switch(B.kind){case 171:return;default:return q(B)}}function ie(B){switch(B.kind){case 171:return;default:return B}}function K(B){switch(B.kind){case 177:return Ne(B);case 175:return ce(B);case 178:return De(B);case 179:return ge(B);case 173:return Ge(B);case 176:return je(B);default:return q(B)}}function pe(B){switch(B.kind){case 225:case 226:return zt(B,!0);case 227:return lo(B,!0);case 357:return Zr(B,!0);case 218:return Ft(B,!0);default:return q(B)}}function de(B){let Ae=B.name&&He(B.name)&&!pl(B.name)?Kr(B.name):B.name&&eo(B.name)&&!pl(B.name)?Kr(B.name).slice(1):B.name&&ka(B.name)&&pp(B.name.text,99)?B.name.text:ui(B)?"class":"member";return dg(B)&&(Ae=`get_${Ae}`),Gh(B)&&(Ae=`set_${Ae}`),B.name&&eo(B.name)&&(Ae=`private_${Ae}`),ua(B)&&(Ae=`static_${Ae}`),"_"+Ae}function fe(B,Ae){return t.createUniqueName(`${de(B)}_${Ae}`,24)}function ve(B,Ae){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(B,void 0,void 0,Ae)],1))}function xe(B){let Ae=t.createUniqueName("_metadata",48),te,xt,Xt=!1,Le=!1,gt=!1,Bt,gr,tr;if(GR(!1,B)){let Jn=vt(B.members,ft=>(tu(ft)||Ku(ft))&&Wc(ft));Bt=t.createUniqueName("_classThis",Jn?24:48)}for(let Jn of B.members){if($A(Jn)&&ek(!1,Jn,B))if(Wc(Jn)){if(!xt){xt=t.createUniqueName("_staticExtraInitializers",48);let ft=r().createRunInitializersHelper(Bt??t.createThis(),xt);Ua(ft,B.name??ly(B)),gr??(gr=[]),gr.push(ft)}}else{if(!te){te=t.createUniqueName("_instanceExtraInitializers",48);let ft=r().createRunInitializersHelper(t.createThis(),te);Ua(ft,B.name??ly(B)),tr??(tr=[]),tr.push(ft)}te??(te=t.createUniqueName("_instanceExtraInitializers",48))}if($l(Jn)?QI(Jn)||(Xt=!0):Po(Jn)&&(Wc(Jn)?Xt||(Xt=!!Jn.initializer||uf(Jn)):Le||(Le=!lG(Jn))),(tu(Jn)||Ku(Jn))&&Wc(Jn)&&(gt=!0),xt&&te&&Xt&&Le&&gt)break}return{class:B,classThis:Bt,metadataReference:Ae,instanceMethodExtraInitializersName:te,staticMethodExtraInitializersName:xt,hasStaticInitializers:Xt,hasNonAmbientInstanceFields:Le,hasStaticPrivateClassElements:gt,pendingStaticInitializers:gr,pendingInstanceInitializers:tr}}function Y(B){i(),!FU(B)&&Qy(!1,B)&&(B=dF(e,B,t.createStringLiteral("")));let Ae=t.getLocalName(B,!1,!1,!0),te=xe(B),xt=[],Xt,Le,gt,Bt,gr=!1,tr=it(wU(B,!1));tr&&(te.classDecoratorsName=t.createUniqueName("_classDecorators",48),te.classDescriptorName=t.createUniqueName("_classDescriptor",48),te.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),C.assertIsDefined(te.classThis),xt.push(ve(te.classDecoratorsName,t.createArrayLiteralExpression(tr)),ve(te.classDescriptorName),ve(te.classExtraInitializersName,t.createArrayLiteralExpression()),ve(te.classThis)),te.hasStaticPrivateClassElements&&(gr=!0,E=!0));let Jn=gk(B.heritageClauses,96),ft=Jn&&Ic(Jn.types),Mt=ft&&st(ft.expression,q,St);if(Mt){te.classSuper=t.createUniqueName("_classSuper",48);let xn=Ul(Mt),Ln=uc(xn)&&!xn.name||Us(xn)&&!xn.name||Xs(xn)?t.createComma(t.createNumericLiteral(0),Mt):Mt;xt.push(ve(te.classSuper,Ln));let ln=t.updateExpressionWithTypeArguments(ft,te.classSuper,void 0),Ii=t.updateHeritageClause(Jn,[ln]);Bt=t.createNodeArray([Ii])}let jt=te.classThis??t.createThis();N(te),Xt=Bn(Xt,Oe(te.metadataReference,te.classSuper));let Qt=B.members;if(Qt=Xn(Qt,xn=>Ml(xn)?xn:K(xn),Tc),Qt=Xn(Qt,xn=>Ml(xn)?K(xn):xn,Tc),v){let xn;for(let Ln of v){Ln=st(Ln,function Ii(ra){if(!(ra.transformFlags&16384))return ra;switch(ra.kind){case 110:return xn||(xn=t.createUniqueName("_outerThis",16),xt.unshift(ve(xn,t.createThis()))),xn;default:return kn(ra,Ii,e)}},St);let ln=t.createExpressionStatement(Ln);Xt=Bn(Xt,ln)}v=void 0}if(P(),vt(te.pendingInstanceInitializers)&&!gg(B)){let xn=re(B,te);if(xn){let Ln=lh(B),ln=!!(Ln&&Ul(Ln.expression).kind!==106),Ii=[];if(ln){let sa=t.createSpreadElement(t.createIdentifier("arguments")),zo=t.createCallExpression(t.createSuper(),void 0,[sa]);Ii.push(t.createExpressionStatement(zo))}Xr(Ii,xn);let ra=t.createBlock(Ii,!0);gt=t.createConstructorDeclaration(void 0,[],ra)}}if(te.staticMethodExtraInitializersName&&xt.push(ve(te.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),te.instanceMethodExtraInitializersName&&xt.push(ve(te.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),te.memberInfos&&qc(te.memberInfos,(xn,Ln)=>{ua(Ln)&&(xt.push(ve(xn.memberDecoratorsName)),xn.memberInitializersName&&xt.push(ve(xn.memberInitializersName,t.createArrayLiteralExpression())),xn.memberExtraInitializersName&&xt.push(ve(xn.memberExtraInitializersName,t.createArrayLiteralExpression())),xn.memberDescriptorName&&xt.push(ve(xn.memberDescriptorName)))}),te.memberInfos&&qc(te.memberInfos,(xn,Ln)=>{ua(Ln)||(xt.push(ve(xn.memberDecoratorsName)),xn.memberInitializersName&&xt.push(ve(xn.memberInitializersName,t.createArrayLiteralExpression())),xn.memberExtraInitializersName&&xt.push(ve(xn.memberExtraInitializersName,t.createArrayLiteralExpression())),xn.memberDescriptorName&&xt.push(ve(xn.memberDescriptorName)))}),Xt=Xr(Xt,te.staticNonFieldDecorationStatements),Xt=Xr(Xt,te.nonStaticNonFieldDecorationStatements),Xt=Xr(Xt,te.staticFieldDecorationStatements),Xt=Xr(Xt,te.nonStaticFieldDecorationStatements),te.classDescriptorName&&te.classDecoratorsName&&te.classExtraInitializersName&&te.classThis){Xt??(Xt=[]);let xn=t.createPropertyAssignment("value",jt),Ln=t.createObjectLiteralExpression([xn]),ln=t.createAssignment(te.classDescriptorName,Ln),Ii=t.createPropertyAccessExpression(jt,"name"),ra=r().createESDecorateHelper(t.createNull(),ln,te.classDecoratorsName,{kind:"class",name:Ii,metadata:te.metadataReference},t.createNull(),te.classExtraInitializersName),sa=t.createExpressionStatement(ra);Ua(sa,ly(B)),Xt.push(sa);let zo=t.createPropertyAccessExpression(te.classDescriptorName,"value"),Bl=t.createAssignment(te.classThis,zo),xl=t.createAssignment(Ae,Bl);Xt.push(t.createExpressionStatement(xl))}if(Xt.push(Nt(jt,te.metadataReference)),vt(te.pendingStaticInitializers)){for(let xn of te.pendingStaticInitializers){let Ln=t.createExpressionStatement(xn);Ua(Ln,ov(xn)),Le=Bn(Le,Ln)}te.pendingStaticInitializers=void 0}if(te.classExtraInitializersName){let xn=r().createRunInitializersHelper(jt,te.classExtraInitializersName),Ln=t.createExpressionStatement(xn);Ua(Ln,B.name??ly(B)),Le=Bn(Le,Ln)}Xt&&Le&&!te.hasStaticInitializers&&(Xr(Xt,Le),Le=void 0);let In=Xt&&t.createClassStaticBlockDeclaration(t.createBlock(Xt,!0));In&&gr&&Zk(In,32);let yn=Le&&t.createClassStaticBlockDeclaration(t.createBlock(Le,!0));if(In||gt||yn){let xn=[],Ln=Qt.findIndex(QI);In?(Xr(xn,Qt,0,Ln+1),xn.push(In),Xr(xn,Qt,Ln+1)):Xr(xn,Qt),gt&&xn.push(gt),yn&&xn.push(yn),Qt=bt(t.createNodeArray(xn),Qt)}let wt=o(),En;if(tr){En=t.createClassExpression(void 0,void 0,void 0,Bt,Qt),te.classThis&&(En=Tae(t,En,te.classThis));let xn=t.createVariableDeclaration(Ae,void 0,void 0,En),Ln=t.createVariableDeclarationList([xn]),ln=te.classThis?t.createAssignment(Ae,te.classThis):Ae;xt.push(t.createVariableStatement(void 0,Ln),t.createReturnStatement(ln))}else En=t.createClassExpression(void 0,B.name,void 0,Bt,Qt),xt.push(t.createReturnStatement(En));if(gr){aE(En,32);for(let xn of En.members)(tu(xn)||Ku(xn))&&Wc(xn)&&aE(xn,32)}return jr(En,B),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(xt,wt))}function Ce(B){return Qy(!1,B)||HN(!1,B)}function Xe(B){if(Ce(B)){let Ae=[],te=yl(B,ui)??B,xt=te.name?t.createStringLiteralFromNode(te.name):t.createStringLiteral("default"),Xt=di(B,32),Le=di(B,2048);if(B.name||(B=dF(e,B,xt)),Xt&&Le){let gt=Y(B);if(B.name){let Bt=t.createVariableDeclaration(t.getLocalName(B),void 0,void 0,gt);jr(Bt,B);let gr=t.createVariableDeclarationList([Bt],1),tr=t.createVariableStatement(void 0,gr);Ae.push(tr);let Jn=t.createExportDefault(t.getDeclarationName(B));jr(Jn,B),Dc(Jn,Qh(B)),Ua(Jn,ly(B)),Ae.push(Jn)}else{let Bt=t.createExportDefault(gt);jr(Bt,B),Dc(Bt,Qh(B)),Ua(Bt,ly(B)),Ae.push(Bt)}}else{C.assertIsDefined(B.name,"A class declaration that is not a default export must have a name.");let gt=Y(B),Bt=Xt?jt=>PI(jt)?void 0:ie(jt):ie,gr=Xn(B.modifiers,Bt,Aa),tr=t.getLocalName(B,!1,!0),Jn=t.createVariableDeclaration(tr,void 0,void 0,gt);jr(Jn,B);let ft=t.createVariableDeclarationList([Jn],1),Mt=t.createVariableStatement(gr,ft);if(jr(Mt,B),Dc(Mt,Qh(B)),Ae.push(Mt),Xt){let jt=t.createExternalModuleExport(tr);jr(jt,B),Ae.push(jt)}}return A_(Ae)}else{let Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.heritageClauses,q,Op);N(void 0);let xt=Xn(B.members,K,Tc);return P(),t.updateClassDeclaration(B,Ae,B.name,void 0,te,xt)}}function Se(B){if(Ce(B)){let Ae=Y(B);return jr(Ae,B),Ae}else{let Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.heritageClauses,q,Op);N(void 0);let xt=Xn(B.members,K,Tc);return P(),t.updateClassExpression(B,Ae,B.name,void 0,te,xt)}}function re(B,Ae){if(vt(Ae.pendingInstanceInitializers)){let te=[];return te.push(t.createExpressionStatement(t.inlineExpressions(Ae.pendingInstanceInitializers))),Ae.pendingInstanceInitializers=void 0,te}}function be(B,Ae,te,xt,Xt,Le){let gt=xt[Xt],Bt=Ae[gt];if(Xr(B,Xn(Ae,q,ji,te,gt-te)),mE(Bt)){let gr=[];be(gr,Bt.tryBlock.statements,0,xt,Xt+1,Le);let tr=t.createNodeArray(gr);bt(tr,Bt.tryBlock.statements),B.push(t.updateTryStatement(Bt,t.updateBlock(Bt.tryBlock,gr),st(Bt.catchClause,q,O1),st(Bt.finallyBlock,q,ea)))}else Xr(B,Xn(Ae,q,ji,gt,1)),Xr(B,Le);Xr(B,Xn(Ae,q,ji,gt+1))}function Ne(B){k(B);let Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.parameters,q,to),xt;if(B.body&&d){let Xt=re(d.class,d);if(Xt){let Le=[],gt=t.copyPrologue(B.body.statements,Le,!1,q),Bt=oF(B.body.statements,gt);Bt.length>0?be(Le,B.body.statements,gt,Bt,0,Xt):(Xr(Le,Xt),Xr(Le,Xn(B.body.statements,q,ji))),xt=t.createBlock(Le,!0),jr(xt,B.body),bt(xt,B.body)}}return xt??(xt=st(B.body,q,ea)),F(),t.updateConstructorDeclaration(B,Ae,te,xt)}function Be(B,Ae){return B!==Ae&&(Dc(B,Ae),Ua(B,ly(Ae))),B}function lt(B,Ae,te){let xt,Xt,Le,gt,Bt,gr;if(!Ae){let ft=Xn(B.modifiers,ie,Aa);return O(),Xt=Ni(B.name),G(),{modifiers:ft,referencedName:xt,name:Xt,initializersName:Le,descriptorName:gr,thisArg:Bt}}let tr=it(sF(B,Ae.class,!1)),Jn=Xn(B.modifiers,ie,Aa);if(tr){let ft=fe(B,"decorators"),Mt=t.createArrayLiteralExpression(tr),jt=t.createAssignment(ft,Mt),Qt={memberDecoratorsName:ft};Ae.memberInfos??(Ae.memberInfos=new Map),Ae.memberInfos.set(B,Qt),v??(v=[]),v.push(jt);let In=$A(B)||Ku(B)?ua(B)?Ae.staticNonFieldDecorationStatements??(Ae.staticNonFieldDecorationStatements=[]):Ae.nonStaticNonFieldDecorationStatements??(Ae.nonStaticNonFieldDecorationStatements=[]):Po(B)&&!Ku(B)?ua(B)?Ae.staticFieldDecorationStatements??(Ae.staticFieldDecorationStatements=[]):Ae.nonStaticFieldDecorationStatements??(Ae.nonStaticFieldDecorationStatements=[]):C.fail(),yn=jf(B)?"getter":_p(B)?"setter":Nl(B)?"method":Ku(B)?"accessor":Po(B)?"field":C.fail(),wt;if(He(B.name)||eo(B.name))wt={computed:!1,name:B.name};else if(Hh(B.name))wt={computed:!0,name:t.createStringLiteralFromNode(B.name)};else{let xn=B.name.expression;Hh(xn)&&!He(xn)?wt={computed:!0,name:t.createStringLiteralFromNode(xn)}:(O(),{referencedName:xt,name:Xt}=Ai(B.name),wt={computed:!0,name:xt},G())}let En={kind:yn,name:wt,static:ua(B),private:eo(B.name),access:{get:Po(B)||jf(B)||Nl(B),set:Po(B)||_p(B)},metadata:Ae.metadataReference};if($A(B)){let xn=ua(B)?Ae.staticMethodExtraInitializersName:Ae.instanceMethodExtraInitializersName;C.assertIsDefined(xn);let Ln;tu(B)&&te&&(Ln=te(B,Xn(Jn,ra=>ni(ra,wM),Aa)),Qt.memberDescriptorName=gr=fe(B,"descriptor"),Ln=t.createAssignment(gr,Ln));let ln=r().createESDecorateHelper(t.createThis(),Ln??t.createNull(),ft,En,t.createNull(),xn),Ii=t.createExpressionStatement(ln);Ua(Ii,ly(B)),In.push(Ii)}else if(Po(B)){Le=Qt.memberInitializersName??(Qt.memberInitializersName=fe(B,"initializers")),gt=Qt.memberExtraInitializersName??(Qt.memberExtraInitializersName=fe(B,"extraInitializers")),ua(B)&&(Bt=Ae.classThis);let xn;tu(B)&&Jh(B)&&te&&(xn=te(B,void 0),Qt.memberDescriptorName=gr=fe(B,"descriptor"),xn=t.createAssignment(gr,xn));let Ln=r().createESDecorateHelper(Ku(B)?t.createThis():t.createNull(),xn??t.createNull(),ft,En,Le,gt),ln=t.createExpressionStatement(Ln);Ua(ln,ly(B)),In.push(ln)}}return Xt===void 0&&(O(),Xt=Ni(B.name),G()),!vt(Jn)&&(Nl(B)||Po(B))&&Cr(Xt,1024),{modifiers:Jn,referencedName:xt,name:Xt,initializersName:Le,extraInitializersName:gt,descriptorName:gr,thisArg:Bt}}function ce(B){k(B);let{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,Ue);if(xt)return F(),Be(nt(Ae,te,xt),B);{let Xt=Xn(B.parameters,q,to),Le=st(B.body,q,ea);return F(),Be(t.updateMethodDeclaration(B,Ae,B.asteriskToken,te,void 0,void 0,Xt,void 0,Le),B)}}function De(B){k(B);let{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,Rt);if(xt)return F(),Be(Kt(Ae,te,xt),B);{let Xt=Xn(B.parameters,q,to),Le=st(B.body,q,ea);return F(),Be(t.updateGetAccessorDeclaration(B,Ae,te,Xt,void 0,Le),B)}}function ge(B){k(B);let{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,It);if(xt)return F(),Be(Sr(Ae,te,xt),B);{let Xt=Xn(B.parameters,q,to),Le=st(B.body,q,ea);return F(),Be(t.updateSetAccessorDeclaration(B,Ae,te,Xt,Le),B)}}function je(B){k(B);let Ae;if(QI(B))Ae=kn(B,q,e);else if(cP(B)){let te=g;g=void 0,Ae=kn(B,q,e),g=te}else if(B=kn(B,q,e),Ae=B,d&&(d.hasStaticInitializers=!0,vt(d.pendingStaticInitializers))){let te=[];for(let Le of d.pendingStaticInitializers){let gt=t.createExpressionStatement(Le);Ua(gt,ov(Le)),te.push(gt)}let xt=t.createBlock(te,!0);Ae=[t.createClassStaticBlockDeclaration(xt),Ae],d.pendingStaticInitializers=void 0}return F(),Ae}function Ge(B){Mp(B,_t)&&(B=Wp(e,B,en(B.initializer))),k(B),C.assert(!lG(B),"Not yet implemented.");let{modifiers:Ae,name:te,initializersName:xt,extraInitializersName:Xt,descriptorName:Le,thisArg:gt}=lt(B,d,Jh(B)?Ot:void 0);i();let Bt=st(B.initializer,q,St);xt&&(Bt=r().createRunInitializersHelper(gt??t.createThis(),xt,Bt??t.createVoidZero())),ua(B)&&d&&Bt&&(d.hasStaticInitializers=!0);let gr=o();if(vt(gr)&&(Bt=t.createImmediatelyInvokedArrowFunction([...gr,t.createReturnStatement(Bt)])),d&&(ua(B)?(Bt=Fe(d,!0,Bt),Xt&&(d.pendingStaticInitializers??(d.pendingStaticInitializers=[]),d.pendingStaticInitializers.push(r().createRunInitializersHelper(d.classThis??t.createThis(),Xt)))):(Bt=Fe(d,!1,Bt),Xt&&(d.pendingInstanceInitializers??(d.pendingInstanceInitializers=[]),d.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Xt))))),F(),Jh(B)&&Le){let tr=Qh(B),Jn=ov(B),ft=B.name,Mt=ft,jt=ft;if(va(ft)&&!F_(ft.expression)){let En=A3(ft);if(En)Mt=t.updateComputedPropertyName(ft,st(ft.expression,q,St)),jt=t.updateComputedPropertyName(ft,En.left);else{let xn=t.createTempVariable(s);Ua(xn,ft.expression);let Ln=st(ft.expression,q,St),ln=t.createAssignment(xn,Ln);Ua(ln,ft.expression),Mt=t.updateComputedPropertyName(ft,ln),jt=t.updateComputedPropertyName(ft,xn)}}let Qt=Xn(Ae,En=>En.kind!==129?En:void 0,Aa),In=Lj(t,B,Qt,Bt);jr(In,B),Cr(In,3072),Ua(In,Jn),Ua(In.name,B.name);let yn=Kt(Qt,Mt,Le);jr(yn,B),Dc(yn,tr),Ua(yn,Jn);let wt=Sr(Qt,jt,Le);return jr(wt,B),Cr(wt,3072),Ua(wt,Jn),[In,yn,wt]}return Be(t.updatePropertyDeclaration(B,Ae,te,void 0,void 0,Bt),B)}function We(B){return g??B}function at(B){if(fp(B.expression)&&g){let Ae=st(B.expression,q,St),te=Xn(B.arguments,q,St),xt=t.createFunctionCallCall(Ae,g,te);return jr(xt,B),bt(xt,B),xt}return kn(B,q,e)}function Wt(B){if(fp(B.tag)&&g){let Ae=st(B.tag,q,St),te=t.createFunctionBindCall(Ae,g,[]);jr(te,B),bt(te,B);let xt=st(B.template,q,QA);return t.updateTaggedTemplateExpression(B,te,void 0,xt)}return kn(B,q,e)}function cn(B){if(fp(B)&&He(B.name)&&g&&_){let Ae=t.createStringLiteralFromNode(B.name),te=t.createReflectGetCall(_,Ae,g);return jr(te,B.expression),bt(te,B.expression),te}return kn(B,q,e)}function gn(B){if(fp(B)&&g&&_){let Ae=st(B.argumentExpression,q,St),te=t.createReflectGetCall(_,Ae,g);return jr(te,B.expression),bt(te,B.expression),te}return kn(B,q,e)}function Kn(B){Mp(B,_t)&&(B=Wp(e,B,en(B.initializer)));let Ae=t.updateParameterDeclaration(B,void 0,B.dotDotDotToken,st(B.name,q,VS),void 0,void 0,st(B.initializer,q,St));return Ae!==B&&(Dc(Ae,B),bt(Ae,Xh(B)),Ua(Ae,Xh(B)),Cr(Ae.name,64)),Ae}function _t(B){return uc(B)&&!B.name&&Ce(B)}function en(B){let Ae=Ul(B);return uc(Ae)&&!Ae.name&&!Qy(!1,Ae)}function ir(B){return t.updateForStatement(B,st(B.initializer,pe,kf),st(B.condition,q,St),st(B.incrementor,pe,St),Ou(B.statement,q,e))}function Di(B){return kn(B,pe,e)}function lo(B,Ae){if(ev(B)){let te=Uo(B.left),xt=st(B.right,q,St);return t.updateBinaryExpression(B,te,B.operatorToken,xt)}if(id(B)){if(Mp(B,_t))return B=Wp(e,B,en(B.right)),kn(B,q,e);if(fp(B.left)&&g&&_){let te=Ws(B.left)?st(B.left.argumentExpression,q,St):He(B.left.name)?t.createStringLiteralFromNode(B.left.name):void 0;if(te){let xt=st(B.right,q,St);if(aP(B.operatorToken.kind)){let Le=te;F_(te)||(Le=t.createTempVariable(s),te=t.createAssignment(Le,te));let gt=t.createReflectGetCall(_,Le,g);jr(gt,B.left),bt(gt,B.left),xt=t.createBinaryExpression(gt,sP(B.operatorToken.kind),xt),bt(xt,B)}let Xt=Ae?void 0:t.createTempVariable(s);return Xt&&(xt=t.createAssignment(Xt,xt),bt(Xt,B)),xt=t.createReflectSetCall(_,te,xt,g),jr(xt,B),bt(xt,B),Xt&&(xt=t.createComma(xt,Xt),bt(xt,B)),xt}}}if(B.operatorToken.kind===28){let te=st(B.left,pe,St),xt=st(B.right,Ae?pe:q,St);return t.updateBinaryExpression(B,te,B.operatorToken,xt)}return kn(B,q,e)}function zt(B,Ae){if(B.operator===46||B.operator===47){let te=ds(B.operand);if(fp(te)&&g&&_){let xt=Ws(te)?st(te.argumentExpression,q,St):He(te.name)?t.createStringLiteralFromNode(te.name):void 0;if(xt){let Xt=xt;F_(xt)||(Xt=t.createTempVariable(s),xt=t.createAssignment(Xt,xt));let Le=t.createReflectGetCall(_,Xt,g);jr(Le,B),bt(Le,B);let gt=Ae?void 0:t.createTempVariable(s);return Le=y3(t,B,Le,s,gt),Le=t.createReflectSetCall(_,xt,Le,g),jr(Le,B),bt(Le,B),gt&&(Le=t.createComma(Le,gt),bt(Le,B)),Le}}}return kn(B,q,e)}function Zr(B,Ae){let te=Ae?nF(B.elements,pe):nF(B.elements,q,pe);return t.updateCommaListExpression(B,te)}function Ai(B){if(Hh(B)||eo(B)){let Le=t.createStringLiteralFromNode(B),gt=st(B,q,bc);return{referencedName:Le,name:gt}}if(Hh(B.expression)&&!He(B.expression)){let Le=t.createStringLiteralFromNode(B.expression),gt=st(B,q,bc);return{referencedName:Le,name:gt}}let Ae=t.getGeneratedNameForNode(B);s(Ae);let te=r().createPropKeyHelper(st(B.expression,q,St)),xt=t.createAssignment(Ae,te),Xt=t.updateComputedPropertyName(B,ne(xt));return{referencedName:Ae,name:Xt}}function Ni(B){return va(B)?Pr(B):st(B,q,bc)}function Pr(B){let Ae=st(B.expression,q,St);return F_(Ae)||(Ae=ne(Ae)),t.updateComputedPropertyName(B,Ae)}function Ci(B){return Mp(B,_t)&&(B=Wp(e,B,en(B.initializer))),kn(B,q,e)}function $e(B){return Mp(B,_t)&&(B=Wp(e,B,en(B.initializer))),kn(B,q,e)}function At(B){return Mp(B,_t)&&(B=Wp(e,B,en(B.initializer))),kn(B,q,e)}function mn(B){if(Wa(B)||Cd(B))return Uo(B);if(fp(B)&&g&&_){let Ae=Ws(B)?st(B.argumentExpression,q,St):He(B.name)?t.createStringLiteralFromNode(B.name):void 0;if(Ae){let te=t.createTempVariable(void 0),xt=t.createAssignmentTargetWrapper(te,t.createReflectSetCall(_,Ae,te,g));return jr(xt,B),bt(xt,B),xt}}return kn(B,q,e)}function dr(B){if(id(B,!0)){Mp(B,_t)&&(B=Wp(e,B,en(B.right)));let Ae=mn(B.left),te=st(B.right,q,St);return t.updateBinaryExpression(B,Ae,B.operatorToken,te)}else return mn(B)}function ri(B){if(Xu(B.expression)){let Ae=mn(B.expression);return t.updateSpreadElement(B,Ae)}return kn(B,q,e)}function ai(B){return C.assertNode(B,ML),Uf(B)?ri(B):Kc(B)?kn(B,q,e):dr(B)}function qi(B){let Ae=st(B.name,q,bc);if(id(B.initializer,!0)){let te=dr(B.initializer);return t.updatePropertyAssignment(B,Ae,te)}if(Xu(B.initializer)){let te=mn(B.initializer);return t.updatePropertyAssignment(B,Ae,te)}return kn(B,q,e)}function $o(B){return Mp(B,_t)&&(B=Wp(e,B,en(B.objectAssignmentInitializer))),kn(B,q,e)}function Ia(B){if(Xu(B.expression)){let Ae=mn(B.expression);return t.updateSpreadAssignment(B,Ae)}return kn(B,q,e)}function Mn(B){return C.assertNode(B,NL),Ig(B)?Ia(B):Ud(B)?$o(B):Nc(B)?qi(B):kn(B,q,e)}function Uo(B){if(Cd(B)){let Ae=Xn(B.elements,ai,St);return t.updateArrayLiteralExpression(B,Ae)}else{let Ae=Xn(B.properties,Mn,ny);return t.updateObjectLiteralExpression(B,Ae)}}function ot(B){return Mp(B,_t)&&(B=Wp(e,B,en(B.expression))),kn(B,q,e)}function Ft(B,Ae){let te=Ae?pe:q,xt=st(B.expression,te,St);return t.updateParenthesizedExpression(B,xt)}function le(B,Ae){let te=q,xt=st(B.expression,te,St);return t.updatePartiallyEmittedExpression(B,xt)}function ht(B,Ae){return vt(B)&&(Ae?wu(Ae)?(B.push(Ae.expression),Ae=t.updateParenthesizedExpression(Ae,t.inlineExpressions(B))):(B.push(Ae),Ae=t.inlineExpressions(B)):Ae=t.inlineExpressions(B)),Ae}function ne(B){let Ae=ht(v,B);return C.assertIsDefined(Ae),Ae!==B&&(v=void 0),Ae}function Fe(B,Ae,te){let xt=ht(Ae?B.pendingStaticInitializers:B.pendingInstanceInitializers,te);return xt!==te&&(Ae?B.pendingStaticInitializers=void 0:B.pendingInstanceInitializers=void 0),xt}function it(B){if(!B)return;let Ae=[];return Xr(Ae,Vt(B.decorators,dt)),Ae}function dt(B){let Ae=st(B.expression,q,St);Cr(Ae,3072);let te=Ul(Ae);if(Ks(te)){let{target:xt,thisArg:Xt}=t.createCallBinding(Ae,s,l,!0);return t.restoreOuterExpressions(Ae,t.createFunctionBindCall(xt,Xt,[]))}return Ae}function Lt(B,Ae,te,xt,Xt,Le,gt){let Bt=t.createFunctionExpression(te,xt,void 0,void 0,Le,void 0,gt??t.createBlock([]));jr(Bt,B),Ua(Bt,ly(B)),Cr(Bt,3072);let gr=Xt==="get"||Xt==="set"?Xt:void 0,tr=t.createStringLiteralFromNode(Ae,void 0),Jn=r().createSetFunctionNameHelper(Bt,tr,gr),ft=t.createPropertyAssignment(t.createIdentifier(Xt),Jn);return jr(ft,B),Ua(ft,ly(B)),Cr(ft,3072),ft}function Ue(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,B.asteriskToken,"value",Xn(B.parameters,q,to),st(B.body,q,ea))])}function Rt(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"get",[],st(B.body,q,ea))])}function It(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"set",Xn(B.parameters,q,to),st(B.body,q,ea))])}function Ot(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)))])),Lt(B,B.name,Ae,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)),t.createIdentifier("value")))]))])}function nt(B,Ae,te){return B=Xn(B,xt=>LI(xt)?xt:void 0,Aa),t.createGetAccessorDeclaration(B,Ae,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(te,t.createIdentifier("value")))]))}function Kt(B,Ae,te){return B=Xn(B,xt=>LI(xt)?xt:void 0,Aa),t.createGetAccessorDeclaration(B,Ae,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(te,t.createIdentifier("get")),t.createThis(),[]))]))}function Sr(B,Ae,te){return B=Xn(B,xt=>LI(xt)?xt:void 0,Aa),t.createSetAccessorDeclaration(B,Ae,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(te,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Oe(B,Ae){let te=t.createVariableDeclaration(B,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,[Ae?_e(Ae):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([te],2))}function Nt(B,Ae){let te=t.createObjectDefinePropertyCall(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:Ae},!0));return Cr(t.createIfStatement(Ae,t.createExpressionStatement(te)),1)}function _e(B){return t.createBinaryExpression(t.createElementAccessExpression(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function Nae(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),d=Ga(u),g=0,_=0,v,E,A,R,N=[],P=0,k=e.onEmitNode,F=e.onSubstituteNode;return e.onEmitNode=Di,e.onSubstituteNode=lo,hh(e,O);function O($e){if($e.isDeclarationFile)return $e;G(1,!1),G(2,!sG($e,u));let At=kn($e,K,e);return Eg(At,e.readEmitHelpers()),At}function G($e,At){P=At?P|$e:P&~$e}function j($e){return(P&$e)!==0}function J(){return!j(1)}function Z(){return j(2)}function q($e,At,mn){let dr=$e&~P;if(dr){G(dr,!0);let ri=At(mn);return G(dr,!1),ri}return At(mn)}function ye($e){return kn($e,K,e)}function ie($e){switch($e.kind){case 219:case 263:case 175:case 178:case 179:case 177:return $e;case 170:case 209:case 261:break;case 80:if(R&&l.isArgumentsLocalBinding($e))return R;break}return kn($e,ie,e)}function K($e){if(($e.transformFlags&256)===0)return R?ie($e):$e;switch($e.kind){case 134:return;case 224:return Ce($e);case 175:return q(3,Se,$e);case 263:return q(3,Ne,$e);case 219:return q(3,Be,$e);case 220:return q(1,lt,$e);case 212:return E&&qr($e)&&$e.expression.kind===108&&E.add($e.name.escapedText),kn($e,K,e);case 213:return E&&$e.expression.kind===108&&(A=!0),kn($e,K,e);case 178:return q(3,re,$e);case 179:return q(3,be,$e);case 177:return q(3,Xe,$e);case 264:case 232:return q(3,ye,$e);default:return kn($e,K,e)}}function pe($e){if(mne($e))switch($e.kind){case 244:return fe($e);case 249:return Y($e);case 250:return ve($e);case 251:return xe($e);case 300:return de($e);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return kn($e,pe,e);default:return C.assertNever($e,"Unhandled node.")}return K($e)}function de($e){let At=new Set;ce($e.variableDeclaration,At);let mn;if(At.forEach((dr,ri)=>{v.has(ri)&&(mn||(mn=new Set(v)),mn.delete(ri))}),mn){let dr=v;v=mn;let ri=kn($e,pe,e);return v=dr,ri}else return kn($e,pe,e)}function fe($e){if(De($e.declarationList)){let At=ge($e.declarationList,!1);return At?t.createExpressionStatement(At):void 0}return kn($e,K,e)}function ve($e){return t.updateForInStatement($e,De($e.initializer)?ge($e.initializer,!0):C.checkDefined(st($e.initializer,K,kf)),C.checkDefined(st($e.expression,K,St)),Ou($e.statement,pe,e))}function xe($e){return t.updateForOfStatement($e,st($e.awaitModifier,K,oj),De($e.initializer)?ge($e.initializer,!0):C.checkDefined(st($e.initializer,K,kf)),C.checkDefined(st($e.expression,K,St)),Ou($e.statement,pe,e))}function Y($e){let At=$e.initializer;return t.updateForStatement($e,De(At)?ge(At,!1):st($e.initializer,K,kf),st($e.condition,K,St),st($e.incrementor,K,St),Ou($e.statement,pe,e))}function Ce($e){return J()?kn($e,K,e):jr(bt(t.createYieldExpression(void 0,st($e.expression,K,St)),$e),$e)}function Xe($e){let At=R;R=void 0;let mn=t.updateConstructorDeclaration($e,Xn($e.modifiers,K,Aa),Fl($e.parameters,K,e),Wt($e));return R=At,mn}function Se($e){let At,mn=dc($e),dr=R;R=void 0;let ri=t.updateMethodDeclaration($e,Xn($e.modifiers,K,fl),$e.asteriskToken,$e.name,void 0,void 0,At=mn&2?gn($e):Fl($e.parameters,K,e),void 0,mn&2?Kn($e,At):Wt($e));return R=dr,ri}function re($e){let At=R;R=void 0;let mn=t.updateGetAccessorDeclaration($e,Xn($e.modifiers,K,fl),$e.name,Fl($e.parameters,K,e),void 0,Wt($e));return R=At,mn}function be($e){let At=R;R=void 0;let mn=t.updateSetAccessorDeclaration($e,Xn($e.modifiers,K,fl),$e.name,Fl($e.parameters,K,e),Wt($e));return R=At,mn}function Ne($e){let At,mn=R;R=void 0;let dr=dc($e),ri=t.updateFunctionDeclaration($e,Xn($e.modifiers,K,fl),$e.asteriskToken,$e.name,void 0,At=dr&2?gn($e):Fl($e.parameters,K,e),void 0,dr&2?Kn($e,At):_f($e.body,K,e));return R=mn,ri}function Be($e){let At,mn=R;R=void 0;let dr=dc($e),ri=t.updateFunctionExpression($e,Xn($e.modifiers,K,Aa),$e.asteriskToken,$e.name,void 0,At=dr&2?gn($e):Fl($e.parameters,K,e),void 0,dr&2?Kn($e,At):_f($e.body,K,e));return R=mn,ri}function lt($e){let At,mn=dc($e);return t.updateArrowFunction($e,Xn($e.modifiers,K,Aa),void 0,At=mn&2?gn($e):Fl($e.parameters,K,e),void 0,$e.equalsGreaterThanToken,mn&2?Kn($e,At):_f($e.body,K,e))}function ce({name:$e},At){if(He($e))At.add($e.escapedText);else for(let mn of $e.elements)Kc(mn)||ce(mn,At)}function De($e){return!!$e&&_d($e)&&!($e.flags&7)&&$e.declarations.some(at)}function ge($e,At){je($e);let mn=fM($e);return mn.length===0?At?st(t.converters.convertToAssignmentElementTarget($e.declarations[0].name),K,St):void 0:t.inlineExpressions(Vt(mn,We))}function je($e){Je($e.declarations,Ge)}function Ge({name:$e}){if(He($e))s($e);else for(let At of $e.elements)Kc(At)||Ge(At)}function We($e){let At=Ua(t.createAssignment(t.converters.convertToAssignmentElementTarget($e.name),$e.initializer),$e);return C.checkDefined(st(At,K,St))}function at({name:$e}){if(He($e))return v.has($e.escapedText);for(let At of $e.elements)if(!Kc(At)&&at(At))return!0;return!1}function Wt($e){C.assertIsDefined($e.body);let At=E,mn=A;E=new Set,A=!1;let dr=_f($e.body,K,e),ri=yl($e,Ms);if(d>=2&&(l.hasNodeCheckFlag($e,256)||l.hasNodeCheckFlag($e,128))&&(dc(ri)&3)!==3){if(ir(),E.size){let qi=uF(t,l,$e,E);N[ss(qi)]=!0;let $o=dr.statements.slice();fg($o,[qi]),dr=t.updateBlock(dr,$o)}A&&(l.hasNodeCheckFlag($e,256)?CI(dr,t3):l.hasNodeCheckFlag($e,128)&&CI(dr,e3))}return E=At,A=mn,dr}function cn(){C.assert(R);let $e=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),At=t.createVariableStatement(void 0,[$e]);return ou(At),$h(At,2097152),At}function gn($e){if(ww($e.parameters))return Fl($e.parameters,K,e);let At=[];for(let dr of $e.parameters){if(dr.initializer||dr.dotDotDotToken){if($e.kind===220){let ai=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));At.push(ai)}break}let ri=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(dr.name,8));At.push(ri)}let mn=t.createNodeArray(At);return bt(mn,$e.parameters),mn}function Kn($e,At){let mn=ww($e.parameters)?void 0:Fl($e.parameters,K,e);i();let ri=yl($e,Yo).type,ai=d<2?en(ri):void 0,qi=$e.kind===220,$o=R,Mn=l.hasNodeCheckFlag($e,512)&&!R;Mn&&(R=t.createUniqueName("arguments"));let Uo;if(mn)if(qi){let it=[];C.assert(At.length<=$e.parameters.length);for(let dt=0;dt<$e.parameters.length;dt++){C.assert(dt<At.length);let Lt=$e.parameters[dt],Ue=At[dt];if(C.assertNode(Ue.name,He),Lt.initializer||Lt.dotDotDotToken){C.assert(dt===At.length-1),it.push(t.createSpreadElement(Ue.name));break}it.push(Ue.name)}Uo=t.createArrayLiteralExpression(it)}else Uo=t.createIdentifier("arguments");let ot=v;v=new Set;for(let it of $e.parameters)ce(it,v);let Ft=E,le=A;qi||(E=new Set,A=!1);let ht=Z(),ne=_t($e.body);ne=t.updateBlock(ne,t.mergeLexicalEnvironment(ne.statements,o()));let Fe;if(qi){if(Fe=r().createAwaiterHelper(ht,Uo,ai,mn,ne),Mn){let it=t.converters.convertToFunctionBlock(Fe);Fe=t.updateBlock(it,t.mergeLexicalEnvironment(it.statements,[cn()]))}}else{let it=[];it.push(t.createReturnStatement(r().createAwaiterHelper(ht,Uo,ai,mn,ne)));let dt=d>=2&&(l.hasNodeCheckFlag($e,256)||l.hasNodeCheckFlag($e,128));if(dt&&(ir(),E.size)){let Ue=uF(t,l,$e,E);N[ss(Ue)]=!0,fg(it,[Ue])}Mn&&fg(it,[cn()]);let Lt=t.createBlock(it,!0);bt(Lt,$e.body),dt&&A&&(l.hasNodeCheckFlag($e,256)?CI(Lt,t3):l.hasNodeCheckFlag($e,128)&&CI(Lt,e3)),Fe=Lt}return v=ot,qi||(E=Ft,A=le,R=$o),Fe}function _t($e,At){return ea($e)?t.updateBlock($e,Xn($e.statements,pe,ji,At)):t.converters.convertToFunctionBlock(C.checkDefined(st($e,pe,u6)))}function en($e){let At=$e&&QL($e);if(At&&Nu(At)){let mn=l.getTypeReferenceSerializationKind(At);if(mn===1||mn===0)return At}}function ir(){(g&1)===0&&(g|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function Di($e,At,mn){if(g&1&&Pr(At)){let dr=(l.hasNodeCheckFlag(At,128)?128:0)|(l.hasNodeCheckFlag(At,256)?256:0);if(dr!==_){let ri=_;_=dr,k($e,At,mn),_=ri;return}}else if(g&&N[ss(At)]){let dr=_;_=0,k($e,At,mn),_=dr;return}k($e,At,mn)}function lo($e,At){return At=F($e,At),$e===1&&_?zt(At):At}function zt($e){switch($e.kind){case 212:return Zr($e);case 213:return Ai($e);case 214:return Ni($e)}return $e}function Zr($e){return $e.expression.kind===108?bt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),$e.name),$e):$e}function Ai($e){return $e.expression.kind===108?Ci($e.argumentExpression,$e):$e}function Ni($e){let At=$e.expression;if(fp(At)){let mn=qr(At)?Zr(At):Ai(At);return t.createCallExpression(t.createPropertyAccessExpression(mn,"call"),void 0,[t.createThis(),...$e.arguments])}return $e}function Pr($e){let At=$e.kind;return At===264||At===177||At===175||At===178||At===179}function Ci($e,At){return _&256?bt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),"value"),At):bt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),At)}}function uF(e,t,r,i){let o=t.hasNodeCheckFlag(r,256),s=[];return i.forEach((l,u)=>{let d=Vi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Cr(e.createPropertyAccessExpression(Cr(e.createSuper(),8),d),8)))),o&&g.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(Cr(e.createPropertyAccessExpression(Cr(e.createSuper(),8),d),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(g)))}),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))}function Mae(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),d=Ga(u),g=e.onEmitNode;e.onEmitNode=$o;let _=e.onSubstituteNode;e.onSubstituteNode=Ia;let v=!1,E=0,A,R,N=0,P=0,k,F,O,G,j=[];return hh(e,ie);function J(ne,Fe){return P!==(P&~ne|Fe)}function Z(ne,Fe){let it=P;return P=(P&~ne|Fe)&3,it}function q(ne){P=ne}function ye(ne){F=Bn(F,t.createVariableDeclaration(ne))}function ie(ne){if(ne.isDeclarationFile)return ne;k=ne;let Fe=lt(ne);return Eg(Fe,e.readEmitHelpers()),k=void 0,F=void 0,Fe}function K(ne){return xe(ne,!1)}function pe(ne){return xe(ne,!0)}function de(ne){if(ne.kind!==134)return ne}function fe(ne,Fe,it,dt){if(J(it,dt)){let Lt=Z(it,dt),Ue=ne(Fe);return q(Lt),Ue}return ne(Fe)}function ve(ne){return kn(ne,K,e)}function xe(ne,Fe){if((ne.transformFlags&128)===0)return ne;switch(ne.kind){case 224:return Y(ne);case 230:return Ce(ne);case 254:return Xe(ne);case 257:return Se(ne);case 211:return be(ne);case 227:return De(ne,Fe);case 357:return ge(ne,Fe);case 300:return je(ne);case 244:return Ge(ne);case 261:return We(ne);case 247:case 248:case 250:return fe(ve,ne,0,2);case 251:return gn(ne,void 0);case 249:return fe(Wt,ne,0,2);case 223:return cn(ne);case 177:return fe(Zr,ne,2,1);case 175:return fe(Pr,ne,2,1);case 178:return fe(Ai,ne,2,1);case 179:return fe(Ni,ne,2,1);case 263:return fe(Ci,ne,2,1);case 219:return fe(At,ne,2,1);case 220:return fe($e,ne,2,0);case 170:return lo(ne);case 245:return Ne(ne);case 218:return Be(ne,Fe);case 216:return ce(ne);case 212:return O&&qr(ne)&&ne.expression.kind===108&&O.add(ne.name.escapedText),kn(ne,K,e);case 213:return O&&ne.expression.kind===108&&(G=!0),kn(ne,K,e);case 264:case 232:return fe(ve,ne,2,1);default:return kn(ne,K,e)}}function Y(ne){return A&2&&A&1?jr(bt(t.createYieldExpression(void 0,r().createAwaitHelper(st(ne.expression,K,St))),ne),ne):kn(ne,K,e)}function Ce(ne){if(A&2&&A&1){if(ne.asteriskToken){let Fe=st(C.checkDefined(ne.expression),K,St);return jr(bt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ne,ne.asteriskToken,bt(r().createAsyncDelegatorHelper(bt(r().createAsyncValuesHelper(Fe),Fe)),Fe)))),ne),ne)}return jr(bt(t.createYieldExpression(void 0,en(ne.expression?st(ne.expression,K,St):t.createVoidZero())),ne),ne)}return kn(ne,K,e)}function Xe(ne){return A&2&&A&1?t.updateReturnStatement(ne,en(ne.expression?st(ne.expression,K,St):t.createVoidZero())):kn(ne,K,e)}function Se(ne){if(A&2){let Fe=_G(ne);return Fe.kind===251&&Fe.awaitModifier?gn(Fe,ne):t.restoreEnclosingLabel(st(Fe,K,ji,t.liftToBlock),ne)}return kn(ne,K,e)}function re(ne){let Fe,it=[];for(let dt of ne)if(dt.kind===306){Fe&&(it.push(t.createObjectLiteralExpression(Fe)),Fe=void 0);let Lt=dt.expression;it.push(st(Lt,K,St))}else Fe=Bn(Fe,dt.kind===304?t.createPropertyAssignment(dt.name,st(dt.initializer,K,St)):st(dt,K,ny));return Fe&&it.push(t.createObjectLiteralExpression(Fe)),it}function be(ne){if(ne.transformFlags&65536){let Fe=re(ne.properties);Fe.length&&Fe[0].kind!==211&&Fe.unshift(t.createObjectLiteralExpression());let it=Fe[0];if(Fe.length>1){for(let dt=1;dt<Fe.length;dt++)it=r().createAssignHelper([it,Fe[dt]]);return it}else return r().createAssignHelper(Fe)}return kn(ne,K,e)}function Ne(ne){return kn(ne,pe,e)}function Be(ne,Fe){return kn(ne,Fe?pe:K,e)}function lt(ne){let Fe=Z(2,sG(ne,u)?0:1);v=!1;let it=kn(ne,K,e),dt=so(it.statements,F&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(F))]),Lt=t.updateSourceFile(it,bt(t.createNodeArray(dt),ne.statements));return q(Fe),Lt}function ce(ne){return zU(e,ne,K,k,ye,0)}function De(ne,Fe){return ev(ne)&&gw(ne.left)?IE(ne,K,e,1,!Fe):ne.operatorToken.kind===28?t.updateBinaryExpression(ne,st(ne.left,pe,St),ne.operatorToken,st(ne.right,Fe?pe:K,St)):kn(ne,K,e)}function ge(ne,Fe){if(Fe)return kn(ne,pe,e);let it;for(let Lt=0;Lt<ne.elements.length;Lt++){let Ue=ne.elements[Lt],Rt=st(Ue,Lt<ne.elements.length-1?pe:K,St);(it||Rt!==Ue)&&(it||(it=ne.elements.slice(0,Lt)),it.push(Rt))}let dt=it?bt(t.createNodeArray(it),ne.elements):ne.elements;return t.updateCommaListExpression(ne,dt)}function je(ne){if(ne.variableDeclaration&&Qo(ne.variableDeclaration.name)&&ne.variableDeclaration.name.transformFlags&65536){let Fe=t.getGeneratedNameForNode(ne.variableDeclaration.name),it=t.updateVariableDeclaration(ne.variableDeclaration,ne.variableDeclaration.name,void 0,void 0,Fe),dt=G1(it,K,e,1),Lt=st(ne.block,K,ea);return vt(dt)&&(Lt=t.updateBlock(Lt,[t.createVariableStatement(void 0,dt),...Lt.statements])),t.updateCatchClause(ne,t.updateVariableDeclaration(ne.variableDeclaration,Fe,void 0,void 0,void 0),Lt)}return kn(ne,K,e)}function Ge(ne){if(di(ne,32)){let Fe=v;v=!0;let it=kn(ne,K,e);return v=Fe,it}return kn(ne,K,e)}function We(ne){if(v){let Fe=v;v=!1;let it=at(ne,!0);return v=Fe,it}return at(ne,!1)}function at(ne,Fe){return Qo(ne.name)&&ne.name.transformFlags&65536?G1(ne,K,e,1,void 0,Fe):kn(ne,K,e)}function Wt(ne){return t.updateForStatement(ne,st(ne.initializer,pe,kf),st(ne.condition,K,St),st(ne.incrementor,pe,St),Ou(ne.statement,K,e))}function cn(ne){return kn(ne,pe,e)}function gn(ne,Fe){let it=Z(0,2);(ne.initializer.transformFlags&65536||ON(ne.initializer)&&gw(ne.initializer))&&(ne=Kn(ne));let dt=ne.awaitModifier?ir(ne,Fe,it):t.restoreEnclosingLabel(kn(ne,K,e),Fe);return q(it),dt}function Kn(ne){let Fe=ds(ne.initializer);if(_d(Fe)||ON(Fe)){let it,dt,Lt=t.createTempVariable(void 0),Ue=[Ej(t,Fe,Lt)];return ea(ne.statement)?(Xr(Ue,ne.statement.statements),it=ne.statement,dt=ne.statement.statements):ne.statement&&(Bn(Ue,ne.statement),it=ne.statement,dt=ne.statement),t.updateForOfStatement(ne,ne.awaitModifier,bt(t.createVariableDeclarationList([bt(t.createVariableDeclaration(Lt),ne.initializer)],1),ne.initializer),ne.expression,bt(t.createBlock(bt(t.createNodeArray(Ue),dt),!0),it))}return ne}function _t(ne,Fe,it){let dt=t.createTempVariable(s),Lt=t.createAssignment(dt,Fe),Ue=t.createExpressionStatement(Lt);Ua(Ue,ne.expression);let Rt=t.createAssignment(it,t.createFalse()),It=t.createExpressionStatement(Rt);Ua(It,ne.expression);let Ot=[Ue,It],nt=Ej(t,ne.initializer,dt);Ot.push(st(nt,K,ji));let Kt,Sr,Oe=Ou(ne.statement,K,e);return ea(Oe)?(Xr(Ot,Oe.statements),Kt=Oe,Sr=Oe.statements):Ot.push(Oe),bt(t.createBlock(bt(t.createNodeArray(Ot),Sr),!0),Kt)}function en(ne){return A&1?t.createYieldExpression(void 0,r().createAwaitHelper(ne)):t.createAwaitExpression(ne)}function ir(ne,Fe,it){let dt=st(ne.expression,K,St),Lt=He(dt)?t.getGeneratedNameForNode(dt):t.createTempVariable(void 0),Ue=He(dt)?t.getGeneratedNameForNode(Lt):t.createTempVariable(void 0),Rt=t.createTempVariable(void 0),It=t.createTempVariable(s),Ot=t.createUniqueName("e"),nt=t.getGeneratedNameForNode(Ot),Kt=t.createTempVariable(void 0),Sr=bt(r().createAsyncValuesHelper(dt),ne.expression),Oe=t.createCallExpression(t.createPropertyAccessExpression(Lt,"next"),void 0,[]),Nt=t.createPropertyAccessExpression(Ue,"done"),_e=t.createPropertyAccessExpression(Ue,"value"),B=t.createFunctionCallCall(Kt,Lt,[]);s(Ot),s(Kt);let Ae=it&2?t.inlineExpressions([t.createAssignment(Ot,t.createVoidZero()),Sr]):Sr,te=Cr(bt(t.createForStatement(Cr(bt(t.createVariableDeclarationList([t.createVariableDeclaration(Rt,void 0,void 0,t.createTrue()),bt(t.createVariableDeclaration(Lt,void 0,void 0,Ae),ne.expression),t.createVariableDeclaration(Ue)]),ne.expression),4194304),t.inlineExpressions([t.createAssignment(Ue,en(Oe)),t.createAssignment(It,Nt),t.createLogicalNot(It)]),t.createAssignment(Rt,t.createTrue()),_t(ne,_e,Rt)),ne),512);return jr(te,ne),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(te,Fe)]),t.createCatchClause(t.createVariableDeclaration(nt),Cr(t.createBlock([t.createExpressionStatement(t.createAssignment(Ot,t.createObjectLiteralExpression([t.createPropertyAssignment("error",nt)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([Cr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Rt),t.createLogicalNot(It)),t.createAssignment(Kt,t.createPropertyAccessExpression(Lt,"return"))),t.createExpressionStatement(en(B))),1)]),void 0,Cr(t.createBlock([Cr(t.createIfStatement(Ot,t.createThrowStatement(t.createPropertyAccessExpression(Ot,"error"))),1)]),1))]))}function Di(ne){return C.assertNode(ne,to),lo(ne)}function lo(ne){return R?.has(ne)?t.updateParameterDeclaration(ne,void 0,ne.dotDotDotToken,Qo(ne.name)?t.getGeneratedNameForNode(ne):ne.name,void 0,void 0,void 0):ne.transformFlags&65536?t.updateParameterDeclaration(ne,void 0,ne.dotDotDotToken,t.getGeneratedNameForNode(ne),void 0,void 0,st(ne.initializer,K,St)):kn(ne,K,e)}function zt(ne){let Fe;for(let it of ne.parameters)Fe?Fe.add(it):it.transformFlags&65536&&(Fe=new Set);return Fe}function Zr(ne){let Fe=A,it=R;A=dc(ne),R=zt(ne);let dt=t.updateConstructorDeclaration(ne,ne.modifiers,Fl(ne.parameters,Di,e),ri(ne));return A=Fe,R=it,dt}function Ai(ne){let Fe=A,it=R;A=dc(ne),R=zt(ne);let dt=t.updateGetAccessorDeclaration(ne,ne.modifiers,st(ne.name,K,bc),Fl(ne.parameters,Di,e),void 0,ri(ne));return A=Fe,R=it,dt}function Ni(ne){let Fe=A,it=R;A=dc(ne),R=zt(ne);let dt=t.updateSetAccessorDeclaration(ne,ne.modifiers,st(ne.name,K,bc),Fl(ne.parameters,Di,e),ri(ne));return A=Fe,R=it,dt}function Pr(ne){let Fe=A,it=R;A=dc(ne),R=zt(ne);let dt=t.updateMethodDeclaration(ne,A&1?Xn(ne.modifiers,de,fl):ne.modifiers,A&2?void 0:ne.asteriskToken,st(ne.name,K,bc),st(void 0,K,Rb),void 0,A&2&&A&1?mn(ne):Fl(ne.parameters,Di,e),void 0,A&2&&A&1?dr(ne):ri(ne));return A=Fe,R=it,dt}function Ci(ne){let Fe=A,it=R;A=dc(ne),R=zt(ne);let dt=t.updateFunctionDeclaration(ne,A&1?Xn(ne.modifiers,de,Aa):ne.modifiers,A&2?void 0:ne.asteriskToken,ne.name,void 0,A&2&&A&1?mn(ne):Fl(ne.parameters,Di,e),void 0,A&2&&A&1?dr(ne):ri(ne));return A=Fe,R=it,dt}function $e(ne){let Fe=A,it=R;A=dc(ne),R=zt(ne);let dt=t.updateArrowFunction(ne,ne.modifiers,void 0,Fl(ne.parameters,Di,e),void 0,ne.equalsGreaterThanToken,ri(ne));return A=Fe,R=it,dt}function At(ne){let Fe=A,it=R;A=dc(ne),R=zt(ne);let dt=t.updateFunctionExpression(ne,A&1?Xn(ne.modifiers,de,Aa):ne.modifiers,A&2?void 0:ne.asteriskToken,ne.name,void 0,A&2&&A&1?mn(ne):Fl(ne.parameters,Di,e),void 0,A&2&&A&1?dr(ne):ri(ne));return A=Fe,R=it,dt}function mn(ne){if(ww(ne.parameters))return Fl(ne.parameters,K,e);let Fe=[];for(let dt of ne.parameters){if(dt.initializer||dt.dotDotDotToken)break;let Lt=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(dt.name,8));Fe.push(Lt)}let it=t.createNodeArray(Fe);return bt(it,ne.parameters),it}function dr(ne){let Fe=ww(ne.parameters)?void 0:Fl(ne.parameters,K,e);i();let it=O,dt=G;O=new Set,G=!1;let Lt=[],Ue=t.updateBlock(ne.body,Xn(ne.body.statements,K,ji));Ue=t.updateBlock(Ue,t.mergeLexicalEnvironment(Ue.statements,ai(o(),ne)));let Rt=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),ne.name&&t.getGeneratedNameForNode(ne.name),void 0,Fe??[],void 0,Ue),!!(P&1))),It=d>=2&&(l.hasNodeCheckFlag(ne,256)||l.hasNodeCheckFlag(ne,128));if(It){qi();let nt=uF(t,l,ne,O);j[ss(nt)]=!0,fg(Lt,[nt])}Lt.push(Rt);let Ot=t.updateBlock(ne.body,Lt);return It&&G&&(l.hasNodeCheckFlag(ne,256)?CI(Ot,t3):l.hasNodeCheckFlag(ne,128)&&CI(Ot,e3)),O=it,G=dt,Ot}function ri(ne){i();let Fe=0,it=[],dt=st(ne.body,K,u6)??t.createBlock([]);ea(dt)&&(Fe=t.copyPrologue(dt.statements,it,!1,K)),Xr(it,ai(void 0,ne));let Lt=o();if(Fe>0||vt(it)||vt(Lt)){let Ue=t.converters.convertToFunctionBlock(dt,!0);return fg(it,Lt),Xr(it,Ue.statements.slice(Fe)),t.updateBlock(Ue,bt(t.createNodeArray(it),Ue.statements))}return dt}function ai(ne,Fe){let it=!1;for(let dt of Fe.parameters)if(it){if(Qo(dt.name)){if(dt.name.elements.length>0){let Lt=G1(dt,K,e,0,t.getGeneratedNameForNode(dt));if(vt(Lt)){let Ue=t.createVariableDeclarationList(Lt),Rt=t.createVariableStatement(void 0,Ue);Cr(Rt,2097152),ne=Bn(ne,Rt)}}else if(dt.initializer){let Lt=t.getGeneratedNameForNode(dt),Ue=st(dt.initializer,K,St),Rt=t.createAssignment(Lt,Ue),It=t.createExpressionStatement(Rt);Cr(It,2097152),ne=Bn(ne,It)}}else if(dt.initializer){let Lt=t.cloneNode(dt.name);bt(Lt,dt.name),Cr(Lt,96);let Ue=st(dt.initializer,K,St);$h(Ue,3168);let Rt=t.createAssignment(Lt,Ue);bt(Rt,dt),Cr(Rt,3072);let It=t.createBlock([t.createExpressionStatement(Rt)]);bt(It,dt),Cr(It,3905);let Ot=t.createTypeCheck(t.cloneNode(dt.name),"undefined"),nt=t.createIfStatement(Ot,It);ou(nt),bt(nt,dt),Cr(nt,2101056),ne=Bn(ne,nt)}}else if(dt.transformFlags&65536){it=!0;let Lt=G1(dt,K,e,1,t.getGeneratedNameForNode(dt),!1,!0);if(vt(Lt)){let Ue=t.createVariableDeclarationList(Lt),Rt=t.createVariableStatement(void 0,Ue);Cr(Rt,2097152),ne=Bn(ne,Rt)}}return ne}function qi(){(E&1)===0&&(E|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function $o(ne,Fe,it){if(E&1&&le(Fe)){let dt=(l.hasNodeCheckFlag(Fe,128)?128:0)|(l.hasNodeCheckFlag(Fe,256)?256:0);if(dt!==N){let Lt=N;N=dt,g(ne,Fe,it),N=Lt;return}}else if(E&&j[ss(Fe)]){let dt=N;N=0,g(ne,Fe,it),N=dt;return}g(ne,Fe,it)}function Ia(ne,Fe){return Fe=_(ne,Fe),ne===1&&N?Mn(Fe):Fe}function Mn(ne){switch(ne.kind){case 212:return Uo(ne);case 213:return ot(ne);case 214:return Ft(ne)}return ne}function Uo(ne){return ne.expression.kind===108?bt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ne.name),ne):ne}function ot(ne){return ne.expression.kind===108?ht(ne.argumentExpression,ne):ne}function Ft(ne){let Fe=ne.expression;if(fp(Fe)){let it=qr(Fe)?Uo(Fe):ot(Fe);return t.createCallExpression(t.createPropertyAccessExpression(it,"call"),void 0,[t.createThis(),...ne.arguments])}return ne}function le(ne){let Fe=ne.kind;return Fe===264||Fe===177||Fe===175||Fe===178||Fe===179}function ht(ne,Fe){return N&256?bt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),"value"),Fe):bt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),Fe)}}function Pae(e){let t=e.factory;return hh(e,r);function r(s){return s.isDeclarationFile?s:kn(s,i,e)}function i(s){if((s.transformFlags&64)===0)return s;switch(s.kind){case 300:return o(s);default:return kn(s,i,e)}}function o(s){return s.variableDeclaration?kn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),st(s.block,i,ea))}}function Lae(e){let{factory:t,hoistVariableDeclaration:r}=e;return hh(e,i);function i(R){return R.isDeclarationFile?R:kn(R,o,e)}function o(R){if((R.transformFlags&32)===0)return R;switch(R.kind){case 214:{let N=d(R,!1);return C.assertNotNode(N,BI),N}case 212:case 213:if(eu(R)){let N=_(R,!1,!1);return C.assertNotNode(N,BI),N}return kn(R,o,e);case 227:return R.operatorToken.kind===61?E(R):kn(R,o,e);case 221:return A(R);default:return kn(R,o,e)}}function s(R){C.assertNotNode(R,o6);let N=[R];for(;!R.questionDotToken&&!V0(R);)R=ma(Om(R.expression),eu),C.assertNotNode(R,o6),N.unshift(R);return{expression:R.expression,chain:N}}function l(R,N,P){let k=g(R.expression,N,P);return BI(k)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,k.expression),k.thisArg):t.updateParenthesizedExpression(R,k)}function u(R,N,P){if(eu(R))return _(R,N,P);let k=st(R.expression,o,St);C.assertNotNode(k,BI);let F;return N&&(B1(k)?F=k:(F=t.createTempVariable(r),k=t.createAssignment(F,k))),k=R.kind===212?t.updatePropertyAccessExpression(R,k,st(R.name,o,He)):t.updateElementAccessExpression(R,k,st(R.argumentExpression,o,St)),F?t.createSyntheticReferenceExpression(k,F):k}function d(R,N){if(eu(R))return _(R,N,!1);if(wu(R.expression)&&eu(ds(R.expression))){let P=l(R.expression,!0,!1),k=Xn(R.arguments,o,St);return BI(P)?bt(t.createFunctionCallCall(P.expression,P.thisArg,k),R):t.updateCallExpression(R,P,void 0,k)}return kn(R,o,e)}function g(R,N,P){switch(R.kind){case 218:return l(R,N,P);case 212:case 213:return u(R,N,P);case 214:return d(R,N);default:return st(R,o,St)}}function _(R,N,P){let{expression:k,chain:F}=s(R),O=g(Om(k),zS(F[0]),!1),G=BI(O)?O.thisArg:void 0,j=BI(O)?O.expression:O,J=t.restoreOuterExpressions(k,j,8);B1(j)||(j=t.createTempVariable(r),J=t.createAssignment(j,J));let Z=j,q;for(let ie=0;ie<F.length;ie++){let K=F[ie];switch(K.kind){case 212:case 213:ie===F.length-1&&N&&(B1(Z)?q=Z:(q=t.createTempVariable(r),Z=t.createAssignment(q,Z))),Z=K.kind===212?t.createPropertyAccessExpression(Z,st(K.name,o,He)):t.createElementAccessExpression(Z,st(K.argumentExpression,o,St));break;case 214:ie===0&&G?(pl(G)||(G=t.cloneNode(G),$h(G,3072)),Z=t.createFunctionCallCall(Z,G.kind===108?t.createThis():G,Xn(K.arguments,o,St))):Z=t.createCallExpression(Z,void 0,Xn(K.arguments,o,St));break}jr(Z,K)}let ye=P?t.createConditionalExpression(v(J,j,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(Z)):t.createConditionalExpression(v(J,j,!0),void 0,t.createVoidZero(),void 0,Z);return bt(ye,R),q?t.createSyntheticReferenceExpression(ye,q):ye}function v(R,N,P){return t.createBinaryExpression(t.createBinaryExpression(R,t.createToken(P?37:38),t.createNull()),t.createToken(P?57:56),t.createBinaryExpression(N,t.createToken(P?37:38),t.createVoidZero()))}function E(R){let N=st(R.left,o,St),P=N;return B1(N)||(P=t.createTempVariable(r),N=t.createAssignment(P,N)),bt(t.createConditionalExpression(v(N,P),void 0,P,void 0,st(R.right,o,St)),R)}function A(R){return eu(ds(R.expression))?jr(g(R.expression,!1,!0),R):t.updateDeleteExpression(R,st(R.expression,o,St))}}function kae(e){let{hoistVariableDeclaration:t,factory:r}=e;return hh(e,i);function i(l){return l.isDeclarationFile?l:kn(l,o,e)}function o(l){return(l.transformFlags&16)===0?l:ZG(l)?s(l):kn(l,o,e)}function s(l){let u=l.operatorToken,d=sP(u.kind),g=ds(st(l.left,o,Xu)),_=g,v=ds(st(l.right,o,St));if(Ks(g)){let E=B1(g.expression),A=E?g.expression:r.createTempVariable(t),R=E?g.expression:r.createAssignment(A,g.expression);if(qr(g))_=r.createPropertyAccessExpression(A,g.name),g=r.createPropertyAccessExpression(R,g.name);else{let N=B1(g.argumentExpression),P=N?g.argumentExpression:r.createTempVariable(t);_=r.createElementAccessExpression(A,P),g=r.createElementAccessExpression(R,N?g.argumentExpression:r.createAssignment(P,g.argumentExpression))}}return r.createBinaryExpression(g,d,r.createParenthesizedExpression(r.createAssignment(_,v)))}}function wae(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,startLexicalEnvironment:o,endLexicalEnvironment:s}=e,l,u,d,g;return hh(e,_);function _(fe){if(fe.isDeclarationFile)return fe;let ve=st(fe,v,Yi);return Eg(ve,e.readEmitHelpers()),u=void 0,l=void 0,d=void 0,ve}function v(fe){if((fe.transformFlags&4)===0)return fe;switch(fe.kind){case 308:return E(fe);case 242:return A(fe);case 249:return R(fe);case 251:return N(fe);case 256:return k(fe);default:return kn(fe,v,e)}}function E(fe){let ve=BU(fe.statements);if(ve){o(),l=new kD,u=[];let xe=HSe(fe.statements),Y=[];Xr(Y,iP(fe.statements,v,ji,0,xe));let Ce=xe;for(;Ce<fe.statements.length;){let re=fe.statements[Ce];if(Wae(re)!==0){Ce>xe&&Xr(Y,Xn(fe.statements,v,ji,xe,Ce-xe));break}Ce++}C.assert(Ce<fe.statements.length,"Should have encountered at least one 'using' statement.");let Xe=pe(),Se=F(fe.statements,Ce,fe.statements.length,Xe,Y);return l.size&&Bn(Y,t.createExportDeclaration(void 0,!1,t.createNamedExports(Co(l.values())))),Xr(Y,s()),u.length&&Y.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(u,1))),Xr(Y,de(Se,Xe,ve===2)),g&&Y.push(t.createExportAssignment(void 0,!0,g)),t.updateSourceFile(fe,Y)}return kn(fe,v,e)}function A(fe){let ve=BU(fe.statements);if(ve){let xe=HSe(fe.statements),Y=pe();return t.updateBlock(fe,[...iP(fe.statements,v,ji,0,xe),...de(F(fe.statements,xe,fe.statements.length,Y,void 0),Y,ve===2)])}return kn(fe,v,e)}function R(fe){return fe.initializer&&qSe(fe.initializer)?st(t.createBlock([t.createVariableStatement(void 0,fe.initializer),t.updateForStatement(fe,void 0,fe.condition,fe.incrementor,fe.statement)]),v,ji):kn(fe,v,e)}function N(fe){if(qSe(fe.initializer)){let ve=fe.initializer,xe=Ic(ve.declarations)||t.createVariableDeclaration(t.createTempVariable(void 0)),Y=Oae(ve)===2,Ce=t.getGeneratedNameForNode(xe.name),Xe=t.updateVariableDeclaration(xe,xe.name,void 0,void 0,Ce),Se=t.createVariableDeclarationList([Xe],Y?6:4),re=t.createVariableStatement(void 0,Se);return st(t.updateForOfStatement(fe,fe.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(Ce)],2),fe.expression,ea(fe.statement)?t.updateBlock(fe.statement,[re,...fe.statement.statements]):t.createBlock([re,fe.statement],!0)),v,ji)}return kn(fe,v,e)}function P(fe,ve){return BU(fe.statements)!==0?gD(fe)?t.updateCaseClause(fe,st(fe.expression,v,St),F(fe.statements,0,fe.statements.length,ve,void 0)):t.updateDefaultClause(fe,F(fe.statements,0,fe.statements.length,ve,void 0)):kn(fe,v,e)}function k(fe){let ve=YUe(fe.caseBlock.clauses);if(ve){let xe=pe();return de([t.updateSwitchStatement(fe,st(fe.expression,v,St),t.updateCaseBlock(fe.caseBlock,fe.caseBlock.clauses.map(Y=>P(Y,xe))))],xe,ve===2)}return kn(fe,v,e)}function F(fe,ve,xe,Y,Ce){let Xe=[];for(let be=ve;be<xe;be++){let Ne=fe[be],Be=Wae(Ne);if(Be){C.assertNode(Ne,ac);let ce=[];for(let De of Ne.declarationList.declarations){if(!He(De.name)){ce.length=0;break}Mp(De)&&(De=Wp(e,De));let ge=st(De.initializer,v,St)??t.createVoidZero();ce.push(t.updateVariableDeclaration(De,De.name,void 0,void 0,r().createAddDisposableResourceHelper(Y,ge,Be===2)))}if(ce.length){let De=t.createVariableDeclarationList(ce,2);jr(De,Ne.declarationList),bt(De,Ne.declarationList),Se(t.updateVariableStatement(Ne,void 0,De));continue}}let lt=v(Ne);Mo(lt)?lt.forEach(Se):lt&&Se(lt)}return Xe;function Se(be){C.assertNode(be,ji),Bn(Xe,re(be))}function re(be){if(!Ce)return be;switch(be.kind){case 273:case 272:case 279:case 263:return O(be,Ce);case 278:return G(be);case 264:return Z(be);case 244:return q(be)}return be}}function O(fe,ve){ve.push(fe)}function G(fe){return fe.isExportEquals?J(fe):j(fe)}function j(fe){if(d)return fe;d=t.createUniqueName("_default",56),K(d,!0,"default",fe);let ve=fe.expression,xe=Ul(ve);Mp(xe)&&(xe=Wp(e,xe,!1,"default"),ve=t.restoreOuterExpressions(ve,xe));let Y=t.createAssignment(d,ve);return t.createExpressionStatement(Y)}function J(fe){if(g)return fe;g=t.createUniqueName("_default",56),i(g);let ve=t.createAssignment(g,fe.expression);return t.createExpressionStatement(ve)}function Z(fe){if(!fe.name&&d)return fe;let ve=di(fe,32),xe=di(fe,2048),Y=t.converters.convertToClassExpression(fe);return fe.name&&(K(t.getLocalName(fe),ve&&!xe,void 0,fe),Y=t.createAssignment(t.getDeclarationName(fe),Y),Mp(Y)&&(Y=Wp(e,Y,!1)),jr(Y,fe),Ua(Y,fe),Dc(Y,fe)),xe&&!d&&(d=t.createUniqueName("_default",56),K(d,!0,"default",fe),Y=t.createAssignment(d,Y),Mp(Y)&&(Y=Wp(e,Y,!1,"default")),jr(Y,fe)),t.createExpressionStatement(Y)}function q(fe){let ve,xe=di(fe,32);for(let Y of fe.declarationList.declarations)ie(Y,xe,Y),Y.initializer&&(ve=Bn(ve,ye(Y)));if(ve){let Y=t.createExpressionStatement(t.inlineExpressions(ve));return jr(Y,fe),Dc(Y,fe),Ua(Y,fe),Y}}function ye(fe){C.assertIsDefined(fe.initializer);let ve;He(fe.name)?(ve=t.cloneNode(fe.name),Cr(ve,Qa(ve)&-114689)):ve=t.converters.convertToAssignmentPattern(fe.name);let xe=t.createAssignment(ve,fe.initializer);return jr(xe,fe),Dc(xe,fe),Ua(xe,fe),xe}function ie(fe,ve,xe){if(Qo(fe.name))for(let Y of fe.name.elements)Kc(Y)||ie(Y,ve,xe);else K(fe.name,ve,void 0,xe)}function K(fe,ve,xe,Y){let Ce=pl(fe)?fe:t.cloneNode(fe);if(ve){if(xe===void 0&&!fy(Ce)){let be=t.createVariableDeclaration(Ce);Y&&jr(be,Y),u.push(be);return}let Xe=xe!==void 0?Ce:void 0,Se=xe!==void 0?xe:Ce,re=t.createExportSpecifier(!1,Xe,Se);Y&&jr(re,Y),l.set(Ce,re)}i(Ce)}function pe(){return t.createUniqueName("env")}function de(fe,ve,xe){let Y=[],Ce=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),Xe=t.createVariableDeclaration(ve,void 0,void 0,Ce),Se=t.createVariableDeclarationList([Xe],2),re=t.createVariableStatement(void 0,Se);Y.push(re);let be=t.createBlock(fe,!0),Ne=t.createUniqueName("e"),Be=t.createCatchClause(Ne,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ve,"error"),Ne)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ve,"hasError"),t.createTrue()))],!0)),lt;if(xe){let De=t.createUniqueName("result");lt=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(De,void 0,void 0,r().createDisposeResourcesHelper(ve))],2)),t.createIfStatement(De,t.createExpressionStatement(t.createAwaitExpression(De)))],!0)}else lt=t.createBlock([t.createExpressionStatement(r().createDisposeResourcesHelper(ve))],!0);let ce=t.createTryStatement(be,Be,lt);return Y.push(ce),Y}}function HSe(e){for(let t=0;t<e.length;t++)if(!jh(e[t])&&!KL(e[t]))return t;return 0}function qSe(e){return _d(e)&&Oae(e)!==0}function Oae(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function XUe(e){return Oae(e.declarationList)}function Wae(e){return ac(e)?XUe(e):0}function BU(e){let t=0;for(let r of e){let i=Wae(r);if(i===2)return 2;i>t&&(t=i)}return t}function YUe(e){let t=0;for(let r of e){let i=BU(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}function Fae(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return hh(e,v);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;let ce=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=ce,s.filenameDeclaration.name}function u(ce){return i.jsx===5?"jsxDEV":ce?"jsxs":"jsx"}function d(ce){let De=u(ce);return _(De)}function g(){return _("Fragment")}function _(ce){var De,ge;let je=ce==="createElement"?s.importSpecifier:CW(s.importSpecifier,i),Ge=(ge=(De=s.utilizedImplicitRuntimeImports)==null?void 0:De.get(je))==null?void 0:ge.get(ce);if(Ge)return Ge.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let We=s.utilizedImplicitRuntimeImports.get(je);We||(We=new Map,s.utilizedImplicitRuntimeImports.set(je,We));let at=t.createUniqueName(`_${ce}`,112),Wt=t.createImportSpecifier(!1,t.createIdentifier(ce),at);return rie(at,Wt),We.set(ce,Wt),at}function v(ce){if(ce.isDeclarationFile)return ce;o=ce,s={},s.importSpecifier=Fk(i,ce);let De=kn(ce,E,e);Eg(De,e.readEmitHelpers());let ge=De.statements;if(s.filenameDeclaration&&(ge=HS(ge.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[je,Ge]of Co(s.utilizedImplicitRuntimeImports.entries()))if(Gc(ce)){let We=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports(Co(Ge.values()))),t.createStringLiteral(je),void 0);z0(We,!1),ge=HS(ge.slice(),We)}else if(Np(ce)){let We=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Co(Ge.values(),at=>t.createBindingElement(void 0,at.propertyName,at.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(je)]))],2));z0(We,!1),ge=HS(ge.slice(),We)}}return ge!==De.statements&&(De=t.updateSourceFile(De,ge)),s=void 0,De}function E(ce){return ce.transformFlags&2?A(ce):ce}function A(ce){switch(ce.kind){case 285:return F(ce,!1);case 286:return O(ce,!1);case 289:return G(ce,!1);case 295:return lt(ce);default:return kn(ce,E,e)}}function R(ce){switch(ce.kind){case 12:return Ce(ce);case 295:return lt(ce);case 285:return F(ce,!0);case 286:return O(ce,!0);case 289:return G(ce,!0);default:return C.failBadSyntaxKind(ce)}}function N(ce){return ce.properties.some(De=>Nc(De)&&(He(De.name)&&Kr(De.name)==="__proto__"||ka(De.name)&&De.name.text==="__proto__"))}function P(ce){let De=!1;for(let ge of ce.attributes.properties)if(GI(ge)&&(!Wa(ge.expression)||ge.expression.properties.some(Ig)))De=!0;else if(De&&r_(ge)&&He(ge.name)&&ge.name.escapedText==="key")return!0;return!1}function k(ce){return s.importSpecifier===void 0||P(ce)}function F(ce,De){return(k(ce.openingElement)?ye:Z)(ce.openingElement,ce.children,De,ce)}function O(ce,De){return(k(ce)?ye:Z)(ce,void 0,De,ce)}function G(ce,De){return(s.importSpecifier===void 0?K:ie)(ce.openingFragment,ce.children,De,ce)}function j(ce){let De=J(ce);return De&&t.createObjectLiteralExpression([De])}function J(ce){let De=XR(ce);if(et(De)===1&&!De[0].dotDotDotToken){let je=R(De[0]);return je&&t.createPropertyAssignment("children",je)}let ge=Ui(ce,R);return et(ge)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(ge)):void 0}function Z(ce,De,ge,je){let Ge=Ne(ce),We=De&&De.length?J(De):void 0,at=hn(ce.attributes.properties,gn=>!!gn.name&&He(gn.name)&&gn.name.escapedText==="key"),Wt=at?Un(ce.attributes.properties,gn=>gn!==at):ce.attributes.properties,cn=et(Wt)?de(Wt,We):t.createObjectLiteralExpression(We?[We]:ae);return q(Ge,cn,at,De||ae,ge,je)}function q(ce,De,ge,je,Ge,We){var at;let Wt=XR(je),cn=et(Wt)>1||!!((at=Wt[0])!=null&&at.dotDotDotToken),gn=[ce,De];if(ge&&gn.push(Y(ge.initializer)),i.jsx===5){let _t=yl(o);if(_t&&Yi(_t)){ge===void 0&&gn.push(t.createVoidZero()),gn.push(cn?t.createTrue():t.createFalse());let en=ca(_t,We.pos);gn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(en.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(en.character+1))])),gn.push(t.createThis())}}let Kn=bt(t.createCallExpression(d(cn),void 0,gn),We);return Ge&&ou(Kn),Kn}function ye(ce,De,ge,je){let Ge=Ne(ce),We=ce.attributes.properties,at=et(We)?de(We):t.createNull(),Wt=s.importSpecifier===void 0?Sj(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,ce):_("createElement"),cn=Wie(t,Wt,Ge,at,Ui(De,R),je);return ge&&ou(cn),cn}function ie(ce,De,ge,je){let Ge;if(De&&De.length){let We=j(De);We&&(Ge=We)}return q(g(),Ge||t.createObjectLiteralExpression([]),void 0,De,ge,je)}function K(ce,De,ge,je){let Ge=Fie(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Ui(De,R),ce,je);return ge&&ou(Ge),Ge}function pe(ce){return Wa(ce.expression)&&!N(ce.expression)?Zi(ce.expression.properties,De=>C.checkDefined(st(De,E,ny))):t.createSpreadAssignment(C.checkDefined(st(ce.expression,E,St)))}function de(ce,De){let ge=Ga(i);return ge&&ge>=5?t.createObjectLiteralExpression(fe(ce,De)):ve(ce,De)}function fe(ce,De){let ge=la(nL(ce,GI,(je,Ge)=>la(Vt(je,We=>Ge?pe(We):xe(We)))));return De&&ge.push(De),ge}function ve(ce,De){let ge=[],je=[];for(let We of ce){if(GI(We)){if(Wa(We.expression)&&!N(We.expression)){for(let at of We.expression.properties){if(Ig(at)){Ge(),ge.push(C.checkDefined(st(at.expression,E,St)));continue}je.push(C.checkDefined(st(at,E)))}continue}Ge(),ge.push(C.checkDefined(st(We.expression,E,St)));continue}je.push(xe(We))}return De&&je.push(De),Ge(),ge.length&&!Wa(ge[0])&&ge.unshift(t.createObjectLiteralExpression()),ig(ge)||r().createAssignHelper(ge);function Ge(){je.length&&(ge.push(t.createObjectLiteralExpression(je)),je=[])}}function xe(ce){let De=Be(ce),ge=Y(ce.initializer);return t.createPropertyAssignment(De,ge)}function Y(ce){if(ce===void 0)return t.createTrue();if(ce.kind===11){let De=ce.singleQuote!==void 0?ce.singleQuote:!q6(ce,o),ge=t.createStringLiteral(be(ce.text)||ce.text,De);return bt(ge,ce)}return ce.kind===295?ce.expression===void 0?t.createTrue():C.checkDefined(st(ce.expression,E,St)):n_(ce)?F(ce,!1):_E(ce)?O(ce,!1):J0(ce)?G(ce,!1):C.failBadSyntaxKind(ce)}function Ce(ce){let De=Xe(ce.text);return De===void 0?void 0:t.createStringLiteral(De)}function Xe(ce){let De,ge=0,je=-1;for(let Ge=0;Ge<ce.length;Ge++){let We=ce.charCodeAt(Ge);Zd(We)?(ge!==-1&&je!==-1&&(De=Se(De,ce.substr(ge,je-ge+1))),ge=-1):zh(We)||(je=Ge,ge===-1&&(ge=Ge))}return ge!==-1?Se(De,ce.substr(ge)):De}function Se(ce,De){let ge=re(De);return ce===void 0?ge:ce+" "+ge}function re(ce){return ce.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(De,ge,je,Ge,We,at,Wt)=>{if(We)return xN(parseInt(We,10));if(at)return xN(parseInt(at,16));{let cn=$Ue.get(Wt);return cn?xN(cn):De}})}function be(ce){let De=re(ce);return De===ce?void 0:De}function Ne(ce){if(ce.kind===285)return Ne(ce.openingElement);{let De=ce.tagName;return He(De)&&YR(De.escapedText)?t.createStringLiteral(Kr(De)):fh(De)?t.createStringLiteral(Kr(De.namespace)+":"+Kr(De.name)):dw(t,De)}}function Be(ce){let De=ce.name;if(He(De)){let ge=Kr(De);return/^[A-Z_]\w*$/i.test(ge)?De:t.createStringLiteral(ge)}return t.createStringLiteral(Kr(De.namespace)+":"+Kr(De.name))}function lt(ce){let De=st(ce.expression,E,St);return ce.dotDotDotToken?t.createSpreadElement(De):De}}var $Ue=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 zae(e){let{factory:t,hoistVariableDeclaration:r}=e;return hh(e,i);function i(d){return d.isDeclarationFile?d:kn(d,o,e)}function o(d){if((d.transformFlags&512)===0)return d;switch(d.kind){case 227:return s(d);default:return kn(d,o,e)}}function s(d){switch(d.operatorToken.kind){case 68:return l(d);case 43:return u(d);default:return kn(d,o,e)}}function l(d){let g,_,v=st(d.left,o,St),E=st(d.right,o,St);if(Ws(v)){let A=t.createTempVariable(r),R=t.createTempVariable(r);g=bt(t.createElementAccessExpression(bt(t.createAssignment(A,v.expression),v.expression),bt(t.createAssignment(R,v.argumentExpression),v.argumentExpression)),v),_=bt(t.createElementAccessExpression(A,R),v)}else if(qr(v)){let A=t.createTempVariable(r);g=bt(t.createPropertyAccessExpression(bt(t.createAssignment(A,v.expression),v.expression),v.name),v),_=bt(t.createPropertyAccessExpression(A,v.name),v)}else g=v,_=v;return bt(t.createAssignment(g,bt(t.createGlobalMethodCall("Math","pow",[_,E]),d)),d)}function u(d){let g=st(d.left,o,St),_=st(d.right,o,St);return bt(t.createGlobalMethodCall("Math","pow",[g,_]),d)}}function JSe(e,t){return{kind:e,expression:t}}function Bae(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=e.getEmitResolver(),g=e.onSubstituteNode,_=e.onEmitNode;e.onEmitNode=ld,e.onSubstituteNode=Jf;let v,E,A,R;function N(oe){R=Bn(R,t.createVariableDeclaration(oe))}let P,k=0;return hh(e,F);function F(oe){if(oe.isDeclarationFile)return oe;v=oe,E=oe.text;let ut=de(oe);return Eg(ut,e.readEmitHelpers()),v=void 0,E=void 0,R=void 0,A=0,ut}function O(oe,ut){let tn=A;return A=(A&~oe|ut)&32767,tn}function G(oe,ut,tn){A=(A&~ut|tn)&-32768|oe}function j(oe){return(A&8192)!==0&&oe.kind===254&&!oe.expression}function J(oe){return oe.transformFlags&4194304&&(ef(oe)||U0(oe)||Tie(oe)||GM(oe)||VM(oe)||gD(oe)||jM(oe)||mE(oe)||O1(oe)||Nb(oe)||ub(oe,!1)||ea(oe))}function Z(oe){return(oe.transformFlags&1024)!==0||P!==void 0||A&8192&&J(oe)||ub(oe,!1)&&co(oe)||(Wm(oe)&1)!==0}function q(oe){return Z(oe)?pe(oe,!1):oe}function ye(oe){return Z(oe)?pe(oe,!0):oe}function ie(oe){if(Z(oe)){let ut=yl(oe);if(Po(ut)&&Wc(ut)){let tn=O(32670,16449),an=pe(oe,!1);return G(tn,229376,0),an}return pe(oe,!1)}return oe}function K(oe){return oe.kind===108?nf(oe,!0):q(oe)}function pe(oe,ut){switch(oe.kind){case 126:return;case 264:return Ne(oe);case 232:return Be(oe);case 170:return Ia(oe);case 263:return Kt(oe);case 220:return Ot(oe);case 219:return nt(oe);case 261:return tr(oe);case 80:return re(oe);case 262:return Le(oe);case 256:return fe(oe);case 270:return ve(oe);case 242:return Nt(oe);case 253:case 252:return be(oe);case 257:return Mt(oe);case 247:case 248:return In(oe,void 0);case 249:return yn(oe,void 0);case 250:return En(oe,void 0);case 251:return xn(oe,void 0);case 245:return _e(oe);case 211:return sa(oe);case 300:return ro(oe);case 305:return Qs(oe);case 168:return Ec(oe);case 210:return Hs(oe);case 214:return Pl(oe);case 215:return tf(oe);case 218:return B(oe,ut);case 227:return Ae(oe,ut);case 357:return te(oe,ut);case 15:case 16:case 17:case 18:return es(oe);case 11:return Va(oe);case 9:return Pc(oe);case 216:return tl(oe);case 229:return Ll(oe);case 230:return mc(oe);case 231:return Za(oe);case 108:return nf(oe,!1);case 110:return Xe(oe);case 237:return bd(oe);case 175:return Ns(oe);case 178:case 179:return Da(oe);case 244:return Xt(oe);case 254:return Ce(oe);case 223:return Se(oe);default:return kn(oe,q,e)}}function de(oe){let ut=O(8064,64),tn=[],an=[];i();let wn=t.copyPrologue(oe.statements,tn,!1,q);return Xr(an,Xn(oe.statements,q,ji,wn)),R&&an.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(tn,s()),ne(tn,oe),G(ut,0,0),t.updateSourceFile(oe,bt(t.createNodeArray(so(tn,an)),oe.statements))}function fe(oe){if(P!==void 0){let ut=P.allowedNonLabeledJumps;P.allowedNonLabeledJumps|=2;let tn=kn(oe,q,e);return P.allowedNonLabeledJumps=ut,tn}return kn(oe,q,e)}function ve(oe){let ut=O(7104,0),tn=kn(oe,q,e);return G(ut,0,0),tn}function xe(oe){return jr(t.createReturnStatement(Y()),oe)}function Y(){return t.createUniqueName("_this",48)}function Ce(oe){return P?(P.nonLocalJumps|=8,j(oe)&&(oe=xe(oe)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),oe.expression?C.checkDefined(st(oe.expression,q,St)):t.createVoidZero())]))):j(oe)?xe(oe):kn(oe,q,e)}function Xe(oe){return A|=65536,A&2&&!(A&16384)&&(A|=131072),P?A&2?(P.containsLexicalThis=!0,oe):P.thisName||(P.thisName=t.createUniqueName("this")):oe}function Se(oe){return kn(oe,ye,e)}function re(oe){return P&&d.isArgumentsLocalBinding(oe)?P.argumentsName||(P.argumentsName=t.createUniqueName("arguments")):oe.flags&256?jr(bt(t.createIdentifier(Vi(oe.escapedText)),oe),oe):oe}function be(oe){if(P){let ut=oe.kind===253?2:4;if(!(oe.label&&P.labels&&P.labels.get(Kr(oe.label))||!oe.label&&P.allowedNonLabeledJumps&ut)){let an,wn=oe.label;wn?oe.kind===253?(an=`break-${wn.escapedText}`,pt(P,!0,Kr(wn),an)):(an=`continue-${wn.escapedText}`,pt(P,!1,Kr(wn),an)):oe.kind===253?(P.nonLocalJumps|=2,an="break"):(P.nonLocalJumps|=4,an="continue");let or=t.createStringLiteral(an);if(P.loopOutParameters.length){let ti=P.loopOutParameters,Ti;for(let $i=0;$i<ti.length;$i++){let z=vd(ti[$i],1);$i===0?Ti=z:Ti=t.createBinaryExpression(Ti,28,z)}or=t.createBinaryExpression(Ti,28,or)}return t.createReturnStatement(or)}}return kn(oe,q,e)}function Ne(oe){let ut=t.createVariableDeclaration(t.getLocalName(oe,!0),void 0,void 0,lt(oe));jr(ut,oe);let tn=[],an=t.createVariableStatement(void 0,t.createVariableDeclarationList([ut]));if(jr(an,oe),bt(an,oe),ou(an),tn.push(an),di(oe,32)){let wn=di(oe,2048)?t.createExportDefault(t.getLocalName(oe)):t.createExternalModuleExport(t.getLocalName(oe));jr(wn,an),tn.push(wn)}return A_(tn)}function Be(oe){return lt(oe)}function lt(oe){oe.name&&Gp();let ut=v1(oe),tn=t.createFunctionExpression(void 0,void 0,void 0,void 0,ut?[t.createParameterDeclaration(void 0,void 0,ql())]:[],void 0,ce(oe,ut));Cr(tn,Qa(oe)&131072|1048576);let an=t.createPartiallyEmittedExpression(tn);aD(an,oe.end),Cr(an,3072);let wn=t.createPartiallyEmittedExpression(an);aD(wn,La(E,oe.pos)),Cr(wn,3072);let or=t.createParenthesizedExpression(t.createCallExpression(wn,void 0,ut?[C.checkDefined(st(ut.expression,q,St))]:[]));return xb(or,3,"* @class "),or}function ce(oe,ut){let tn=[],an=t.getInternalName(oe),wn=LG(an)?t.getGeneratedNameForNode(an):an;i(),De(tn,oe,ut),ge(tn,oe,wn,ut),dt(tn,oe);let or=oV(La(E,oe.members.end),20),ti=t.createPartiallyEmittedExpression(wn);aD(ti,or.end),Cr(ti,3072);let Ti=t.createReturnStatement(ti);IM(Ti,or.pos),Cr(Ti,3840),tn.push(Ti),fg(tn,s());let $i=t.createBlock(bt(t.createNodeArray(tn),oe.members),!0);return Cr($i,3072),$i}function De(oe,ut,tn){tn&&oe.push(bt(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(ut))),tn))}function ge(oe,ut,tn,an){let wn=P;P=void 0;let or=O(32662,73),ti=gg(ut),Ti=u_(ti,an!==void 0),$i=t.createFunctionDeclaration(void 0,void 0,tn,void 0,je(ti,Ti),void 0,Wt(ti,ut,an,Ti));bt($i,ti||ut),an&&Cr($i,16),oe.push($i),G(or,229376,0),P=wn}function je(oe,ut){return Fl(oe&&!ut?oe.parameters:void 0,q,e)||[]}function Ge(oe,ut){let tn=[];o(),t.mergeLexicalEnvironment(tn,s()),ut&&tn.push(t.createReturnStatement($o()));let an=t.createNodeArray(tn);bt(an,oe.members);let wn=t.createBlock(an,!0);return bt(wn,oe),Cr(wn,3072),wn}function We(oe){return ac(oe)&&Vn(oe.declarationList.declarations,ut=>He(ut.name)&&!ut.initializer)}function at(oe){if(JS(oe))return!0;if(!(oe.transformFlags&134217728))return!1;switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{let ut=oe;return va(ut.name)?!!Jo(ut.name,at):!1}}return!!Jo(oe,at)}function Wt(oe,ut,tn,an){let wn=!!tn&&Ul(tn.expression).kind!==106;if(!oe)return Ge(ut,wn);let or=[],ti=[];o();let Ti=t.copyStandardPrologue(oe.body.statements,or,0);(an||at(oe.body))&&(A|=8192),Xr(ti,Xn(oe.body.statements,q,ji,Ti));let $i=wn||A&8192;Uo(or,oe),ht(or,oe,an),it(or,oe),$i?Fe(or,oe,qi()):ne(or,oe),t.mergeLexicalEnvironment(or,s()),$i&&!ai(oe.body)&&ti.push(t.createReturnStatement(Y()));let z=t.createBlock(bt(t.createNodeArray([...or,...ti]),oe.body.statements),!0);return bt(z,oe.body),ri(z,oe.body,an)}function cn(oe){return pl(oe)&&Kr(oe)==="_this"}function gn(oe){return pl(oe)&&Kr(oe)==="_super"}function Kn(oe){return ac(oe)&&oe.declarationList.declarations.length===1&&_t(oe.declarationList.declarations[0])}function _t(oe){return yi(oe)&&cn(oe.name)&&!!oe.initializer}function en(oe){return id(oe,!0)&&cn(oe.left)}function ir(oe){return Zo(oe)&&qr(oe.expression)&&gn(oe.expression.expression)&&He(oe.expression.name)&&(Kr(oe.expression.name)==="call"||Kr(oe.expression.name)==="apply")&&oe.arguments.length>=1&&oe.arguments[0].kind===110}function Di(oe){return Nr(oe)&&oe.operatorToken.kind===57&&oe.right.kind===110&&ir(oe.left)}function lo(oe){return Nr(oe)&&oe.operatorToken.kind===56&&Nr(oe.left)&&oe.left.operatorToken.kind===38&&gn(oe.left.left)&&oe.left.right.kind===106&&ir(oe.right)&&Kr(oe.right.expression.name)==="apply"}function zt(oe){return Nr(oe)&&oe.operatorToken.kind===57&&oe.right.kind===110&&lo(oe.left)}function Zr(oe){return en(oe)&&Di(oe.right)}function Ai(oe){return en(oe)&&zt(oe.right)}function Ni(oe){return ir(oe)||Di(oe)||Zr(oe)||lo(oe)||zt(oe)||Ai(oe)}function Pr(oe){for(let ut=0;ut<oe.statements.length-1;ut++){let tn=oe.statements[ut];if(!Kn(tn))continue;let an=tn.declarationList.declarations[0];if(an.initializer.kind!==110)continue;let wn=ut,or=ut+1;for(;or<oe.statements.length;){let On=oe.statements[or];if(od(On)&&Ni(Ul(On.expression)))break;if(We(On)){or++;continue}return oe}let ti=oe.statements[or],Ti=ti.expression;en(Ti)&&(Ti=Ti.right);let $i=t.updateVariableDeclaration(an,an.name,void 0,void 0,Ti),z=t.updateVariableDeclarationList(tn.declarationList,[$i]),Ve=t.createVariableStatement(tn.modifiers,z);jr(Ve,ti),bt(Ve,ti);let kt=t.createNodeArray([...oe.statements.slice(0,wn),...oe.statements.slice(wn+1,or),Ve,...oe.statements.slice(or+1)]);return bt(kt,oe.statements),t.updateBlock(oe,kt)}return oe}function Ci(oe,ut){for(let an of ut.statements)if(an.transformFlags&134217728&&!iF(an))return oe;let tn=!(ut.transformFlags&16384)&&!(A&65536)&&!(A&131072);for(let an=oe.statements.length-1;an>0;an--){let wn=oe.statements[an];if(ef(wn)&&wn.expression&&cn(wn.expression)){let or=oe.statements[an-1],ti;if(od(or)&&Zr(Ul(or.expression)))ti=or.expression;else if(tn&&Kn(or)){let z=or.declarationList.declarations[0];Ni(Ul(z.initializer))&&(ti=t.createAssignment(Y(),z.initializer))}if(!ti)break;let Ti=t.createReturnStatement(ti);jr(Ti,or),bt(Ti,or);let $i=t.createNodeArray([...oe.statements.slice(0,an-1),Ti,...oe.statements.slice(an+1)]);return bt($i,oe.statements),t.updateBlock(oe,$i)}}return oe}function $e(oe){if(Kn(oe)){if(oe.declarationList.declarations[0].initializer.kind===110)return}else if(en(oe))return t.createPartiallyEmittedExpression(oe.right,oe);switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return oe;case 178:case 179:case 175:case 173:{let ut=oe;return va(ut.name)?t.replacePropertyName(ut,kn(ut.name,$e,void 0)):oe}}return kn(oe,$e,void 0)}function At(oe,ut){if(ut.transformFlags&16384||A&65536||A&131072)return oe;for(let tn of ut.statements)if(tn.transformFlags&134217728&&!iF(tn))return oe;return t.updateBlock(oe,Xn(oe.statements,$e,ji))}function mn(oe){if(ir(oe)&&oe.arguments.length===2&&He(oe.arguments[1])&&Kr(oe.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(ql(),t.createNull()),oe);switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return oe;case 178:case 179:case 175:case 173:{let ut=oe;return va(ut.name)?t.replacePropertyName(ut,kn(ut.name,mn,void 0)):oe}}return kn(oe,mn,void 0)}function dr(oe){return t.updateBlock(oe,Xn(oe.statements,mn,ji))}function ri(oe,ut,tn){let an=oe;return oe=Pr(oe),oe=Ci(oe,ut),oe!==an&&(oe=At(oe,ut)),tn&&(oe=dr(oe)),oe}function ai(oe){if(oe.kind===254)return!0;if(oe.kind===246){let ut=oe;if(ut.elseStatement)return ai(ut.thenStatement)&&ai(ut.elseStatement)}else if(oe.kind===242){let ut=Zs(oe.statements);if(ut&&ai(ut))return!0}return!1}function qi(){return Cr(t.createThis(),8)}function $o(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ql(),t.createNull()),t.createFunctionApplyCall(ql(),qi(),t.createIdentifier("arguments"))),qi())}function Ia(oe){if(!oe.dotDotDotToken)return Qo(oe.name)?jr(bt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(oe),void 0,void 0,void 0),oe),oe):oe.initializer?jr(bt(t.createParameterDeclaration(void 0,void 0,oe.name,void 0,void 0,void 0),oe),oe):oe}function Mn(oe){return oe.initializer!==void 0||Qo(oe.name)}function Uo(oe,ut){if(!vt(ut.parameters,Mn))return!1;let tn=!1;for(let an of ut.parameters){let{name:wn,initializer:or,dotDotDotToken:ti}=an;ti||(Qo(wn)?tn=ot(oe,an,wn,or)||tn:or&&(Ft(oe,an,wn,or),tn=!0))}return tn}function ot(oe,ut,tn,an){return tn.elements.length>0?(HS(oe,Cr(t.createVariableStatement(void 0,t.createVariableDeclarationList(G1(ut,q,e,0,t.getGeneratedNameForNode(ut)))),2097152)),!0):an?(HS(oe,Cr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ut),C.checkDefined(st(an,q,St)))),2097152)),!0):!1}function Ft(oe,ut,tn,an){an=C.checkDefined(st(an,q,St));let wn=t.createIfStatement(t.createTypeCheck(t.cloneNode(tn),"undefined"),Cr(bt(t.createBlock([t.createExpressionStatement(Cr(bt(t.createAssignment(Cr(us(bt(t.cloneNode(tn),tn),tn.parent),96),Cr(an,96|Qa(an)|3072)),ut),3072))]),ut),3905));ou(wn),bt(wn,ut),Cr(wn,2101056),HS(oe,wn)}function le(oe,ut){return!!(oe&&oe.dotDotDotToken&&!ut)}function ht(oe,ut,tn){let an=[],wn=Zs(ut.parameters);if(!le(wn,tn))return!1;let or=wn.name.kind===80?us(bt(t.cloneNode(wn.name),wn.name),wn.name.parent):t.createTempVariable(void 0);Cr(or,96);let ti=wn.name.kind===80?t.cloneNode(wn.name):or,Ti=ut.parameters.length-1,$i=t.createLoopVariable();an.push(Cr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(or,void 0,void 0,t.createArrayLiteralExpression([]))])),wn),2097152));let z=t.createForStatement(bt(t.createVariableDeclarationList([t.createVariableDeclaration($i,void 0,void 0,t.createNumericLiteral(Ti))]),wn),bt(t.createLessThan($i,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),wn),bt(t.createPostfixIncrement($i),wn),t.createBlock([ou(bt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ti,Ti===0?$i:t.createSubtract($i,t.createNumericLiteral(Ti))),t.createElementAccessExpression(t.createIdentifier("arguments"),$i))),wn))]));return Cr(z,2097152),ou(z),an.push(z),wn.name.kind!==80&&an.push(Cr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList(G1(wn,q,e,0,ti))),wn),2097152)),QB(oe,an),!0}function ne(oe,ut){return A&131072&&ut.kind!==220?(Fe(oe,ut,t.createThis()),!0):!1}function Fe(oe,ut,tn){Eu();let an=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Y(),void 0,void 0,tn)]));Cr(an,2100224),Ua(an,ut),HS(oe,an)}function it(oe,ut){if(A&32768){let tn;switch(ut.kind){case 220:return oe;case 175:case 178:case 179:tn=t.createVoidZero();break;case 177:tn=t.createPropertyAccessExpression(Cr(t.createThis(),8),"constructor");break;case 263:case 219:tn=t.createConditionalExpression(t.createLogicalAnd(Cr(t.createThis(),8),t.createBinaryExpression(Cr(t.createThis(),8),104,t.getLocalName(ut))),void 0,t.createPropertyAccessExpression(Cr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return C.failBadSyntaxKind(ut)}let an=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,tn)]));Cr(an,2100224),HS(oe,an)}return oe}function dt(oe,ut){for(let tn of ut.members)switch(tn.kind){case 241:oe.push(Lt(tn));break;case 175:oe.push(Ue(bf(ut,tn),tn,ut));break;case 178:case 179:let an=E1(ut.members,tn);tn===an.firstAccessor&&oe.push(Rt(bf(ut,tn),an,ut));break;case 177:case 176:break;default:C.failBadSyntaxKind(tn,v&&v.fileName);break}}function Lt(oe){return bt(t.createEmptyStatement(),oe)}function Ue(oe,ut,tn){let an=Qh(ut),wn=ov(ut),or=Sr(ut,ut,void 0,tn),ti=st(ut.name,q,bc);C.assert(ti);let Ti;if(!eo(ti)&&Ok(e.getCompilerOptions())){let z=va(ti)?ti.expression:He(ti)?t.createStringLiteral(Vi(ti.escapedText)):ti;Ti=t.createObjectDefinePropertyCall(oe,z,t.createPropertyDescriptor({value:or,enumerable:!1,writable:!0,configurable:!0}))}else{let z=vE(t,oe,ti,ut.name);Ti=t.createAssignment(z,or)}Cr(or,3072),Ua(or,wn);let $i=bt(t.createExpressionStatement(Ti),ut);return jr($i,ut),Dc($i,an),Cr($i,96),$i}function Rt(oe,ut,tn){let an=t.createExpressionStatement(It(oe,ut,tn,!1));return Cr(an,3072),Ua(an,ov(ut.firstAccessor)),an}function It(oe,{firstAccessor:ut,getAccessor:tn,setAccessor:an},wn,or){let ti=us(bt(t.cloneNode(oe),oe),oe.parent);Cr(ti,3136),Ua(ti,ut.name);let Ti=st(ut.name,q,bc);if(C.assert(Ti),eo(Ti))return C.failBadSyntaxKind(Ti,"Encountered unhandled private identifier while transforming ES2015.");let $i=Aj(t,Ti);Cr($i,3104),Ua($i,ut.name);let z=[];if(tn){let kt=Sr(tn,void 0,void 0,wn);Ua(kt,ov(tn)),Cr(kt,1024);let On=t.createPropertyAssignment("get",kt);Dc(On,Qh(tn)),z.push(On)}if(an){let kt=Sr(an,void 0,void 0,wn);Ua(kt,ov(an)),Cr(kt,1024);let On=t.createPropertyAssignment("set",kt);Dc(On,Qh(an)),z.push(On)}z.push(t.createPropertyAssignment("enumerable",tn||an?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Ve=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[ti,$i,t.createObjectLiteralExpression(z,!0)]);return or&&ou(Ve),Ve}function Ot(oe){oe.transformFlags&16384&&!(A&16384)&&(A|=131072);let ut=P;P=void 0;let tn=O(15232,66),an=t.createFunctionExpression(void 0,void 0,void 0,void 0,Fl(oe.parameters,q,e),void 0,Oe(oe));return bt(an,oe),jr(an,oe),Cr(an,16),G(tn,0,0),P=ut,an}function nt(oe){let ut=Qa(oe)&524288?O(32662,69):O(32670,65),tn=P;P=void 0;let an=Fl(oe.parameters,q,e),wn=Oe(oe),or=A&32768?t.getLocalName(oe):oe.name;return G(ut,229376,0),P=tn,t.updateFunctionExpression(oe,void 0,oe.asteriskToken,or,void 0,an,void 0,wn)}function Kt(oe){let ut=P;P=void 0;let tn=O(32670,65),an=Fl(oe.parameters,q,e),wn=Oe(oe),or=A&32768?t.getLocalName(oe):oe.name;return G(tn,229376,0),P=ut,t.updateFunctionDeclaration(oe,Xn(oe.modifiers,q,Aa),oe.asteriskToken,or,void 0,an,void 0,wn)}function Sr(oe,ut,tn,an){let wn=P;P=void 0;let or=an&&ui(an)&&!ua(oe)?O(32670,73):O(32670,65),ti=Fl(oe.parameters,q,e),Ti=Oe(oe);return A&32768&&!tn&&(oe.kind===263||oe.kind===219)&&(tn=t.getGeneratedNameForNode(oe)),G(or,229376,0),P=wn,jr(bt(t.createFunctionExpression(void 0,oe.asteriskToken,tn,void 0,ti,void 0,Ti),ut),oe)}function Oe(oe){let ut=!1,tn=!1,an,wn,or=[],ti=[],Ti=oe.body,$i;if(o(),ea(Ti)&&($i=t.copyStandardPrologue(Ti.statements,or,0,!1),$i=t.copyCustomPrologue(Ti.statements,ti,$i,q,M6),$i=t.copyCustomPrologue(Ti.statements,ti,$i,q,P6)),ut=Uo(ti,oe)||ut,ut=ht(ti,oe,!1)||ut,ea(Ti))$i=t.copyCustomPrologue(Ti.statements,ti,$i,q),an=Ti.statements,Xr(ti,Xn(Ti.statements,q,ji,$i)),!ut&&Ti.multiLine&&(ut=!0);else{C.assert(oe.kind===220),an=_W(Ti,-1);let Ve=oe.equalsGreaterThanToken;!Os(Ve)&&!Os(Ti)&&(Nk(Ve,Ti,v)?tn=!0:ut=!0);let kt=st(Ti,q,St),On=t.createReturnStatement(kt);bt(On,Ti),$re(On,Ti),Cr(On,2880),ti.push(On),wn=Ti}if(t.mergeLexicalEnvironment(or,s()),it(or,oe),ne(or,oe),vt(or)&&(ut=!0),ti.unshift(...or),ea(Ti)&&$p(ti,Ti.statements))return Ti;let z=t.createBlock(bt(t.createNodeArray(ti),an),ut);return bt(z,oe.body),!ut&&tn&&Cr(z,1),wn&&Yre(z,20,wn),jr(z,oe.body),z}function Nt(oe,ut){let tn=A&256?O(7104,512):O(6976,128),an=kn(oe,q,e);return G(tn,0,0),an}function _e(oe){return kn(oe,ye,e)}function B(oe,ut){return kn(oe,ut?ye:q,e)}function Ae(oe,ut){return ev(oe)?IE(oe,q,e,0,!ut):oe.operatorToken.kind===28?t.updateBinaryExpression(oe,C.checkDefined(st(oe.left,ye,St)),oe.operatorToken,C.checkDefined(st(oe.right,ut?ye:q,St))):kn(oe,q,e)}function te(oe,ut){if(ut)return kn(oe,ye,e);let tn;for(let wn=0;wn<oe.elements.length;wn++){let or=oe.elements[wn],ti=st(or,wn<oe.elements.length-1?ye:q,St);(tn||ti!==or)&&(tn||(tn=oe.elements.slice(0,wn)),C.assert(ti),tn.push(ti))}let an=tn?bt(t.createNodeArray(tn),oe.elements):oe.elements;return t.updateCommaListExpression(oe,an)}function xt(oe){return oe.declarationList.declarations.length===1&&!!oe.declarationList.declarations[0].initializer&&!!(Wm(oe.declarationList.declarations[0].initializer)&1)}function Xt(oe){let ut=O(0,di(oe,32)?32:0),tn;if(P&&(oe.declarationList.flags&7)===0&&!xt(oe)){let an;for(let wn of oe.declarationList.declarations)if(Sc(P,wn),wn.initializer){let or;Qo(wn.name)?or=IE(wn,q,e,0):(or=t.createBinaryExpression(wn.name,64,C.checkDefined(st(wn.initializer,q,St))),bt(or,wn)),an=Bn(an,or)}an?tn=bt(t.createExpressionStatement(t.inlineExpressions(an)),oe):tn=void 0}else tn=kn(oe,q,e);return G(ut,0,0),tn}function Le(oe){if(oe.flags&7||oe.transformFlags&524288){oe.flags&7&&Gp();let ut=Xn(oe.declarations,oe.flags&1?gr:tr,yi),tn=t.createVariableDeclarationList(ut);return jr(tn,oe),bt(tn,oe),Dc(tn,oe),oe.transformFlags&524288&&(Qo(oe.declarations[0].name)||Qo(Ba(oe.declarations).name))&&Ua(tn,gt(ut)),tn}return kn(oe,q,e)}function gt(oe){let ut=-1,tn=-1;for(let an of oe)ut=ut===-1?an.pos:an.pos===-1?ut:Math.min(ut,an.pos),tn=Math.max(tn,an.end);return Ff(ut,tn)}function Bt(oe){let ut=d.hasNodeCheckFlag(oe,16384),tn=d.hasNodeCheckFlag(oe,32768);return!((A&64)!==0||ut&&tn&&(A&512)!==0)&&(A&4096)===0&&(!d.isDeclarationWithCollidingName(oe)||tn&&!ut&&(A&6144)===0)}function gr(oe){let ut=oe.name;return Qo(ut)?tr(oe):!oe.initializer&&Bt(oe)?t.updateVariableDeclaration(oe,oe.name,void 0,void 0,t.createVoidZero()):kn(oe,q,e)}function tr(oe){let ut=O(32,0),tn;return Qo(oe.name)?tn=G1(oe,q,e,0,void 0,(ut&32)!==0):tn=kn(oe,q,e),G(ut,0,0),tn}function Jn(oe){P.labels.set(Kr(oe.label),!0)}function ft(oe){P.labels.set(Kr(oe.label),!1)}function Mt(oe){P&&!P.labels&&(P.labels=new Map);let ut=_G(oe,P&&Jn);return ub(ut,!1)?jt(ut,oe):t.restoreEnclosingLabel(st(ut,q,ji,t.liftToBlock)??bt(t.createEmptyStatement(),ut),oe,P&&ft)}function jt(oe,ut){switch(oe.kind){case 247:case 248:return In(oe,ut);case 249:return yn(oe,ut);case 250:return En(oe,ut);case 251:return xn(oe,ut)}}function Qt(oe,ut,tn,an,wn){let or=O(oe,ut),ti=$s(tn,an,or,wn);return G(or,0,0),ti}function In(oe,ut){return Qt(0,1280,oe,ut)}function yn(oe,ut){return Qt(5056,3328,oe,ut)}function wt(oe){return t.updateForStatement(oe,st(oe.initializer,ye,kf),st(oe.condition,q,St),st(oe.incrementor,ye,St),C.checkDefined(st(oe.statement,q,ji,t.liftToBlock)))}function En(oe,ut){return Qt(3008,5376,oe,ut)}function xn(oe,ut){return Qt(3008,5376,oe,ut,u.downlevelIteration?ra:Ii)}function Ln(oe,ut,tn){let an=[],wn=oe.initializer;if(_d(wn)){oe.initializer.flags&7&&Gp();let or=Ic(wn.declarations);if(or&&Qo(or.name)){let ti=G1(or,q,e,0,ut),Ti=bt(t.createVariableDeclarationList(ti),oe.initializer);jr(Ti,oe.initializer),Ua(Ti,Ff(ti[0].pos,Ba(ti).end)),an.push(t.createVariableStatement(void 0,Ti))}else an.push(bt(t.createVariableStatement(void 0,jr(bt(t.createVariableDeclarationList([t.createVariableDeclaration(or?or.name:t.createTempVariable(void 0),void 0,void 0,ut)]),W0(wn,-1)),wn)),_W(wn,-1)))}else{let or=t.createAssignment(wn,ut);ev(or)?an.push(t.createExpressionStatement(Ae(or,!0))):(aD(or,wn.end),an.push(bt(t.createExpressionStatement(C.checkDefined(st(or,q,St))),_W(wn,-1))))}if(tn)return ln(Xr(an,tn));{let or=st(oe.statement,q,ji,t.liftToBlock);return C.assert(or),ea(or)?t.updateBlock(or,bt(t.createNodeArray(so(an,or.statements)),or.statements)):(an.push(or),ln(an))}}function ln(oe){return Cr(t.createBlock(t.createNodeArray(oe),!0),864)}function Ii(oe,ut,tn){let an=st(oe.expression,q,St);C.assert(an);let wn=t.createLoopVariable(),or=He(an)?t.getGeneratedNameForNode(an):t.createTempVariable(void 0);Cr(an,96|Qa(an));let ti=bt(t.createForStatement(Cr(bt(t.createVariableDeclarationList([bt(t.createVariableDeclaration(wn,void 0,void 0,t.createNumericLiteral(0)),W0(oe.expression,-1)),bt(t.createVariableDeclaration(or,void 0,void 0,an),oe.expression)]),oe.expression),4194304),bt(t.createLessThan(wn,t.createPropertyAccessExpression(or,"length")),oe.expression),bt(t.createPostfixIncrement(wn),oe.expression),Ln(oe,t.createElementAccessExpression(or,wn),tn)),oe);return Cr(ti,512),bt(ti,oe),t.restoreEnclosingLabel(ti,ut,P&&ft)}function ra(oe,ut,tn,an){let wn=st(oe.expression,q,St);C.assert(wn);let or=He(wn)?t.getGeneratedNameForNode(wn):t.createTempVariable(void 0),ti=He(wn)?t.getGeneratedNameForNode(or):t.createTempVariable(void 0),Ti=t.createUniqueName("e"),$i=t.getGeneratedNameForNode(Ti),z=t.createTempVariable(void 0),Ve=bt(r().createValuesHelper(wn),oe.expression),kt=t.createCallExpression(t.createPropertyAccessExpression(or,"next"),void 0,[]);l(Ti),l(z);let On=an&1024?t.inlineExpressions([t.createAssignment(Ti,t.createVoidZero()),Ve]):Ve,yo=Cr(bt(t.createForStatement(Cr(bt(t.createVariableDeclarationList([bt(t.createVariableDeclaration(or,void 0,void 0,On),oe.expression),t.createVariableDeclaration(ti,void 0,void 0,kt)]),oe.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(ti,"done")),t.createAssignment(ti,kt),Ln(oe,t.createPropertyAccessExpression(ti,"value"),tn)),oe),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(yo,ut,P&&ft)]),t.createCatchClause(t.createVariableDeclaration($i),Cr(t.createBlock([t.createExpressionStatement(t.createAssignment(Ti,t.createObjectLiteralExpression([t.createPropertyAssignment("error",$i)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([Cr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(ti,t.createLogicalNot(t.createPropertyAccessExpression(ti,"done"))),t.createAssignment(z,t.createPropertyAccessExpression(or,"return"))),t.createExpressionStatement(t.createFunctionCallCall(z,or,[]))),1)]),void 0,Cr(t.createBlock([Cr(t.createIfStatement(Ti,t.createThrowStatement(t.createPropertyAccessExpression(Ti,"error"))),1)]),1))]))}function sa(oe){let ut=oe.properties,tn=-1,an=!1;for(let Ti=0;Ti<ut.length;Ti++){let $i=ut[Ti];if($i.transformFlags&1048576&&A&4||(an=C.checkDefined($i.name).kind===168)){tn=Ti;break}}if(tn<0)return kn(oe,q,e);let wn=t.createTempVariable(l),or=[],ti=t.createAssignment(wn,Cr(t.createObjectLiteralExpression(Xn(ut,q,ny,0,tn),oe.multiLine),an?131072:0));return oe.multiLine&&ou(ti),or.push(ti),ur(or,oe,wn,tn),or.push(oe.multiLine?ou(us(bt(t.cloneNode(wn),wn),wn.parent)):wn),t.inlineExpressions(or)}function zo(oe){return d.hasNodeCheckFlag(oe,8192)}function Bl(oe){return H0(oe)&&!!oe.initializer&&zo(oe.initializer)}function xl(oe){return H0(oe)&&!!oe.condition&&zo(oe.condition)}function Ps(oe){return H0(oe)&&!!oe.incrementor&&zo(oe.incrementor)}function co(oe){return Go(oe)||Bl(oe)}function Go(oe){return d.hasNodeCheckFlag(oe,4096)}function Sc(oe,ut){oe.hoistedLocalVariables||(oe.hoistedLocalVariables=[]),tn(ut.name);function tn(an){if(an.kind===80)oe.hoistedLocalVariables.push(an);else for(let wn of an.elements)Kc(wn)||tn(wn.name)}}function $s(oe,ut,tn,an){if(!co(oe)){let Ve;P&&(Ve=P.allowedNonLabeledJumps,P.allowedNonLabeledJumps=6);let kt=an?an(oe,ut,void 0,tn):t.restoreEnclosingLabel(H0(oe)?wt(oe):kn(oe,q,e),ut,P&&ft);return P&&(P.allowedNonLabeledJumps=Ve),kt}let wn=qa(oe),or=[],ti=P;P=wn;let Ti=Bl(oe)?Hl(oe,wn):void 0,$i=Go(oe)?sc(oe,wn,ti):void 0;P=ti,Ti&&or.push(Ti.functionDeclaration),$i&&or.push($i.functionDeclaration),Zt(or,wn,ti),Ti&&or.push(Ee(Ti.functionName,Ti.containsYield));let z;if($i)if(an)z=an(oe,ut,$i.part,tn);else{let Ve=Ra(oe,Ti,t.createBlock($i.part,!0));z=t.restoreEnclosingLabel(Ve,ut,P&&ft)}else{let Ve=Ra(oe,Ti,C.checkDefined(st(oe.statement,q,ji,t.liftToBlock)));z=t.restoreEnclosingLabel(Ve,ut,P&&ft)}return or.push(z),or}function Ra(oe,ut,tn){switch(oe.kind){case 249:return Zl(oe,ut,tn);case 250:return Lo(oe,tn);case 251:return vf(oe,tn);case 247:return fa(oe,tn);case 248:return is(oe,tn);default:return C.failBadSyntaxKind(oe,"IterationStatement expected")}}function Zl(oe,ut,tn){let an=oe.condition&&zo(oe.condition),wn=an||oe.incrementor&&zo(oe.incrementor);return t.updateForStatement(oe,st(ut?ut.part:oe.initializer,ye,kf),st(an?void 0:oe.condition,q,St),st(wn?void 0:oe.incrementor,ye,St),tn)}function vf(oe,ut){return t.updateForOfStatement(oe,void 0,C.checkDefined(st(oe.initializer,q,kf)),C.checkDefined(st(oe.expression,q,St)),ut)}function Lo(oe,ut){return t.updateForInStatement(oe,C.checkDefined(st(oe.initializer,q,kf)),C.checkDefined(st(oe.expression,q,St)),ut)}function fa(oe,ut){return t.updateDoStatement(oe,ut,C.checkDefined(st(oe.expression,q,St)))}function is(oe,ut){return t.updateWhileStatement(oe,C.checkDefined(st(oe.expression,q,St)),ut)}function qa(oe){let ut;switch(oe.kind){case 249:case 250:case 251:let or=oe.initializer;or&&or.kind===262&&(ut=or);break}let tn=[],an=[];if(ut&&ty(ut)&7){let or=Bl(oe)||xl(oe)||Ps(oe);for(let ti of ut.declarations)fn(oe,ti,tn,an,or)}let wn={loopParameters:tn,loopOutParameters:an};return P&&(P.argumentsName&&(wn.argumentsName=P.argumentsName),P.thisName&&(wn.thisName=P.thisName),P.hoistedLocalVariables&&(wn.hoistedLocalVariables=P.hoistedLocalVariables)),wn}function Zt(oe,ut,tn){let an;if(ut.argumentsName&&(tn?tn.argumentsName=ut.argumentsName:(an||(an=[])).push(t.createVariableDeclaration(ut.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),ut.thisName&&(tn?tn.thisName=ut.thisName:(an||(an=[])).push(t.createVariableDeclaration(ut.thisName,void 0,void 0,t.createIdentifier("this")))),ut.hoistedLocalVariables)if(tn)tn.hoistedLocalVariables=ut.hoistedLocalVariables;else{an||(an=[]);for(let wn of ut.hoistedLocalVariables)an.push(t.createVariableDeclaration(wn))}if(ut.loopOutParameters.length){an||(an=[]);for(let wn of ut.loopOutParameters)an.push(t.createVariableDeclaration(wn.outParamName))}ut.conditionVariable&&(an||(an=[]),an.push(t.createVariableDeclaration(ut.conditionVariable,void 0,void 0,t.createFalse()))),an&&oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(an)))}function As(oe){return t.createVariableDeclaration(oe.originalName,void 0,void 0,oe.outParamName)}function Hl(oe,ut){let tn=t.createUniqueName("_loop_init"),an=(oe.initializer.transformFlags&1048576)!==0,wn=0;ut.containsLexicalThis&&(wn|=16),an&&A&4&&(wn|=524288);let or=[];or.push(t.createVariableStatement(void 0,oe.initializer)),Fs(ut.loopOutParameters,2,1,or);let ti=t.createVariableStatement(void 0,Cr(t.createVariableDeclarationList([t.createVariableDeclaration(tn,void 0,void 0,Cr(t.createFunctionExpression(void 0,an?t.createToken(42):void 0,void 0,void 0,void 0,void 0,C.checkDefined(st(t.createBlock(or,!0),q,ea))),wn))]),4194304)),Ti=t.createVariableDeclarationList(Vt(ut.loopOutParameters,As));return{functionName:tn,containsYield:an,functionDeclaration:ti,part:Ti}}function sc(oe,ut,tn){let an=t.createUniqueName("_loop");i();let wn=st(oe.statement,q,ji,t.liftToBlock),or=s(),ti=[];(xl(oe)||Ps(oe))&&(ut.conditionVariable=t.createUniqueName("inc"),oe.incrementor?ti.push(t.createIfStatement(ut.conditionVariable,t.createExpressionStatement(C.checkDefined(st(oe.incrementor,q,St))),t.createExpressionStatement(t.createAssignment(ut.conditionVariable,t.createTrue())))):ti.push(t.createIfStatement(t.createLogicalNot(ut.conditionVariable),t.createExpressionStatement(t.createAssignment(ut.conditionVariable,t.createTrue())))),xl(oe)&&ti.push(t.createIfStatement(t.createPrefixUnaryExpression(54,C.checkDefined(st(oe.condition,q,St))),C.checkDefined(st(t.createBreakStatement(),q,ji))))),C.assert(wn),ea(wn)?Xr(ti,wn.statements):ti.push(wn),Fs(ut.loopOutParameters,1,1,ti),fg(ti,or);let Ti=t.createBlock(ti,!0);ea(wn)&&jr(Ti,wn);let $i=(oe.statement.transformFlags&1048576)!==0,z=1048576;ut.containsLexicalThis&&(z|=16),$i&&(A&4)!==0&&(z|=524288);let Ve=t.createVariableStatement(void 0,Cr(t.createVariableDeclarationList([t.createVariableDeclaration(an,void 0,void 0,Cr(t.createFunctionExpression(void 0,$i?t.createToken(42):void 0,void 0,void 0,ut.loopParameters,void 0,Ti),z))]),4194304)),kt=$(an,ut,tn,$i);return{functionName:an,containsYield:$i,functionDeclaration:Ve,part:kt}}function vd(oe,ut){let tn=ut===0?oe.outParamName:oe.originalName,an=ut===0?oe.originalName:oe.outParamName;return t.createBinaryExpression(an,64,tn)}function Fs(oe,ut,tn,an){for(let wn of oe)wn.flags&ut&&an.push(t.createExpressionStatement(vd(wn,tn)))}function Ee(oe,ut){let tn=t.createCallExpression(oe,void 0,[]),an=ut?t.createYieldExpression(t.createToken(42),Cr(tn,8388608)):tn;return t.createExpressionStatement(an)}function $(oe,ut,tn,an){let wn=[],or=!(ut.nonLocalJumps&-5)&&!ut.labeledNonLocalBreaks&&!ut.labeledNonLocalContinues,ti=t.createCallExpression(oe,void 0,Vt(ut.loopParameters,$i=>$i.name)),Ti=an?t.createYieldExpression(t.createToken(42),Cr(ti,8388608)):ti;if(or)wn.push(t.createExpressionStatement(Ti)),Fs(ut.loopOutParameters,1,0,wn);else{let $i=t.createUniqueName("state"),z=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration($i,void 0,void 0,Ti)]));if(wn.push(z),Fs(ut.loopOutParameters,1,0,wn),ut.nonLocalJumps&8){let Ve;tn?(tn.nonLocalJumps|=8,Ve=t.createReturnStatement($i)):Ve=t.createReturnStatement(t.createPropertyAccessExpression($i,"value")),wn.push(t.createIfStatement(t.createTypeCheck($i,"object"),Ve))}if(ut.nonLocalJumps&2&&wn.push(t.createIfStatement(t.createStrictEquality($i,t.createStringLiteral("break")),t.createBreakStatement())),ut.labeledNonLocalBreaks||ut.labeledNonLocalContinues){let Ve=[];qt(ut.labeledNonLocalBreaks,!0,$i,tn,Ve),qt(ut.labeledNonLocalContinues,!1,$i,tn,Ve),wn.push(t.createSwitchStatement($i,t.createCaseBlock(Ve)))}}return wn}function pt(oe,ut,tn,an){ut?(oe.labeledNonLocalBreaks||(oe.labeledNonLocalBreaks=new Map),oe.labeledNonLocalBreaks.set(tn,an)):(oe.labeledNonLocalContinues||(oe.labeledNonLocalContinues=new Map),oe.labeledNonLocalContinues.set(tn,an))}function qt(oe,ut,tn,an,wn){oe&&oe.forEach((or,ti)=>{let Ti=[];if(!an||an.labels&&an.labels.get(ti)){let $i=t.createIdentifier(ti);Ti.push(ut?t.createBreakStatement($i):t.createContinueStatement($i))}else pt(an,ut,ti,or),Ti.push(t.createReturnStatement(tn));wn.push(t.createCaseClause(t.createStringLiteral(or),Ti))})}function fn(oe,ut,tn,an,wn){let or=ut.name;if(Qo(or))for(let ti of or.elements)Kc(ti)||fn(oe,ti,tn,an,wn);else{tn.push(t.createParameterDeclaration(void 0,void 0,or));let ti=d.hasNodeCheckFlag(ut,65536);if(ti||wn){let Ti=t.createUniqueName("out_"+Kr(or)),$i=0;ti&&($i|=1),H0(oe)&&(oe.initializer&&d.isBindingCapturedByNode(oe.initializer,ut)&&($i|=2),(oe.condition&&d.isBindingCapturedByNode(oe.condition,ut)||oe.incrementor&&d.isBindingCapturedByNode(oe.incrementor,ut))&&($i|=1)),an.push({flags:$i,originalName:or,outParamName:Ti})}}}function ur(oe,ut,tn,an){let wn=ut.properties,or=wn.length;for(let ti=an;ti<or;ti++){let Ti=wn[ti];switch(Ti.kind){case 178:case 179:let $i=E1(ut.properties,Ti);Ti===$i.firstAccessor&&oe.push(It(tn,$i,ut,!!ut.multiLine));break;case 175:oe.push(Fn(Ti,tn,ut,ut.multiLine));break;case 304:oe.push(si(Ti,tn,ut.multiLine));break;case 305:oe.push(Dr(Ti,tn,ut.multiLine));break;default:C.failBadSyntaxKind(ut);break}}}function si(oe,ut,tn){let an=t.createAssignment(vE(t,ut,C.checkDefined(st(oe.name,q,bc))),C.checkDefined(st(oe.initializer,q,St)));return bt(an,oe),tn&&ou(an),an}function Dr(oe,ut,tn){let an=t.createAssignment(vE(t,ut,C.checkDefined(st(oe.name,q,bc))),t.cloneNode(oe.name));return bt(an,oe),tn&&ou(an),an}function Fn(oe,ut,tn,an){let wn=t.createAssignment(vE(t,ut,C.checkDefined(st(oe.name,q,bc))),Sr(oe,oe,void 0,tn));return bt(wn,oe),an&&ou(wn),wn}function ro(oe){let ut=O(7104,0),tn;if(C.assert(!!oe.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Qo(oe.variableDeclaration.name)){let an=t.createTempVariable(void 0),wn=t.createVariableDeclaration(an);bt(wn,oe.variableDeclaration);let or=G1(oe.variableDeclaration,q,e,0,an),ti=t.createVariableDeclarationList(or);bt(ti,oe.variableDeclaration);let Ti=t.createVariableStatement(void 0,ti);tn=t.updateCatchClause(oe,wn,So(oe.block,Ti))}else tn=kn(oe,q,e);return G(ut,0,0),tn}function So(oe,ut){let tn=Xn(oe.statements,q,ji);return t.updateBlock(oe,[ut,...tn])}function Ns(oe){C.assert(!va(oe.name));let ut=Sr(oe,W0(oe,-1),void 0,void 0);return Cr(ut,1024|Qa(ut)),bt(t.createPropertyAssignment(oe.name,ut),oe)}function Da(oe){C.assert(!va(oe.name));let ut=P;P=void 0;let tn=O(32670,65),an,wn=Fl(oe.parameters,q,e),or=Oe(oe);return oe.kind===178?an=t.updateGetAccessorDeclaration(oe,oe.modifiers,oe.name,wn,oe.type,or):an=t.updateSetAccessorDeclaration(oe,oe.modifiers,oe.name,wn,or),G(tn,229376,0),P=ut,an}function Qs(oe){return bt(t.createPropertyAssignment(oe.name,re(t.cloneNode(oe.name))),oe)}function Ec(oe){return kn(oe,q,e)}function mc(oe){return kn(oe,q,e)}function Hs(oe){return vt(oe.elements,Uf)?rp(oe.elements,!1,!!oe.multiLine,!!oe.elements.hasTrailingComma):kn(oe,q,e)}function Pl(oe){if(Wm(oe)&1)return vh(oe);let ut=Ul(oe.expression);return ut.kind===108||fp(ut)||vt(oe.arguments,Uf)?Pd(oe):t.updateCallExpression(oe,C.checkDefined(st(oe.expression,K,St)),void 0,Xn(oe.arguments,q,St))}function vh(oe){let ut=ma(ma(Ul(oe.expression),Xs).body,ea),tn=Ca=>ac(Ca)&&!!$a(Ca.declarationList.declarations).initializer,an=P;P=void 0;let wn=Xn(ut.statements,ie,ji);P=an;let or=Un(wn,tn),ti=Un(wn,Ca=>!tn(Ca)),$i=ma($a(or),ac).declarationList.declarations[0],z=Ul($i.initializer),Ve=ni(z,id);!Ve&&Nr(z)&&z.operatorToken.kind===28&&(Ve=ni(z.left,id));let kt=ma(Ve?Ul(Ve.right):z,Zo),On=ma(Ul(kt.expression),Us),yo=On.body.statements,ta=0,Eo=-1,Vo=[];if(Ve){let Ca=ni(yo[ta],od);Ca&&(Vo.push(Ca),ta++),Vo.push(yo[ta]),ta++,Vo.push(t.createExpressionStatement(t.createAssignment(Ve.left,ma($i.name,He))))}for(;!ef(Xv(yo,Eo));)Eo--;Xr(Vo,yo,ta,Eo),Eo<-1&&Xr(Vo,yo,Eo+1);let ml=ni(Xv(yo,Eo),ef);for(let Ca of ti)ef(Ca)&&ml?.expression&&!He(ml.expression)?Vo.push(ml):Vo.push(Ca);return Xr(Vo,or,1),t.restoreOuterExpressions(oe.expression,t.restoreOuterExpressions($i.initializer,t.restoreOuterExpressions(Ve&&Ve.right,t.updateCallExpression(kt,t.restoreOuterExpressions(kt.expression,t.updateFunctionExpression(On,void 0,void 0,void 0,void 0,On.parameters,void 0,t.updateBlock(On.body,Vo))),void 0,kt.arguments))))}function Pd(oe,ut){if(oe.transformFlags&32768||oe.expression.kind===108||fp(Ul(oe.expression))){let{target:tn,thisArg:an}=t.createCallBinding(oe.expression,l);oe.expression.kind===108&&Cr(an,8);let wn;if(oe.transformFlags&32768?wn=t.createFunctionApplyCall(C.checkDefined(st(tn,K,St)),oe.expression.kind===108?an:C.checkDefined(st(an,q,St)),rp(oe.arguments,!0,!1,!1)):wn=bt(t.createFunctionCallCall(C.checkDefined(st(tn,K,St)),oe.expression.kind===108?an:C.checkDefined(st(an,q,St)),Xn(oe.arguments,q,St)),oe),oe.expression.kind===108){let or=t.createLogicalOr(wn,qi());wn=t.createAssignment(Y(),or)}return jr(wn,oe)}return JS(oe)&&(A|=131072),kn(oe,q,e)}function tf(oe){if(vt(oe.arguments,Uf)){let{target:ut,thisArg:tn}=t.createCallBinding(t.createPropertyAccessExpression(oe.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(C.checkDefined(st(ut,q,St)),tn,rp(t.createNodeArray([t.createVoidZero(),...oe.arguments]),!0,!1,!1)),void 0,[])}return kn(oe,q,e)}function rp(oe,ut,tn,an){let wn=oe.length,or=la(nL(oe,ze,(z,Ve,kt,On)=>Ve(z,tn,an&&On===wn)));if(or.length===1){let z=or[0];if(ut&&!u.downlevelIteration||LV(z.expression)||kM(z.expression,"___spreadArray"))return z.expression}let ti=r(),Ti=or[0].kind!==0,$i=Ti?t.createArrayLiteralExpression():or[0].expression;for(let z=Ti?0:1;z<or.length;z++){let Ve=or[z];$i=ti.createSpreadArrayHelper($i,Ve.expression,Ve.kind===1&&!ut)}return $i}function ze(oe){return Uf(oe)?Jt:go}function Jt(oe){return Vt(oe,er)}function er(oe){C.assertNode(oe,Uf);let ut=st(oe.expression,q,St);C.assert(ut);let tn=kM(ut,"___read"),an=tn||LV(ut)?2:1;return u.downlevelIteration&&an===1&&!Cd(ut)&&!tn&&(ut=r().createReadHelper(ut,void 0),an=2),JSe(an,ut)}function go(oe,ut,tn){let an=t.createArrayLiteralExpression(Xn(t.createNodeArray(oe,tn),q,St),ut);return JSe(0,an)}function Za(oe){return st(oe.expression,q,St)}function es(oe){return bt(t.createStringLiteral(oe.text),oe)}function Va(oe){return oe.hasExtendedUnicodeEscape?bt(t.createStringLiteral(oe.text),oe):oe}function Pc(oe){return oe.numericLiteralFlags&384?bt(t.createNumericLiteral(oe.text),oe):oe}function tl(oe){return zU(e,oe,q,v,N,1)}function Ll(oe){let ut=t.createStringLiteral(oe.head.text);for(let tn of oe.templateSpans){let an=[C.checkDefined(st(tn.expression,q,St))];tn.literal.text.length>0&&an.push(t.createStringLiteral(tn.literal.text)),ut=t.createCallExpression(t.createPropertyAccessExpression(ut,"concat"),void 0,an)}return bt(ut,oe)}function ql(){return t.createUniqueName("_super",48)}function nf(oe,ut){let tn=A&8&&!ut?t.createPropertyAccessExpression(jr(ql(),oe),"prototype"):ql();return jr(tn,oe),Dc(tn,oe),Ua(tn,oe),tn}function bd(oe){return oe.keywordToken===105&&oe.name.escapedText==="target"?(A|=32768,t.createUniqueName("_newTarget",48)):oe}function ld(oe,ut,tn){if(k&1&&Yo(ut)){let an=O(32670,Qa(ut)&16?81:65);_(oe,ut,tn),G(an,0,0);return}_(oe,ut,tn)}function Gp(){(k&2)===0&&(k|=2,e.enableSubstitution(80))}function Eu(){(k&1)===0&&(k|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263))}function Jf(oe,ut){return ut=g(oe,ut),oe===1?Cg(ut):He(ut)?B_(ut):ut}function B_(oe){if(k&2&&!Ij(oe)){let ut=jo(oe,He);if(ut&&Dg(ut))return bt(t.getGeneratedNameForNode(ut),oe)}return oe}function Dg(oe){switch(oe.parent.kind){case 209:case 264:case 267:case 261:return oe.parent.name===oe&&d.isDeclarationWithCollidingName(oe.parent)}return!1}function Cg(oe){switch(oe.kind){case 80:return ip(oe);case 110:return bh(oe)}return oe}function ip(oe){if(k&2&&!Ij(oe)){let ut=d.getReferencedDeclarationWithCollidingName(oe);if(ut&&!(ui(ut)&&Yc(ut,oe)))return bt(t.getGeneratedNameForNode(Oo(ut)),oe)}return oe}function Yc(oe,ut){let tn=jo(ut);if(!tn||tn===oe||tn.end<=oe.pos||tn.pos>=oe.end)return!1;let an=sh(oe);for(;tn;){if(tn===an||tn===oe)return!1;if(Tc(tn)&&tn.parent===oe)return!0;tn=tn.parent}return!1}function bh(oe){return k&1&&A&16?bt(Y(),oe):oe}function bf(oe,ut){return ua(ut)?t.getInternalName(oe):t.createPropertyAccessExpression(t.getInternalName(oe),"prototype")}function u_(oe,ut){if(!oe||!ut||vt(oe.parameters))return!1;let tn=Ic(oe.body.statements);if(!tn||!Os(tn)||tn.kind!==245)return!1;let an=tn.expression;if(!Os(an)||an.kind!==214)return!1;let wn=an.expression;if(!Os(wn)||wn.kind!==108)return!1;let or=ig(an.arguments);if(!or||!Os(or)||or.kind!==231)return!1;let ti=or.expression;return He(ti)&&ti.escapedText==="arguments"}}function QUe(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 Gae(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=Ga(u),g=e.getEmitResolver(),_=e.onSubstituteNode;e.onSubstituteNode=_e;let v,E,A,R,N,P,k,F,O,G,j=1,J,Z,q,ye,ie=0,K=0,pe,de,fe,ve,xe,Y,Ce,Xe;return hh(e,Se);function Se(ze){if(ze.isDeclarationFile||(ze.transformFlags&2048)===0)return ze;let Jt=kn(ze,re,e);return Eg(Jt,e.readEmitHelpers()),Jt}function re(ze){let Jt=ze.transformFlags;return R?be(ze):A?Ne(ze):Ms(ze)&&ze.asteriskToken?lt(ze):Jt&2048?kn(ze,re,e):ze}function be(ze){switch(ze.kind){case 247:return $o(ze);case 248:return Mn(ze);case 256:return It(ze);case 257:return nt(ze);default:return Ne(ze)}}function Ne(ze){switch(ze.kind){case 263:return ce(ze);case 219:return De(ze);case 178:case 179:return ge(ze);case 244:return Ge(ze);case 249:return ot(ze);case 250:return le(ze);case 253:return it(ze);case 252:return ne(ze);case 254:return Lt(ze);default:return ze.transformFlags&1048576?Be(ze):ze.transformFlags&4196352?kn(ze,re,e):ze}}function Be(ze){switch(ze.kind){case 227:return We(ze);case 357:return gn(ze);case 228:return _t(ze);case 230:return en(ze);case 210:return ir(ze);case 211:return lo(ze);case 213:return zt(ze);case 214:return Zr(ze);case 215:return Ai(ze);default:return kn(ze,re,e)}}function lt(ze){switch(ze.kind){case 263:return ce(ze);case 219:return De(ze);default:return C.failBadSyntaxKind(ze)}}function ce(ze){if(ze.asteriskToken)ze=jr(bt(t.createFunctionDeclaration(ze.modifiers,void 0,ze.name,void 0,Fl(ze.parameters,re,e),void 0,je(ze.body)),ze),ze);else{let Jt=A,er=R;A=!1,R=!1,ze=kn(ze,re,e),A=Jt,R=er}if(A){s(ze);return}else return ze}function De(ze){if(ze.asteriskToken)ze=jr(bt(t.createFunctionExpression(void 0,void 0,ze.name,void 0,Fl(ze.parameters,re,e),void 0,je(ze.body)),ze),ze);else{let Jt=A,er=R;A=!1,R=!1,ze=kn(ze,re,e),A=Jt,R=er}return ze}function ge(ze){let Jt=A,er=R;return A=!1,R=!1,ze=kn(ze,re,e),A=Jt,R=er,ze}function je(ze){let Jt=[],er=A,go=R,Za=N,es=P,Va=k,Pc=F,tl=O,Ll=G,ql=j,nf=J,bd=Z,ld=q,Gp=ye;A=!0,R=!1,N=void 0,P=void 0,k=void 0,F=void 0,O=void 0,G=void 0,j=1,J=void 0,Z=void 0,q=void 0,ye=t.createTempVariable(void 0),i();let Eu=t.copyPrologue(ze.statements,Jt,!1,re);Ni(ze.statements,Eu);let Jf=pt();return fg(Jt,o()),Jt.push(t.createReturnStatement(Jf)),A=er,R=go,N=Za,P=es,k=Va,F=Pc,O=tl,G=Ll,j=ql,J=nf,Z=bd,q=ld,ye=Gp,bt(t.createBlock(Jt,ze.multiLine),ze)}function Ge(ze){if(ze.transformFlags&1048576){dr(ze.declarationList);return}else{if(Qa(ze)&2097152)return ze;for(let er of ze.declarationList.declarations)l(er.name);let Jt=fM(ze.declarationList);return Jt.length===0?void 0:Ua(t.createExpressionStatement(t.inlineExpressions(Vt(Jt,ri))),ze)}}function We(ze){let Jt=WG(ze);switch(Jt){case 0:return Wt(ze);case 1:return at(ze);default:return C.assertNever(Jt)}}function at(ze){let{left:Jt,right:er}=ze;if(Oe(er)){let go;switch(Jt.kind){case 212:go=t.updatePropertyAccessExpression(Jt,te(C.checkDefined(st(Jt.expression,re,Xu))),Jt.name);break;case 213:go=t.updateElementAccessExpression(Jt,te(C.checkDefined(st(Jt.expression,re,Xu))),te(C.checkDefined(st(Jt.argumentExpression,re,St))));break;default:go=C.checkDefined(st(Jt,re,St));break}let Za=ze.operatorToken.kind;return aP(Za)?bt(t.createAssignment(go,bt(t.createBinaryExpression(te(go),sP(Za),C.checkDefined(st(er,re,St))),ze)),ze):t.updateBinaryExpression(ze,go,ze.operatorToken,C.checkDefined(st(er,re,St)))}return kn(ze,re,e)}function Wt(ze){return Oe(ze.right)?One(ze.operatorToken.kind)?Kn(ze):ze.operatorToken.kind===28?cn(ze):t.updateBinaryExpression(ze,te(C.checkDefined(st(ze.left,re,St))),ze.operatorToken,C.checkDefined(st(ze.right,re,St))):kn(ze,re,e)}function cn(ze){let Jt=[];return er(ze.left),er(ze.right),t.inlineExpressions(Jt);function er(go){Nr(go)&&go.operatorToken.kind===28?(er(go.left),er(go.right)):(Oe(go)&&Jt.length>0&&($(1,[t.createExpressionStatement(t.inlineExpressions(Jt))]),Jt=[]),Jt.push(C.checkDefined(st(go,re,St))))}}function gn(ze){let Jt=[];for(let er of ze.elements)Nr(er)&&er.operatorToken.kind===28?Jt.push(cn(er)):(Oe(er)&&Jt.length>0&&($(1,[t.createExpressionStatement(t.inlineExpressions(Jt))]),Jt=[]),Jt.push(C.checkDefined(st(er,re,St))));return t.inlineExpressions(Jt)}function Kn(ze){let Jt=Xt(),er=xt();return is(er,C.checkDefined(st(ze.left,re,St)),ze.left),ze.operatorToken.kind===56?As(Jt,er,ze.left):Zt(Jt,er,ze.left),is(er,C.checkDefined(st(ze.right,re,St)),ze.right),Le(Jt),er}function _t(ze){if(Oe(ze.whenTrue)||Oe(ze.whenFalse)){let Jt=Xt(),er=Xt(),go=xt();return As(Jt,C.checkDefined(st(ze.condition,re,St)),ze.condition),is(go,C.checkDefined(st(ze.whenTrue,re,St)),ze.whenTrue),qa(er),Le(Jt),is(go,C.checkDefined(st(ze.whenFalse,re,St)),ze.whenFalse),Le(er),go}return kn(ze,re,e)}function en(ze){let Jt=Xt(),er=st(ze.expression,re,St);if(ze.asteriskToken){let go=(Qa(ze.expression)&8388608)===0?bt(r().createValuesHelper(er),ze):er;Hl(go,ze)}else sc(er,ze);return Le(Jt),vf(ze)}function ir(ze){return Di(ze.elements,void 0,void 0,ze.multiLine)}function Di(ze,Jt,er,go){let Za=Nt(ze),es;if(Za>0){es=xt();let tl=Xn(ze,re,St,0,Za);is(es,t.createArrayLiteralExpression(Jt?[Jt,...tl]:tl)),Jt=void 0}let Va=_u(ze,Pc,[],Za);return es?t.createArrayConcatCall(es,[t.createArrayLiteralExpression(Va,go)]):bt(t.createArrayLiteralExpression(Jt?[Jt,...Va]:Va,go),er);function Pc(tl,Ll){if(Oe(Ll)&&tl.length>0){let ql=es!==void 0;es||(es=xt()),is(es,ql?t.createArrayConcatCall(es,[t.createArrayLiteralExpression(tl,go)]):t.createArrayLiteralExpression(Jt?[Jt,...tl]:tl,go)),Jt=void 0,tl=[]}return tl.push(C.checkDefined(st(Ll,re,St))),tl}}function lo(ze){let Jt=ze.properties,er=ze.multiLine,go=Nt(Jt),Za=xt();is(Za,t.createObjectLiteralExpression(Xn(Jt,re,ny,0,go),er));let es=_u(Jt,Va,[],go);return es.push(er?ou(us(bt(t.cloneNode(Za),Za),Za.parent)):Za),t.inlineExpressions(es);function Va(Pc,tl){Oe(tl)&&Pc.length>0&&(fa(t.createExpressionStatement(t.inlineExpressions(Pc))),Pc=[]);let Ll=zie(t,ze,tl,Za),ql=st(Ll,re,St);return ql&&(er&&ou(ql),Pc.push(ql)),Pc}}function zt(ze){return Oe(ze.argumentExpression)?t.updateElementAccessExpression(ze,te(C.checkDefined(st(ze.expression,re,Xu))),C.checkDefined(st(ze.argumentExpression,re,St))):kn(ze,re,e)}function Zr(ze){if(!Yu(ze)&&Je(ze.arguments,Oe)){let{target:Jt,thisArg:er}=t.createCallBinding(ze.expression,l,d,!0);return jr(bt(t.createFunctionApplyCall(te(C.checkDefined(st(Jt,re,Xu))),er,Di(ze.arguments)),ze),ze)}return kn(ze,re,e)}function Ai(ze){if(Je(ze.arguments,Oe)){let{target:Jt,thisArg:er}=t.createCallBinding(t.createPropertyAccessExpression(ze.expression,"bind"),l);return jr(bt(t.createNewExpression(t.createFunctionApplyCall(te(C.checkDefined(st(Jt,re,St))),er,Di(ze.arguments,t.createVoidZero())),void 0,[]),ze),ze)}return kn(ze,re,e)}function Ni(ze,Jt=0){let er=ze.length;for(let go=Jt;go<er;go++)Ci(ze[go])}function Pr(ze){ea(ze)?Ni(ze.statements):Ci(ze)}function Ci(ze){let Jt=R;R||(R=Oe(ze)),$e(ze),R=Jt}function $e(ze){switch(ze.kind){case 242:return At(ze);case 245:return mn(ze);case 246:return ai(ze);case 247:return qi(ze);case 248:return Ia(ze);case 249:return Uo(ze);case 250:return Ft(ze);case 252:return ht(ze);case 253:return Fe(ze);case 254:return dt(ze);case 255:return Ue(ze);case 256:return Rt(ze);case 257:return Ot(ze);case 258:return Kt(ze);case 259:return Sr(ze);default:return fa(st(ze,re,ji))}}function At(ze){Oe(ze)?Ni(ze.statements):fa(st(ze,re,ji))}function mn(ze){fa(st(ze,re,ji))}function dr(ze){for(let es of ze.declarations){let Va=t.cloneNode(es.name);Dc(Va,es.name),l(Va)}let Jt=fM(ze),er=Jt.length,go=0,Za=[];for(;go<er;){for(let es=go;es<er;es++){let Va=Jt[es];if(Oe(Va.initializer)&&Za.length>0)break;Za.push(ri(Va))}Za.length&&(fa(t.createExpressionStatement(t.inlineExpressions(Za))),go+=Za.length,Za=[])}}function ri(ze){return Ua(t.createAssignment(Ua(t.cloneNode(ze.name),ze.name),C.checkDefined(st(ze.initializer,re,St))),ze)}function ai(ze){if(Oe(ze))if(Oe(ze.thenStatement)||Oe(ze.elseStatement)){let Jt=Xt(),er=ze.elseStatement?Xt():void 0;As(ze.elseStatement?er:Jt,C.checkDefined(st(ze.expression,re,St)),ze.expression),Pr(ze.thenStatement),ze.elseStatement&&(qa(Jt),Le(er),Pr(ze.elseStatement)),Le(Jt)}else fa(st(ze,re,ji));else fa(st(ze,re,ji))}function qi(ze){if(Oe(ze)){let Jt=Xt(),er=Xt();wt(Jt),Le(er),Pr(ze.statement),Le(Jt),Zt(er,C.checkDefined(st(ze.expression,re,St))),En()}else fa(st(ze,re,ji))}function $o(ze){return R?(yn(),ze=kn(ze,re,e),En(),ze):kn(ze,re,e)}function Ia(ze){if(Oe(ze)){let Jt=Xt(),er=wt(Jt);Le(Jt),As(er,C.checkDefined(st(ze.expression,re,St))),Pr(ze.statement),qa(Jt),En()}else fa(st(ze,re,ji))}function Mn(ze){return R?(yn(),ze=kn(ze,re,e),En(),ze):kn(ze,re,e)}function Uo(ze){if(Oe(ze)){let Jt=Xt(),er=Xt(),go=wt(er);if(ze.initializer){let Za=ze.initializer;_d(Za)?dr(Za):fa(bt(t.createExpressionStatement(C.checkDefined(st(Za,re,St))),Za))}Le(Jt),ze.condition&&As(go,C.checkDefined(st(ze.condition,re,St))),Pr(ze.statement),Le(er),ze.incrementor&&fa(bt(t.createExpressionStatement(C.checkDefined(st(ze.incrementor,re,St))),ze.incrementor)),qa(Jt),En()}else fa(st(ze,re,ji))}function ot(ze){R&&yn();let Jt=ze.initializer;if(Jt&&_d(Jt)){for(let go of Jt.declarations)l(go.name);let er=fM(Jt);ze=t.updateForStatement(ze,er.length>0?t.inlineExpressions(Vt(er,ri)):void 0,st(ze.condition,re,St),st(ze.incrementor,re,St),Ou(ze.statement,re,e))}else ze=kn(ze,re,e);return R&&En(),ze}function Ft(ze){if(Oe(ze)){let Jt=xt(),er=xt(),go=xt(),Za=t.createLoopVariable(),es=ze.initializer;l(Za),is(Jt,C.checkDefined(st(ze.expression,re,St))),is(er,t.createArrayLiteralExpression()),fa(t.createForInStatement(go,Jt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(er,"push"),void 0,[go])))),is(Za,t.createNumericLiteral(0));let Va=Xt(),Pc=Xt(),tl=wt(Pc);Le(Va),As(tl,t.createLessThan(Za,t.createPropertyAccessExpression(er,"length"))),is(go,t.createElementAccessExpression(er,Za)),As(Pc,t.createBinaryExpression(go,103,Jt));let Ll;if(_d(es)){for(let ql of es.declarations)l(ql.name);Ll=t.cloneNode(es.declarations[0].name)}else Ll=C.checkDefined(st(es,re,St)),C.assert(Xu(Ll));is(Ll,go),Pr(ze.statement),Le(Pc),fa(t.createExpressionStatement(t.createPostfixIncrement(Za))),qa(Va),En()}else fa(st(ze,re,ji))}function le(ze){R&&yn();let Jt=ze.initializer;if(_d(Jt)){for(let er of Jt.declarations)l(er.name);ze=t.updateForInStatement(ze,Jt.declarations[0].name,C.checkDefined(st(ze.expression,re,St)),C.checkDefined(st(ze.statement,re,ji,t.liftToBlock)))}else ze=kn(ze,re,e);return R&&En(),ze}function ht(ze){let Jt=Go(ze.label?Kr(ze.label):void 0);Jt>0?qa(Jt,ze):fa(ze)}function ne(ze){if(R){let Jt=Go(ze.label&&Kr(ze.label));if(Jt>0)return Ra(Jt,ze)}return kn(ze,re,e)}function Fe(ze){let Jt=co(ze.label?Kr(ze.label):void 0);Jt>0?qa(Jt,ze):fa(ze)}function it(ze){if(R){let Jt=co(ze.label&&Kr(ze.label));if(Jt>0)return Ra(Jt,ze)}return kn(ze,re,e)}function dt(ze){vd(st(ze.expression,re,St),ze)}function Lt(ze){return Zl(st(ze.expression,re,St),ze)}function Ue(ze){Oe(ze)?(Jn(te(C.checkDefined(st(ze.expression,re,St)))),Pr(ze.statement),ft()):fa(st(ze,re,ji))}function Rt(ze){if(Oe(ze.caseBlock)){let Jt=ze.caseBlock,er=Jt.clauses.length,go=Ln(),Za=te(C.checkDefined(st(ze.expression,re,St))),es=[],Va=-1;for(let Ll=0;Ll<er;Ll++){let ql=Jt.clauses[Ll];es.push(Xt()),ql.kind===298&&Va===-1&&(Va=Ll)}let Pc=0,tl=[];for(;Pc<er;){let Ll=0;for(let ql=Pc;ql<er;ql++){let nf=Jt.clauses[ql];if(nf.kind===297){if(Oe(nf.expression)&&tl.length>0)break;tl.push(t.createCaseClause(C.checkDefined(st(nf.expression,re,St)),[Ra(es[ql],nf.expression)]))}else Ll++}tl.length&&(fa(t.createSwitchStatement(Za,t.createCaseBlock(tl))),Pc+=tl.length,tl=[]),Ll>0&&(Pc+=Ll,Ll=0)}Va>=0?qa(es[Va]):qa(go);for(let Ll=0;Ll<er;Ll++)Le(es[Ll]),Ni(Jt.clauses[Ll].statements);ln()}else fa(st(ze,re,ji))}function It(ze){return R&&xn(),ze=kn(ze,re,e),R&&ln(),ze}function Ot(ze){Oe(ze)?(ra(Kr(ze.label)),Pr(ze.statement),sa()):fa(st(ze,re,ji))}function nt(ze){return R&&Ii(Kr(ze.label)),ze=kn(ze,re,e),R&&sa(),ze}function Kt(ze){Fs(C.checkDefined(st(ze.expression??t.createVoidZero(),re,St)),ze)}function Sr(ze){Oe(ze)?(Mt(),Pr(ze.tryBlock),ze.catchClause&&(jt(ze.catchClause.variableDeclaration),Pr(ze.catchClause.block)),ze.finallyBlock&&(Qt(),Pr(ze.finallyBlock)),In()):fa(kn(ze,re,e))}function Oe(ze){return!!ze&&(ze.transformFlags&1048576)!==0}function Nt(ze){let Jt=ze.length;for(let er=0;er<Jt;er++)if(Oe(ze[er]))return er;return-1}function _e(ze,Jt){return Jt=_(ze,Jt),ze===1?B(Jt):Jt}function B(ze){return He(ze)?Ae(ze):ze}function Ae(ze){if(!pl(ze)&&v&&v.has(Kr(ze))){let Jt=yl(ze);if(He(Jt)&&Jt.parent){let er=g.getReferencedValueDeclaration(Jt);if(er){let go=E[Wu(er)];if(go){let Za=us(bt(t.cloneNode(go),go),go.parent);return Ua(Za,ze),Dc(Za,ze),Za}}}}return ze}function te(ze){if(pl(ze)||Qa(ze)&8192)return ze;let Jt=t.createTempVariable(l);return is(Jt,ze,ze),Jt}function xt(ze){let Jt=ze?t.createUniqueName(ze):t.createTempVariable(void 0);return l(Jt),Jt}function Xt(){O||(O=[]);let ze=j;return j++,O[ze]=-1,ze}function Le(ze){C.assert(O!==void 0,"No labels were defined."),O[ze]=J?J.length:0}function gt(ze){N||(N=[],k=[],P=[],F=[]);let Jt=k.length;return k[Jt]=0,P[Jt]=J?J.length:0,N[Jt]=ze,F.push(ze),Jt}function Bt(){let ze=gr();if(ze===void 0)return C.fail("beginBlock was never called.");let Jt=k.length;return k[Jt]=1,P[Jt]=J?J.length:0,N[Jt]=ze,F.pop(),ze}function gr(){return Zs(F)}function tr(){let ze=gr();return ze&&ze.kind}function Jn(ze){let Jt=Xt(),er=Xt();Le(Jt),gt({kind:1,expression:ze,startLabel:Jt,endLabel:er})}function ft(){C.assert(tr()===1);let ze=Bt();Le(ze.endLabel)}function Mt(){let ze=Xt(),Jt=Xt();return Le(ze),gt({kind:0,state:0,startLabel:ze,endLabel:Jt}),Lo(),Jt}function jt(ze){C.assert(tr()===0);let Jt;if(pl(ze.name))Jt=ze.name,l(ze.name);else{let es=Kr(ze.name);Jt=xt(es),v||(v=new Map,E=[],e.enableSubstitution(80)),v.set(es,!0),E[Wu(ze)]=Jt}let er=gr();C.assert(er.state<1);let go=er.endLabel;qa(go);let Za=Xt();Le(Za),er.state=1,er.catchVariable=Jt,er.catchLabel=Za,is(Jt,t.createCallExpression(t.createPropertyAccessExpression(ye,"sent"),void 0,[])),Lo()}function Qt(){C.assert(tr()===0);let ze=gr();C.assert(ze.state<2);let Jt=ze.endLabel;qa(Jt);let er=Xt();Le(er),ze.state=2,ze.finallyLabel=er}function In(){C.assert(tr()===0);let ze=Bt();ze.state<2?qa(ze.endLabel):Ee(),Le(ze.endLabel),Lo(),ze.state=3}function yn(){gt({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function wt(ze){let Jt=Xt();return gt({kind:3,isScript:!1,breakLabel:Jt,continueLabel:ze}),Jt}function En(){C.assert(tr()===3);let ze=Bt(),Jt=ze.breakLabel;ze.isScript||Le(Jt)}function xn(){gt({kind:2,isScript:!0,breakLabel:-1})}function Ln(){let ze=Xt();return gt({kind:2,isScript:!1,breakLabel:ze}),ze}function ln(){C.assert(tr()===2);let ze=Bt(),Jt=ze.breakLabel;ze.isScript||Le(Jt)}function Ii(ze){gt({kind:4,isScript:!0,labelText:ze,breakLabel:-1})}function ra(ze){let Jt=Xt();gt({kind:4,isScript:!1,labelText:ze,breakLabel:Jt})}function sa(){C.assert(tr()===4);let ze=Bt();ze.isScript||Le(ze.breakLabel)}function zo(ze){return ze.kind===2||ze.kind===3}function Bl(ze){return ze.kind===4}function xl(ze){return ze.kind===3}function Ps(ze,Jt){for(let er=Jt;er>=0;er--){let go=F[er];if(Bl(go)){if(go.labelText===ze)return!0}else break}return!1}function co(ze){if(F)if(ze)for(let Jt=F.length-1;Jt>=0;Jt--){let er=F[Jt];if(Bl(er)&&er.labelText===ze)return er.breakLabel;if(zo(er)&&Ps(ze,Jt-1))return er.breakLabel}else for(let Jt=F.length-1;Jt>=0;Jt--){let er=F[Jt];if(zo(er))return er.breakLabel}return 0}function Go(ze){if(F)if(ze)for(let Jt=F.length-1;Jt>=0;Jt--){let er=F[Jt];if(xl(er)&&Ps(ze,Jt-1))return er.continueLabel}else for(let Jt=F.length-1;Jt>=0;Jt--){let er=F[Jt];if(xl(er))return er.continueLabel}return 0}function Sc(ze){if(ze!==void 0&&ze>0){G===void 0&&(G=[]);let Jt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return G[ze]===void 0?G[ze]=[Jt]:G[ze].push(Jt),Jt}return t.createOmittedExpression()}function $s(ze){let Jt=t.createNumericLiteral(ze);return LM(Jt,3,QUe(ze)),Jt}function Ra(ze,Jt){return C.assertLessThan(0,ze,"Invalid label"),bt(t.createReturnStatement(t.createArrayLiteralExpression([$s(3),Sc(ze)])),Jt)}function Zl(ze,Jt){return bt(t.createReturnStatement(t.createArrayLiteralExpression(ze?[$s(2),ze]:[$s(2)])),Jt)}function vf(ze){return bt(t.createCallExpression(t.createPropertyAccessExpression(ye,"sent"),void 0,[]),ze)}function Lo(){$(0)}function fa(ze){ze?$(1,[ze]):Lo()}function is(ze,Jt,er){$(2,[ze,Jt],er)}function qa(ze,Jt){$(3,[ze],Jt)}function Zt(ze,Jt,er){$(4,[ze,Jt],er)}function As(ze,Jt,er){$(5,[ze,Jt],er)}function Hl(ze,Jt){$(7,[ze],Jt)}function sc(ze,Jt){$(6,[ze],Jt)}function vd(ze,Jt){$(8,[ze],Jt)}function Fs(ze,Jt){$(9,[ze],Jt)}function Ee(){$(10)}function $(ze,Jt,er){J===void 0&&(J=[],Z=[],q=[]),O===void 0&&Le(Xt());let go=J.length;J[go]=ze,Z[go]=Jt,q[go]=er}function pt(){ie=0,K=0,pe=void 0,de=!1,fe=!1,ve=void 0,xe=void 0,Y=void 0,Ce=void 0,Xe=void 0;let ze=qt();return r().createGeneratorHelper(Cr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ye)],void 0,t.createBlock(ze,ze.length>0)),1048576))}function qt(){if(J){for(let ze=0;ze<J.length;ze++)Ns(ze);ur(J.length)}else ur(0);if(ve){let ze=t.createPropertyAccessExpression(ye,"label"),Jt=t.createSwitchStatement(ze,t.createCaseBlock(ve));return[ou(Jt)]}return xe||[]}function fn(){xe&&(Dr(!de),de=!1,fe=!1,K++)}function ur(ze){si(ze)&&(Fn(ze),Xe=void 0,mc(void 0,void 0)),xe&&ve&&Dr(!1),ro()}function si(ze){if(!fe)return!0;if(!O||!G)return!1;for(let Jt=0;Jt<O.length;Jt++)if(O[Jt]===ze&&G[Jt])return!0;return!1}function Dr(ze){if(ve||(ve=[]),xe){if(Xe)for(let Jt=Xe.length-1;Jt>=0;Jt--){let er=Xe[Jt];xe=[t.createWithStatement(er.expression,t.createBlock(xe))]}if(Ce){let{startLabel:Jt,catchLabel:er,finallyLabel:go,endLabel:Za}=Ce;xe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ye,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Sc(Jt),Sc(er),Sc(go),Sc(Za)])]))),Ce=void 0}ze&&xe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ye,"label"),t.createNumericLiteral(K+1))))}ve.push(t.createCaseClause(t.createNumericLiteral(K),xe||[])),xe=void 0}function Fn(ze){if(O)for(let Jt=0;Jt<O.length;Jt++)O[Jt]===ze&&(fn(),pe===void 0&&(pe=[]),pe[K]===void 0?pe[K]=[Jt]:pe[K].push(Jt))}function ro(){if(G!==void 0&&pe!==void 0)for(let ze=0;ze<pe.length;ze++){let Jt=pe[ze];if(Jt!==void 0)for(let er of Jt){let go=G[er];if(go!==void 0)for(let Za of go)Za.text=String(ze)}}}function So(ze){if(N)for(;ie<k.length&&P[ie]<=ze;ie++){let Jt=N[ie],er=k[ie];switch(Jt.kind){case 0:er===0?(Y||(Y=[]),xe||(xe=[]),Y.push(Ce),Ce=Jt):er===1&&(Ce=Y.pop());break;case 1:er===0?(Xe||(Xe=[]),Xe.push(Jt)):er===1&&Xe.pop();break}}}function Ns(ze){if(Fn(ze),So(ze),de)return;de=!1,fe=!1;let Jt=J[ze];if(Jt===0)return;if(Jt===10)return rp();let er=Z[ze];if(Jt===1)return Da(er[0]);let go=q[ze];switch(Jt){case 2:return Qs(er[0],er[1],go);case 3:return Hs(er[0],go);case 4:return Pl(er[0],er[1],go);case 5:return vh(er[0],er[1],go);case 6:return Pd(er[0],go);case 7:return tf(er[0],go);case 8:return mc(er[0],go);case 9:return Ec(er[0],go)}}function Da(ze){ze&&(xe?xe.push(ze):xe=[ze])}function Qs(ze,Jt,er){Da(bt(t.createExpressionStatement(t.createAssignment(ze,Jt)),er))}function Ec(ze,Jt){de=!0,fe=!0,Da(bt(t.createThrowStatement(ze),Jt))}function mc(ze,Jt){de=!0,fe=!0,Da(Cr(bt(t.createReturnStatement(t.createArrayLiteralExpression(ze?[$s(2),ze]:[$s(2)])),Jt),768))}function Hs(ze,Jt){de=!0,Da(Cr(bt(t.createReturnStatement(t.createArrayLiteralExpression([$s(3),Sc(ze)])),Jt),768))}function Pl(ze,Jt,er){Da(Cr(t.createIfStatement(Jt,Cr(bt(t.createReturnStatement(t.createArrayLiteralExpression([$s(3),Sc(ze)])),er),768)),1))}function vh(ze,Jt,er){Da(Cr(t.createIfStatement(t.createLogicalNot(Jt),Cr(bt(t.createReturnStatement(t.createArrayLiteralExpression([$s(3),Sc(ze)])),er),768)),1))}function Pd(ze,Jt){de=!0,Da(Cr(bt(t.createReturnStatement(t.createArrayLiteralExpression(ze?[$s(4),ze]:[$s(4)])),Jt),768))}function tf(ze,Jt){de=!0,Da(Cr(bt(t.createReturnStatement(t.createArrayLiteralExpression([$s(5),ze])),Jt),768))}function rp(){de=!0,Da(t.createReturnStatement(t.createArrayLiteralExpression([$s(7)])))}}function GU(e){function t(_e){switch(_e){case 2:return Z;case 3:return q;default:return J}}let{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=e.getEmitResolver(),g=e.getEmitHost(),_=Ga(u),v=vu(u),E=e.onSubstituteNode,A=e.onEmitNode;e.onSubstituteNode=Rt,e.onEmitNode=Ue,e.enableSubstitution(214),e.enableSubstitution(216),e.enableSubstitution(80),e.enableSubstitution(227),e.enableSubstitution(305),e.enableEmitNotification(308);let R=[],N,P,k,F=[],O;return hh(e,G);function G(_e){if(_e.isDeclarationFile||!(OR(_e,u)||_e.transformFlags&8388608||Of(_e)&&IW(u)&&u.outFile))return _e;N=_e,P=LU(e,_e),R[Wu(_e)]=P,u.rewriteRelativeImportExtensions&&XW(_e,!1,!1,te=>{(!cs(te.arguments[0])||dk(te.arguments[0].text,u))&&(k=Bn(k,te))});let Ae=t(v)(_e);return N=void 0,P=void 0,O=!1,Ae}function j(){return bg(N.fileName)&&N.commonJsModuleIndicator&&(!N.externalModuleIndicator||N.externalModuleIndicator===!0)?!1:!!(!P.exportEquals&&Gc(N))}function J(_e){o();let B=[],Ae=Vd(u,"alwaysStrict")||Gc(N),te=r.copyPrologue(_e.statements,B,Ae&&!Of(_e),de);if(j()&&Bn(B,Fe()),vt(P.exportedNames))for(let Le=0;Le<P.exportedNames.length;Le+=50)Bn(B,r.createExpressionStatement(_u(P.exportedNames.slice(Le,Le+50),(gt,Bt)=>Bt.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Bt.text)),gt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Kr(Bt))),gt),r.createVoidZero())));for(let Xt of P.exportedFunctions)le(B,Xt);Bn(B,st(P.externalHelpersImportDeclaration,de,ji)),Xr(B,Xn(_e.statements,de,ji,te)),pe(B,!1),fg(B,s());let xt=r.updateSourceFile(_e,bt(r.createNodeArray(B),_e.statements));return Eg(xt,e.readEmitHelpers()),xt}function Z(_e){let B=r.createIdentifier("define"),Ae=fw(r,_e,g,u),te=Of(_e)&&_e,{aliasedModuleNames:xt,unaliasedModuleNames:Xt,importAliasNames:Le}=ye(_e,!0),gt=r.updateSourceFile(_e,bt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(B,void 0,[...Ae?[Ae]:[],r.createArrayLiteralExpression(te?ae:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...xt,...Xt]),te?te.statements.length?te.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"),...Le],void 0,K(_e))]))]),_e.statements));return Eg(gt,e.readEmitHelpers()),gt}function q(_e){let{aliasedModuleNames:B,unaliasedModuleNames:Ae,importAliasNames:te}=ye(_e,!1),xt=fw(r,_e,g,u),Xt=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,bt(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")]))]),Cr(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,[...xt?[xt]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...B,...Ae]),r.createIdentifier("factory")]))])))],!0),void 0)),Le=r.updateSourceFile(_e,bt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Xt,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"),...te],void 0,K(_e))]))]),_e.statements));return Eg(Le,e.readEmitHelpers()),Le}function ye(_e,B){let Ae=[],te=[],xt=[];for(let Xt of _e.amdDependencies)Xt.name?(Ae.push(r.createStringLiteral(Xt.path)),xt.push(r.createParameterDeclaration(void 0,void 0,Xt.name))):te.push(r.createStringLiteral(Xt.path));for(let Xt of P.externalImports){let Le=jI(r,Xt,N,g,d,u),gt=ED(r,Xt,N);Le&&(B&&gt?(Cr(gt,8),Ae.push(Le),xt.push(r.createParameterDeclaration(void 0,void 0,gt))):te.push(Le))}return{aliasedModuleNames:Ae,unaliasedModuleNames:te,importAliasNames:xt}}function ie(_e){if(Bc(_e)||fc(_e)||!jI(r,_e,N,g,d,u))return;let B=ED(r,_e,N),Ae=Ni(_e,B);if(Ae!==B)return r.createExpressionStatement(r.createAssignment(B,Ae))}function K(_e){o();let B=[],Ae=r.copyPrologue(_e.statements,B,!0,de);j()&&Bn(B,Fe()),vt(P.exportedNames)&&Bn(B,r.createExpressionStatement(_u(P.exportedNames,(xt,Xt)=>Xt.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Xt.text)),xt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Kr(Xt))),xt),r.createVoidZero())));for(let xt of P.exportedFunctions)le(B,xt);Bn(B,st(P.externalHelpersImportDeclaration,de,ji)),v===2&&Xr(B,Ui(P.externalImports,ie)),Xr(B,Xn(_e.statements,de,ji,Ae)),pe(B,!0),fg(B,s());let te=r.createBlock(B,!0);return O&&CI(te,ZUe),te}function pe(_e,B){if(P.exportEquals){let Ae=st(P.exportEquals.expression,xe,St);if(Ae)if(B){let te=r.createReturnStatement(Ae);bt(te,P.exportEquals),Cr(te,3840),_e.push(te)}else{let te=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Ae));bt(te,P.exportEquals),Cr(te,3072),_e.push(te)}}}function de(_e){switch(_e.kind){case 273:return Pr(_e);case 272:return $e(_e);case 279:return At(_e);case 278:return mn(_e);default:return fe(_e)}}function fe(_e){switch(_e.kind){case 244:return ai(_e);case 263:return dr(_e);case 264:return ri(_e);case 249:return Se(_e,!0);case 250:return re(_e);case 251:return be(_e);case 247:return Ne(_e);case 248:return Be(_e);case 257:return lt(_e);case 255:return ce(_e);case 246:return De(_e);case 256:return ge(_e);case 270:return je(_e);case 297:return Ge(_e);case 298:return We(_e);case 259:return at(_e);case 300:return Wt(_e);case 242:return cn(_e);default:return xe(_e)}}function ve(_e,B){if(!(_e.transformFlags&276828160)&&!k?.length)return _e;switch(_e.kind){case 249:return Se(_e,!1);case 245:return gn(_e);case 218:return Kn(_e,B);case 356:return _t(_e,B);case 214:let Ae=_e===Ic(k);if(Ae&&k.shift(),Yu(_e)&&g.shouldTransformImportCall(N))return Di(_e,Ae);if(Ae)return ir(_e);break;case 227:if(ev(_e))return Xe(_e,B);break;case 225:case 226:return en(_e,B)}return kn(_e,xe,e)}function xe(_e){return ve(_e,!1)}function Y(_e){return ve(_e,!0)}function Ce(_e){if(Wa(_e))for(let B of _e.properties)switch(B.kind){case 304:if(Ce(B.initializer))return!0;break;case 305:if(Ce(B.name))return!0;break;case 306:if(Ce(B.expression))return!0;break;case 175:case 178:case 179:return!1;default:C.assertNever(B,"Unhandled object member kind")}else if(Cd(_e)){for(let B of _e.elements)if(Uf(B)){if(Ce(B.expression))return!0}else if(Ce(B))return!0}else if(He(_e))return et(Nt(_e))>(v3(_e)?1:0);return!1}function Xe(_e,B){return Ce(_e.left)?IE(_e,xe,e,0,!B,qi):kn(_e,xe,e)}function Se(_e,B){if(B&&_e.initializer&&_d(_e.initializer)&&!(_e.initializer.flags&7)){let Ae=ot(void 0,_e.initializer,!1);if(Ae){let te=[],xt=st(_e.initializer,Y,_d),Xt=r.createVariableStatement(void 0,xt);te.push(Xt),Xr(te,Ae);let Le=st(_e.condition,xe,St),gt=st(_e.incrementor,Y,St),Bt=Ou(_e.statement,B?fe:xe,e);return te.push(r.updateForStatement(_e,void 0,Le,gt,Bt)),te}}return r.updateForStatement(_e,st(_e.initializer,Y,kf),st(_e.condition,xe,St),st(_e.incrementor,Y,St),Ou(_e.statement,B?fe:xe,e))}function re(_e){if(_d(_e.initializer)&&!(_e.initializer.flags&7)){let B=ot(void 0,_e.initializer,!0);if(vt(B)){let Ae=st(_e.initializer,Y,kf),te=st(_e.expression,xe,St),xt=Ou(_e.statement,fe,e),Xt=ea(xt)?r.updateBlock(xt,[...B,...xt.statements]):r.createBlock([...B,xt],!0);return r.updateForInStatement(_e,Ae,te,Xt)}}return r.updateForInStatement(_e,st(_e.initializer,Y,kf),st(_e.expression,xe,St),Ou(_e.statement,fe,e))}function be(_e){if(_d(_e.initializer)&&!(_e.initializer.flags&7)){let B=ot(void 0,_e.initializer,!0),Ae=st(_e.initializer,Y,kf),te=st(_e.expression,xe,St),xt=Ou(_e.statement,fe,e);return vt(B)&&(xt=ea(xt)?r.updateBlock(xt,[...B,...xt.statements]):r.createBlock([...B,xt],!0)),r.updateForOfStatement(_e,_e.awaitModifier,Ae,te,xt)}return r.updateForOfStatement(_e,_e.awaitModifier,st(_e.initializer,Y,kf),st(_e.expression,xe,St),Ou(_e.statement,fe,e))}function Ne(_e){return r.updateDoStatement(_e,Ou(_e.statement,fe,e),st(_e.expression,xe,St))}function Be(_e){return r.updateWhileStatement(_e,st(_e.expression,xe,St),Ou(_e.statement,fe,e))}function lt(_e){return r.updateLabeledStatement(_e,_e.label,st(_e.statement,fe,ji,r.liftToBlock)??bt(r.createEmptyStatement(),_e.statement))}function ce(_e){return r.updateWithStatement(_e,st(_e.expression,xe,St),C.checkDefined(st(_e.statement,fe,ji,r.liftToBlock)))}function De(_e){return r.updateIfStatement(_e,st(_e.expression,xe,St),st(_e.thenStatement,fe,ji,r.liftToBlock)??r.createBlock([]),st(_e.elseStatement,fe,ji,r.liftToBlock))}function ge(_e){return r.updateSwitchStatement(_e,st(_e.expression,xe,St),C.checkDefined(st(_e.caseBlock,fe,VM)))}function je(_e){return r.updateCaseBlock(_e,Xn(_e.clauses,fe,f6))}function Ge(_e){return r.updateCaseClause(_e,st(_e.expression,xe,St),Xn(_e.statements,fe,ji))}function We(_e){return kn(_e,fe,e)}function at(_e){return kn(_e,fe,e)}function Wt(_e){return r.updateCatchClause(_e,_e.variableDeclaration,C.checkDefined(st(_e.block,fe,ea)))}function cn(_e){return _e=kn(_e,fe,e),_e}function gn(_e){return r.updateExpressionStatement(_e,st(_e.expression,Y,St))}function Kn(_e,B){return r.updateParenthesizedExpression(_e,st(_e.expression,B?Y:xe,St))}function _t(_e,B){return r.updatePartiallyEmittedExpression(_e,st(_e.expression,B?Y:xe,St))}function en(_e,B){if((_e.operator===46||_e.operator===47)&&He(_e.operand)&&!pl(_e.operand)&&!fy(_e.operand)&&!lV(_e.operand)){let Ae=Nt(_e.operand);if(Ae){let te,xt=st(_e.operand,xe,St);j0(_e)?xt=r.updatePrefixUnaryExpression(_e,xt):(xt=r.updatePostfixUnaryExpression(_e,xt),B||(te=r.createTempVariable(l),xt=r.createAssignment(te,xt),bt(xt,_e)),xt=r.createComma(xt,r.cloneNode(_e.operand)),bt(xt,_e));for(let Xt of Ae)F[ss(xt)]=!0,xt=dt(Xt,xt),bt(xt,_e);return te&&(F[ss(xt)]=!0,xt=r.createComma(xt,te),bt(xt,_e)),xt}}return kn(_e,xe,e)}function ir(_e){return r.updateCallExpression(_e,_e.expression,void 0,Xn(_e.arguments,B=>B===_e.arguments[0]?cs(B)?YI(B,u):i().createRewriteRelativeImportExtensionsHelper(B):xe(B),St))}function Di(_e,B){if(v===0&&_>=7)return kn(_e,xe,e);let Ae=jI(r,_e,N,g,d,u),te=st(Ic(_e.arguments),xe,St),xt=Ae&&(!te||!ka(te)||te.text!==Ae.text)?Ae:te&&B?ka(te)?YI(te,u):i().createRewriteRelativeImportExtensionsHelper(te):te,Xt=!!(_e.transformFlags&16384);switch(u.module){case 2:return zt(xt,Xt);case 3:return lo(xt??r.createVoidZero(),Xt);case 1:default:return Zr(xt)}}function lo(_e,B){if(O=!0,B1(_e)){let Ae=pl(_e)?_e:ka(_e)?r.createStringLiteralFromNode(_e):Cr(bt(r.cloneNode(_e),_e),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Zr(_e),void 0,zt(Ae,B))}else{let Ae=r.createTempVariable(l);return r.createComma(r.createAssignment(Ae,_e),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Zr(Ae,!0),void 0,zt(Ae,B)))}}function zt(_e,B){let Ae=r.createUniqueName("resolve"),te=r.createUniqueName("reject"),xt=[r.createParameterDeclaration(void 0,void 0,Ae),r.createParameterDeclaration(void 0,void 0,te)],Xt=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([_e||r.createOmittedExpression()]),Ae,te]))]),Le;_>=2?Le=r.createArrowFunction(void 0,void 0,xt,void 0,void 0,Xt):(Le=r.createFunctionExpression(void 0,void 0,void 0,void 0,xt,void 0,Xt),B&&Cr(Le,16));let gt=r.createNewExpression(r.createIdentifier("Promise"),void 0,[Le]);return Yh(u)?r.createCallExpression(r.createPropertyAccessExpression(gt,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):gt}function Zr(_e,B){let Ae=_e&&!F_(_e)&&!B,te=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Ae?_>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(_e,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[_e])]:[]),xt=r.createCallExpression(r.createIdentifier("require"),void 0,Ae?[r.createIdentifier("s")]:_e?[_e]:[]);Yh(u)&&(xt=i().createImportStarHelper(xt));let Xt=Ae?[r.createParameterDeclaration(void 0,void 0,"s")]:[],Le;return _>=2?Le=r.createArrowFunction(void 0,void 0,Xt,void 0,void 0,xt):Le=r.createFunctionExpression(void 0,void 0,void 0,void 0,Xt,void 0,r.createBlock([r.createReturnStatement(xt)])),r.createCallExpression(r.createPropertyAccessExpression(te,"then"),void 0,[Le])}function Ai(_e,B){return!Yh(u)||Wm(_e)&2?B:fae(_e)?i().createImportStarHelper(B):B}function Ni(_e,B){return!Yh(u)||Wm(_e)&2?B:rF(_e)?i().createImportStarHelper(B):PU(_e)?i().createImportDefaultHelper(B):B}function Pr(_e){let B,Ae=UR(_e);if(v!==2)if(_e.importClause){let te=[];Ae&&!QS(_e)?te.push(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,Ni(_e,Ci(_e)))):(te.push(r.createVariableDeclaration(r.getGeneratedNameForNode(_e),void 0,void 0,Ni(_e,Ci(_e)))),Ae&&QS(_e)&&te.push(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,r.getGeneratedNameForNode(_e)))),B=Bn(B,jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList(te,_>=2?2:0)),_e),_e))}else return jr(bt(r.createExpressionStatement(Ci(_e)),_e),_e);else Ae&&QS(_e)&&(B=Bn(B,r.createVariableStatement(void 0,r.createVariableDeclarationList([jr(bt(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,r.getGeneratedNameForNode(_e)),_e),_e)],_>=2?2:0))));return B=Ia(B,_e),A_(B)}function Ci(_e){let B=jI(r,_e,N,g,d,u),Ae=[];return B&&Ae.push(YI(B,u)),r.createCallExpression(r.createIdentifier("require"),void 0,Ae)}function $e(_e){C.assert(M0(_e),"import= for internal module references should be handled in an earlier transformer.");let B;return v!==2?di(_e,32)?B=Bn(B,jr(bt(r.createExpressionStatement(dt(_e.name,Ci(_e))),_e),_e)):B=Bn(B,jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(_e.name),void 0,void 0,Ci(_e))],_>=2?2:0)),_e),_e)):di(_e,32)&&(B=Bn(B,jr(bt(r.createExpressionStatement(dt(r.getExportName(_e),r.getLocalName(_e))),_e),_e))),B=Mn(B,_e),A_(B)}function At(_e){if(!_e.moduleSpecifier)return;let B=r.getGeneratedNameForNode(_e);if(_e.exportClause&&Hf(_e.exportClause)){let Ae=[];v!==2&&Ae.push(jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(B,void 0,void 0,Ci(_e))])),_e),_e));for(let te of _e.exportClause.elements){let xt=te.propertyName||te.name,Le=!!Yh(u)&&!(Wm(_e)&2)&&C_(xt)?i().createImportDefaultHelper(B):B,gt=xt.kind===11?r.createElementAccessExpression(Le,xt):r.createPropertyAccessExpression(Le,xt);Ae.push(jr(bt(r.createExpressionStatement(dt(te.name.kind===11?r.cloneNode(te.name):r.getExportName(te),gt,void 0,!0)),te),te))}return A_(Ae)}else if(_e.exportClause){let Ae=[];return Ae.push(jr(bt(r.createExpressionStatement(dt(r.cloneNode(_e.exportClause.name),Ai(_e,v!==2?Ci(_e):I6(_e)||_e.exportClause.name.kind===11?B:r.createIdentifier(Kr(_e.exportClause.name))))),_e),_e)),A_(Ae)}else return jr(bt(r.createExpressionStatement(i().createExportStarHelper(v!==2?Ci(_e):B)),_e),_e)}function mn(_e){if(!_e.isExportEquals)return it(r.createIdentifier("default"),st(_e.expression,xe,St),_e,!0)}function dr(_e){let B;return di(_e,32)?B=Bn(B,jr(bt(r.createFunctionDeclaration(Xn(_e.modifiers,Lt,Aa),_e.asteriskToken,r.getDeclarationName(_e,!0,!0),void 0,Xn(_e.parameters,xe,to),void 0,kn(_e.body,xe,e)),_e),_e)):B=Bn(B,kn(_e,xe,e)),A_(B)}function ri(_e){let B;return di(_e,32)?B=Bn(B,jr(bt(r.createClassDeclaration(Xn(_e.modifiers,Lt,fl),r.getDeclarationName(_e,!0,!0),void 0,Xn(_e.heritageClauses,xe,Op),Xn(_e.members,xe,Tc)),_e),_e)):B=Bn(B,kn(_e,xe,e)),B=le(B,_e),A_(B)}function ai(_e){let B,Ae,te;if(di(_e,32)){let xt,Xt=!1;for(let Le of _e.declarationList.declarations)if(He(Le.name)&&fy(Le.name))if(xt||(xt=Xn(_e.modifiers,Lt,Aa)),Le.initializer){let gt=r.updateVariableDeclaration(Le,Le.name,void 0,void 0,dt(Le.name,st(Le.initializer,xe,St)));Ae=Bn(Ae,gt)}else Ae=Bn(Ae,Le);else if(Le.initializer)if(!Qo(Le.name)&&(Xs(Le.initializer)||Us(Le.initializer)||uc(Le.initializer))){let gt=r.createAssignment(bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),Le.name),Le.name),r.createIdentifier(Wf(Le.name))),Bt=r.createVariableDeclaration(Le.name,Le.exclamationToken,Le.type,st(Le.initializer,xe,St));Ae=Bn(Ae,Bt),te=Bn(te,gt),Xt=!0}else te=Bn(te,$o(Le));if(Ae&&(B=Bn(B,r.updateVariableStatement(_e,xt,r.updateVariableDeclarationList(_e.declarationList,Ae)))),te){let Le=jr(bt(r.createExpressionStatement(r.inlineExpressions(te)),_e),_e);Xt&&Qk(Le),B=Bn(B,Le)}}else B=Bn(B,kn(_e,xe,e));return B=Uo(B,_e),A_(B)}function qi(_e,B,Ae){let te=Nt(_e);if(te){let xt=v3(_e)?B:r.createAssignment(_e,B);for(let Xt of te)Cr(xt,8),xt=dt(Xt,xt,Ae);return xt}return r.createAssignment(_e,B)}function $o(_e){return Qo(_e.name)?IE(st(_e,xe,Mk),xe,e,0,!1,qi):r.createAssignment(bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),_e.name),_e.name),_e.initializer?st(_e.initializer,xe,St):r.createVoidZero())}function Ia(_e,B){if(P.exportEquals)return _e;let Ae=B.importClause;if(!Ae)return _e;let te=new kD;Ae.name&&(_e=ht(_e,te,Ae));let xt=Ae.namedBindings;if(xt)switch(xt.kind){case 275:_e=ht(_e,te,xt);break;case 276:for(let Xt of xt.elements)_e=ht(_e,te,Xt,!0);break}return _e}function Mn(_e,B){return P.exportEquals?_e:ht(_e,new kD,B)}function Uo(_e,B){return ot(_e,B.declarationList,!1)}function ot(_e,B,Ae){if(P.exportEquals)return _e;for(let te of B.declarations)_e=Ft(_e,te,Ae);return _e}function Ft(_e,B,Ae){if(P.exportEquals)return _e;if(Qo(B.name))for(let te of B.name.elements)Kc(te)||(_e=Ft(_e,te,Ae));else!pl(B.name)&&(!yi(B)||B.initializer||Ae)&&(_e=ht(_e,new kD,B));return _e}function le(_e,B){if(P.exportEquals)return _e;let Ae=new kD;if(di(B,32)){let te=di(B,2048)?r.createIdentifier("default"):r.getDeclarationName(B);_e=ne(_e,Ae,te,r.getLocalName(B),B)}return B.name&&(_e=ht(_e,Ae,B)),_e}function ht(_e,B,Ae,te){let xt=r.getDeclarationName(Ae),Xt=P.exportSpecifiers.get(xt);if(Xt)for(let Le of Xt)_e=ne(_e,B,Le.name,xt,Le.name,void 0,te);return _e}function ne(_e,B,Ae,te,xt,Xt,Le){if(Ae.kind!==11){if(B.has(Ae))return _e;B.set(Ae,!0)}return _e=Bn(_e,it(Ae,te,xt,Xt,Le)),_e}function Fe(){let _e=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())])]));return Cr(_e,2097152),_e}function it(_e,B,Ae,te,xt){let Xt=bt(r.createExpressionStatement(dt(_e,B,void 0,xt)),Ae);return ou(Xt),te||Cr(Xt,3072),Xt}function dt(_e,B,Ae,te){return bt(te?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(_e),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(B)])))])]):r.createAssignment(_e.kind===11?r.createElementAccessExpression(r.createIdentifier("exports"),r.cloneNode(_e)):r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(_e)),B),Ae)}function Lt(_e){switch(_e.kind){case 95:case 90:return}return _e}function Ue(_e,B,Ae){B.kind===308?(N=B,P=R[Wu(N)],A(_e,B,Ae),N=void 0,P=void 0):A(_e,B,Ae)}function Rt(_e,B){return B=E(_e,B),B.id&&F[B.id]?B:_e===1?Ot(B):Ud(B)?It(B):B}function It(_e){let B=_e.name,Ae=Sr(B);if(Ae!==B){if(_e.objectAssignmentInitializer){let te=r.createAssignment(Ae,_e.objectAssignmentInitializer);return bt(r.createPropertyAssignment(B,te),_e)}return bt(r.createPropertyAssignment(B,Ae),_e)}return _e}function Ot(_e){switch(_e.kind){case 80:return Sr(_e);case 214:return nt(_e);case 216:return Kt(_e);case 227:return Oe(_e)}return _e}function nt(_e){if(He(_e.expression)){let B=Sr(_e.expression);if(F[ss(B)]=!0,!He(B)&&!(Qa(_e.expression)&8192))return aE(r.updateCallExpression(_e,B,void 0,_e.arguments),16)}return _e}function Kt(_e){if(He(_e.tag)){let B=Sr(_e.tag);if(F[ss(B)]=!0,!He(B)&&!(Qa(_e.tag)&8192))return aE(r.updateTaggedTemplateExpression(_e,B,void 0,_e.template),16)}return _e}function Sr(_e){var B,Ae;if(Qa(_e)&8192){let te=pw(N);return te?r.createPropertyAccessExpression(te,_e):_e}else if(!(pl(_e)&&!(_e.emitNode.autoGenerate.flags&64))&&!fy(_e)){let te=d.getReferencedExportContainer(_e,v3(_e));if(te&&te.kind===308)return bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(_e)),_e);let xt=d.getReferencedImportDeclaration(_e);if(xt){if(Gm(xt))return bt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(xt.parent),r.createIdentifier("default")),_e);if(Su(xt)){let Xt=xt.propertyName||xt.name,Le=r.getGeneratedNameForNode(((Ae=(B=xt.parent)==null?void 0:B.parent)==null?void 0:Ae.parent)||xt);return bt(Xt.kind===11?r.createElementAccessExpression(Le,r.cloneNode(Xt)):r.createPropertyAccessExpression(Le,r.cloneNode(Xt)),_e)}}}return _e}function Oe(_e){if(sy(_e.operatorToken.kind)&&He(_e.left)&&(!pl(_e.left)||RL(_e.left))&&!fy(_e.left)){let B=Nt(_e.left);if(B){let Ae=_e;for(let te of B)F[ss(Ae)]=!0,Ae=dt(te,Ae,_e);return Ae}}return _e}function Nt(_e){if(pl(_e)){if(RL(_e)){let B=P?.exportSpecifiers.get(_e);if(B){let Ae=[];for(let te of B)Ae.push(te.name);return Ae}}}else{let B=d.getReferencedImportDeclaration(_e);if(B)return P?.exportedBindings[Wu(B)];let Ae=new Set,te=d.getReferencedValueDeclarations(_e);if(te){for(let xt of te){let Xt=P?.exportedBindings[Wu(xt)];if(Xt)for(let Le of Xt)Ae.add(Le)}if(Ae.size)return Co(Ae)}}}}var ZUe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function Vae(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),d=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=Fe,e.onEmitNode=ne,e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);let _=[],v=[],E=[],A=[],R,N,P,k,F,O,G;return hh(e,j);function j(Oe){if(Oe.isDeclarationFile||!(OR(Oe,s)||Oe.transformFlags&8388608))return Oe;let Nt=Wu(Oe);R=Oe,O=Oe,N=_[Nt]=LU(e,Oe),P=t.createUniqueName("exports"),v[Nt]=P,k=A[Nt]=t.createUniqueName("context");let _e=J(N.externalImports),B=Z(Oe,_e),Ae=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,P),t.createParameterDeclaration(void 0,void 0,k)],void 0,B),te=fw(t,Oe,u,s),xt=t.createArrayLiteralExpression(Vt(_e,Le=>Le.name)),Xt=Cr(t.updateSourceFile(Oe,bt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,te?[te,xt,Ae]:[xt,Ae]))]),Oe.statements)),2048);return s.outFile||eie(Xt,B,Le=>!Le.scoped),G&&(E[Nt]=G,G=void 0),R=void 0,N=void 0,P=void 0,k=void 0,F=void 0,O=void 0,Xt}function J(Oe){let Nt=new Map,_e=[];for(let B of Oe){let Ae=jI(t,B,R,u,l,s);if(Ae){let te=Ae.text,xt=Nt.get(te);xt!==void 0?_e[xt].externalImports.push(B):(Nt.set(te,_e.length),_e.push({name:Ae,externalImports:[B]}))}}return _e}function Z(Oe,Nt){let _e=[];r();let B=Vd(s,"alwaysStrict")||Gc(R),Ae=t.copyPrologue(Oe.statements,_e,B,K);_e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(k,t.createPropertyAccessExpression(k,"id")))]))),st(N.externalHelpersImportDeclaration,K,ji);let te=Xn(Oe.statements,K,ji,Ae);Xr(_e,F),fg(_e,i());let xt=q(_e),Xt=Oe.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Le=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ie(xt,Nt)),t.createPropertyAssignment("execute",t.createFunctionExpression(Xt,void 0,void 0,void 0,[],void 0,t.createBlock(te,!0)))],!0);return _e.push(t.createReturnStatement(Le)),t.createBlock(_e,!0)}function q(Oe){if(!N.hasExportStarsToExportValues)return;if(!vt(N.exportedNames)&&N.exportedFunctions.size===0&&N.exportSpecifiers.size===0){let Ae=!1;for(let te of N.externalImports)if(te.kind===279&&te.exportClause){Ae=!0;break}if(!Ae){let te=ye(void 0);return Oe.push(te),te.name}}let Nt=[];if(N.exportedNames)for(let Ae of N.exportedNames)C_(Ae)||Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ae),t.createTrue()));for(let Ae of N.exportedFunctions)di(Ae,2048)||(C.assert(!!Ae.name),Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ae.name),t.createTrue())));let _e=t.createUniqueName("exportedNames");Oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(_e,void 0,void 0,t.createObjectLiteralExpression(Nt,!0))])));let B=ye(_e);return Oe.push(B),B.name}function ye(Oe){let Nt=t.createUniqueName("exportStar"),_e=t.createIdentifier("m"),B=t.createIdentifier("n"),Ae=t.createIdentifier("exports"),te=t.createStrictInequality(B,t.createStringLiteral("default"));return Oe&&(te=t.createLogicalAnd(te,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(Oe,"hasOwnProperty"),void 0,[B])))),t.createFunctionDeclaration(void 0,void 0,Nt,void 0,[t.createParameterDeclaration(void 0,void 0,_e)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ae,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(B)]),_e,t.createBlock([Cr(t.createIfStatement(te,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Ae,B),t.createElementAccessExpression(_e,B)))),1)])),t.createExpressionStatement(t.createCallExpression(P,void 0,[Ae]))],!0))}function ie(Oe,Nt){let _e=[];for(let B of Nt){let Ae=Je(B.externalImports,Xt=>ED(t,Xt,R)),te=Ae?t.getGeneratedNameForNode(Ae):t.createUniqueName(""),xt=[];for(let Xt of B.externalImports){let Le=ED(t,Xt,R);switch(Xt.kind){case 273:if(!Xt.importClause)break;case 272:C.assert(Le!==void 0),xt.push(t.createExpressionStatement(t.createAssignment(Le,te))),di(Xt,32)&&xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(Kr(Le)),te])));break;case 279:if(C.assert(Le!==void 0),Xt.exportClause)if(Hf(Xt.exportClause)){let gt=[];for(let Bt of Xt.exportClause.elements)gt.push(t.createPropertyAssignment(t.createStringLiteral(hb(Bt.name)),t.createElementAccessExpression(te,t.createStringLiteral(hb(Bt.propertyName||Bt.name)))));xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createObjectLiteralExpression(gt,!0)])))}else xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(hb(Xt.exportClause.name)),te])));else xt.push(t.createExpressionStatement(t.createCallExpression(Oe,void 0,[te])));break}}_e.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,te)],void 0,t.createBlock(xt,!0)))}return t.createArrayLiteralExpression(_e,!0)}function K(Oe){switch(Oe.kind){case 273:return pe(Oe);case 272:return fe(Oe);case 279:return de(Oe);case 278:return ve(Oe);default:return cn(Oe)}}function pe(Oe){let Nt;return Oe.importClause&&o(ED(t,Oe,R)),A_(lt(Nt,Oe))}function de(Oe){C.assertIsDefined(Oe)}function fe(Oe){C.assert(M0(Oe),"import= for internal module references should be handled in an earlier transformer.");let Nt;return o(ED(t,Oe,R)),A_(ce(Nt,Oe))}function ve(Oe){if(Oe.isExportEquals)return;let Nt=st(Oe.expression,ai,St);return at(t.createIdentifier("default"),Nt,!0)}function xe(Oe){di(Oe,32)?F=Bn(F,t.updateFunctionDeclaration(Oe,Xn(Oe.modifiers,ht,fl),Oe.asteriskToken,t.getDeclarationName(Oe,!0,!0),void 0,Xn(Oe.parameters,ai,to),void 0,st(Oe.body,ai,ea))):F=Bn(F,kn(Oe,ai,e)),F=je(F,Oe)}function Y(Oe){let Nt,_e=t.getLocalName(Oe);return o(_e),Nt=Bn(Nt,bt(t.createExpressionStatement(t.createAssignment(_e,bt(t.createClassExpression(Xn(Oe.modifiers,ht,fl),Oe.name,void 0,Xn(Oe.heritageClauses,ai,Op),Xn(Oe.members,ai,Tc)),Oe))),Oe)),Nt=je(Nt,Oe),A_(Nt)}function Ce(Oe){if(!Se(Oe.declarationList))return st(Oe,ai,ji);let Nt;if(JL(Oe.declarationList)||qL(Oe.declarationList)){let _e=Xn(Oe.modifiers,ht,fl),B=[];for(let te of Oe.declarationList.declarations)B.push(t.updateVariableDeclaration(te,t.getGeneratedNameForNode(te.name),void 0,void 0,re(te,!1)));let Ae=t.updateVariableDeclarationList(Oe.declarationList,B);Nt=Bn(Nt,t.updateVariableStatement(Oe,_e,Ae))}else{let _e,B=di(Oe,32);for(let Ae of Oe.declarationList.declarations)Ae.initializer?_e=Bn(_e,re(Ae,B)):Xe(Ae);_e&&(Nt=Bn(Nt,bt(t.createExpressionStatement(t.inlineExpressions(_e)),Oe)))}return Nt=De(Nt,Oe,!1),A_(Nt)}function Xe(Oe){if(Qo(Oe.name))for(let Nt of Oe.name.elements)Kc(Nt)||Xe(Nt);else o(t.cloneNode(Oe.name))}function Se(Oe){return(Qa(Oe)&4194304)===0&&(O.kind===308||(yl(Oe).flags&7)===0)}function re(Oe,Nt){let _e=Nt?be:Ne;return Qo(Oe.name)?IE(Oe,ai,e,0,!1,_e):Oe.initializer?_e(Oe.name,st(Oe.initializer,ai,St)):Oe.name}function be(Oe,Nt,_e){return Be(Oe,Nt,_e,!0)}function Ne(Oe,Nt,_e){return Be(Oe,Nt,_e,!1)}function Be(Oe,Nt,_e,B){return o(t.cloneNode(Oe)),B?Wt(Oe,Kt(bt(t.createAssignment(Oe,Nt),_e))):Kt(bt(t.createAssignment(Oe,Nt),_e))}function lt(Oe,Nt){if(N.exportEquals)return Oe;let _e=Nt.importClause;if(!_e)return Oe;_e.name&&(Oe=Ge(Oe,_e));let B=_e.namedBindings;if(B)switch(B.kind){case 275:Oe=Ge(Oe,B);break;case 276:for(let Ae of B.elements)Oe=Ge(Oe,Ae);break}return Oe}function ce(Oe,Nt){return N.exportEquals?Oe:Ge(Oe,Nt)}function De(Oe,Nt,_e){if(N.exportEquals)return Oe;for(let B of Nt.declarationList.declarations)(B.initializer||_e)&&(Oe=ge(Oe,B));return Oe}function ge(Oe,Nt,_e){if(N.exportEquals)return Oe;if(Qo(Nt.name))for(let B of Nt.name.elements)Kc(B)||(Oe=ge(Oe,B));else pl(Nt.name)||(Oe=Ge(Oe,Nt,void 0));return Oe}function je(Oe,Nt){if(N.exportEquals)return Oe;let _e;if(di(Nt,32)){let B=di(Nt,2048)?t.createStringLiteral("default"):Nt.name;Oe=We(Oe,B,t.getLocalName(Nt)),_e=Wf(B)}return Nt.name&&(Oe=Ge(Oe,Nt,_e)),Oe}function Ge(Oe,Nt,_e){if(N.exportEquals)return Oe;let B=t.getDeclarationName(Nt),Ae=N.exportSpecifiers.get(B);if(Ae)for(let te of Ae)hb(te.name)!==_e&&(Oe=We(Oe,te.name,B));return Oe}function We(Oe,Nt,_e,B){return Oe=Bn(Oe,at(Nt,_e,B)),Oe}function at(Oe,Nt,_e){let B=t.createExpressionStatement(Wt(Oe,Nt));return ou(B),_e||Cr(B,3072),B}function Wt(Oe,Nt){let _e=He(Oe)?t.createStringLiteralFromNode(Oe):Oe;return Cr(Nt,Qa(Nt)|3072),Dc(t.createCallExpression(P,void 0,[_e,Nt]),Nt)}function cn(Oe){switch(Oe.kind){case 244:return Ce(Oe);case 263:return xe(Oe);case 264:return Y(Oe);case 249:return gn(Oe,!0);case 250:return Kn(Oe);case 251:return _t(Oe);case 247:return Di(Oe);case 248:return lo(Oe);case 257:return zt(Oe);case 255:return Zr(Oe);case 246:return Ai(Oe);case 256:return Ni(Oe);case 270:return Pr(Oe);case 297:return Ci(Oe);case 298:return $e(Oe);case 259:return At(Oe);case 300:return mn(Oe);case 242:return dr(Oe);default:return ai(Oe)}}function gn(Oe,Nt){let _e=O;return O=Oe,Oe=t.updateForStatement(Oe,st(Oe.initializer,Nt?ir:qi,kf),st(Oe.condition,ai,St),st(Oe.incrementor,qi,St),Ou(Oe.statement,Nt?cn:ai,e)),O=_e,Oe}function Kn(Oe){let Nt=O;return O=Oe,Oe=t.updateForInStatement(Oe,ir(Oe.initializer),st(Oe.expression,ai,St),Ou(Oe.statement,cn,e)),O=Nt,Oe}function _t(Oe){let Nt=O;return O=Oe,Oe=t.updateForOfStatement(Oe,Oe.awaitModifier,ir(Oe.initializer),st(Oe.expression,ai,St),Ou(Oe.statement,cn,e)),O=Nt,Oe}function en(Oe){return _d(Oe)&&Se(Oe)}function ir(Oe){if(en(Oe)){let Nt;for(let _e of Oe.declarations)Nt=Bn(Nt,re(_e,!1)),_e.initializer||Xe(_e);return Nt?t.inlineExpressions(Nt):t.createOmittedExpression()}else return st(Oe,qi,kf)}function Di(Oe){return t.updateDoStatement(Oe,Ou(Oe.statement,cn,e),st(Oe.expression,ai,St))}function lo(Oe){return t.updateWhileStatement(Oe,st(Oe.expression,ai,St),Ou(Oe.statement,cn,e))}function zt(Oe){return t.updateLabeledStatement(Oe,Oe.label,st(Oe.statement,cn,ji,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}function Zr(Oe){return t.updateWithStatement(Oe,st(Oe.expression,ai,St),C.checkDefined(st(Oe.statement,cn,ji,t.liftToBlock)))}function Ai(Oe){return t.updateIfStatement(Oe,st(Oe.expression,ai,St),st(Oe.thenStatement,cn,ji,t.liftToBlock)??t.createBlock([]),st(Oe.elseStatement,cn,ji,t.liftToBlock))}function Ni(Oe){return t.updateSwitchStatement(Oe,st(Oe.expression,ai,St),C.checkDefined(st(Oe.caseBlock,cn,VM)))}function Pr(Oe){let Nt=O;return O=Oe,Oe=t.updateCaseBlock(Oe,Xn(Oe.clauses,cn,f6)),O=Nt,Oe}function Ci(Oe){return t.updateCaseClause(Oe,st(Oe.expression,ai,St),Xn(Oe.statements,cn,ji))}function $e(Oe){return kn(Oe,cn,e)}function At(Oe){return kn(Oe,cn,e)}function mn(Oe){let Nt=O;return O=Oe,Oe=t.updateCatchClause(Oe,Oe.variableDeclaration,C.checkDefined(st(Oe.block,cn,ea))),O=Nt,Oe}function dr(Oe){let Nt=O;return O=Oe,Oe=kn(Oe,cn,e),O=Nt,Oe}function ri(Oe,Nt){if(!(Oe.transformFlags&276828160))return Oe;switch(Oe.kind){case 249:return gn(Oe,!1);case 245:return $o(Oe);case 218:return Ia(Oe,Nt);case 356:return Mn(Oe,Nt);case 227:if(ev(Oe))return ot(Oe,Nt);break;case 214:if(Yu(Oe))return Uo(Oe);break;case 225:case 226:return le(Oe,Nt)}return kn(Oe,ai,e)}function ai(Oe){return ri(Oe,!1)}function qi(Oe){return ri(Oe,!0)}function $o(Oe){return t.updateExpressionStatement(Oe,st(Oe.expression,qi,St))}function Ia(Oe,Nt){return t.updateParenthesizedExpression(Oe,st(Oe.expression,Nt?qi:ai,St))}function Mn(Oe,Nt){return t.updatePartiallyEmittedExpression(Oe,st(Oe.expression,Nt?qi:ai,St))}function Uo(Oe){let Nt=jI(t,Oe,R,u,l,s),_e=st(Ic(Oe.arguments),ai,St),B=Nt&&(!_e||!ka(_e)||_e.text!==Nt.text)?Nt:_e;return t.createCallExpression(t.createPropertyAccessExpression(k,t.createIdentifier("import")),void 0,B?[B]:[])}function ot(Oe,Nt){return Ft(Oe.left)?IE(Oe,ai,e,0,!Nt):kn(Oe,ai,e)}function Ft(Oe){if(id(Oe,!0))return Ft(Oe.left);if(Uf(Oe))return Ft(Oe.expression);if(Wa(Oe))return vt(Oe.properties,Ft);if(Cd(Oe))return vt(Oe.elements,Ft);if(Ud(Oe))return Ft(Oe.name);if(Nc(Oe))return Ft(Oe.initializer);if(He(Oe)){let Nt=l.getReferencedExportContainer(Oe);return Nt!==void 0&&Nt.kind===308}else return!1}function le(Oe,Nt){if((Oe.operator===46||Oe.operator===47)&&He(Oe.operand)&&!pl(Oe.operand)&&!fy(Oe.operand)&&!lV(Oe.operand)){let _e=Ot(Oe.operand);if(_e){let B,Ae=st(Oe.operand,ai,St);j0(Oe)?Ae=t.updatePrefixUnaryExpression(Oe,Ae):(Ae=t.updatePostfixUnaryExpression(Oe,Ae),Nt||(B=t.createTempVariable(o),Ae=t.createAssignment(B,Ae),bt(Ae,Oe)),Ae=t.createComma(Ae,t.cloneNode(Oe.operand)),bt(Ae,Oe));for(let te of _e)Ae=Wt(te,Kt(Ae));return B&&(Ae=t.createComma(Ae,B),bt(Ae,Oe)),Ae}}return kn(Oe,ai,e)}function ht(Oe){switch(Oe.kind){case 95:case 90:return}return Oe}function ne(Oe,Nt,_e){if(Nt.kind===308){let B=Wu(Nt);R=Nt,N=_[B],P=v[B],G=E[B],k=A[B],G&&delete E[B],g(Oe,Nt,_e),R=void 0,N=void 0,P=void 0,k=void 0,G=void 0}else g(Oe,Nt,_e)}function Fe(Oe,Nt){return Nt=d(Oe,Nt),Sr(Nt)?Nt:Oe===1?Lt(Nt):Oe===4?it(Nt):Nt}function it(Oe){switch(Oe.kind){case 305:return dt(Oe)}return Oe}function dt(Oe){var Nt,_e;let B=Oe.name;if(!pl(B)&&!fy(B)){let Ae=l.getReferencedImportDeclaration(B);if(Ae){if(Gm(Ae))return bt(t.createPropertyAssignment(t.cloneNode(B),t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ae.parent),t.createIdentifier("default"))),Oe);if(Su(Ae)){let te=Ae.propertyName||Ae.name,xt=t.getGeneratedNameForNode(((_e=(Nt=Ae.parent)==null?void 0:Nt.parent)==null?void 0:_e.parent)||Ae);return bt(t.createPropertyAssignment(t.cloneNode(B),te.kind===11?t.createElementAccessExpression(xt,t.cloneNode(te)):t.createPropertyAccessExpression(xt,t.cloneNode(te))),Oe)}}}return Oe}function Lt(Oe){switch(Oe.kind){case 80:return Ue(Oe);case 227:return Rt(Oe);case 237:return It(Oe)}return Oe}function Ue(Oe){var Nt,_e;if(Qa(Oe)&8192){let B=pw(R);return B?t.createPropertyAccessExpression(B,Oe):Oe}if(!pl(Oe)&&!fy(Oe)){let B=l.getReferencedImportDeclaration(Oe);if(B){if(Gm(B))return bt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(B.parent),t.createIdentifier("default")),Oe);if(Su(B)){let Ae=B.propertyName||B.name,te=t.getGeneratedNameForNode(((_e=(Nt=B.parent)==null?void 0:Nt.parent)==null?void 0:_e.parent)||B);return bt(Ae.kind===11?t.createElementAccessExpression(te,t.cloneNode(Ae)):t.createPropertyAccessExpression(te,t.cloneNode(Ae)),Oe)}}}return Oe}function Rt(Oe){if(sy(Oe.operatorToken.kind)&&He(Oe.left)&&(!pl(Oe.left)||RL(Oe.left))&&!fy(Oe.left)){let Nt=Ot(Oe.left);if(Nt){let _e=Oe;for(let B of Nt)_e=Wt(B,Kt(_e));return _e}}return Oe}function It(Oe){return zR(Oe)?t.createPropertyAccessExpression(k,t.createIdentifier("meta")):Oe}function Ot(Oe){let Nt,_e=nt(Oe);if(_e){let B=l.getReferencedExportContainer(Oe,!1);B&&B.kind===308&&(Nt=Bn(Nt,t.getDeclarationName(_e))),Nt=Xr(Nt,N?.exportedBindings[Wu(_e)])}else if(pl(Oe)&&RL(Oe)){let B=N?.exportSpecifiers.get(Oe);if(B){let Ae=[];for(let te of B)Ae.push(te.name);return Ae}}return Nt}function nt(Oe){if(!pl(Oe)){let Nt=l.getReferencedImportDeclaration(Oe);if(Nt)return Nt;let _e=l.getReferencedValueDeclaration(Oe);if(_e&&N?.exportedBindings[Wu(_e)])return _e;let B=l.getReferencedValueDeclarations(Oe);if(B){for(let Ae of B)if(Ae!==_e&&N?.exportedBindings[Wu(Ae)])return Ae}return _e}}function Kt(Oe){return G===void 0&&(G=[]),G[ss(Oe)]=!0,Oe}function Sr(Oe){return G&&Oe.id&&G[Oe.id]}}function VU(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Ga(s),u=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=q,e.onSubstituteNode=ye,e.enableEmitNotification(308),e.enableSubstitution(80);let g=new Set,_,v,E,A;return hh(e,R);function R(K){if(K.isDeclarationFile)return K;if(Gc(K)||gm(s)){E=K,A=void 0,s.rewriteRelativeImportExtensions&&(E.flags&4194304||Ir(K))&&XW(K,!1,!1,de=>{(!cs(de.arguments[0])||dk(de.arguments[0].text,s))&&(_=Bn(_,de))});let pe=N(K);return Eg(pe,e.readEmitHelpers()),E=void 0,A&&(pe=t.updateSourceFile(pe,bt(t.createNodeArray(QB(pe.statements.slice(),A)),pe.statements))),!Gc(K)||vu(s)===200||vt(pe.statements,LL)?pe:t.updateSourceFile(pe,bt(t.createNodeArray([...pe.statements,cw(t)]),pe.statements))}return K}function N(K){let pe=Rj(t,r(),K,s);if(pe){let de=[],fe=t.copyPrologue(K.statements,de);return Xr(de,iP([pe],P,ji)),Xr(de,Xn(K.statements,P,ji,fe)),t.updateSourceFile(K,bt(t.createNodeArray(de),K.statements))}else return kn(K,P,e)}function P(K){switch(K.kind){case 272:return vu(s)>=100?G(K):void 0;case 278:return J(K);case 279:return Z(K);case 273:return k(K);case 214:if(K===_?.[0])return F(_.shift());default:if(_?.length&&Zu(K,_[0]))return kn(K,P,e)}return K}function k(K){if(!s.rewriteRelativeImportExtensions)return K;let pe=YI(K.moduleSpecifier,s);return pe===K.moduleSpecifier?K:t.updateImportDeclaration(K,K.modifiers,K.importClause,pe,K.attributes)}function F(K){return t.updateCallExpression(K,K.expression,K.typeArguments,[cs(K.arguments[0])?YI(K.arguments[0],s):r().createRewriteRelativeImportExtensionsHelper(K.arguments[0]),...K.arguments.slice(1)])}function O(K){let pe=jI(t,K,C.checkDefined(E),i,o,s),de=[];if(pe&&de.push(YI(pe,s)),vu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,de);if(!A){let ve=t.createUniqueName("_createRequire",48),xe=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ve)])),t.createStringLiteral("module"),void 0),Y=t.createUniqueName("__require",48),Ce=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Y,void 0,void 0,t.createCallExpression(t.cloneNode(ve),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));A=[xe,Ce]}let fe=A[1].declarationList.declarations[0].name;return C.assertNode(fe,He),t.createCallExpression(t.cloneNode(fe),void 0,de)}function G(K){C.assert(M0(K),"import= for internal module references should be handled in an earlier transformer.");let pe;return pe=Bn(pe,jr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(K.name),void 0,void 0,O(K))],l>=2?2:0)),K),K)),pe=j(pe,K),A_(pe)}function j(K,pe){return di(pe,32)&&(K=Bn(K,t.createExportDeclaration(void 0,pe.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Kr(pe.name))])))),K}function J(K){return K.isExportEquals?vu(s)===200?jr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),K.expression)),K):void 0:K}function Z(K){let pe=YI(K.moduleSpecifier,s);if(s.module!==void 0&&s.module>5||!K.exportClause||!w_(K.exportClause)||!K.moduleSpecifier)return!K.moduleSpecifier||pe===K.moduleSpecifier?K:t.updateExportDeclaration(K,K.modifiers,K.isTypeOnly,K.exportClause,pe,K.attributes);let de=K.exportClause.name,fe=t.getGeneratedNameForNode(de),ve=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(fe)),pe,K.attributes);jr(ve,K.exportClause);let xe=I6(K)?t.createExportDefault(fe):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,fe,de)]));return jr(xe,K),[ve,xe]}function q(K,pe,de){Yi(pe)?((Gc(pe)||gm(s))&&s.importHelpers&&(v=new Map),E=pe,u(K,pe,de),E=void 0,v=void 0):u(K,pe,de)}function ye(K,pe){return pe=d(K,pe),pe.id&&g.has(pe.id)?pe:He(pe)&&Qa(pe)&8192?ie(pe):pe}function ie(K){let pe=E&&pw(E);if(pe)return g.add(ss(K)),t.createPropertyAccessExpression(pe,K);if(v){let de=Kr(K),fe=v.get(de);return fe||v.set(de,fe=t.createUniqueName(de,48)),fe}return K}}function jae(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=VU(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=GU(e),u=e.onSubstituteNode,d=e.onEmitNode,g=k=>e.getEmitHost().getEmitModuleFormatOfFile(k);e.onSubstituteNode=v,e.onEmitNode=E,e.enableSubstitution(308),e.enableEmitNotification(308);let _;return N;function v(k,F){return Yi(F)?(_=F,t(k,F)):_?g(_)>=5?o(k,F):u(k,F):t(k,F)}function E(k,F,O){return Yi(F)&&(_=F),_?g(_)>=5?s(k,F,O):d(k,F,O):r(k,F,O)}function A(k){return g(k)>=5?i:l}function R(k){if(k.isDeclarationFile)return k;_=k;let F=A(k)(k);return _=void 0,C.assert(Yi(F)),F}function N(k){return k.kind===308?R(k):P(k)}function P(k){return e.factory.createBundle(Vt(k.sourceFiles,R))}}function Ow(e){return yi(e)||Po(e)||Tu(e)||Ha(e)||Gh(e)||dg(e)||FM(e)||kI(e)||Nl(e)||Bm(e)||Ql(e)||to(e)||sl(e)||dy(e)||Bc(e)||ym(e)||Ml(e)||Db(e)||qr(e)||Ws(e)||Nr(e)||mm(e)}function Uae(e){if(Gh(e)||dg(e))return t;return Bm(e)||Nl(e)?i:tT(e);function t(s){let l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return ua(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===264?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){let l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return ua(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===264?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 tT(e){if(yi(e)||Po(e)||Tu(e)||qr(e)||Ws(e)||Nr(e)||Ha(e)||Ml(e))return r;return Gh(e)||dg(e)?i:FM(e)||kI(e)||Nl(e)||Bm(e)||Ql(e)||Db(e)?o:to(e)?Dp(e,e.parent)&&di(e.parent,2)?r:s:sl(e)?u:dy(e)?d:Bc(e)?g:ym(e)||mm(e)?_:C.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${C.formatSyntaxKind(e.kind)}`);function t(v){if(e.kind===261||e.kind===209)return v.errorModuleName?v.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===173||e.kind===212||e.kind===213||e.kind===227||e.kind===172||e.kind===170&&di(e.parent,2))return ua(e)?v.errorModuleName?v.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264||e.kind===170?v.errorModuleName?v.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:v.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(v){let E=t(v);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function i(v){let E;return e.kind===179?ua(e)?E=v.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=v.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ua(e)?E=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e.name,typeName:e.name}}function o(v){let E;switch(e.kind){case 181:E=v.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:E=v.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:E=v.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:ua(e)?E=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===264?E=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=v.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:E=v.errorModuleName?v.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return C.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:E,errorNode:e.name||e}}function s(v){let E=l(v);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function l(v){switch(e.parent.kind){case 177:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return v.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return v.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return v.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return ua(e.parent)?v.errorModuleName?v.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?v.errorModuleName?v.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return C.fail(`Unknown parent for parameter: ${C.formatSyntaxKind(e.parent.kind)}`)}}function u(){let v;switch(e.parent.kind){case 264:v=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:v=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:v=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:v=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:v=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:ua(e.parent)?v=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?v=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:v=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:v=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:v=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return C.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:v,errorNode:e,typeName:e.name}}function d(){let v;return Cc(e.parent.parent)?v=Op(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:v=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:v,errorNode:e,typeName:Oo(e.parent.parent)}}function g(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function _(v){return{diagnosticMessage:v.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:mm(e)?C.checkDefined(e.typeExpression):e.type,typeName:mm(e)?Oo(e):e.name}}}function Hae(e){let t={220:f.Add_a_return_type_to_the_function_expression,219:f.Add_a_return_type_to_the_function_expression,175:f.Add_a_return_type_to_the_method,178:f.Add_a_return_type_to_the_get_accessor_declaration,179:f.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:f.Add_a_return_type_to_the_function_declaration,181:f.Add_a_return_type_to_the_function_declaration,170:f.Add_a_type_annotation_to_the_parameter_0,261:f.Add_a_type_annotation_to_the_variable_0,173:f.Add_a_type_annotation_to_the_property_0,172:f.Add_a_type_annotation_to_the_property_0,278:f.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},r={219:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:f.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:f.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:f.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:f.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:f.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:f.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:f.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return i;function i(P){if(Dn(P,Op))return Ar(P,f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Uh(P)||N1(P.parent))&&(Nu(P)||Ds(P)))return R(P);switch(C.type(P),P.kind){case 178:case 179:return s(P);case 168:case 305:case 306:return u(P);case 210:case 231:return d(P);case 175:case 181:case 219:case 220:case 263:return g(P);case 209:return _(P);case 173:case 261:return v(P);case 170:return E(P);case 304:return N(P.initializer);case 232:return A(P);default:return N(P)}}function o(P){let k=Dn(P,F=>ll(F)||ji(F)||yi(F)||Po(F)||to(F));if(k)return ll(k)?k:ef(k)?Dn(k,F=>Ms(F)&&!Ml(F)):ji(k)?void 0:k}function s(P){let{getAccessor:k,setAccessor:F}=E1(P.symbol.declarations,P),O=(Gh(P)?P.parameters[0]:P)??P,G=Ar(O,r[P.kind]);return F&&pa(G,Ar(F,t[F.kind])),k&&pa(G,Ar(k,t[k.kind])),G}function l(P,k){let F=o(P);if(F){let O=ll(F)||!F.name?"":Al(F.name,!1);pa(k,Ar(F,t[F.kind],O))}return k}function u(P){let k=Ar(P,r[P.kind]);return l(P,k),k}function d(P){let k=Ar(P,r[P.kind]);return l(P,k),k}function g(P){let k=Ar(P,r[P.kind]);return l(P,k),pa(k,Ar(P,t[P.kind])),k}function _(P){return Ar(P,f.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function v(P){let k=Ar(P,r[P.kind]),F=Al(P.name,!1);return pa(k,Ar(P,t[P.kind],F)),k}function E(P){if(Gh(P.parent))return s(P.parent);let k=e.requiresAddingImplicitUndefined(P,P.parent);if(!k&&P.initializer)return N(P.initializer);let F=k?f.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r[P.kind],O=Ar(P,F),G=Al(P.name,!1);return pa(O,Ar(P,t[P.kind],G)),O}function A(P){return N(P,f.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function R(P){let k=Ar(P,f.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Al(P,!1));return l(P,k),k}function N(P,k){let F=o(P),O;if(F){let G=ll(F)||!F.name?"":Al(F.name,!1),j=Dn(P.parent,J=>ll(J)||(ji(J)?"quit":!wu(J)&&!l3(J)&&!fD(J)));F===j?(O=Ar(P,k??r[F.kind]),pa(O,Ar(F,t[F.kind],G))):(O=Ar(P,k??f.Expression_type_can_t_be_inferred_with_isolatedDeclarations),pa(O,Ar(F,t[F.kind],G)),pa(O,Ar(P,f.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else O=Ar(P,k??f.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return O}}function qae(e,t,r){let i=e.getCompilerOptions(),o=Un(sW(e,r),U6);return jn(o,r)?Bw(t,e,L,i,[r],[jU],!1).diagnostics:void 0}var Ww=531469,Fw=8;function jU(e){let t=()=>C.fail("Diagnostic emitted without context"),r=t,i=!0,o=!1,s=!1,l=!1,u=!1,d,g,_,v,{factory:E}=e,A=e.getEmitHost(),R=()=>{},N={trackSymbol:fe,reportInaccessibleThisError:Xe,reportInaccessibleUniqueSymbolError:Y,reportCyclicStructureError:Ce,reportPrivateInBaseOfClassExpression:ve,reportLikelyUnsafeImportRequiredError:Se,reportTruncationError:re,moduleResolverHost:A,reportNonlocalAugmentation:be,reportNonSerializableProperty:Ne,reportInferenceFallback:pe,pushErrorFallbackNode(le){let ht=k,ne=R;R=()=>{R=ne,k=ht},k=le},popErrorFallbackNode(){R()}},P,k,F,O,G,j,J=e.getEmitResolver(),Z=e.getCompilerOptions(),q=Hae(J),{stripInternal:ye,isolatedDeclarations:ie}=Z;return lt;function K(le){J.getPropertiesOfContainerFunction(le).forEach(ht=>{if(RI(ht.valueDeclaration)){let ne=Nr(ht.valueDeclaration)?ht.valueDeclaration.left:ht.valueDeclaration;e.addDiagnostic(Ar(ne,f.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function pe(le){!ie||Mu(F)||Wn(le)===F&&(yi(le)&&J.isExpandoFunctionDeclaration(le)?K(le):e.addDiagnostic(q(le)))}function de(le){if(le.accessibility===0){if(le.aliasesToMakeVisible)if(!g)g=le.aliasesToMakeVisible;else for(let ht of le.aliasesToMakeVisible)Pf(g,ht)}else if(le.accessibility!==3){let ht=r(le);if(ht)return ht.typeName?e.addDiagnostic(Ar(le.errorNode||ht.errorNode,ht.diagnosticMessage,Al(ht.typeName),le.errorSymbolName,le.errorModuleName)):e.addDiagnostic(Ar(le.errorNode||ht.errorNode,ht.diagnosticMessage,le.errorSymbolName,le.errorModuleName)),!0}return!1}function fe(le,ht,ne){return le.flags&262144?!1:de(J.isSymbolAccessible(le,ht,ne,!0))}function ve(le){(P||k)&&e.addDiagnostic(pa(Ar(P||k,f.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,le),...yi((P||k).parent)?[Ar(P||k,f.Add_a_type_annotation_to_the_variable_0,xe())]:[]))}function xe(){return P?ws(P):k&&Oo(k)?ws(Oo(k)):k&&ll(k)?k.isExportEquals?"export=":"default":"(Missing)"}function Y(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,xe(),"unique symbol"))}function Ce(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,xe()))}function Xe(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,xe(),"this"))}function Se(le){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,xe(),le))}function re(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function be(le,ht,ne){var Fe;let it=(Fe=ht.declarations)==null?void 0:Fe.find(Lt=>Wn(Lt)===le),dt=Un(ne.declarations,Lt=>Wn(Lt)!==le);if(it&&dt)for(let Lt of dt)e.addDiagnostic(pa(Ar(Lt,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Ar(it,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Ne(le){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,le))}function Be(le){let ht=r;r=Fe=>Fe.errorNode&&Ow(Fe.errorNode)?tT(Fe.errorNode)(Fe):{diagnosticMessage:Fe.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:Fe.errorNode||le};let ne=J.getDeclarationStatementsForSourceFile(le,Ww,Fw,N);return r=ht,ne}function lt(le){if(le.kind===308&&le.isDeclarationFile)return le;if(le.kind===309){o=!0,O=[],G=[],j=[];let Rt=!1,It=E.createBundle(Vt(le.sourceFiles,nt=>{if(nt.isDeclarationFile)return;if(Rt=Rt||nt.hasNoDefaultLib,F=nt,d=nt,g=void 0,v=!1,_=new Map,r=t,l=!1,u=!1,Fe(nt),Np(nt)||Of(nt)){s=!1,i=!1;let Sr=Mu(nt)?E.createNodeArray(Be(nt)):Xn(nt.statements,Ci,ji);return E.updateSourceFile(nt,[E.createModuleDeclaration([E.createModifier(138)],E.createStringLiteral(jG(e.getEmitHost(),nt)),E.createModuleBlock(bt(E.createNodeArray(Ai(Sr)),nt.statements)))],!0,[],[],!1,[])}i=!0;let Kt=Mu(nt)?E.createNodeArray(Be(nt)):Xn(nt.statements,Ci,ji);return E.updateSourceFile(nt,Ai(Kt),!0,[],[],!1,[])})),Ot=ci(Bd(pP(le,A,!0).declarationFilePath));return It.syntheticFileReferences=Ue(Ot),It.syntheticTypeReferences=dt(),It.syntheticLibReferences=Lt(),It.hasNoDefaultLib=Rt,It}i=!0,l=!1,u=!1,d=le,F=le,r=t,o=!1,s=!1,v=!1,g=void 0,_=new Map,O=[],G=[],j=[],Fe(F);let ht;if(Mu(F))ht=E.createNodeArray(Be(le));else{let Rt=Xn(le.statements,Ci,ji);ht=bt(E.createNodeArray(Ai(Rt)),le.statements),Gc(le)&&(!s||l&&!u)&&(ht=bt(E.createNodeArray([...ht,cw(E)]),ht))}let ne=ci(Bd(pP(le,A,!0).declarationFilePath));return E.updateSourceFile(le,ht,!0,Ue(ne),dt(),le.hasNoDefaultLib,Lt());function Fe(Rt){O=so(O,Vt(Rt.referencedFiles,It=>[Rt,It])),G=so(G,Rt.typeReferenceDirectives),j=so(j,Rt.libReferenceDirectives)}function it(Rt){let It={...Rt};return It.pos=-1,It.end=-1,It}function dt(){return Ui(G,Rt=>{if(Rt.preserve)return it(Rt)})}function Lt(){return Ui(j,Rt=>{if(Rt.preserve)return it(Rt)})}function Ue(Rt){return Ui(O,([It,Ot])=>{if(!Ot.preserve)return;let nt=A.getSourceFileFromReference(It,Ot);if(!nt)return;let Kt;if(nt.isDeclarationFile)Kt=nt.fileName;else{if(o&&jn(le.sourceFiles,nt))return;let Nt=pP(nt,A,!0);Kt=Nt.declarationFilePath||Nt.jsFilePath||nt.fileName}if(!Kt)return;let Sr=ER(Rt,Kt,A.getCurrentDirectory(),A.getCanonicalFileName,!1),Oe=it(Ot);return Oe.fileName=Sr,Oe})}}function ce(le){if(le.kind===80)return le;return le.kind===208?E.updateArrayBindingPattern(le,Xn(le.elements,ht,c6)):E.updateObjectBindingPattern(le,Xn(le.elements,ht,Ha));function ht(ne){return ne.kind===233?ne:(ne.propertyName&&va(ne.propertyName)&&Ds(ne.propertyName.expression)&&en(ne.propertyName.expression,d),E.updateBindingElement(ne,ne.dotDotDotToken,ne.propertyName,ce(ne.name),void 0))}}function De(le,ht){let ne;v||(ne=r,r=tT(le));let Fe=E.updateParameterDeclaration(le,tHe(E,le,ht),le.dotDotDotToken,ce(le.name),J.isOptionalParameter(le)?le.questionToken||E.createToken(58):void 0,Ge(le,!0),je(le));return v||(r=ne),Fe}function ge(le){return XSe(le)&&!!le.initializer&&J.isLiteralConstDeclaration(jo(le))}function je(le){if(ge(le)){let ht=Wre(le.initializer);return qW(ht)||pe(le),J.createLiteralConstValue(jo(le,XSe),N)}}function Ge(le,ht){if(!ht&&Lp(le,2)||ge(le))return;if(!ll(le)&&!Ha(le)&&le.type&&(!to(le)||!J.requiresAddingImplicitUndefined(le,d)))return st(le.type,Ni,Ri);let ne=P;P=le.name;let Fe;v||(Fe=r,Ow(le)&&(r=tT(le)));let it;return JW(le)?it=J.createTypeOfDeclaration(le,d,Ww,Fw,N):Yo(le)?it=J.createReturnTypeOfSignatureDeclaration(le,d,Ww,Fw,N):C.assertNever(le),P=ne,v||(r=Fe),it??E.createKeywordTypeNode(133)}function We(le){switch(le=jo(le),le.kind){case 263:case 268:case 265:case 264:case 266:case 267:return!J.isDeclarationVisible(le);case 261:return!Wt(le);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function at(le){var ht;if(le.body)return!0;let ne=(ht=le.symbol.declarations)==null?void 0:ht.filter(Fe=>Ql(Fe)&&!Fe.body);return!ne||ne.indexOf(le)===ne.length-1}function Wt(le){return Kc(le)?!1:Qo(le.name)?vt(le.name.elements,Wt):J.isDeclarationVisible(le)}function cn(le,ht,ne){if(Lp(le,2))return E.createNodeArray();let Fe=Vt(ht,it=>De(it,ne));return Fe?E.createNodeArray(Fe,ht.hasTrailingComma):E.createNodeArray()}function gn(le,ht){let ne;if(!ht){let Fe=T1(le);Fe&&(ne=[De(Fe)])}if(_p(le)){let Fe;if(!ht){let it=lM(le);it&&(Fe=De(it))}Fe||(Fe=E.createParameterDeclaration(void 0,void 0,"value")),ne=Bn(ne,Fe)}return E.createNodeArray(ne||ae)}function Kn(le,ht){return Lp(le,2)?void 0:Xn(ht,Ni,sl)}function _t(le){return Yi(le)||ym(le)||pc(le)||Cc(le)||gd(le)||Yo(le)||Db(le)||uE(le)}function en(le,ht){let ne=J.isEntityNameVisible(le,ht);de(ne)}function ir(le,ht){return Zp(le)&&Zp(ht)&&(le.jsDoc=ht.jsDoc),Dc(le,Qh(ht))}function Di(le,ht){if(ht){if(s=s||le.kind!==268&&le.kind!==206,cs(ht)&&o){let ne=Ene(e.getEmitHost(),J,le);if(ne)return E.createStringLiteral(ne)}return ht}}function lo(le){if(J.isDeclarationVisible(le))if(le.moduleReference.kind===284){let ht=qN(le);return E.updateImportEqualsDeclaration(le,le.modifiers,le.isTypeOnly,le.name,E.updateExternalModuleReference(le.moduleReference,Di(le,ht)))}else{let ht=r;return r=tT(le),en(le.moduleReference,d),r=ht,le}}function zt(le){if(!le.importClause)return E.updateImportDeclaration(le,le.modifiers,le.importClause,Di(le,le.moduleSpecifier),Zr(le.attributes));let ht=le.importClause.phaseModifier===166?void 0:le.importClause.phaseModifier,ne=le.importClause&&le.importClause.name&&J.isDeclarationVisible(le.importClause)?le.importClause.name:void 0;if(!le.importClause.namedBindings)return ne&&E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,ht,ne,void 0),Di(le,le.moduleSpecifier),Zr(le.attributes));if(le.importClause.namedBindings.kind===275){let it=J.isDeclarationVisible(le.importClause.namedBindings)?le.importClause.namedBindings:void 0;return ne||it?E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,ht,ne,it),Di(le,le.moduleSpecifier),Zr(le.attributes)):void 0}let Fe=Ui(le.importClause.namedBindings.elements,it=>J.isDeclarationVisible(it)?it:void 0);if(Fe&&Fe.length||ne)return E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,ht,ne,Fe&&Fe.length?E.updateNamedImports(le.importClause.namedBindings,Fe):void 0),Di(le,le.moduleSpecifier),Zr(le.attributes));if(J.isImportRequiredByAugmentation(le))return ie&&e.addDiagnostic(Ar(le,f.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),E.updateImportDeclaration(le,le.modifiers,void 0,Di(le,le.moduleSpecifier),Zr(le.attributes))}function Zr(le){let ht=OD(le);return le&&ht!==void 0?le:void 0}function Ai(le){for(;et(g);){let ne=g.shift();if(!R6(ne))return C.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${C.formatSyntaxKind(ne.kind)}`);let Fe=i;i=ne.parent&&Yi(ne.parent)&&!(Gc(ne.parent)&&o);let it=mn(ne);i=Fe,_.set(Wu(ne),it)}return Xn(le,ht,ji);function ht(ne){if(R6(ne)){let Fe=Wu(ne);if(_.has(Fe)){let it=_.get(Fe);return _.delete(Fe),it&&((Mo(it)?vt(it,d6):d6(it))&&(l=!0),Yi(ne.parent)&&(Mo(it)?vt(it,LL):LL(it))&&(s=!0)),it}}return ne}}function Ni(le){if($o(le))return;if(rd(le)){if(We(le))return;if(oy(le)){if(ie){if(!J.isDefinitelyReferenceToGlobalSymbolObject(le.name.expression)){if(Cc(le.parent)||Wa(le.parent)){e.addDiagnostic(Ar(le,f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((gd(le.parent)||ku(le.parent))&&!Ds(le.name.expression)){e.addDiagnostic(Ar(le,f.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!J.isLateBound(jo(le))||!Ds(le.name.expression))return}}if(Yo(le)&&J.isImplementationOfOverload(le)||bie(le))return;let ht;_t(le)&&(ht=d,d=le);let ne=r,Fe=Ow(le),it=v,dt=(le.kind===188||le.kind===201)&&le.parent.kind!==266;if((Nl(le)||Bm(le))&&Lp(le,2))return le.symbol&&le.symbol.declarations&&le.symbol.declarations[0]!==le?void 0:Lt(E.createPropertyDeclaration(Uo(le),le.name,void 0,void 0,void 0));if(Fe&&!v&&(r=tT(le)),N1(le)&&en(le.exprName,d),dt&&(v=!0),rHe(le))switch(le.kind){case 234:{(Nu(le.expression)||Ds(le.expression))&&en(le.expression,d);let Ue=kn(le,Ni,e);return Lt(E.updateExpressionWithTypeArguments(Ue,Ue.expression,Ue.typeArguments))}case 184:{en(le.typeName,d);let Ue=kn(le,Ni,e);return Lt(E.updateTypeReferenceNode(Ue,Ue.typeName,Ue.typeArguments))}case 181:return Lt(E.updateConstructSignature(le,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 177:{let Ue=E.createConstructorDeclaration(Uo(le),cn(le,le.parameters,0),void 0);return Lt(Ue)}case 175:{if(eo(le.name))return Lt(void 0);let Ue=E.createMethodDeclaration(Uo(le),void 0,le.name,le.questionToken,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le),void 0);return Lt(Ue)}case 178:return eo(le.name)?Lt(void 0):Lt(E.updateGetAccessorDeclaration(le,Uo(le),le.name,gn(le,Lp(le,2)),Ge(le),void 0));case 179:return eo(le.name)?Lt(void 0):Lt(E.updateSetAccessorDeclaration(le,Uo(le),le.name,gn(le,Lp(le,2)),void 0));case 173:return eo(le.name)?Lt(void 0):Lt(E.updatePropertyDeclaration(le,Uo(le),le.name,le.questionToken,Ge(le),je(le)));case 172:return eo(le.name)?Lt(void 0):Lt(E.updatePropertySignature(le,Uo(le),le.name,le.questionToken,Ge(le)));case 174:return eo(le.name)?Lt(void 0):Lt(E.updateMethodSignature(le,Uo(le),le.name,le.questionToken,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 180:return Lt(E.updateCallSignature(le,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 182:return Lt(E.updateIndexSignature(le,Uo(le),cn(le,le.parameters),st(le.type,Ni,Ri)||E.createKeywordTypeNode(133)));case 261:return Qo(le.name)?ri(le.name):(dt=!0,v=!0,Lt(E.updateVariableDeclaration(le,le.name,void 0,Ge(le),je(le))));case 169:return Pr(le)&&(le.default||le.constraint)?Lt(E.updateTypeParameterDeclaration(le,le.modifiers,le.name,void 0,void 0)):Lt(kn(le,Ni,e));case 195:{let Ue=st(le.checkType,Ni,Ri),Rt=st(le.extendsType,Ni,Ri),It=d;d=le.trueType;let Ot=st(le.trueType,Ni,Ri);d=It;let nt=st(le.falseType,Ni,Ri);return C.assert(Ue),C.assert(Rt),C.assert(Ot),C.assert(nt),Lt(E.updateConditionalTypeNode(le,Ue,Rt,Ot,nt))}case 185:return Lt(E.updateFunctionTypeNode(le,Xn(le.typeParameters,Ni,sl),cn(le,le.parameters),C.checkDefined(st(le.type,Ni,Ri))));case 186:return Lt(E.updateConstructorTypeNode(le,Uo(le),Xn(le.typeParameters,Ni,sl),cn(le,le.parameters),C.checkDefined(st(le.type,Ni,Ri))));case 206:return ry(le)?Lt(E.updateImportTypeNode(le,E.updateLiteralTypeNode(le.argument,Di(le,le.argument.literal)),le.attributes,le.qualifier,Xn(le.typeArguments,Ni,Ri),le.isTypeOf)):Lt(le);default:C.assertNever(le,`Attempted to process unhandled node kind: ${C.formatSyntaxKind(le.kind)}`)}return OI(le)&&ca(F,le.pos).line===ca(F,le.end).line&&Cr(le,1),Lt(kn(le,Ni,e));function Lt(Ue){return Ue&&Fe&&oy(le)&&qi(le),_t(le)&&(d=ht),Fe&&!v&&(r=ne),dt&&(v=it),Ue===le?Ue:Ue&&jr(ir(Ue,le),le)}}function Pr(le){return le.parent.kind===175&&Lp(le.parent,2)}function Ci(le){if(!nHe(le)||$o(le))return;switch(le.kind){case 279:return Yi(le.parent)&&(s=!0),u=!0,E.updateExportDeclaration(le,le.modifiers,le.isTypeOnly,le.exportClause,Di(le,le.moduleSpecifier),Zr(le.attributes));case 278:{if(Yi(le.parent)&&(s=!0),u=!0,le.expression.kind===80)return le;{let ne=E.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:le}),k=le;let Fe=Ge(le),it=E.createVariableDeclaration(ne,void 0,Fe,void 0);k=void 0;let dt=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([it],2));return ir(dt,le),Qk(le),[dt,E.updateExportAssignment(le,le.modifiers,ne)]}}}let ht=mn(le);return _.set(Wu(le),ht),le}function $e(le){if(Bc(le)||Lp(le,2048)||!bm(le))return le;let ht=E.createModifiersFromModifierFlags(Gd(le)&131039);return E.replaceModifiers(le,ht)}function At(le,ht,ne,Fe){let it=E.updateModuleDeclaration(le,ht,ne,Fe);if(gu(it)||it.flags&32)return it;let dt=E.createModuleDeclaration(it.modifiers,it.name,it.body,it.flags|32);return jr(dt,it),bt(dt,it),dt}function mn(le){if(g)for(;uN(g,le););if($o(le))return;switch(le.kind){case 272:return lo(le);case 273:return zt(le)}if(rd(le)&&We(le)||i_(le)||Yo(le)&&J.isImplementationOfOverload(le))return;let ht;_t(le)&&(ht=d,d=le);let ne=Ow(le),Fe=r;ne&&(r=tT(le));let it=i;switch(le.kind){case 266:{i=!1;let Lt=dt(E.updateTypeAliasDeclaration(le,Uo(le),le.name,Xn(le.typeParameters,Ni,sl),C.checkDefined(st(le.type,Ni,Ri))));return i=it,Lt}case 265:return dt(E.updateInterfaceDeclaration(le,Uo(le),le.name,Kn(le,le.typeParameters),Ft(le.heritageClauses),Xn(le.members,Ni,l1)));case 263:{let Lt=dt(E.updateFunctionDeclaration(le,Uo(le),void 0,le.name,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le),void 0));if(Lt&&J.isExpandoFunctionDeclaration(le)&&at(le)){let Ue=J.getPropertiesOfContainerFunction(le);ie&&K(le);let Rt=$0.createModuleDeclaration(void 0,Lt.name||E.createIdentifier("_default"),E.createModuleBlock([]),32);us(Rt,d),Rt.locals=da(Ue),Rt.symbol=Ue[0].parent;let It=[],Ot=Ui(Ue,_e=>{if(!RI(_e.valueDeclaration))return;let B=Vi(_e.escapedName);if(!pp(B,99))return;r=tT(_e.valueDeclaration);let Ae=J.createTypeOfDeclaration(_e.valueDeclaration,Rt,Ww,Fw|2,N);r=Fe;let te=pI(B),xt=te?E.getGeneratedNameForNode(_e.valueDeclaration):E.createIdentifier(B);te&&It.push([xt,B]);let Xt=E.createVariableDeclaration(xt,void 0,Ae,void 0);return E.createVariableStatement(te?void 0:[E.createToken(95)],E.createVariableDeclarationList([Xt]))});It.length?Ot.push(E.createExportDeclaration(void 0,!1,E.createNamedExports(Vt(It,([_e,B])=>E.createExportSpecifier(!1,_e,B))))):Ot=Ui(Ot,_e=>E.replaceModifiers(_e,0));let nt=E.createModuleDeclaration(Uo(le),le.name,E.createModuleBlock(Ot),32);if(!Lp(Lt,2048))return[Lt,nt];let Kt=E.createModifiersFromModifierFlags(Gd(Lt)&-2081|128),Sr=E.updateFunctionDeclaration(Lt,Kt,void 0,Lt.name,Lt.typeParameters,Lt.parameters,Lt.type,void 0),Oe=E.updateModuleDeclaration(nt,Kt,nt.name,nt.body),Nt=E.createExportAssignment(void 0,!1,nt.name);return Yi(le.parent)&&(s=!0),u=!0,[Sr,Oe,Nt]}else return Lt}case 268:{i=!1;let Lt=le.body;if(Lt&&Lt.kind===269){let Ue=l,Rt=u;u=!1,l=!1;let It=Xn(Lt.statements,Ci,ji),Ot=Ai(It);le.flags&33554432&&(l=!1),!N_(le)&&!Mn(Ot)&&!u&&(l?Ot=E.createNodeArray([...Ot,cw(E)]):Ot=Xn(Ot,$e,ji));let nt=E.updateModuleBlock(Lt,Ot);i=it,l=Ue,u=Rt;let Kt=Uo(le);return dt(At(le,Kt,f1(le)?Di(le,le.name):le.name,nt))}else{i=it;let Ue=Uo(le);i=!1,st(Lt,Ci);let Rt=Wu(Lt),It=_.get(Rt);return _.delete(Rt),dt(At(le,Ue,le.name,It))}}case 264:{P=le.name,k=le;let Lt=E.createNodeArray(Uo(le)),Ue=Kn(le,le.typeParameters),Rt=gg(le),It;if(Rt){let _e=r;It=rL(Ki(Rt.parameters,B=>{if(!di(B,31)||$o(B))return;if(r=tT(B),B.name.kind===80)return ir(E.createPropertyDeclaration(Uo(B),B.name,B.questionToken,Ge(B),je(B)),B);return Ae(B.name);function Ae(te){let xt;for(let Xt of te.elements)Kc(Xt)||(Qo(Xt.name)&&(xt=so(xt,Ae(Xt.name))),xt=xt||[],xt.push(E.createPropertyDeclaration(Uo(B),Xt.name,void 0,Ge(Xt),void 0)));return xt}})),r=_e}let nt=vt(le.members,_e=>!!_e.name&&eo(_e.name))?[E.createPropertyDeclaration(void 0,E.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Kt=J.createLateBoundIndexSignatures(le,d,Ww,Fw,N),Sr=so(so(so(nt,Kt),It),Xn(le.members,Ni,Tc)),Oe=E.createNodeArray(Sr),Nt=lh(le);if(Nt&&!Ds(Nt.expression)&&Nt.expression.kind!==106){let _e=le.name?Vi(le.name.escapedText):"default",B=E.createUniqueName(`${_e}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Nt,typeName:le.name});let Ae=E.createVariableDeclaration(B,void 0,J.createTypeOfExpression(Nt.expression,le,Ww,Fw,N),void 0),te=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([Ae],2)),xt=E.createNodeArray(Vt(le.heritageClauses,Xt=>{if(Xt.token===96){let Le=r;r=tT(Xt.types[0]);let gt=E.updateHeritageClause(Xt,Vt(Xt.types,Bt=>E.updateExpressionWithTypeArguments(Bt,B,Xn(Bt.typeArguments,Ni,Ri))));return r=Le,gt}return E.updateHeritageClause(Xt,Xn(E.createNodeArray(Un(Xt.types,Le=>Ds(Le.expression)||Le.expression.kind===106)),Ni,dy))}));return[te,dt(E.updateClassDeclaration(le,Lt,le.name,Ue,xt,Oe))]}else{let _e=Ft(le.heritageClauses);return dt(E.updateClassDeclaration(le,Lt,le.name,Ue,_e,Oe))}}case 244:return dt(dr(le));case 267:return dt(E.updateEnumDeclaration(le,E.createNodeArray(Uo(le)),le.name,E.createNodeArray(Ui(le.members,Lt=>{if($o(Lt))return;let Ue=J.getEnumMemberValue(Lt),Rt=Ue?.value;ie&&Lt.initializer&&Ue?.hasExternalReferences&&!va(Lt.name)&&e.addDiagnostic(Ar(Lt,f.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let It=Rt===void 0?void 0:typeof Rt=="string"?E.createStringLiteral(Rt):Rt<0?E.createPrefixUnaryExpression(41,E.createNumericLiteral(-Rt)):E.createNumericLiteral(Rt);return ir(E.updateEnumMember(Lt,Lt.name,It),Lt)}))))}return C.assertNever(le,`Unhandled top-level node in declaration emit: ${C.formatSyntaxKind(le.kind)}`);function dt(Lt){return _t(le)&&(d=ht),ne&&(r=Fe),le.kind===268&&(i=it),Lt===le?Lt:(k=void 0,P=void 0,Lt&&jr(ir(Lt,le),le))}}function dr(le){if(!Je(le.declarationList.declarations,Wt))return;let ht=Xn(le.declarationList.declarations,Ni,yi);if(!et(ht))return;let ne=E.createNodeArray(Uo(le)),Fe;return JL(le.declarationList)||qL(le.declarationList)?(Fe=E.createVariableDeclarationList(ht,2),jr(Fe,le.declarationList),bt(Fe,le.declarationList),Dc(Fe,le.declarationList)):Fe=E.updateVariableDeclarationList(le.declarationList,ht),E.updateVariableStatement(le,ne,Fe)}function ri(le){return la(Ui(le.elements,ht=>ai(ht)))}function ai(le){if(le.kind!==233&&le.name)return Wt(le)?Qo(le.name)?ri(le.name):E.createVariableDeclaration(le.name,void 0,Ge(le),void 0):void 0}function qi(le){let ht;v||(ht=r,r=Uae(le)),P=le.name,C.assert(oy(le));let Fe=le.name.expression;en(Fe,d),v||(r=ht),P=void 0}function $o(le){return!!ye&&!!le&&yte(le,F)}function Ia(le){return ll(le)||fc(le)}function Mn(le){return vt(le,Ia)}function Uo(le){let ht=Gd(le),ne=ot(le);return ht===ne?iP(le.modifiers,Fe=>ni(Fe,Aa),Aa):E.createModifiersFromModifierFlags(ne)}function ot(le){let ht=130030,ne=i&&!eHe(le)?128:0,Fe=le.parent.kind===308;return(!Fe||o&&Fe&&Gc(le.parent))&&(ht^=128,ne=0),KSe(le,ht,ne)}function Ft(le){return E.createNodeArray(Un(Vt(le,ht=>E.updateHeritageClause(ht,Xn(E.createNodeArray(Un(ht.types,ne=>Ds(ne.expression)||ht.token===96&&ne.expression.kind===106)),Ni,dy))),ht=>ht.types&&!!ht.types.length))}}function eHe(e){return e.kind===265}function tHe(e,t,r,i){return e.createModifiersFromModifierFlags(KSe(t,r,i))}function KSe(e,t=131070,r=0){let i=Gd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function XSe(e){switch(e.kind){case 173:case 172:return!Lp(e,2);case 170:case 261:return!0}return!1}function nHe(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}function rHe(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}function iHe(e){switch(e){case 200:return VU;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return jae;case 4:return Vae;default:return GU}}var Jae={scriptTransformers:ae,declarationTransformers:ae};function Kae(e,t,r){return{scriptTransformers:oHe(e,t,r),declarationTransformers:aHe(t)}}function oHe(e,t,r){if(r)return ae;let i=Ga(e),o=vu(e),s=Ok(e),l=[];return Xr(l,t&&Vt(t.before,$Se)),l.push(Iae),e.experimentalDecorators&&l.push(Dae),DW(e)&&l.push(Fae),i<99&&l.push(wae),!e.experimentalDecorators&&(i<99||!s)&&l.push(Cae),l.push(xae),i<8&&l.push(kae),i<7&&l.push(Lae),i<6&&l.push(Pae),i<5&&l.push(Mae),i<4&&l.push(Nae),i<3&&l.push(zae),i<2&&(l.push(Bae),l.push(Gae)),l.push(iHe(o)),Xr(l,t&&Vt(t.after,$Se)),l}function aHe(e){let t=[];return t.push(jU),Xr(t,e&&Vt(e.afterDeclarations,lHe)),t}function sHe(e){return t=>xie(t)?e.transformBundle(t):e.transformSourceFile(t)}function YSe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):sHe(i)}}function $Se(e){return YSe(e,hh)}function lHe(e){return YSe(e,(t,r)=>r)}function uP(e,t){return t}function zw(e,t,r){r(e,t)}function Bw(e,t,r,i,o,s,l){var u,d;let g=new Array(359),_,v,E,A=0,R=[],N=[],P=[],k=[],F=0,O=!1,G=[],j=0,J,Z,q=uP,ye=zw,ie=0,K=[],pe={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Cu(()=>aie(pe)),startLexicalEnvironment:ce,suspendLexicalEnvironment:De,resumeLexicalEnvironment:ge,endLexicalEnvironment:je,setLexicalEnvironmentFlags:Ge,getLexicalEnvironmentFlags:We,hoistVariableDeclaration:Ne,hoistFunctionDeclaration:Be,addInitializationStatement:lt,startBlockScope:at,endBlockScope:Wt,addBlockScopedVariable:cn,requestEmitHelper:gn,readEmitHelpers:Kn,enableSubstitution:Y,enableEmitNotification:Se,isSubstitutionEnabled:Ce,isEmitNotificationEnabled:re,get onSubstituteNode(){return q},set onSubstituteNode(en){C.assert(ie<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(en!==void 0,"Value must not be 'undefined'"),q=en},get onEmitNode(){return ye},set onEmitNode(en){C.assert(ie<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(en!==void 0,"Value must not be 'undefined'"),ye=en},addDiagnostic(en){K.push(en)}};for(let en of o)YV(Wn(jo(en)));Rl("beforeTransform");let de=s.map(en=>en(pe)),fe=en=>{for(let ir of de)en=ir(en);return en};ie=1;let ve=[];for(let en of o)(u=xr)==null||u.push(xr.Phase.Emit,"transformNodes",en.kind===308?{path:en.path}:{kind:en.kind,pos:en.pos,end:en.end}),ve.push((l?fe:xe)(en)),(d=xr)==null||d.pop();return ie=2,Rl("afterTransform"),Lf("transformTime","beforeTransform","afterTransform"),{transformed:ve,substituteNode:Xe,emitNodeWithNotification:be,isEmitNotificationEnabled:re,dispose:_t,diagnostics:K};function xe(en){return en&&(!Yi(en)||!en.isDeclarationFile)?fe(en):en}function Y(en){C.assert(ie<2,"Cannot modify the transformation context after transformation has completed."),g[en]|=1}function Ce(en){return(g[en.kind]&1)!==0&&(Qa(en)&8)===0}function Xe(en,ir){return C.assert(ie<3,"Cannot substitute a node after the result is disposed."),ir&&Ce(ir)&&q(en,ir)||ir}function Se(en){C.assert(ie<2,"Cannot modify the transformation context after transformation has completed."),g[en]|=2}function re(en){return(g[en.kind]&2)!==0||(Qa(en)&4)!==0}function be(en,ir,Di){C.assert(ie<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),ir&&(re(ir)?ye(en,ir,Di):Di(en,ir))}function Ne(en){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed.");let ir=Cr(r.createVariableDeclaration(en),128);_?_.push(ir):_=[ir],A&1&&(A|=2)}function Be(en){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),Cr(en,2097152),v?v.push(en):v=[en]}function lt(en){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),Cr(en,2097152),E?E.push(en):E=[en]}function ce(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"Lexical environment is suspended."),R[F]=_,N[F]=v,P[F]=E,k[F]=A,F++,_=void 0,v=void 0,E=void 0,A=0}function De(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"Lexical environment is already suspended."),O=!0}function ge(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(O,"Lexical environment is not suspended."),O=!1}function je(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"Lexical environment is suspended.");let en;if(_||v||E){if(v&&(en=[...v]),_){let ir=r.createVariableStatement(void 0,r.createVariableDeclarationList(_));Cr(ir,2097152),en?en.push(ir):en=[ir]}E&&(en?en=[...en,...E]:en=[...E])}return F--,_=R[F],v=N[F],E=P[F],A=k[F],F===0&&(R=[],N=[],P=[],k=[]),en}function Ge(en,ir){A=ir?A|en:A&~en}function We(){return A}function at(){C.assert(ie>0,"Cannot start a block scope during initialization."),C.assert(ie<2,"Cannot start a block scope after transformation has completed."),G[j]=J,j++,J=void 0}function Wt(){C.assert(ie>0,"Cannot end a block scope during initialization."),C.assert(ie<2,"Cannot end a block scope after transformation has completed.");let en=vt(J)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(J.map(ir=>r.createVariableDeclaration(ir)),1))]:void 0;return j--,J=G[j],j===0&&(G=[]),en}function cn(en){C.assert(j>0,"Cannot add a block scoped variable outside of an iteration body."),(J||(J=[])).push(en)}function gn(en){if(C.assert(ie>0,"Cannot modify the transformation context during initialization."),C.assert(ie<2,"Cannot modify the transformation context after transformation has completed."),C.assert(!en.scoped,"Cannot request a scoped emit helper."),en.dependencies)for(let ir of en.dependencies)gn(ir);Z=Bn(Z,en)}function Kn(){C.assert(ie>0,"Cannot modify the transformation context during initialization."),C.assert(ie<2,"Cannot modify the transformation context after transformation has completed.");let en=Z;return Z=void 0,en}function _t(){if(ie<3){for(let en of o)YV(Wn(jo(en)));_=void 0,R=void 0,v=void 0,N=void 0,q=void 0,ye=void 0,Z=void 0,ie=3}}}var Gw={factory:L,getCompilerOptions:()=>({}),getEmitResolver:ha,getEmitHost:ha,getEmitHelperFactory:ha,startLexicalEnvironment:gs,resumeLexicalEnvironment:gs,suspendLexicalEnvironment:gs,endLexicalEnvironment:r1,setLexicalEnvironmentFlags:gs,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:gs,hoistFunctionDeclaration:gs,addInitializationStatement:gs,startBlockScope:gs,endBlockScope:r1,addBlockScopedVariable:gs,requestEmitHelper:gs,readEmitHelpers:ha,enableSubstitution:gs,enableEmitNotification:gs,isSubstitutionEnabled:ha,isEmitNotificationEnabled:ha,onSubstituteNode:uP,onEmitNode:zw,addDiagnostic:gs},QSe=dHe();function Xae(e){return El(e,".tsbuildinfo")}function UU(e,t,r,i=!1,o,s){let l=Mo(r)?r:sW(e,r,i),u=e.getCompilerOptions();if(!o)if(u.outFile){if(l.length){let d=L.createBundle(l),g=t(pP(d,e,i),d);if(g)return g}}else for(let d of l){let g=t(pP(d,e,i),d);if(g)return g}if(s){let d=nT(u);if(d)return t({buildInfoPath:d},void 0)}}function nT(e){let t=e.configFilePath;if(!cHe(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=e.outFile,i;if(r)i=bu(r);else{if(!t)return;let o=bu(t);i=e.outDir?e.rootDir?rb(e.outDir,lf(e.rootDir,o,!0)):Qr(e.outDir,xc(o)):o}return i+".tsbuildinfo"}function cHe(e){return x1(e)||!!e.tscBuild}function Yae(e,t){let r=e.outFile,i=e.emitDeclarationOnly?void 0:r,o=i&&ZSe(i,e),s=t||hp(e)?bu(r)+".d.ts":void 0,l=s&&AW(e)?s+".map":void 0;return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l}}function pP(e,t,r){let i=t.getCompilerOptions();if(e.kind===309)return Yae(i,r);{let o=Ane(e.fileName,t,Vw(e.fileName,i)),s=Of(e),l=s&&Zg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,d=!u||Of(e)?void 0:ZSe(u,i),g=r||hp(i)&&!s?Ine(e.fileName,t):void 0,_=g&&AW(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:d,declarationFilePath:g,declarationMapPath:_}}}function ZSe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function Vw(e,t){return El(e,".json")?".json":t.jsx===1&&Yl(e,[".jsx",".tsx"])?".jsx":Yl(e,[".mts",".mjs"])?".mjs":Yl(e,[".cts",".cjs"])?".cjs":".js"}function eEe(e,t,r,i){return r?rb(r,lf(i(),e,t)):e}function fP(e,t,r,i=()=>xE(t,r)){return HU(e,t.options,r,i)}function HU(e,t,r,i){return rv(eEe(e,r,t.declarationDir||t.outDir,i),oW(e))}function tEe(e,t,r,i=()=>xE(t,r)){if(t.options.emitDeclarationOnly)return;let o=El(e,".json"),s=qU(e,t.options,r,i);return!o||Zg(e,s,C.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function qU(e,t,r,i){return rv(eEe(e,r,t.outDir,i),Vw(e,t))}function nEe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||ae}}function rEe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s}=Yae(e.options,!1);t(r),t(i),t(o),t(s)}function iEe(e,t,r,i,o){if(ad(t))return;let s=tEe(t,e,r,o);if(i(s),!El(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),hp(e.options))){let l=fP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function mP(e,t,r,i,o){let s;return e.rootDir?(s=To(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=ci(Bd(e.configFilePath)),o?.(s)):s=ise(t(),r,i),s&&s[s.length-1]!==Js&&(s+=Js),s}function xE({options:e,fileNames:t},r){return mP(e,()=>Un(t,i=>!(e.noEmitForJsFiles&&Yl(i,iD))&&!ad(i)),ci(Bd(C.checkDefined(e.configFilePath))),Fd(!r))}function pF(e,t){let{addOutput:r,getOutputs:i}=nEe();if(e.options.outFile)rEe(e,r);else{let o=Cu(()=>xE(e,t));for(let s of e.fileNames)iEe(e,s,t,r,o)}return r(nT(e.options)),i()}function oEe(e,t,r){t=ya(t),C.assert(jn(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=nEe();return e.options.outFile?rEe(e,i):iEe(e,t,r,i),o()}function JU(e,t){if(e.options.outFile){let{jsFilePath:o,declarationFilePath:s}=Yae(e.options,!1);return C.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=Cu(()=>xE(e,t));for(let o of e.fileNames){if(ad(o))continue;let s=tEe(o,e,t,r);if(s)return s;if(!El(o,".json")&&hp(e.options))return fP(o,e,t,r)}let i=nT(e.options);return i||C.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function KU(e,t){return!!t&&!!e}function XU(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u,d){var g=t.getCompilerOptions(),_=g.sourceMap||g.inlineSourceMap||AW(g)?[]:void 0,v=g.listEmittedFiles?[]:void 0,E=aM(),A=tv(g),R=Ek(A),{enter:N,exit:P}=Vz("printTime","beforePrint","afterPrint"),k=!1;return N(),UU(t,F,sW(t,r,u),u,l,!r&&!d),P(),{emitSkipped:k,diagnostics:E.getDiagnostics(),emittedFiles:v,sourceMaps:_};function F({jsFilePath:de,sourceMapFilePath:fe,declarationFilePath:ve,declarationMapPath:xe,buildInfoPath:Y},Ce){var Xe,Se,re,be,Ne,Be;(Xe=xr)==null||Xe.push(xr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:de}),G(Ce,de,fe),(Se=xr)==null||Se.pop(),(re=xr)==null||re.push(xr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:ve}),j(Ce,ve,xe),(be=xr)==null||be.pop(),(Ne=xr)==null||Ne.push(xr.Phase.Emit,"emitBuildInfo",{buildInfoPath:Y}),O(Y),(Be=xr)==null||Be.pop()}function O(de){if(!de||r)return;if(t.isEmitBlocked(de)){k=!0;return}let fe=t.getBuildInfo()||{version:Me};cW(t,E,de,$ae(fe),!1,void 0,{buildInfo:fe}),v?.push(de)}function G(de,fe,ve){if(!de||s||!fe)return;if(t.isEmitBlocked(fe)||g.noEmit){k=!0;return}(Yi(de)?[de]:Un(de.sourceFiles,U6)).forEach(Xe=>{(g.noCheck||!EM(Xe,g))&&Z(Xe)});let xe=Bw(e,t,L,g,[de],i,!1),Y={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:g.noEmitHelpers,module:vu(g),moduleResolution:ru(g),target:Ga(g),sourceMap:g.sourceMap,inlineSourceMap:g.inlineSourceMap,inlineSources:g.inlineSources,extendedDiagnostics:g.extendedDiagnostics},Ce=Ob(Y,{hasGlobalName:e.hasGlobalName,onEmitNode:xe.emitNodeWithNotification,isEmitNotificationEnabled:xe.isEmitNotificationEnabled,substituteNode:xe.substituteNode});C.assert(xe.transformed.length===1,"Should only see one output from the transform"),q(fe,ve,xe,Ce,g),xe.dispose(),v&&(v.push(fe),ve&&v.push(ve))}function j(de,fe,ve){if(!de||s===0)return;if(!fe){(s||g.emitDeclarationOnly)&&(k=!0);return}let xe=Yi(de)?[de]:de.sourceFiles,Y=u?xe:Un(xe,U6),Ce=g.outFile?[L.createBundle(Y)]:Y;Y.forEach(re=>{(s&&!hp(g)||g.noCheck||KU(s,u)||!EM(re,g))&&J(re)});let Xe=Bw(e,t,L,g,Ce,o,!1);if(et(Xe.diagnostics))for(let re of Xe.diagnostics)E.add(re);let Se=!!Xe.diagnostics&&!!Xe.diagnostics.length||!!t.isEmitBlocked(fe)||!!g.noEmit;if(k=k||Se,!Se||u){C.assert(Xe.transformed.length===1,"Should only see one output from the decl transform");let re={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:!0,module:g.module,moduleResolution:g.moduleResolution,target:g.target,sourceMap:s!==2&&g.declarationMap,inlineSourceMap:g.inlineSourceMap,extendedDiagnostics:g.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},be=Ob(re,{hasGlobalName:e.hasGlobalName,onEmitNode:Xe.emitNodeWithNotification,isEmitNotificationEnabled:Xe.isEmitNotificationEnabled,substituteNode:Xe.substituteNode}),Ne=q(fe,ve,Xe,be,{sourceMap:re.sourceMap,sourceRoot:g.sourceRoot,mapRoot:g.mapRoot,extendedDiagnostics:g.extendedDiagnostics});v&&(Ne&&v.push(fe),ve&&v.push(ve))}Xe.dispose()}function J(de){if(ll(de)){de.expression.kind===80&&e.collectLinkedAliases(de.expression,!0);return}else if(iu(de)){e.collectLinkedAliases(de.propertyName||de.name,!0);return}Jo(de,J)}function Z(de){Mu(de)||UI(de,fe=>{if(Bc(fe)&&!(Zy(fe)&32)||vl(fe))return"skip";e.markLinkedReferences(fe)})}function q(de,fe,ve,xe,Y){let Ce=ve.transformed[0],Xe=Ce.kind===309?Ce:void 0,Se=Ce.kind===308?Ce:void 0,re=Xe?Xe.sourceFiles:[Se],be;ye(Y,Ce)&&(be=sae(t,xc(Bd(de)),ie(Y),K(Y,de,Se),Y)),Xe?xe.writeBundle(Xe,R,be):xe.writeFile(Se,R,be);let Ne;if(be){_&&_.push({inputSourceFileNames:be.getSources(),sourceMap:be.toJSON()});let ce=pe(Y,be,de,fe,Se);if(ce&&(R.isAtStartOfLine()||R.rawWrite(A),Ne=R.getTextPos(),R.writeComment(`//# sourceMappingURL=${ce}`)),fe){let De=be.toString();cW(t,E,fe,De,!1,re)}}else R.writeLine();let Be=R.getText(),lt={sourceMapUrlPos:Ne,diagnostics:ve.diagnostics};return cW(t,E,de,Be,!!g.emitBOM,re,lt),R.clear(),!lt.skippedDtsWrite}function ye(de,fe){return(de.sourceMap||de.inlineSourceMap)&&(fe.kind!==308||!El(fe.fileName,".json"))}function ie(de){let fe=Bd(de.sourceRoot||"");return fe&&Hc(fe)}function K(de,fe,ve){if(de.sourceRoot)return t.getCommonSourceDirectory();if(de.mapRoot){let xe=Bd(de.mapRoot);return ve&&(xe=ci(lW(ve.fileName,t,xe))),Fh(xe)===0&&(xe=Qr(t.getCommonSourceDirectory(),xe)),xe}return ci(ya(fe))}function pe(de,fe,ve,xe,Y){if(de.inlineSourceMap){let Xe=fe.toString();return`data:application/json;base64,${Gne(Uc,Xe)}`}let Ce=xc(Bd(C.checkDefined(xe)));if(de.mapRoot){let Xe=Bd(de.mapRoot);return Y&&(Xe=ci(lW(Y.fileName,t,Xe))),Fh(Xe)===0?(Xe=Qr(t.getCommonSourceDirectory(),Xe),encodeURI(ER(ci(ya(ve)),Qr(Xe,Ce),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Qr(Xe,Ce))}return encodeURI(Ce)}}function $ae(e){return JSON.stringify(e)}function YU(e,t){return iV(e,t)}var Qae={hasGlobalName:ha,getReferencedExportContainer:ha,getReferencedImportDeclaration:ha,getReferencedDeclarationWithCollidingName:ha,isDeclarationWithCollidingName:ha,isValueAliasDeclaration:ha,isReferencedAliasDeclaration:ha,isTopLevelValueImportEqualsWithEntityName:ha,hasNodeCheckFlag:ha,isDeclarationVisible:ha,isLateBound:e=>!1,collectLinkedAliases:ha,markLinkedReferences:ha,isImplementationOfOverload:ha,requiresAddingImplicitUndefined:ha,isExpandoFunctionDeclaration:ha,getPropertiesOfContainerFunction:ha,createTypeOfDeclaration:ha,createReturnTypeOfSignatureDeclaration:ha,createTypeOfExpression:ha,createLiteralConstValue:ha,isSymbolAccessible:ha,isEntityNameVisible:ha,getConstantValue:ha,getEnumMemberValue:ha,getReferencedValueDeclaration:ha,getReferencedValueDeclarations:ha,getTypeReferenceSerializationKind:ha,isOptionalParameter:ha,isArgumentsLocalBinding:ha,getExternalModuleFileFromDeclaration:ha,isLiteralConstDeclaration:ha,getJsxFactoryEntity:ha,getJsxFragmentFactoryEntity:ha,isBindingCapturedByNode:ha,getDeclarationStatementsForSourceFile:ha,isImportRequiredByAugmentation:ha,isDefinitelyReferenceToGlobalSymbolObject:ha,createLateBoundIndexSignatures:ha,symbolToDeclarations:ha},Zae=Cu(()=>Ob({})),V1=Cu(()=>Ob({removeComments:!0})),ese=Cu(()=>Ob({removeComments:!0,neverAsciiEscape:!0})),$U=Cu(()=>Ob({removeComments:!0,omitTrailingSemicolon:!0}));function Ob(e={},t={}){var{hasGlobalName:r,onEmitNode:i=zw,isEmitNotificationEnabled:o,substituteNode:s=uP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:g,onBeforeEmitToken:_,onAfterEmitToken:v}=t,E=!!e.extendedDiagnostics,A=!!e.omitBraceSourceMapPositions,R=tv(e),N=vu(e),P=new Map,k,F,O,G,j,J,Z,q,ye,ie,K,pe,de,fe,ve,xe=e.preserveSourceNewlines,Y,Ce,Xe,Se=gC,re,be=!0,Ne,Be,lt=-1,ce,De=-1,ge=-1,je=-1,Ge=-1,We,at,Wt=!1,cn=!!e.removeComments,gn,Kn,{enter:_t,exit:en}=cbe(E,"commentTime","beforeComment","afterComment"),ir=L.parenthesizer,Di={select:D=>D===0?ir.parenthesizeLeadingTypeArgument:void 0},lo=Pc();return $o(),{printNode:zt,printList:Zr,printFile:Ni,printBundle:Ai,writeNode:Pr,writeList:Ci,writeFile:At,writeBundle:$e};function zt(D,me,Et){switch(D){case 0:C.assert(Yi(me),"Expected a SourceFile node.");break;case 2:C.assert(He(me),"Expected an Identifier node.");break;case 1:C.assert(St(me),"Expected an Expression node.");break}switch(me.kind){case 308:return Ni(me);case 309:return Ai(me)}return Pr(D,me,Et,mn()),dr()}function Zr(D,me,Et){return Ci(D,me,Et,mn()),dr()}function Ai(D){return $e(D,mn(),void 0),dr()}function Ni(D){return At(D,mn(),void 0),dr()}function Pr(D,me,Et,An){let vi=Ce;qi(An,void 0),ri(D,me,Et),$o(),Ce=vi}function Ci(D,me,Et,An){let vi=Ce;qi(An,void 0),Et&&ai(Et),Jr(void 0,me,D),$o(),Ce=vi}function $e(D,me,Et){re=!1;let An=Ce;qi(me,Et),Sv(D),qm(D),Kt(D),e2(D);for(let vi of D.sourceFiles)ri(0,vi,vi);$o(),Ce=An}function At(D,me,Et){re=!0;let An=Ce;qi(me,Et),Sv(D),qm(D),ri(0,D,D),$o(),Ce=An}function mn(){return Xe||(Xe=Ek(R))}function dr(){let D=Xe.getText();return Xe.clear(),D}function ri(D,me,Et){Et&&ai(Et),ne(D,me,void 0)}function ai(D){k=D,We=void 0,at=void 0,D&&cS(D)}function qi(D,me){D&&e.omitTrailingSemicolon&&(D=VG(D)),Ce=D,Ne=me,be=!Ce||!Ne}function $o(){F=[],O=[],G=[],j=new Set,J=[],Z=new Map,q=[],ye=0,ie=[],K=0,pe=[],de=void 0,fe=[],ve=void 0,k=void 0,We=void 0,at=void 0,qi(void 0,void 0)}function Ia(){return We||(We=og(C.checkDefined(k)))}function Mn(D,me){D!==void 0&&ne(4,D,me)}function Uo(D){D!==void 0&&ne(2,D,void 0)}function ot(D,me){D!==void 0&&ne(1,D,me)}function Ft(D){ne(ka(D)?6:4,D)}function le(D){xe&&Wm(D)&4&&(xe=!1)}function ht(D){xe=D}function ne(D,me,Et){Kn=Et,dt(0,D,me)(D,me),Kn=void 0}function Fe(D){return!cn&&!Yi(D)}function it(D){return!be&&!Yi(D)&&!j6(D)}function dt(D,me,Et){switch(D){case 0:if(i!==zw&&(!o||o(Et)))return Ue;case 1:if(s!==uP&&(gn=s(me,Et)||Et)!==Et)return Kn&&(gn=Kn(gn)),nt;case 2:if(Fe(Et))return sS;case 3:if(it(Et))return nA;case 4:return Rt;default:return C.assertNever(D)}}function Lt(D,me,Et){return dt(D+1,me,Et)}function Ue(D,me){let Et=Lt(0,D,me);i(D,me,Et)}function Rt(D,me){if(l?.(me),xe){let Et=xe;le(me),It(D,me),ht(Et)}else It(D,me);u?.(me),Kn=void 0}function It(D,me,Et=!0){if(Et){let An=QV(me);if(An)return _e(D,me,An)}if(D===0)return TT(ma(me,Yi));if(D===2)return te(ma(me,He));if(D===6)return Nt(ma(me,ka),!0);if(D===3)return Ot(ma(me,sl));if(D===7)return p_(ma(me,hE));if(D===5)return C.assertNode(me,cj),bh(!0);if(D===4){switch(me.kind){case 16:case 17:case 18:return Nt(me,!1);case 80:return te(me);case 81:return xt(me);case 167:return Xt(me);case 168:return gt(me);case 169:return Bt(me);case 170:return gr(me);case 171:return tr(me);case 172:return Jn(me);case 173:return ft(me);case 174:return Mt(me);case 175:return jt(me);case 176:return Qt(me);case 177:return In(me);case 178:case 179:return yn(me);case 180:return wt(me);case 181:return En(me);case 182:return xn(me);case 183:return Ii(me);case 184:return ra(me);case 185:return sa(me);case 186:return Sc(me);case 187:return $s(me);case 188:return Ra(me);case 189:return Zl(me);case 190:return Lo(me);case 191:return is(me);case 193:return qa(me);case 194:return Zt(me);case 195:return As(me);case 196:return Hl(me);case 197:return sc(me);case 234:return ld(me);case 198:return vd();case 199:return Fs(me);case 200:return Ee(me);case 201:return $(me);case 202:return pt(me);case 203:return fa(me);case 204:return qt(me);case 205:return Ln(me);case 206:return fn(me);case 207:return ur(me);case 208:return si(me);case 209:return Dr(me);case 240:return Dg(me);case 241:return ln();case 242:return Cg(me);case 244:return Yc(me);case 243:return bh(!1);case 245:return bf(me);case 246:return u_(me);case 247:return ut(me);case 248:return tn(me);case 249:return an(me);case 250:return wn(me);case 251:return or(me);case 252:return Ti(me);case 253:return $i(me);case 254:return ta(me);case 255:return Eo(me);case 256:return Vo(me);case 257:return ml(me);case 258:return Ca(me);case 259:return cd(me);case 260:return Vp(me);case 261:return Tf(me);case 262:return Kf(me);case 263:return Ty(me);case 264:return Rn(me);case 265:return Lr(me);case 266:return Yn(me);case 267:return lr(me);case 268:return Oi(me);case 269:return Ro(me);case 270:return _i(me);case 271:return j_(me);case 272:return Do(me);case 273:return hl(me);case 274:return op(me);case 275:return Im(me);case 281:return pC(me);case 276:return Td(me);case 277:return xm(me);case 278:return jp(me);case 279:return fT(me);case 280:return QP(me);case 282:return fC(me);case 301:return V_(me);case 302:return mT(me);case 283:return;case 284:return WE(me);case 12:return zE(me);case 287:case 290:return ZP(me);case 288:case 291:return vx(me);case 292:return mC(me);case 293:return _T(me);case 294:return BE(me);case 295:return Tx(me);case 296:return Sx(me);case 297:return Ub(me);case 298:return bv(me);case 299:return Ey(me);case 300:return Ay(me);case 304:return Hb(me);case 305:return gT(me);case 306:return GE(me);case 307:return yT(me);case 308:return TT(me);case 309:return C.fail("Bundles should be printed using printBundle");case 310:return bT(me);case 311:return xy(me);case 313:return zr("*");case 314:return zr("?");case 315:return Ps(me);case 316:return co(me);case 317:return Go(me);case 318:return xl(me);case 192:case 319:return vf(me);case 320:return;case 321:return ns(me);case 323:return Au(me);case 324:return H_(me);case 328:case 333:case 338:return vT(me);case 329:case 330:return U_(me);case 331:case 332:return;case 334:case 335:case 336:case 337:return;case 339:return ap(me);case 340:return Jd(me);case 342:case 349:return Bu(me);case 341:case 343:case 344:case 345:case 350:case 351:return VE(me);case 346:return cl(me);case 347:return qd(me);case 348:return hC(me);case 352:return Iy(me);case 354:case 355:return}if(St(me)&&(D=1,s!==uP)){let An=s(D,me)||me;An!==me&&(me=An,Kn&&(me=Kn(me)))}}if(D===1)switch(me.kind){case 9:case 10:return Oe(me);case 11:case 14:case 15:return Nt(me,!1);case 80:return te(me);case 81:return xt(me);case 210:return Fn(me);case 211:return ro(me);case 212:return So(me);case 213:return Da(me);case 214:return Qs(me);case 215:return Ec(me);case 216:return mc(me);case 217:return Hs(me);case 218:return Pl(me);case 219:return vh(me);case 220:return Pd(me);case 221:return ze(me);case 222:return Jt(me);case 223:return er(me);case 224:return go(me);case 225:return Za(me);case 226:return Va(me);case 227:return lo(me);case 228:return tl(me);case 229:return Ll(me);case 230:return ql(me);case 231:return nf(me);case 232:return bd(me);case 233:return;case 235:return Gp(me);case 236:return Eu(me);case 234:return ld(me);case 239:return Jf(me);case 237:return B_(me);case 238:return C.fail("SyntheticExpression should never be printed.");case 283:return;case 285:return vv(me);case 286:return FE(me);case 289:return yx(me);case 353:return C.fail("SyntaxList should not be printed");case 354:return;case 356:return Qe(me);case 357:return jE(me);case 358:return C.fail("SyntheticReferenceExpression should not be printed")}if(Qu(me.kind))return JE(me,Wo);if(kB(me.kind))return JE(me,zr);C.fail(`Unhandled SyntaxKind: ${C.formatSyntaxKind(me.kind)}.`)}function Ot(D){Mn(D.name),Mr(),Wo("in"),Mr(),Mn(D.constraint)}function nt(D,me){let Et=Lt(1,D,me);C.assertIsDefined(gn),me=gn,gn=void 0,Et(D,me)}function Kt(D){let me=!1,Et=D.kind===309?D:void 0;if(Et&&N===0)return;let An=Et?Et.sourceFiles.length:1;for(let vi=0;vi<An;vi++){let wi=Et?Et.sourceFiles[vi]:D,Ao=Yi(wi)?wi:k,Li=e.noEmitHelpers||!!Ao&&Vie(Ao),Ja=Yi(wi)&&!re,_c=Sr(wi);if(_c)for(let Kd of _c){if(Kd.scoped){if(Et)continue}else{if(Li)continue;if(Ja){if(P.get(Kd.name))continue;P.set(Kd.name,!0)}}typeof Kd.text=="string"?Jm(Kd.text):Jm(Kd.text(bC)),me=!0}}return me}function Sr(D){let me=$V(D);return me&&Ap(me,sie)}function Oe(D){Nt(D,!1)}function Nt(D,me){let Et=Qb(D,void 0,e.neverAsciiEscape,me);(e.sourceMap||e.inlineSourceMap)&&(D.kind===11||sb(D.kind))?Dy(Et):oS(Et)}function _e(D,me,Et){switch(Et.kind){case 1:B(D,me,Et);break;case 0:Ae(D,me,Et);break}}function B(D,me,Et){Ex(`\${${Et.order}:`),It(D,me,!1),Ex("}")}function Ae(D,me,Et){C.assert(me.kind===243,`A tab stop cannot be attached to a node of kind ${C.formatSyntaxKind(me.kind)}.`),C.assert(D!==5,"A tab stop cannot be attached to an embedded statement."),Ex(`$${Et.order}`)}function te(D){(D.symbol?t2:Se)(xv(D,!1),D.symbol),Jr(D,sE(D),53776)}function xt(D){Se(xv(D,!1))}function Xt(D){Le(D.left),zr("."),Mn(D.right)}function Le(D){D.kind===80?ot(D):Mn(D)}function gt(D){zr("["),ot(D.expression,ir.parenthesizeExpressionOfComputedPropertyName),zr("]")}function Bt(D){Sh(D,D.modifiers),Mn(D.name),D.constraint&&(Mr(),Wo("extends"),Mr(),Mn(D.constraint)),D.default&&(Mr(),yp("="),Mr(),Mn(D.default))}function gr(D){Iu(D,D.modifiers,!0),Mn(D.dotDotDotToken),qb(D.name,qE),Mn(D.questionToken),D.parent&&D.parent.kind===318&&!D.name?Mn(D.type):Dm(D.type),ST(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,ir.parenthesizeExpressionForDisallowedComma)}function tr(D){zr("@"),ot(D.expression,ir.parenthesizeLeftSideOfAccess)}function Jn(D){Sh(D,D.modifiers),qb(D.name,yC),Mn(D.questionToken),Dm(D.type),xu()}function ft(D){Iu(D,D.modifiers,!0),Mn(D.name),Mn(D.questionToken),Mn(D.exclamationToken),Dm(D.type),ST(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name.end,D),xu()}function Mt(D){Sh(D,D.modifiers),Mn(D.name),Mn(D.questionToken),zu(D,Am,Th)}function jt(D){Iu(D,D.modifiers,!0),Mn(D.asteriskToken),Mn(D.name),Mn(D.questionToken),zu(D,Am,G_)}function Qt(D){Wo("static"),Km(D),Ye(D.body),Ny(D)}function In(D){Iu(D,D.modifiers,!1),Wo("constructor"),zu(D,Am,G_)}function yn(D){let me=Iu(D,D.modifiers,!0),Et=D.kind===178?139:153;z(Et,me,Wo,D),Mr(),Mn(D.name),zu(D,Am,G_)}function wt(D){zu(D,Am,Th)}function En(D){Wo("new"),Mr(),zu(D,Am,Th)}function xn(D){Iu(D,D.modifiers,!1),iS(D,D.parameters),Dm(D.type),xu()}function Ln(D){Mn(D.type),Mn(D.literal)}function ln(){xu()}function Ii(D){D.assertsModifier&&(Mn(D.assertsModifier),Mr()),Mn(D.parameterName),D.type&&(Mr(),Wo("is"),Mr(),Mn(D.type))}function ra(D){Mn(D.typeName),Xf(D,D.typeArguments)}function sa(D){zu(D,zo,Bl)}function zo(D){Pg(D,D.typeParameters),f_(D,D.parameters),Mr(),zr("=>")}function Bl(D){Mr(),Mn(D.type)}function xl(D){Wo("function"),ET(D,D.parameters),zr(":"),Mn(D.type)}function Ps(D){zr("?"),Mn(D.type)}function co(D){zr("!"),Mn(D.type)}function Go(D){Mn(D.type),zr("=")}function Sc(D){Sh(D,D.modifiers),Wo("new"),Mr(),zu(D,zo,Bl)}function $s(D){Wo("typeof"),Mr(),Mn(D.exprName),Xf(D,D.typeArguments)}function Ra(D){Km(D),Je(D.members,aS),zr("{");let me=Qa(D)&1?768:32897;Jr(D,D.members,me|524288),zr("}"),Ny(D)}function Zl(D){Mn(D.elementType,ir.parenthesizeNonArrayTypeOfPostfixType),zr("["),zr("]")}function vf(D){zr("..."),Mn(D.type)}function Lo(D){z(23,D.pos,zr,D);let me=Qa(D)&1?528:657;Jr(D,D.elements,me|524288,ir.parenthesizeElementTypeOfTupleType),z(24,D.elements.end,zr,D)}function fa(D){Mn(D.dotDotDotToken),Mn(D.name),Mn(D.questionToken),z(59,D.name.end,zr,D),Mr(),Mn(D.type)}function is(D){Mn(D.type,ir.parenthesizeTypeOfOptionalType),zr("?")}function qa(D){Jr(D,D.types,516,ir.parenthesizeConstituentTypeOfUnionType)}function Zt(D){Jr(D,D.types,520,ir.parenthesizeConstituentTypeOfIntersectionType)}function As(D){Mn(D.checkType,ir.parenthesizeCheckTypeOfConditionalType),Mr(),Wo("extends"),Mr(),Mn(D.extendsType,ir.parenthesizeExtendsTypeOfConditionalType),Mr(),zr("?"),Mr(),Mn(D.trueType),Mr(),zr(":"),Mr(),Mn(D.falseType)}function Hl(D){Wo("infer"),Mr(),Mn(D.typeParameter)}function sc(D){zr("("),Mn(D.type),zr(")")}function vd(){Wo("this")}function Fs(D){Xb(D.operator,Wo),Mr();let me=D.operator===148?ir.parenthesizeOperandOfReadonlyTypeOperator:ir.parenthesizeOperandOfTypeOperator;Mn(D.type,me)}function Ee(D){Mn(D.objectType,ir.parenthesizeNonArrayTypeOfPostfixType),zr("["),Mn(D.indexType),zr("]")}function $(D){let me=Qa(D);zr("{"),me&1?Mr():(cu(),q_()),D.readonlyToken&&(Mn(D.readonlyToken),D.readonlyToken.kind!==148&&Wo("readonly"),Mr()),zr("["),ne(3,D.typeParameter),D.nameType&&(Mr(),Wo("as"),Mr(),Mn(D.nameType)),zr("]"),D.questionToken&&(Mn(D.questionToken),D.questionToken.kind!==58&&zr("?")),zr(":"),Mr(),Mn(D.type),xu(),me&1?Mr():(cu(),Eh()),Jr(D,D.members,2),zr("}")}function pt(D){ot(D.literal)}function qt(D){Mn(D.head),Jr(D,D.templateSpans,262144)}function fn(D){D.isTypeOf&&(Wo("typeof"),Mr()),Wo("import"),zr("("),Mn(D.argument),D.attributes&&(zr(","),Mr(),ne(7,D.attributes)),zr(")"),D.qualifier&&(zr("."),Mn(D.qualifier)),Xf(D,D.typeArguments)}function ur(D){zr("{"),Jr(D,D.elements,525136),zr("}")}function si(D){zr("["),Jr(D,D.elements,524880),zr("]")}function Dr(D){Mn(D.dotDotDotToken),D.propertyName&&(Mn(D.propertyName),zr(":"),Mr()),Mn(D.name),ST(D.initializer,D.name.end,D,ir.parenthesizeExpressionForDisallowedComma)}function Fn(D){let me=D.elements,Et=D.multiLine?65536:0;Vr(D,me,8914|Et,ir.parenthesizeExpressionForDisallowedComma)}function ro(D){Km(D),Je(D.properties,aS);let me=Qa(D)&131072;me&&q_();let Et=D.multiLine?65536:0,An=k&&k.languageVersion>=1&&!Of(k)?64:0;Jr(D,D.properties,526226|An|Et),me&&Eh(),Ny(D)}function So(D){ot(D.expression,ir.parenthesizeLeftSideOfAccess);let me=D.questionDotToken||uh(L.createToken(25),D.expression.end,D.name.pos),Et=m_(D,D.expression,me),An=m_(D,me,D.name);Yf(Et,!1),me.kind!==29&&Ns(D.expression)&&!Ce.hasTrailingComment()&&!Ce.hasTrailingWhitespace()&&zr("."),D.questionDotToken?Mn(me):z(me.kind,D.expression.end,zr,D),Yf(An,!1),Mn(D.name),sp(Et,An)}function Ns(D){if(D=Om(D),ep(D)){let me=Qb(D,void 0,!0,!1);return!(D.numericLiteralFlags&448)&&!me.includes(_a(25))&&!me.includes("E")&&!me.includes("e")}else if(Ks(D)){let me=Qre(D);return typeof me=="number"&&isFinite(me)&&me>=0&&Math.floor(me)===me}}function Da(D){ot(D.expression,ir.parenthesizeLeftSideOfAccess),Mn(D.questionDotToken),z(23,D.expression.end,zr,D),ot(D.argumentExpression),z(24,D.argumentExpression.end,zr,D)}function Qs(D){let me=Wm(D)&16;me&&(zr("("),Dy("0"),zr(","),Mr()),ot(D.expression,ir.parenthesizeLeftSideOfAccess),me&&zr(")"),Mn(D.questionDotToken),Xf(D,D.typeArguments),Vr(D,D.arguments,2576,ir.parenthesizeExpressionForDisallowedComma)}function Ec(D){z(105,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeExpressionOfNew),Xf(D,D.typeArguments),Vr(D,D.arguments,18960,ir.parenthesizeExpressionForDisallowedComma)}function mc(D){let me=Wm(D)&16;me&&(zr("("),Dy("0"),zr(","),Mr()),ot(D.tag,ir.parenthesizeLeftSideOfAccess),me&&zr(")"),Xf(D,D.typeArguments),Mr(),ot(D.template)}function Hs(D){zr("<"),Mn(D.type),zr(">"),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function Pl(D){let me=z(21,D.pos,zr,D),Et=Yb(D.expression,D);ot(D.expression,void 0),Ix(D.expression,D),sp(Et),z(22,D.expression?D.expression.end:me,zr,D)}function vh(D){kg(D.name),yv(D)}function Pd(D){Sh(D,D.modifiers),zu(D,tf,rp)}function tf(D){Pg(D,D.typeParameters),f_(D,D.parameters),Dm(D.type),Mr(),Mn(D.equalsGreaterThanToken)}function rp(D){ea(D.body)?Ye(D.body):(Mr(),ot(D.body,ir.parenthesizeConciseBodyOfArrowFunction))}function ze(D){z(91,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function Jt(D){z(114,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function er(D){z(116,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function go(D){z(135,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function Za(D){Xb(D.operator,yp),es(D)&&Mr(),ot(D.operand,ir.parenthesizeOperandOfPrefixUnary)}function es(D){let me=D.operand;return me.kind===225&&(D.operator===40&&(me.operator===40||me.operator===46)||D.operator===41&&(me.operator===41||me.operator===47))}function Va(D){ot(D.operand,ir.parenthesizeOperandOfPostfixUnary),Xb(D.operator,yp)}function Pc(){return E3(D,me,Et,An,vi,void 0);function D(Ao,Li){if(Li){Li.stackIndex++,Li.preserveSourceNewlinesStack[Li.stackIndex]=xe,Li.containerPosStack[Li.stackIndex]=ge,Li.containerEndStack[Li.stackIndex]=je,Li.declarationListContainerEndStack[Li.stackIndex]=Ge;let Ja=Li.shouldEmitCommentsStack[Li.stackIndex]=Fe(Ao),_c=Li.shouldEmitSourceMapsStack[Li.stackIndex]=it(Ao);l?.(Ao),Ja&&Ah(Ao),_c&&os(Ao),le(Ao)}else Li={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Li}function me(Ao,Li,Ja){return wi(Ao,Ja,"left")}function Et(Ao,Li,Ja){let _c=Ao.kind!==28,Kd=m_(Ja,Ja.left,Ao),Gu=m_(Ja,Ao,Ja.right);Yf(Kd,_c),Og(Ao.pos),JE(Ao,Ao.kind===103?Wo:yp),Xm(Ao.end,!0),Yf(Gu,!0)}function An(Ao,Li,Ja){return wi(Ao,Ja,"right")}function vi(Ao,Li){let Ja=m_(Ao,Ao.left,Ao.operatorToken),_c=m_(Ao,Ao.operatorToken,Ao.right);if(sp(Ja,_c),Li.stackIndex>0){let Kd=Li.preserveSourceNewlinesStack[Li.stackIndex],Gu=Li.containerPosStack[Li.stackIndex],kT=Li.containerEndStack[Li.stackIndex],Vu=Li.declarationListContainerEndStack[Li.stackIndex],t0=Li.shouldEmitCommentsStack[Li.stackIndex],Ox=Li.shouldEmitSourceMapsStack[Li.stackIndex];ht(Kd),Ox&&Wr(Ao),t0&&e0(Ao,Gu,kT,Vu),u?.(Ao),Li.stackIndex--}}function wi(Ao,Li,Ja){let _c=Ja==="left"?ir.getParenthesizeLeftSideOfBinaryForOperator(Li.operatorToken.kind):ir.getParenthesizeRightSideOfBinaryForOperator(Li.operatorToken.kind),Kd=dt(0,1,Ao);if(Kd===nt&&(C.assertIsDefined(gn),Ao=_c(ma(gn,St)),Kd=Lt(1,1,Ao),gn=void 0),(Kd===sS||Kd===nA||Kd===Rt)&&Nr(Ao))return Ao;Kn=_c,Kd(1,Ao)}}function tl(D){let me=m_(D,D.condition,D.questionToken),Et=m_(D,D.questionToken,D.whenTrue),An=m_(D,D.whenTrue,D.colonToken),vi=m_(D,D.colonToken,D.whenFalse);ot(D.condition,ir.parenthesizeConditionOfConditionalExpression),Yf(me,!0),Mn(D.questionToken),Yf(Et,!0),ot(D.whenTrue,ir.parenthesizeBranchOfConditionalExpression),sp(me,Et),Yf(An,!0),Mn(D.colonToken),Yf(vi,!0),ot(D.whenFalse,ir.parenthesizeBranchOfConditionalExpression),sp(An,vi)}function Ll(D){Mn(D.head),Jr(D,D.templateSpans,262144)}function ql(D){z(127,D.pos,Wo,D),Mn(D.asteriskToken),Ev(D.expression&&On(D.expression),yo)}function nf(D){z(26,D.pos,zr,D),ot(D.expression,ir.parenthesizeExpressionForDisallowedComma)}function bd(D){kg(D.name),Qn(D)}function ld(D){ot(D.expression,ir.parenthesizeLeftSideOfAccess),Xf(D,D.typeArguments)}function Gp(D){ot(D.expression,void 0),D.type&&(Mr(),Wo("as"),Mr(),Mn(D.type))}function Eu(D){ot(D.expression,ir.parenthesizeLeftSideOfAccess),yp("!")}function Jf(D){ot(D.expression,void 0),D.type&&(Mr(),Wo("satisfies"),Mr(),Mn(D.type))}function B_(D){Kb(D.keywordToken,D.pos,zr),zr("."),Mn(D.name)}function Dg(D){ot(D.expression),Mn(D.literal)}function Cg(D){ip(D,!D.multiLine&&$b(D))}function ip(D,me){z(19,D.pos,zr,D);let Et=me||Qa(D)&1?768:129;Jr(D,D.statements,Et),z(20,D.statements.end,zr,D,!!(Et&1))}function Yc(D){Iu(D,D.modifiers,!1),Mn(D.declarationList),xu()}function bh(D){D?zr(";"):xu()}function bf(D){ot(D.expression,ir.parenthesizeExpressionOfExpressionStatement),(!k||!Of(k)||Os(D.expression))&&xu()}function u_(D){let me=z(101,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Ry(D,D.thenStatement),D.elseStatement&&(Ef(D,D.thenStatement,D.elseStatement),z(93,D.thenStatement.end,Wo,D),D.elseStatement.kind===246?(Mr(),Mn(D.elseStatement)):Ry(D,D.elseStatement))}function oe(D,me){let Et=z(117,me,Wo,D);Mr(),z(21,Et,zr,D),ot(D.expression),z(22,D.expression.end,zr,D)}function ut(D){z(92,D.pos,Wo,D),Ry(D,D.statement),ea(D.statement)&&!xe?Mr():Ef(D,D.statement,D.expression),oe(D,D.statement.end),xu()}function tn(D){oe(D,D.pos),Ry(D,D.statement)}function an(D){let me=z(99,D.pos,Wo,D);Mr();let Et=z(21,me,zr,D);ti(D.initializer),Et=z(27,D.initializer?D.initializer.end:Et,zr,D),Ev(D.condition),Et=z(27,D.condition?D.condition.end:Et,zr,D),Ev(D.incrementor),z(22,D.incrementor?D.incrementor.end:Et,zr,D),Ry(D,D.statement)}function wn(D){let me=z(99,D.pos,Wo,D);Mr(),z(21,me,zr,D),ti(D.initializer),Mr(),z(103,D.initializer.end,Wo,D),Mr(),ot(D.expression),z(22,D.expression.end,zr,D),Ry(D,D.statement)}function or(D){let me=z(99,D.pos,Wo,D);Mr(),UE(D.awaitModifier),z(21,me,zr,D),ti(D.initializer),Mr(),z(165,D.initializer.end,Wo,D),Mr(),ot(D.expression),z(22,D.expression.end,zr,D),Ry(D,D.statement)}function ti(D){D!==void 0&&(D.kind===262?Mn(D):ot(D))}function Ti(D){z(88,D.pos,Wo,D),Sf(D.label),xu()}function $i(D){z(83,D.pos,Wo,D),Sf(D.label),xu()}function z(D,me,Et,An,vi){let wi=jo(An),Ao=wi&&wi.kind===An.kind,Li=me;if(Ao&&k&&(me=La(k.text,me)),Ao&&An.pos!==Li){let Ja=vi&&k&&!zf(Li,me,k);Ja&&q_(),Og(Li),Ja&&Eh()}if(!A&&(D===19||D===20)?me=Kb(D,me,Et,An):me=Xb(D,Et,me),Ao&&An.end!==me){let Ja=An.kind===295;Xm(me,!Ja,Ja)}return me}function Ve(D){return D.kind===2||!!D.hasTrailingNewLine}function kt(D){if(!k)return!1;let me=sg(k.text,D.pos);if(me){let Et=jo(D);if(Et&&wu(Et.parent))return!0}return vt(me,Ve)||vt(lD(D),Ve)?!0:vie(D)?D.pos!==D.expression.pos&&vt(ib(k.text,D.expression.pos),Ve)?!0:kt(D.expression):!1}function On(D){if(!cn)switch(D.kind){case 356:if(kt(D)){let me=jo(D);if(me&&wu(me)){let Et=L.createParenthesizedExpression(D.expression);return jr(Et,D),bt(Et,me),Et}return L.createParenthesizedExpression(D)}return L.updatePartiallyEmittedExpression(D,On(D.expression));case 212:return L.updatePropertyAccessExpression(D,On(D.expression),D.name);case 213:return L.updateElementAccessExpression(D,On(D.expression),D.argumentExpression);case 214:return L.updateCallExpression(D,On(D.expression),D.typeArguments,D.arguments);case 216:return L.updateTaggedTemplateExpression(D,On(D.tag),D.typeArguments,D.template);case 226:return L.updatePostfixUnaryExpression(D,On(D.operand));case 227:return L.updateBinaryExpression(D,On(D.left),D.operatorToken,D.right);case 228:return L.updateConditionalExpression(D,On(D.condition),D.questionToken,D.whenTrue,D.colonToken,D.whenFalse);case 235:return L.updateAsExpression(D,On(D.expression),D.type);case 239:return L.updateSatisfiesExpression(D,On(D.expression),D.type);case 236:return L.updateNonNullExpression(D,On(D.expression))}return D}function yo(D){return On(ir.parenthesizeExpressionForDisallowedComma(D))}function ta(D){z(107,D.pos,Wo,D),Ev(D.expression&&On(D.expression),On),xu()}function Eo(D){let me=z(118,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Ry(D,D.statement)}function Vo(D){let me=z(109,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Mr(),Mn(D.caseBlock)}function ml(D){Mn(D.label),z(59,D.label.end,zr,D),Mr(),Mn(D.statement)}function Ca(D){z(111,D.pos,Wo,D),Ev(On(D.expression),On),xu()}function cd(D){z(113,D.pos,Wo,D),Mr(),Mn(D.tryBlock),D.catchClause&&(Ef(D,D.tryBlock,D.catchClause),Mn(D.catchClause)),D.finallyBlock&&(Ef(D,D.catchClause||D.tryBlock,D.finallyBlock),z(98,(D.catchClause||D.tryBlock).end,Wo,D),Mr(),Mn(D.finallyBlock))}function Vp(D){Kb(89,D.pos,Wo),xu()}function Tf(D){var me,Et,An;Mn(D.name),Mn(D.exclamationToken),Dm(D.type),ST(D.initializer,((me=D.type)==null?void 0:me.end)??((An=(Et=D.name.emitNode)==null?void 0:Et.typeNode)==null?void 0:An.end)??D.name.end,D,ir.parenthesizeExpressionForDisallowedComma)}function Kf(D){if(qL(D))Wo("await"),Mr(),Wo("using");else{let me=N6(D)?"let":FR(D)?"const":JL(D)?"using":"var";Wo(me)}Mr(),Jr(D,D.declarations,528)}function Ty(D){yv(D)}function yv(D){Iu(D,D.modifiers,!1),Wo("function"),Mn(D.asteriskToken),Mr(),Uo(D.name),zu(D,Am,G_)}function zu(D,me,Et){let An=Qa(D)&131072;An&&q_(),Km(D),Je(D.parameters,dd),me(D),Et(D),Ny(D),An&&Eh()}function G_(D){let me=D.body;me?Ye(me):xu()}function Th(D){xu()}function Am(D){Pg(D,D.typeParameters),ET(D,D.parameters),Dm(D.type)}function Vb(D){if(Qa(D)&1)return!0;if(D.multiLine||!Os(D)&&k&&!rE(D,k)||Iv(D,Ic(D.statements),2)||Ax(D,Zs(D.statements),2,D.statements))return!1;let me;for(let Et of D.statements){if(IT(me,Et,2)>0)return!1;me=Et}return!0}function Ye(D){dd(D),l?.(D),Mr(),zr("{"),q_();let me=Vb(D)?mt:Yt;lS(D,D.statements,me),Eh(),Kb(20,D.statements.end,zr,D),u?.(D)}function mt(D){Yt(D,!0)}function Yt(D,me){let Et=Mg(D.statements),An=Ce.getTextPos();Kt(D),Et===0&&An===Ce.getTextPos()&&me?(Eh(),Jr(D,D.statements,768),q_()):Jr(D,D.statements,1,void 0,Et)}function Rn(D){Qn(D)}function Qn(D){Iu(D,D.modifiers,!0),z(86,Xh(D).pos,Wo,D),D.name&&(Mr(),Uo(D.name));let me=Qa(D)&131072;me&&q_(),Pg(D,D.typeParameters),Jr(D,D.heritageClauses,0),Mr(),zr("{"),Km(D),Je(D.members,aS),Jr(D,D.members,129),Ny(D),zr("}"),me&&Eh()}function Lr(D){Iu(D,D.modifiers,!1),Wo("interface"),Mr(),Mn(D.name),Pg(D,D.typeParameters),Jr(D,D.heritageClauses,512),Mr(),zr("{"),Km(D),Je(D.members,aS),Jr(D,D.members,129),Ny(D),zr("}")}function Yn(D){Iu(D,D.modifiers,!1),Wo("type"),Mr(),Mn(D.name),Pg(D,D.typeParameters),Mr(),zr("="),Mr(),Mn(D.type),xu()}function lr(D){Iu(D,D.modifiers,!1),Wo("enum"),Mr(),Mn(D.name),Mr(),zr("{"),Jr(D,D.members,145),zr("}")}function Oi(D){Iu(D,D.modifiers,!1),~D.flags&2048&&(Wo(D.flags&32?"namespace":"module"),Mr()),Mn(D.name);let me=D.body;if(!me)return xu();for(;me&&pc(me);)zr("."),Mn(me.name),me=me.body;Mr(),Mn(me)}function Ro(D){Km(D),Je(D.statements,dd),ip(D,$b(D)),Ny(D)}function _i(D){z(19,D.pos,zr,D),Jr(D,D.clauses,129),z(20,D.clauses.end,zr,D,!0)}function Do(D){Iu(D,D.modifiers,!1),z(102,D.modifiers?D.modifiers.end:D.pos,Wo,D),Mr(),D.isTypeOnly&&(z(156,D.pos,Wo,D),Mr()),Mn(D.name),Mr(),z(64,D.name.end,zr,D),Mr(),Qi(D.moduleReference),xu()}function Qi(D){D.kind===80?ot(D):Mn(D)}function hl(D){Iu(D,D.modifiers,!1),z(102,D.modifiers?D.modifiers.end:D.pos,Wo,D),Mr(),D.importClause&&(Mn(D.importClause),Mr(),z(161,D.importClause.end,Wo,D),Mr()),ot(D.moduleSpecifier),D.attributes&&Sf(D.attributes),xu()}function op(D){D.phaseModifier!==void 0&&(z(D.phaseModifier,D.pos,Wo,D),Mr()),Mn(D.name),D.name&&D.namedBindings&&(z(28,D.name.end,zr,D),Mr()),Mn(D.namedBindings)}function Im(D){let me=z(42,D.pos,zr,D);Mr(),z(130,me,Wo,D),Mr(),Mn(D.name)}function Td(D){Ng(D)}function xm(D){hT(D)}function jp(D){let me=z(95,D.pos,Wo,D);Mr(),D.isExportEquals?z(64,me,yp,D):z(90,me,Wo,D),Mr(),ot(D.expression,D.isExportEquals?ir.getParenthesizeRightSideOfBinaryForOperator(64):ir.parenthesizeExpressionOfExportDefault),xu()}function fT(D){Iu(D,D.modifiers,!1);let me=z(95,D.pos,Wo,D);if(Mr(),D.isTypeOnly&&(me=z(156,me,Wo,D),Mr()),D.exportClause?Mn(D.exportClause):me=z(42,me,zr,D),D.moduleSpecifier){Mr();let Et=D.exportClause?D.exportClause.end:me;z(161,Et,Wo,D),Mr(),ot(D.moduleSpecifier)}D.attributes&&Sf(D.attributes),xu()}function p_(D){zr("{"),Mr(),Wo(D.token===132?"assert":"with"),zr(":"),Mr();let me=D.elements;Jr(D,me,526226),Mr(),zr("}")}function V_(D){z(D.token,D.pos,Wo,D),Mr();let me=D.elements;Jr(D,me,526226)}function mT(D){Mn(D.name),zr(":"),Mr();let me=D.value;if((Qa(me)&1024)===0){let Et=Qh(me);Xm(Et.pos)}Mn(me)}function j_(D){let me=z(95,D.pos,Wo,D);Mr(),me=z(130,me,Wo,D),Mr(),me=z(145,me,Wo,D),Mr(),Mn(D.name),xu()}function pC(D){let me=z(42,D.pos,zr,D);Mr(),z(130,me,Wo,D),Mr(),Mn(D.name)}function QP(D){Ng(D)}function fC(D){hT(D)}function Ng(D){zr("{"),Jr(D,D.elements,525136),zr("}")}function hT(D){D.isTypeOnly&&(Wo("type"),Mr()),D.propertyName&&(Mn(D.propertyName),Mr(),z(130,D.propertyName.end,Wo,D),Mr()),Mn(D.name)}function WE(D){Wo("require"),zr("("),ot(D.expression),zr(")")}function vv(D){Mn(D.openingElement),Jr(D,D.children,262144),Mn(D.closingElement)}function FE(D){zr("<"),tS(D.tagName),Xf(D,D.typeArguments),Mr(),Mn(D.attributes),zr("/>")}function yx(D){Mn(D.openingFragment),Jr(D,D.children,262144),Mn(D.closingFragment)}function ZP(D){if(zr("<"),ph(D)){let me=Yb(D.tagName,D);tS(D.tagName),Xf(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&Mr(),Mn(D.attributes),Ix(D.attributes,D),sp(me)}zr(">")}function zE(D){Ce.writeLiteral(D.text)}function vx(D){zr("</"),k1(D)&&tS(D.tagName),zr(">")}function _T(D){Jr(D,D.properties,262656)}function mC(D){Mn(D.name),ja("=",zr,D.initializer,Ft)}function BE(D){zr("{..."),ot(D.expression),zr("}")}function bx(D){let me=!1;return _L(k?.text||"",D+1,()=>me=!0),me}function eS(D){let me=!1;return hL(k?.text||"",D+1,()=>me=!0),me}function jb(D){return bx(D)||eS(D)}function Tx(D){var me;if(D.expression||!cn&&!Os(D)&&jb(D.pos)){let Et=k&&!Os(D)&&ca(k,D.pos).line!==ca(k,D.end).line;Et&&Ce.increaseIndent();let An=z(19,D.pos,zr,D);Mn(D.dotDotDotToken),ot(D.expression),z(20,((me=D.expression)==null?void 0:me.end)||An,zr,D),Et&&Ce.decreaseIndent()}}function Sx(D){Uo(D.namespace),zr(":"),Uo(D.name)}function tS(D){D.kind===80?ot(D):Mn(D)}function Ub(D){z(84,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeExpressionForDisallowedComma),Sy(D,D.statements,D.expression.end)}function bv(D){let me=z(90,D.pos,Wo,D);Sy(D,D.statements,me)}function Sy(D,me,Et){let An=me.length===1&&(!k||Os(D)||Os(me[0])||gW(D,me[0],k)),vi=163969;An?(Kb(59,Et,zr,D),Mr(),vi&=-130):z(59,Et,zr,D),Jr(D,me,vi)}function Ey(D){Mr(),Xb(D.token,Wo),Mr(),Jr(D,D.types,528)}function Ay(D){let me=z(85,D.pos,Wo,D);Mr(),D.variableDeclaration&&(z(21,me,zr,D),Mn(D.variableDeclaration),z(22,D.variableDeclaration.end,zr,D),Mr()),Mn(D.block)}function Hb(D){Mn(D.name),zr(":"),Mr();let me=D.initializer;if((Qa(me)&1024)===0){let Et=Qh(me);Xm(Et.pos)}ot(me,ir.parenthesizeExpressionForDisallowedComma)}function gT(D){Mn(D.name),D.objectAssignmentInitializer&&(Mr(),zr("="),Mr(),ot(D.objectAssignmentInitializer,ir.parenthesizeExpressionForDisallowedComma))}function GE(D){D.expression&&(z(26,D.pos,zr,D),ot(D.expression,ir.parenthesizeExpressionForDisallowedComma))}function yT(D){Mn(D.name),ST(D.initializer,D.name.end,D,ir.parenthesizeExpressionForDisallowedComma)}function ns(D){if(Se("/**"),D.comment){let me=IL(D.comment);if(me){let Et=me.split(/\r\n?|\n/);for(let An of Et)cu(),Mr(),zr("*"),Mr(),Se(An)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===345&&!D.comment?(Mr(),Mn(D.tags[0])):Jr(D,D.tags,33)),Mr(),Se("*/")}function VE(D){Rm(D.tagName),bT(D.typeExpression),Hm(D.comment)}function hC(D){Rm(D.tagName),Mn(D.name),Hm(D.comment)}function Iy(D){Rm(D.tagName),Mr(),D.importClause&&(Mn(D.importClause),Mr(),z(161,D.importClause.end,Wo,D),Mr()),ot(D.moduleSpecifier),D.attributes&&Sf(D.attributes),Hm(D.comment)}function xy(D){Mr(),zr("{"),Mn(D.name),zr("}")}function U_(D){Rm(D.tagName),Mr(),zr("{"),Mn(D.class),zr("}"),Hm(D.comment)}function cl(D){Rm(D.tagName),bT(D.constraint),Mr(),Jr(D,D.typeParameters,528),Hm(D.comment)}function qd(D){Rm(D.tagName),D.typeExpression&&(D.typeExpression.kind===310?bT(D.typeExpression):(Mr(),zr("{"),Se("Object"),D.typeExpression.isArrayType&&(zr("["),zr("]")),zr("}"))),D.fullName&&(Mr(),Mn(D.fullName)),Hm(D.comment),D.typeExpression&&D.typeExpression.kind===323&&Au(D.typeExpression)}function ap(D){Rm(D.tagName),D.name&&(Mr(),Mn(D.name)),Hm(D.comment),H_(D.typeExpression)}function Jd(D){Hm(D.comment),H_(D.typeExpression)}function vT(D){Rm(D.tagName),Hm(D.comment)}function Au(D){Jr(D,L.createNodeArray(D.jsDocPropertyTags),33)}function H_(D){D.typeParameters&&Jr(D,L.createNodeArray(D.typeParameters),33),D.parameters&&Jr(D,L.createNodeArray(D.parameters),33),D.type&&(cu(),Mr(),zr("*"),Mr(),Mn(D.type))}function Bu(D){Rm(D.tagName),bT(D.typeExpression),Mr(),D.isBracketed&&zr("["),Mn(D.name),D.isBracketed&&zr("]"),Hm(D.comment)}function Rm(D){zr("@"),Mn(D)}function Hm(D){let me=IL(D);me&&(Mr(),Se(me))}function bT(D){D&&(Mr(),zr("{"),Mn(D.type),zr("}"))}function TT(D){cu();let me=D.statements;if(me.length===0||!jh(me[0])||Os(me[0])){lS(D,me,nS);return}nS(D)}function e2(D){Tv(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[])}function _C(D){D.isDeclarationFile&&Tv(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function Tv(D,me,Et,An){if(D&&(Jb('/// <reference no-default-lib="true"/>'),cu()),k&&k.moduleName&&(Jb(`/// <amd-module name="${k.moduleName}" />`),cu()),k&&k.amdDependencies)for(let wi of k.amdDependencies)wi.name?Jb(`/// <amd-dependency name="${wi.name}" path="${wi.path}" />`):Jb(`/// <amd-dependency path="${wi.path}" />`),cu();function vi(wi,Ao){for(let Li of Ao){let Ja=Li.resolutionMode?`resolution-mode="${Li.resolutionMode===99?"import":"require"}" `:"",_c=Li.preserve?'preserve="true" ':"";Jb(`/// <reference ${wi}="${Li.fileName}" ${Ja}${_c}/>`),cu()}}vi("path",me),vi("types",Et),vi("lib",An)}function nS(D){let me=D.statements;Km(D),Je(D.statements,dd),Kt(D);let Et=ho(me,An=>!jh(An));_C(D),Jr(D,me,1,void 0,Et===-1?me.length:Et),Ny(D)}function Qe(D){let me=Qa(D);!(me&1024)&&D.pos!==D.expression.pos&&Xm(D.expression.pos),ot(D.expression),!(me&2048)&&D.end!==D.expression.end&&Og(D.expression.end)}function jE(D){Vr(D,D.elements,528,void 0)}function Mg(D,me,Et){let An=!!me;for(let vi=0;vi<D.length;vi++){let wi=D[vi];if(jh(wi))(Et?!Et.has(wi.expression.text):!0)&&(An&&(An=!1,ai(me)),cu(),Mn(wi),Et&&Et.add(wi.expression.text));else return vi}return D.length}function qm(D){if(Yi(D))Mg(D.statements,D);else{let me=new Set;for(let Et of D.sourceFiles)Mg(Et.statements,Et,me);ai(void 0)}}function Sv(D){if(Yi(D)){let me=Y8(D.text);if(me)return Jb(me),cu(),!0}else for(let me of D.sourceFiles)if(Sv(me))return!0}function qb(D,me){if(!D)return;let Et=Se;Se=me,Mn(D),Se=Et}function Iu(D,me,Et){if(me?.length){if(Vn(me,Aa))return Sh(D,me);if(Vn(me,zc))return Et?rS(D,me):D.pos;d?.(me);let An,vi,wi=0,Ao=0,Li;for(;wi<me.length;){for(;Ao<me.length;){if(Li=me[Ao],vi=zc(Li)?"decorators":"modifiers",An===void 0)An=vi;else if(vi!==An)break;Ao++}let Ja={pos:-1,end:-1};wi===0&&(Ja.pos=me.pos),Ao===me.length-1&&(Ja.end=me.end),(An==="modifiers"||Et)&&HE(Mn,D,me,An==="modifiers"?2359808:2146305,void 0,wi,Ao-wi,!1,Ja),wi=Ao,An=vi,Ao++}if(g?.(me),Li&&!dh(Li.end))return Li.end}return D.pos}function Sh(D,me){Jr(D,me,2359808);let Et=Zs(me);return Et&&!dh(Et.end)?Et.end:D.pos}function Dm(D){D&&(zr(":"),Mr(),Mn(D))}function ST(D,me,Et,An){D&&(Mr(),z(64,me,yp,Et),Mr(),ot(D,An))}function ja(D,me,Et,An){Et&&(me(D),An(Et))}function Sf(D){D&&(Mr(),Mn(D))}function Ev(D,me){D&&(Mr(),ot(D,me))}function UE(D){D&&(Mn(D),Mr())}function Ry(D,me){ea(me)||Qa(D)&1||xe&&!Iv(D,me,0)?(Mr(),Mn(me)):(cu(),q_(),cj(me)?ne(5,me):Mn(me),Eh())}function rS(D,me){Jr(D,me,2146305);let Et=Zs(me);return Et&&!dh(Et.end)?Et.end:D.pos}function Xf(D,me){Jr(D,me,53776,Di)}function Pg(D,me){if(Yo(D)&&D.typeArguments)return Xf(D,D.typeArguments);Jr(D,me,53776|(Xs(D)?64:0))}function ET(D,me){Jr(D,me,2576)}function Av(D,me){let Et=ig(me);return Et&&Et.pos===D.pos&&Xs(D)&&!D.type&&!vt(D.modifiers)&&!vt(D.typeParameters)&&!vt(Et.modifiers)&&!Et.dotDotDotToken&&!Et.questionToken&&!Et.type&&!Et.initializer&&He(Et.name)}function f_(D,me){Av(D,me)?Jr(D,me,528):ET(D,me)}function iS(D,me){Jr(D,me,8848)}function AT(D){switch(D&60){case 0:break;case 16:zr(",");break;case 4:Mr(),zr("|");break;case 32:Mr(),zr("*"),Mr();break;case 8:Mr(),zr("&");break}}function Jr(D,me,Et,An,vi,wi){Sd(Mn,D,me,Et|(D&&Qa(D)&2?65536:0),An,vi,wi)}function Vr(D,me,Et,An,vi,wi){Sd(ot,D,me,Et,An,vi,wi)}function Sd(D,me,Et,An,vi,wi=0,Ao=Et?Et.length-wi:0){if(Et===void 0&&An&16384)return;let Ja=Et===void 0||wi>=Et.length||Ao===0;if(Ja&&An&32768){d?.(Et),g?.(Et);return}An&15360&&(zr(uHe(An)),Ja&&Et&&Xm(Et.pos,!0)),d?.(Et),Ja?An&1&&!(xe&&(!me||k&&rE(me,k)))?cu():An&256&&!(An&524288)&&Mr():HE(D,me,Et,An,vi,wi,Ao,Et.hasTrailingComma,Et),g?.(Et),An&15360&&(Ja&&Et&&Og(Et.end),zr(pHe(An)))}function HE(D,me,Et,An,vi,wi,Ao,Li,Ja){let _c=(An&262144)===0,Kd=_c,Gu=Iv(me,Et[wi],An);Gu?(cu(Gu),Kd=!1):An&256&&Mr(),An&128&&q_();let kT=_He(D,vi),Vu,t0=!1;for(let Cv=0;Cv<Ao;Cv++){let Ym=Et[wi+Cv];if(An&32)cu(),AT(An);else if(Vu){An&60&&Vu.end!==(me?me.end:-1)&&(Qa(Vu)&2048||Og(Vu.end)),AT(An);let Nv=IT(Vu,Ym,An);if(Nv>0){if((An&131)===0&&(q_(),t0=!0),Kd&&An&60&&!dh(Ym.pos)){let dS=Qh(Ym);Xm(dS.pos,!!(An&512),!0)}cu(Nv),Kd=!1}else Vu&&An&512&&Mr()}if(Kd){let Nv=Qh(Ym);Xm(Nv.pos)}else Kd=_c;Y=Ym.pos,kT(Ym,D,vi,Cv),t0&&(Eh(),t0=!1),Vu=Ym}let Ox=Vu?Qa(Vu):0,Cm=cn||!!(Ox&2048),bl=Li&&An&64&&An&16;bl&&(Vu&&!Cm?z(28,Vu.end,zr,Vu):zr(",")),Vu&&(me?me.end:-1)!==Vu.end&&An&60&&!Cm&&Og(bl&&Ja?.end?Ja.end:Vu.end),An&128&&Eh();let oA=Ax(me,Et[wi+Ao-1],An,Ja);oA?cu(oA):An&2097408&&Mr()}function Dy(D){Ce.writeLiteral(D)}function oS(D){Ce.writeStringLiteral(D)}function gC(D){Ce.write(D)}function t2(D,me){Ce.writeSymbol(D,me)}function zr(D){Ce.writePunctuation(D)}function xu(){Ce.writeTrailingSemicolon(";")}function Wo(D){Ce.writeKeyword(D)}function yp(D){Ce.writeOperator(D)}function qE(D){Ce.writeParameter(D)}function Jb(D){Ce.writeComment(D)}function Mr(){Ce.writeSpace(" ")}function yC(D){Ce.writeProperty(D)}function Ex(D){Ce.nonEscapingWrite?Ce.nonEscapingWrite(D):Ce.write(D)}function cu(D=1){for(let me=0;me<D;me++)Ce.writeLine(me>0)}function q_(){Ce.increaseIndent()}function Eh(){Ce.decreaseIndent()}function Kb(D,me,Et,An){return be?Xb(D,Et,me):rA(An,D,Et,me,Xb)}function JE(D,me){_&&_(D),me(_a(D.kind)),v&&v(D)}function Xb(D,me,Et){let An=_a(D);return me(An),Et<0?Et:Et+An.length}function Ef(D,me,Et){if(Qa(D)&1)Mr();else if(xe){let An=m_(D,me,Et);An?cu(An):Mr()}else cu()}function Jm(D){let me=D.split(/\r\n?|\n/),Et=gte(me);for(let An of me){let vi=Et?An.slice(Et):An;vi.length&&(cu(),Se(vi))}}function Yf(D,me){D?(q_(),cu(D)):me&&Mr()}function sp(D,me){D&&Eh(),me&&Eh()}function Iv(D,me,Et){if(Et&2||xe){if(Et&65536)return 1;if(me===void 0)return!D||k&&rE(D,k)?0:1;if(me.pos===Y||me.kind===12)return 0;if(k&&D&&!dh(D.pos)&&!Os(me)&&(!me.parent||yl(me.parent)===yl(D)))return xe?xT(An=>qne(me.pos,D.pos,k,An)):gW(D,me,k)?0:1;if(Cy(me,Et))return 1}return Et&1?1:0}function IT(D,me,Et){if(Et&2||xe){if(D===void 0||me===void 0||me.kind===12)return 0;if(k&&!Os(D)&&!Os(me))return xe&&du(D,me)?xT(An=>aV(D,me,k,An)):!xe&&Mx(D,me)?Nk(D,me,k)?0:1:Et&65536?1:0;if(Cy(D,Et)||Cy(me,Et))return 1}else if(PM(me))return 1;return Et&1?1:0}function Ax(D,me,Et,An){if(Et&2||xe){if(Et&65536)return 1;if(me===void 0)return!D||k&&rE(D,k)?0:1;if(k&&D&&!dh(D.pos)&&!Os(me)&&(!me.parent||me.parent===D)){if(xe){let vi=An&&!dh(An.end)?An.end:me.end;return xT(wi=>Jne(vi,D.end,k,wi))}return jne(D,me,k)?0:1}if(Cy(me,Et))return 1}return Et&1&&!(Et&131072)?1:0}function xT(D){C.assert(!!xe);let me=D(!0);return me===0?D(!1):me}function Yb(D,me){let Et=xe&&Iv(me,D,0);return Et&&Yf(Et,!1),!!Et}function Ix(D,me){let Et=xe&&Ax(me,D,0,void 0);Et&&cu(Et)}function Cy(D,me){if(Os(D)){let Et=PM(D);return Et===void 0?(me&65536)!==0:Et}return(me&65536)!==0}function m_(D,me,Et){return Qa(D)&262144?0:(D=RT(D),me=RT(me),Et=RT(Et),PM(Et)?1:k&&!Os(D)&&!Os(me)&&!Os(Et)?xe?xT(An=>aV(me,Et,k,An)):Nk(me,Et,k)?0:1:0)}function $b(D){return D.statements.length===0&&(!k||Nk(D,D,k))}function RT(D){for(;D.kind===218&&Os(D);)D=D.expression;return D}function xv(D,me){if(pl(D)||GS(D))return DT(D);if(ka(D)&&D.textSourceNode)return xv(D.textSourceNode,me);let Et=k,An=!!Et&&!!D.parent&&!Os(D);if(cg(D)){if(!An||Wn(D)!==yl(Et))return Kr(D)}else if(fh(D)){if(!An||Wn(D)!==yl(Et))return NM(D)}else if(C.assertNode(D,BS),!An)return D.text;return u1(Et,D,me)}function Qb(D,me=k,Et,An){if(D.kind===11&&D.textSourceNode){let wi=D.textSourceNode;if(He(wi)||eo(wi)||ep(wi)||fh(wi)){let Ao=ep(wi)?wi.text:xv(wi);return An?`"${GG(Ao)}"`:Et||Qa(D)&16777216?`"${L_(Ao)}"`:`"${nW(Ao)}"`}else return Qb(wi,Wn(wi),Et,An)}let vi=(Et?1:0)|(An?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Nte(D,me,vi)}function Km(D){q.push(ye),ye=0,fe.push(ve),!(D&&Qa(D)&1048576)&&(ie.push(K),K=0,J.push(Z),Z=void 0,pe.push(de))}function Ny(D){ye=q.pop(),ve=fe.pop(),!(D&&Qa(D)&1048576)&&(K=ie.pop(),Z=J.pop(),de=pe.pop())}function Lg(D){(!de||de===Zs(pe))&&(de=new Set),de.add(D)}function Zb(D){(!ve||ve===Zs(fe))&&(ve=new Set),ve.add(D)}function dd(D){if(D)switch(D.kind){case 242:Je(D.statements,dd);break;case 257:case 255:case 247:case 248:dd(D.statement);break;case 246:dd(D.thenStatement),dd(D.elseStatement);break;case 249:case 251:case 250:dd(D.initializer),dd(D.statement);break;case 256:dd(D.caseBlock);break;case 270:Je(D.clauses,dd);break;case 297:case 298:Je(D.statements,dd);break;case 259:dd(D.tryBlock),dd(D.catchClause),dd(D.finallyBlock);break;case 300:dd(D.variableDeclaration),dd(D.block);break;case 244:dd(D.declarationList);break;case 262:Je(D.declarations,dd);break;case 261:case 170:case 209:case 264:kg(D.name);break;case 263:kg(D.name),Qa(D)&1048576&&(Je(D.parameters,dd),dd(D.body));break;case 207:case 208:Je(D.elements,dd);break;case 273:dd(D.importClause);break;case 274:kg(D.name),dd(D.namedBindings);break;case 275:kg(D.name);break;case 281:kg(D.name);break;case 276:Je(D.elements,dd);break;case 277:kg(D.propertyName||D.name);break}}function aS(D){if(D)switch(D.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:kg(D.name);break}}function kg(D){D&&(pl(D)||GS(D)?DT(D):Qo(D)&&dd(D))}function DT(D){let me=D.emitNode.autoGenerate;if((me.flags&7)===4)return KE(_w(D),eo(D),me.flags,me.prefix,me.suffix);{let Et=me.id;return G[Et]||(G[Et]=$f(D))}}function KE(D,me,Et,An,vi){let wi=ss(D),Ao=me?O:F;return Ao[wi]||(Ao[wi]=lp(D,me,Et??0,ID(An,DT),ID(vi)))}function wg(D,me){return xx(D)&&!vC(D,me)&&!j.has(D)}function vC(D,me){let Et,An;if(me?(Et=ve,An=fe):(Et=de,An=pe),Et?.has(D))return!0;for(let vi=An.length-1;vi>=0;vi--)if(Et!==An[vi]&&(Et=An[vi],Et?.has(D)))return!0;return!1}function xx(D,me){return k?E6(k,D,r):!0}function Rx(D,me){for(let Et=me;Et&&y1(Et,me);Et=Et.nextContainer)if(R_(Et)&&Et.locals){let An=Et.locals.get(Cl(D));if(An&&An.flags&3257279)return!1}return!0}function n2(D){switch(D){case"":return K;case"#":return ye;default:return Z?.get(D)??0}}function Dx(D,me){switch(D){case"":K=me;break;case"#":ye=me;break;default:Z??(Z=new Map),Z.set(D,me);break}}function CT(D,me,Et,An,vi){An.length>0&&An.charCodeAt(0)===35&&(An=An.slice(1));let wi=Y0(Et,An,"",vi),Ao=n2(wi);if(D&&!(Ao&D)){let Ja=Y0(Et,An,D===268435456?"_i":"_n",vi);if(wg(Ja,Et))return Ao|=D,Et?Zb(Ja):me&&Lg(Ja),Dx(wi,Ao),Ja}for(;;){let Li=Ao&268435455;if(Ao++,Li!==8&&Li!==13){let Ja=Li<26?"_"+String.fromCharCode(97+Li):"_"+(Li-26),_c=Y0(Et,An,Ja,vi);if(wg(_c,Et))return Et?Zb(_c):me&&Lg(_c),Dx(wi,Ao),_c}}}function My(D,me=wg,Et,An,vi,wi,Ao){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),Et){let Ja=Y0(vi,wi,D,Ao);if(me(Ja,vi))return vi?Zb(Ja):An?Lg(Ja):j.add(Ja),Ja}D.charCodeAt(D.length-1)!==95&&(D+="_");let Li=1;for(;;){let Ja=Y0(vi,wi,D+Li,Ao);if(me(Ja,vi))return vi?Zb(Ja):An?Lg(Ja):j.add(Ja),Ja;Li++}}function bC(D){return My(D,xx,!0,!1,!1,"","")}function NT(D){let me=xv(D.name);return Rx(me,ni(D,R_))?me:My(me,wg,!1,!1,!1,"","")}function XE(D){let me=lI(D),Et=ka(me)?Pte(me.text):"module";return My(Et,wg,!1,!1,!1,"","")}function hc(){return My("default",wg,!1,!1,!1,"","")}function ud(){return My("class",wg,!1,!1,!1,"","")}function Cx(D,me,Et,An){return He(D.name)?KE(D.name,me):CT(0,!1,me,Et,An)}function lp(D,me,Et,An,vi){switch(D.kind){case 80:case 81:return My(xv(D),wg,!!(Et&16),!!(Et&8),me,An,vi);case 268:case 267:return C.assert(!An&&!vi&&!me),NT(D);case 273:case 279:return C.assert(!An&&!vi&&!me),XE(D);case 263:case 264:{C.assert(!An&&!vi&&!me);let wi=D.name;return wi&&!pl(wi)?lp(wi,!1,Et,An,vi):hc()}case 278:return C.assert(!An&&!vi&&!me),hc();case 232:return C.assert(!An&&!vi&&!me),ud();case 175:case 178:case 179:return Cx(D,me,An,vi);case 168:return CT(0,!0,me,An,vi);default:return CT(0,!1,me,An,vi)}}function $f(D){let me=D.emitNode.autoGenerate,Et=ID(me.prefix,DT),An=ID(me.suffix);switch(me.flags&7){case 1:return CT(0,!!(me.flags&8),eo(D),Et,An);case 2:return C.assertNode(D,He),CT(268435456,!!(me.flags&8),!1,Et,An);case 3:return My(Kr(D),me.flags&32?xx:wg,!!(me.flags&16),!!(me.flags&8),eo(D),Et,An)}return C.fail(`Unsupported GeneratedIdentifierKind: ${C.formatEnum(me.flags&7,Xz,!0)}.`)}function sS(D,me){let Et=Lt(2,D,me),An=ge,vi=je,wi=Ge;Ah(me),Et(D,me),e0(me,An,vi,wi)}function Ah(D){let me=Qa(D),Et=Qh(D);Rv(D,me,Et.pos,Et.end),me&4096&&(cn=!0)}function e0(D,me,Et,An){let vi=Qa(D),wi=Qh(D);vi&4096&&(cn=!1),Nx(D,vi,wi.pos,wi.end,me,Et,An);let Ao=nie(D);Ao&&Nx(D,vi,Ao.pos,Ao.end,me,Et,An)}function Rv(D,me,Et,An){_t(),Wt=!1;let vi=Et<0||(me&1024)!==0||D.kind===12,wi=An<0||(me&2048)!==0||D.kind===12;(Et>0||An>0)&&Et!==An&&(vi||vp(Et,D.kind!==354),(!vi||Et>=0&&(me&1024)!==0)&&(ge=Et),(!wi||An>=0&&(me&2048)!==0)&&(je=An,D.kind===262&&(Ge=An))),Je(lD(D),r2),en()}function Nx(D,me,Et,An,vi,wi,Ao){_t();let Li=An<0||(me&2048)!==0||D.kind===12;Je(ew(D),Gl),(Et>0||An>0)&&Et!==An&&(ge=vi,je=wi,Ge=Ao,!Li&&D.kind!==354&&Px(An)),en()}function r2(D){(D.hasLeadingNewline||D.kind===2)&&Ce.writeLine(),TC(D),D.hasTrailingNewLine||D.kind===2?Ce.writeLine():Ce.writeSpace(" ")}function Gl(D){Ce.isAtStartOfLine()||Ce.writeSpace(" "),TC(D),D.hasTrailingNewLine&&Ce.writeLine()}function TC(D){let me=YE(D),Et=D.kind===3?KA(me):void 0;QR(me,Et,Ce,0,me.length,R)}function YE(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function lS(D,me,Et){_t();let{pos:An,end:vi}=me,wi=Qa(D),Ao=An<0||(wi&1024)!==0,Li=cn||vi<0||(wi&2048)!==0;Ao||Up(me),en(),wi&4096&&!cn?(cn=!0,Et(D),cn=!1):Et(D),_t(),Li||(vp(me.end,!0),Wt&&!Ce.isAtStartOfLine()&&Ce.writeLine()),en()}function Mx(D,me){return D=yl(D),D.parent&&D.parent===yl(me).parent}function du(D,me){if(me.pos<D.end)return!1;D=yl(D),me=yl(me);let Et=D.parent;if(!Et||Et!==me.parent)return!1;let An=Cre(D),vi=An?.indexOf(D);return vi!==void 0&&vi>-1&&An.indexOf(me)===vi+1}function vp(D,me){Wt=!1,me?D===0&&k?.isDeclarationFile?kx(D,MT):kx(D,QE):D===0&&kx(D,$E)}function $E(D,me,Et,An,vi){tA(D,me)&&QE(D,me,Et,An,vi)}function MT(D,me,Et,An,vi){tA(D,me)||QE(D,me,Et,An,vi)}function bp(D,me){return e.onlyPrintJsDocStyle?kj(D,me)||A6(D,me):!0}function QE(D,me,Et,An,vi){!k||!bp(k.text,D)||(Wt||(Cne(Ia(),Ce,vi,D),Wt=!0),$c(D),QR(k.text,Ia(),Ce,D,me,R),$c(me),An?Ce.writeLine():Et===3&&Ce.writeSpace(" "))}function Og(D){cn||D===-1||vp(D,!0)}function Px(D){eA(D,ZE)}function ZE(D,me,Et,An){!k||!bp(k.text,D)||(Ce.isAtStartOfLine()||Ce.writeSpace(" "),$c(D),QR(k.text,Ia(),Ce,D,me,R),$c(me),An&&Ce.writeLine())}function Xm(D,me,Et){cn||(_t(),eA(D,me?ZE:Et?Lx:SC),en())}function Lx(D,me,Et){k&&($c(D),QR(k.text,Ia(),Ce,D,me,R),$c(me),Et===2&&Ce.writeLine())}function SC(D,me,Et,An){k&&($c(D),QR(k.text,Ia(),Ce,D,me,R),$c(me),An?Ce.writeLine():Ce.writeSpace(" "))}function kx(D,me){k&&(ge===-1||D!==ge)&&(wx(D)?Dv(me):hL(k.text,D,me,D))}function eA(D,me){k&&(je===-1||D!==je&&D!==Ge)&&_L(k.text,D,me)}function wx(D){return at!==void 0&&Ba(at).nodePos===D}function Dv(D){if(!k)return;let me=Ba(at).detachedCommentEndPos;at.length-1?at.pop():at=void 0,hL(k.text,me,D,me)}function Up(D){let me=k&&Nne(k.text,Ia(),Ce,h_,D,R,cn);me&&(at?at.push(me):at=[me])}function h_(D,me,Et,An,vi,wi){!k||!bp(k.text,An)||($c(An),QR(D,me,Et,An,vi,wi),$c(vi))}function tA(D,me){return!!k&&ZB(k.text,D,me)}function nA(D,me){let Et=Lt(3,D,me);os(me),Et(D,me),Wr(me)}function os(D){let me=Qa(D),Et=ov(D),An=Et.source||Be;D.kind!==354&&(me&32)===0&&Et.pos>=0&&PT(Et.source||Be,Af(An,Et.pos)),me&128&&(be=!0)}function Wr(D){let me=Qa(D),Et=ov(D);me&128&&(be=!1),D.kind!==354&&(me&64)===0&&Et.end>=0&&PT(Et.source||Be,Et.end)}function Af(D,me){return D.skipTrivia?D.skipTrivia(me):La(D.text,me)}function $c(D){if(be||dh(D)||iA(Be))return;let{line:me,character:Et}=ca(Be,D);Ne.addMapping(Ce.getLine(),Ce.getColumn(),lt,me,Et,void 0)}function PT(D,me){if(D!==Be){let Et=Be,An=lt;cS(D),$c(me),LT(Et,An)}else $c(me)}function rA(D,me,Et,An,vi){if(be||D&&j6(D))return vi(me,Et,An);let wi=D&&D.emitNode,Ao=wi&&wi.flags||0,Li=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[me],Ja=Li&&Li.source||Be;return An=Af(Ja,Li?Li.pos:An),(Ao&256)===0&&An>=0&&PT(Ja,An),An=vi(me,Et,An),Li&&(An=Li.end),(Ao&512)===0&&An>=0&&PT(Ja,An),An}function cS(D){if(!be){if(Be=D,D===ce){lt=De;return}iA(D)||(lt=Ne.addSource(D.fileName),e.inlineSources&&Ne.setSourceContent(lt,D.text),ce=D,De=lt)}}function LT(D,me){Be=D,lt=me}function iA(D){return El(D.fileName,".json")}}function dHe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function uHe(e){return QSe[e&15360][0]}function pHe(e){return QSe[e&15360][1]}function fHe(e,t,r,i){t(e)}function mHe(e,t,r,i){t(e,r.select(i))}function hHe(e,t,r,i){t(e,r)}function _He(e,t){return e.length===1?fHe:typeof t=="object"?mHe:hHe}function fF(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Fd(r);return{useCaseSensitiveFileNames:r,fileExists:A,readFile:(q,ye)=>e.readFile(q,ye),directoryExists:e.directoryExists&&R,getDirectories:P,readDirectory:k,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&E,addOrDeleteFileOrDirectory:G,addOrDeleteFile:j,clearCache:Z,realpath:e.realpath&&F};function s(q){return ks(q,t,o)}function l(q){return i.get(Hc(q))}function u(q){let ye=l(ci(q));return ye&&(ye.sortedAndCanonicalizedFiles||(ye.sortedAndCanonicalizedFiles=ye.files.map(o).sort(),ye.sortedAndCanonicalizedDirectories=ye.directories.map(o).sort()),ye)}function d(q){return xc(ya(q))}function g(q,ye){var ie;if(!e.realpath||Hc(s(e.realpath(q)))===ye){let K={files:Vt(e.readDirectory(q,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(q)||[]};return i.set(Hc(ye),K),K}if((ie=e.directoryExists)!=null&&ie.call(e,q))return i.set(ye,!1),!1}function _(q,ye){ye=Hc(ye);let ie=l(ye);if(ie)return ie;try{return g(q,ye)}catch{C.assert(!i.has(Hc(ye)));return}}function v(q,ye){return Yv(q,ye,Vs,Wd)>=0}function E(q,ye,ie){let K=s(q),pe=u(K);return pe&&J(pe,d(q),!0),e.writeFile(q,ye,ie)}function A(q){let ye=s(q),ie=u(ye);return ie&&v(ie.sortedAndCanonicalizedFiles,o(d(q)))||e.fileExists(q)}function R(q){let ye=s(q);return i.has(Hc(ye))||e.directoryExists(q)}function N(q){let ye=s(q),ie=u(ye);if(ie){let K=d(q),pe=o(K),de=ie.sortedAndCanonicalizedDirectories;Kv(de,pe,Wd)&&ie.directories.push(K)}e.createDirectory(q)}function P(q){let ye=s(q),ie=_(q,ye);return ie?ie.directories.slice():e.getDirectories(q)}function k(q,ye,ie,K,pe){let de=s(q),fe=_(q,de),ve;if(fe!==void 0)return hre(q,ye,ie,K,r,t,pe,xe,F);return e.readDirectory(q,ye,ie,K,pe);function xe(Ce){let Xe=s(Ce);if(Xe===de)return fe||Y(Ce,Xe);let Se=_(Ce,Xe);return Se!==void 0?Se||Y(Ce,Xe):Tre}function Y(Ce,Xe){if(ve&&Xe===de)return ve;let Se={files:Vt(e.readDirectory(Ce,void 0,void 0,["*.*"]),d)||ae,directories:e.getDirectories(Ce)||ae};return Xe===de&&(ve=Se),Se}}function F(q){return e.realpath?e.realpath(q):q}function O(q){TN(ci(q),ye=>i.delete(Hc(ye))?!0:void 0)}function G(q,ye){if(l(ye)!==void 0){Z();return}let K=u(ye);if(!K){O(ye);return}if(!e.directoryExists){Z();return}let pe=d(q),de={fileExists:e.fileExists(q),directoryExists:e.directoryExists(q)};return de.directoryExists||v(K.sortedAndCanonicalizedDirectories,o(pe))?Z():J(K,pe,de.fileExists),de}function j(q,ye,ie){if(ie===1)return;let K=u(ye);K?J(K,d(q),ie===0):O(ye)}function J(q,ye,ie){let K=q.sortedAndCanonicalizedFiles,pe=o(ye);if(ie)Kv(K,pe,Wd)&&q.files.push(ye);else{let de=Yv(K,pe,Vs,Wd);if(de>=0){K.splice(de,1);let fe=q.files.findIndex(ve=>o(ve)===pe);q.files.splice(fe,1)}}}function Z(){i.clear()}}var tse=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(tse||{});function mF(e,t,r,i,o){var s;let l=hR(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||ae,o);r.forEach((u,d)=>{l.has(d)||(u.projects.delete(e),u.close())}),l.forEach((u,d)=>{let g=r.get(d);g?g.projects.add(e):r.set(d,{projects:new Set([e]),watcher:i(u,d),close:()=>{let _=r.get(d);!_||_.projects.size!==0||(_.watcher.close(),r.delete(d))}})})}function QU(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function hF(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&hF(e,o,r)})}function ZU(e,t,r){hM(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:zm})}function jw(e,t,r){t?hM(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:qf,onExistingValue:o}):mp(e,qf);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 Uw({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:d,writeLog:g,toPath:_,getScriptKind:v}){let E=DF(r);if(!E)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(TR(r)&&!(xV(t,o,l)||k()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(Ioe(t,o.configFile.configFileSpecs,To(ci(i),u),d,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||o.outFile||o.outDir)return!1;if(ad(r)){if(o.declarationDir)return!1}else if(!Yl(r,iD))return!1;let A=bu(r),R=Mo(s)?void 0:CH(s)?s.getProgramOrUndefined():s,N=!R&&!Mo(s)?s:void 0;if(P(A+".ts")||P(A+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function P(F){return R?!!R.getSourceFileByPath(F):N?N.state.fileInfos.has(F):!!hn(s,O=>_(O)===F)}function k(){if(!v)return!1;switch(v(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Eb(o);case 6:return I1(o);case 0:return!1}}}function nse(e,t){return e?e.isEmittedFile(t):!1}var rse=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(rse||{});function eH(e,t,r,i){uee(t===2?r:gs);let o={watchFile:(N,P,k,F)=>e.watchFile(N,P,k,F),watchDirectory:(N,P,k,F)=>e.watchDirectory(N,P,(k&1)!==0,F)},s=t!==0?{watchFile:A("watchFile"),watchDirectory:A("watchDirectory")}:void 0,l=t===2?{watchFile:v,watchDirectory:E}:s||o,u=t===2?_:vP;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(N){return(P,k,F,O,G,j)=>{var J;return B3(P,N==="watchFile"?O?.excludeFiles:O?.excludeDirectories,g(),((J=e.getCurrentDirectory)==null?void 0:J.call(e))||"")?u(P,F,O,G,j):l[N].call(void 0,P,k,F,O,G,j)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function _(N,P,k,F,O){return r(`ExcludeWatcher:: Added:: ${R(N,P,k,F,O,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(N,P,k,F,O,i)}`)}}function v(N,P,k,F,O,G){r(`FileWatcher:: Added:: ${R(N,k,F,O,G,i)}`);let j=s.watchFile(N,P,k,F,O,G);return{close:()=>{r(`FileWatcher:: Close:: ${R(N,k,F,O,G,i)}`),j.close()}}}function E(N,P,k,F,O,G){let j=`DirectoryWatcher:: Added:: ${R(N,k,F,O,G,i)}`;r(j);let J=Ls(),Z=s.watchDirectory(N,P,k,F,O,G),q=Ls()-J;return r(`Elapsed:: ${q}ms ${j}`),{close:()=>{let ye=`DirectoryWatcher:: Close:: ${R(N,k,F,O,G,i)}`;r(ye);let ie=Ls();Z.close();let K=Ls()-ie;r(`Elapsed:: ${K}ms ${ye}`)}}}function A(N){return(P,k,F,O,G,j)=>o[N].call(void 0,P,(...J)=>{let Z=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${J[0]} ${J[1]!==void 0?J[1]:""}:: ${R(P,F,O,G,j,i)}`;r(Z);let q=Ls();k.call(void 0,...J);let ye=Ls()-q;r(`Elapsed:: ${ye}ms ${Z}`)},F,O,G,j)}function R(N,P,k,F,O,G){return`WatchInfo: ${N} ${P} ${JSON.stringify(k)} ${G?G(F,O):O===void 0?F:`${F} ${O}`}`}}function Hw(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function qf(e){e.watcher.close()}function tH(e,t,r="tsconfig.json"){return TN(e,i=>{let o=Qr(i,r);return t(o)?o:void 0})}function nH(e,t){let r=ci(t),i=Rp(e)?e:Qr(r,e);return ya(i)}function ise(e,t,r){let i;return Je(e,s=>{let l=U8(s,t);if(l.pop(),!i){i=l;return}let u=Math.min(i.length,l.length);for(let d=0;d<u;d++)if(r(i[d])!==r(l[d])){if(d===0)return!0;i.length=d;break}l.length<i.length&&(i.length=l.length)})?"":i?A0(i):t}function ose(e,t){return _F(e,t)}function rH(e,t){return(r,i,o)=>{let s;try{Rl("beforeIORead"),s=e(r),Rl("afterIORead"),Lf("I/O Read","beforeIORead","afterIORead")}catch(l){o&&o(l.message),s=""}return s!==void 0?HI(r,s,i,t):void 0}}function iH(e,t,r){return(i,o,s,l)=>{try{Rl("beforeIOWrite"),JG(i,o,s,e,t,r),Rl("afterIOWrite"),Lf("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function _F(e,t,r=Uc){let i=new Map,o=Fd(r.useCaseSensitiveFileNames);function s(_){return i.has(_)?!0:(g.directoryExists||r.directoryExists)(_)?(i.set(_,!0),!0):!1}function l(){return ci(ya(r.getExecutingFilePath()))}let u=tv(e),d=r.realpath&&(_=>r.realpath(_)),g={getSourceFile:rH(_=>g.readFile(_),t),getDefaultLibLocation:l,getDefaultLibFileName:_=>Qr(l(),yL(_)),writeFile:iH((_,v,E)=>r.writeFile(_,v,E),_=>(g.createDirectory||r.createDirectory)(_),_=>s(_)),getCurrentDirectory:Cu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:_=>r.fileExists(_),readFile:_=>r.readFile(_),trace:_=>r.write(_+u),directoryExists:_=>r.directoryExists(_),getEnvironmentVariable:_=>r.getEnvironmentVariable?r.getEnvironmentVariable(_):"",getDirectories:_=>r.getDirectories(_),realpath:d,readDirectory:(_,v,E,A,R)=>r.readDirectory(_,v,E,A,R),createDirectory:_=>r.createDirectory(_),createHash:ia(r,r.createHash)};return g}function hP(e,t,r){let i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,d=new Map,g=new Map,_=new Map,v=new Map,E=N=>{let P=t(N),k=d.get(P);return k!==void 0?k!==!1?k:void 0:A(P,N)},A=(N,P)=>{let k=i.call(e,P);return d.set(N,k!==void 0?k:!1),k};e.readFile=N=>{let P=t(N),k=d.get(P);return k!==void 0?k!==!1?k:void 0:!El(N,".json")&&!Xae(N)?i.call(e,N):A(P,N)};let R=r?(N,P,k,F)=>{let O=t(N),G=typeof P=="object"?P.impliedNodeFormat:void 0,j=v.get(G),J=j?.get(O);if(J)return J;let Z=r(N,P,k,F);return Z&&(ad(N)||El(N,".json"))&&v.set(G,(j||new Map).set(O,Z)),Z}:void 0;return e.fileExists=N=>{let P=t(N),k=g.get(P);if(k!==void 0)return k;let F=o.call(e,N);return g.set(P,!!F),F},u&&(e.writeFile=(N,P,...k)=>{let F=t(N);g.delete(F);let O=d.get(F);O!==void 0&&O!==P?(d.delete(F),v.forEach(G=>G.delete(F))):R&&v.forEach(G=>{let j=G.get(F);j&&j.text!==P&&G.delete(F)}),u.call(e,N,P,...k)}),s&&(e.directoryExists=N=>{let P=t(N),k=_.get(P);if(k!==void 0)return k;let F=s.call(e,N);return _.set(P,!!F),F},l&&(e.createDirectory=N=>{let P=t(N);_.delete(P),l.call(e,N)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:E}}function aEe(e,t,r){let i;return i=Xr(i,e.getConfigFileParsingDiagnostics()),i=Xr(i,e.getOptionsDiagnostics(r)),i=Xr(i,e.getSyntacticDiagnostics(t,r)),i=Xr(i,e.getGlobalDiagnostics(r)),i=Xr(i,e.getSemanticDiagnostics(t,r)),hp(e.getCompilerOptions())&&(i=Xr(i,e.getDeclarationDiagnostics(t,r))),xR(i||ae)}function sEe(e,t){let r="";for(let i of e)r+=oH(i,t);return r}function oH(e,t){let r=`${kS(e)} TS${e.code}: ${o_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=ca(e.file,e.start),s=e.file.fileName;return`${bN(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}var ase=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(ase||{}),sse="\x1B[7m",lse=" ",lEe="\x1B[0m",cEe="...",gHe=" ",dEe=" ";function uEe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return C.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function j1(e,t){return t+e+lEe}function pEe(e,t,r,i,o,s){let{line:l,character:u}=ca(e,t),{line:d,character:g}=ca(e,t+r),_=ca(e,e.text.length).line,v=d-l>=4,E=(d+1+"").length;v&&(E=Math.max(cEe.length,E));let A="";for(let R=l;R<=d;R++){A+=s.getNewLine(),v&&l+1<R&&R<d-1&&(A+=i+j1(cEe.padStart(E),sse)+lse+s.getNewLine(),R=d-1);let N=fL(e,R,0),P=R<_?fL(e,R+1,0):e.text.length,k=e.text.slice(N,P);if(k=k.trimEnd(),k=k.replace(/\t/g," "),A+=i+j1((R+1+"").padStart(E),sse)+lse,A+=k+s.getNewLine(),A+=i+j1("".padStart(E),sse)+lse,A+=o,R===l){let F=R===d?g:void 0;A+=k.slice(0,u).replace(/\S/g," "),A+=k.slice(u,F).replace(/./g,"~")}else R===d?A+=k.slice(0,g).replace(/./g,"~"):A+=k.replace(/./g,"~");A+=lEe}return A}function aH(e,t,r,i=j1){let{line:o,character:s}=ca(e,t),l=r?bN(e.fileName,r.getCurrentDirectory(),d=>r.getCanonicalFileName(d)):e.fileName,u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function cse(e,t){let r="";for(let i of e){if(i.file){let{file:o,start:s}=i;r+=aH(o,s,t),r+=" - "}if(r+=j1(kS(i),uEe(i.category)),r+=j1(` 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+=pEe(i.file,i.start,i.length,"",uEe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(let{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=gHe+aH(o,s,t),r+=pEe(o,s,l,dEe,"\x1B[96m",t)),r+=t.getNewLine(),r+=dEe+o_(u,t.getNewLine())}r+=t.getNewLine()}return r}function o_(e,t,r=0){if(Bo(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(let o of e.next)i+=o_(o,t,r);return i}function dse(e,t){return(Bo(e)?t:e.resolutionMode)||t}function fEe(e,t,r){return gF(e,Xw(e,t),r)}function sH(e){var t;return fc(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function lH(e,t,r){return gF(e,t,r)}function gF(e,t,r){if((vl(t.parent)||fc(t.parent)||i_(t.parent))&&sH(t.parent)){let o=OD(t.parent.attributes);if(o)return o}if(t.parent.parent&&Zh(t.parent.parent)){let i=OD(t.parent.parent.attributes);if(i)return i}if(r&&gV(r))return mEe(e,t,r)}function mEe(e,t,r){var i;if(!r)return;let o=(i=Fm(t.parent))==null?void 0:i.parent;if(o&&Bc(o)||$u(t.parent,!1))return 1;if(Yu(Fm(t.parent)))return yEe(e,r)?1:99;let s=yP(e,r);return s===1?1:Wk(s)||s===200?99:void 0}function OD(e,t){if(!e)return;if(et(e.elements)!==1){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}let r=e.elements[0];if(cs(r.name)){if(r.name.text!=="resolution-mode"){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(cs(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t?.(r.value,f.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}var hEe={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0};function use(e){return e.text}var yF={getName:use,getMode:(e,t,r)=>lH(t,e,r)};function cH(e,t,r,i,o){return{nameAndMode:yF,resolve:(s,l)=>SE(s,e,r,i,o,t,l)}}function pse(e){return Bo(e)?e:e.fileName}var _Ee={getName:pse,getMode:(e,t,r)=>dse(e,t&&SF(t,r))};function vF(e,t,r,i,o){return{nameAndMode:_Ee,resolve:(s,l)=>koe(s,e,r,i,t,o,l)}}function qw(e,t,r,i,o,s,l,u){if(e.length===0)return ae;let d=[],g=new Map,_=u(t,r,i,s,l);for(let v of e){let E=_.nameAndMode.getName(v),A=_.nameAndMode.getMode(v,o,r?.commandLine.options||i),R=eP(E,A),N=g.get(R);N||g.set(R,N=_.resolve(E,A)),d.push(N)}return d}var _P="__inferred type names__.ts";function bF(e,t,r){let i=e.configFilePath?ci(e.configFilePath):t;return Qr(i,`__lib_node_modules_lookup_${r}__.ts`)}function dH(e){let t=e.split("."),r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function rT(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function WD(e){return e.pos!==void 0}function gP(e,t){var r,i,o,s;let l=C.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:d}=t,g,_,v;switch(u){case 3:let E=Xw(l,d);if(v=(i=(r=e.getResolvedModuleFromModuleSpecifier(E,l))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,E.pos===-1)return{file:l,packageId:v,text:E.text};g=La(l.text,E.pos),_=E.end;break;case 4:({pos:g,end:_}=l.referencedFiles[d]);break;case 5:({pos:g,end:_}=l.typeReferenceDirectives[d]),v=(s=(o=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(l.typeReferenceDirectives[d],l))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:g,end:_}=l.libReferenceDirectives[d]);break;default:return C.assertNever(u)}return{file:l,pos:g,end:_,packageId:v}}function uH(e,t,r,i,o,s,l,u,d,g){if(!e||u?.()||!$p(e.getRootFileNames(),t))return!1;let _;if(!$p(e.getProjectReferences(),g,N)||e.getSourceFiles().some(A))return!1;let v=e.getMissingFilePaths();if(v&&qc(v,o))return!1;let E=e.getCompilerOptions();if(!dV(E,r)||e.resolvedLibReferences&&qc(e.resolvedLibReferences,(k,F)=>l(F)))return!1;if(E.configFile&&r.configFile)return E.configFile.text===r.configFile.text;return!0;function A(k){return!R(k)||s(k.path)}function R(k){return k.version===i(k.resolvedPath,k.fileName)}function N(k,F,O){return XB(k,F)&&P(e.getResolvedProjectReferences()[O],k)}function P(k,F){if(k){if(jn(_,k))return!0;let G=ZI(F),j=d(G);return!j||k.commandLine.options.configFile!==j.options.configFile||!$p(k.commandLine.fileNames,j.fileNames)?!1:((_||(_=[])).push(k),!Je(k.references,(J,Z)=>!P(J,k.commandLine.projectReferences[Z])))}let O=ZI(F);return!d(O)}}function U1(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Jw(e,t,r,i){let o=TF(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function TF(e,t,r,i){let o=ru(i),s=3<=o&&o<=99||kb(e);return Yl(e,[".d.mts",".mts",".mjs"])?99:Yl(e,[".d.cts",".cts",".cjs"])?1:s&&Yl(e,[".d.ts",".ts",".tsx",".js",".jsx"])?l():void 0;function l(){let u=tP(t,r,i),d=[];u.failedLookupLocations=d,u.affectingLocations=d;let g=nP(ci(e),u);return{impliedNodeFormat:g?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:d,packageJsonScope:g}}}var gEe=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]);function yHe(e,t){return e?tI(e.getCompilerOptions(),t,Vj):!1}function vHe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function Kw(e,t,r,i,o){var s,l,u,d,g,_,v,E,A,R,N,P,k,F,O,G;let j=Mo(e)?vHe(e,t,r,i,o):e,{rootNames:J,options:Z,configFileParsingDiagnostics:q,projectReferences:ye,typeScriptVersion:ie,host:K}=j,{oldProgram:pe}=j;j=void 0,e=void 0;for(let Ye of foe)if(Rs(Z,Ye.name)&&typeof Z[Ye.name]=="string")throw new Error(`${Ye.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let de=Cu(()=>kt("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),fe,ve,xe,Y,Ce,Xe,Se,re,be,Ne=fse(Eo),Be,lt,ce,De,ge,je,Ge,We,at,Wt=typeof Z.maxNodeModuleJsDepth=="number"?Z.maxNodeModuleJsDepth:0,cn=0,gn=new Map,Kn=new Map;(s=xr)==null||s.push(xr.Phase.Program,"createProgram",{configFilePath:Z.configFilePath,rootDir:Z.rootDir},!0),Rl("beforeProgram");let _t=K||ose(Z),en=AF(_t),ir=Z.noLib,Di=Cu(()=>_t.getDefaultLibFileName(Z)),lo=_t.getDefaultLibLocation?_t.getDefaultLibLocation():ci(Di()),zt=!1,Zr=_t.getCurrentDirectory(),Ai=vM(Z),Ni=Bk(Z,Ai),Pr=new Map,Ci,$e,At,mn,dr=_t.hasInvalidatedResolutions||Qg;_t.resolveModuleNameLiterals?(mn=_t.resolveModuleNameLiterals.bind(_t),At=(l=_t.getModuleResolutionCache)==null?void 0:l.call(_t)):_t.resolveModuleNames?(mn=(Ye,mt,Yt,Rn,Qn,Lr)=>_t.resolveModuleNames(Ye.map(use),mt,Lr?.map(use),Yt,Rn,Qn).map(Yn=>Yn?Yn.extension!==void 0?{resolvedModule:Yn}:{resolvedModule:{...Yn,extension:TM(Yn.resolvedFileName)}}:hEe),At=(u=_t.getModuleResolutionCache)==null?void 0:u.call(_t)):(At=ND(Zr,Yc,Z),mn=(Ye,mt,Yt,Rn,Qn)=>qw(Ye,mt,Yt,Rn,Qn,_t,At,cH));let ri;if(_t.resolveTypeReferenceDirectiveReferences)ri=_t.resolveTypeReferenceDirectiveReferences.bind(_t);else if(_t.resolveTypeReferenceDirectives)ri=(Ye,mt,Yt,Rn,Qn)=>_t.resolveTypeReferenceDirectives(Ye.map(pse),mt,Yt,Rn,Qn?.impliedNodeFormat).map(Lr=>({resolvedTypeReferenceDirective:Lr}));else{let Ye=q3(Zr,Yc,void 0,At?.getPackageJsonInfoCache(),At?.optionsToRedirectsKey);ri=(mt,Yt,Rn,Qn,Lr)=>qw(mt,Yt,Rn,Qn,Lr,_t,Ye,vF)}let ai=_t.hasInvalidatedLibResolutions||Qg,qi;if(_t.resolveLibrary)qi=_t.resolveLibrary.bind(_t);else{let Ye=ND(Zr,Yc,Z,At?.getPackageJsonInfoCache());qi=(mt,Yt,Rn)=>J3(mt,Yt,Rn,_t,Ye)}let $o=new Map,Ia=new Map,Mn=lm(),Uo,ot=new Map,Ft=new Map,le=_t.useCaseSensitiveFileNames()?new Map:void 0,ht,ne,Fe,it,dt=!!((d=_t.useSourceOfProjectReferenceRedirect)!=null&&d.call(_t))&&!Z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Lt,fileExists:Ue,directoryExists:Rt}=bHe({compilerHost:_t,getSymlinkCache:Tf,useSourceOfProjectReferenceRedirect:dt,toPath:jt,getResolvedProjectReferences:sa,getRedirectFromOutput:ql,forEachResolvedProjectReference:Ll}),It=_t.readFile.bind(_t);(g=xr)==null||g.push(xr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!pe});let Ot=yHe(pe,Z);(_=xr)==null||_.pop();let nt;if((v=xr)==null||v.push(xr.Phase.Program,"tryReuseStructureFromOldProgram",{}),nt=Ln(),(E=xr)==null||E.pop(),nt!==2){if(fe=[],ve=[],ye&&(ht||(ht=ye.map(u_)),J.length&&ht?.forEach((Ye,mt)=>{if(!Ye)return;let Yt=Ye.commandLine.options.outFile;if(dt){if(Yt||vu(Ye.commandLine.options)===0)for(let Rn of Ye.commandLine.fileNames)rp(Rn,{kind:1,index:mt})}else if(Yt)rp(rv(Yt,".d.ts"),{kind:2,index:mt});else if(vu(Ye.commandLine.options)===0){let Rn=Cu(()=>xE(Ye.commandLine,!_t.useCaseSensitiveFileNames()));for(let Qn of Ye.commandLine.fileNames)!ad(Qn)&&!El(Qn,".json")&&rp(fP(Qn,Ye.commandLine,!_t.useCaseSensitiveFileNames(),Rn),{kind:2,index:mt})}})),(A=xr)==null||A.push(xr.Phase.Program,"processRootFiles",{count:J.length}),Je(J,(Ye,mt)=>Da(Ye,!1,!1,{kind:0,index:mt})),(R=xr)==null||R.pop(),Be??(Be=J.length?U3(Z,_t):ae),lt=CD(),Be.length){(N=xr)==null||N.push(xr.Phase.Program,"processTypeReferences",{count:Be.length});let Ye=Z.configFilePath?ci(Z.configFilePath):Zr,mt=Qr(Ye,_P),Yt=wt(Be,mt);for(let Rn=0;Rn<Be.length;Rn++)lt.set(Be[Rn],void 0,Yt[Rn]),Jf(Be[Rn],void 0,Yt[Rn],{kind:8,typeReference:Be[Rn],packageId:(k=(P=Yt[Rn])==null?void 0:P.resolvedTypeReferenceDirective)==null?void 0:k.packageId});(F=xr)==null||F.pop()}if(J.length&&!ir){let Ye=Di();!Z.lib&&Ye?Da(Ye,!0,!1,{kind:6}):Je(Z.lib,(mt,Yt)=>{Da(Dg(mt),!0,!1,{kind:6,index:Yt})})}xe=Ap(fe,ft).concat(ve),fe=void 0,ve=void 0,Se=void 0}if(pe&&_t.onReleaseOldSourceFile){let Ye=pe.getSourceFiles();for(let mt of Ye){let Yt=Ra(mt.resolvedPath);(Ot||!Yt||Yt.impliedNodeFormat!==mt.impliedNodeFormat||mt.resolvedPath===mt.path&&Yt.resolvedPath!==mt.path)&&_t.onReleaseOldSourceFile(mt,pe.getCompilerOptions(),!!Ra(mt.path),Yt)}_t.getParsedCommandLine||pe.forEachResolvedProjectReference(mt=>{bd(mt.sourceFile.path)||_t.onReleaseOldSourceFile(mt.sourceFile,pe.getCompilerOptions(),!1,void 0)})}pe&&_t.onReleaseParsedCommandLine&&MM(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Ye,mt,Yt)=>{let Rn=mt?.commandLine.projectReferences[Yt]||pe.getProjectReferences()[Yt],Qn=ZI(Rn);ne?.has(jt(Qn))||_t.onReleaseParsedCommandLine(Qn,Ye,pe.getCompilerOptions())}),pe=void 0,De=void 0,je=void 0,We=void 0;let Kt={getRootFileNames:()=>J,getSourceFile:$s,getSourceFileByPath:Ra,getSourceFiles:()=>xe,getMissingFilePaths:()=>Ft,getModuleResolutionCache:()=>At,getFilesByNameMap:()=>ot,getCompilerOptions:()=>Z,getSyntacticDiagnostics:vf,getOptionsDiagnostics:Fn,getGlobalDiagnostics:So,getSemanticDiagnostics:Lo,getCachedSemanticDiagnostics:fa,getSuggestionDiagnostics:pt,getDeclarationDiagnostics:Zt,getBindAndCheckDiagnostics:is,getProgramDiagnostics:qa,getTypeChecker:Ps,getClassifiableNames:In,getCommonSourceDirectory:Qt,emit:co,getCurrentDirectory:()=>Zr,getNodeCount:()=>Ps().getNodeCount(),getIdentifierCount:()=>Ps().getIdentifierCount(),getSymbolCount:()=>Ps().getSymbolCount(),getTypeCount:()=>Ps().getTypeCount(),getInstantiationCount:()=>Ps().getInstantiationCount(),getRelationCacheSizes:()=>Ps().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Ne.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Be,getAutomaticTypeDirectiveResolutions:()=>lt,isSourceFileFromExternalLibrary:Bl,isSourceFileDefaultLibrary:xl,getModeForUsageLocation:Kf,getEmitSyntaxForUsageLocation:Ty,getModeForResolutionAtIndex:yv,getSourceFileFromReference:vh,getLibFileFromReference:Pl,sourceFileToPackageName:Ia,redirectTargetsMap:Mn,usesUriStyleNodeCoreModules:Uo,resolvedModules:ge,resolvedTypeReferenceDirectiveNames:Ge,resolvedLibReferences:ce,getProgramDiagnosticsContainer:()=>Ne,getResolvedModule:Sr,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Nt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:_e,forEachResolvedModule:B,forEachResolvedTypeReferenceDirective:Ae,getCurrentPackagesMap:()=>at,typesPackageExists:Xt,packageBundlesTypes:Le,isEmittedFile:cd,getConfigFileParsingDiagnostics:Ns,getProjectReferences:zo,getResolvedProjectReferences:sa,getRedirectFromSourceFile:tl,getResolvedProjectReferenceByPath:bd,forEachResolvedProjectReference:Ll,isSourceOfProjectReferenceRedirect:nf,getRedirectFromOutput:ql,getCompilerOptionsForFile:Eu,getDefaultResolutionModeForFile:zu,getEmitModuleFormatOfFile:Th,getImpliedNodeFormatForEmit:G_,shouldTransformImportCall:Am,emitBuildInfo:ra,fileExists:Ue,readFile:It,directoryExists:Rt,getSymlinkCache:Tf,realpath:(O=_t.realpath)==null?void 0:O.bind(_t),useCaseSensitiveFileNames:()=>_t.useCaseSensitiveFileNames(),getCanonicalFileName:Yc,getFileIncludeReasons:()=>Ne.getFileReasons(),structureIsReused:nt,writeFile:Ii,getGlobalTypingsCacheLocation:ia(_t,_t.getGlobalTypingsCacheLocation)};return Lt(),zt||oe(),Rl("afterProgram"),Lf("Program","beforeProgram","afterProgram"),(G=xr)==null||G.pop(),Kt;function Sr(Ye,mt,Yt){var Rn;return(Rn=ge?.get(Ye.path))==null?void 0:Rn.get(mt,Yt)}function Oe(Ye,mt){return mt??(mt=Wn(Ye)),C.assertIsDefined(mt,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),Sr(mt,Ye.text,Kf(mt,Ye))}function Nt(Ye,mt,Yt){var Rn;return(Rn=Ge?.get(Ye.path))==null?void 0:Rn.get(mt,Yt)}function _e(Ye,mt){return Nt(mt,Ye.fileName,Vb(Ye,mt))}function B(Ye,mt){te(ge,Ye,mt)}function Ae(Ye,mt){te(Ge,Ye,mt)}function te(Ye,mt,Yt){var Rn;Yt?(Rn=Ye?.get(Yt.path))==null||Rn.forEach((Qn,Lr,Yn)=>mt(Qn,Lr,Yn,Yt.path)):Ye?.forEach((Qn,Lr)=>Qn.forEach((Yn,lr,Oi)=>mt(Yn,lr,Oi,Lr)))}function xt(){return at||(at=new Map,B(({resolvedModule:Ye})=>{Ye?.packageId&&at.set(Ye.packageId.name,Ye.extension===".d.ts"||!!at.get(Ye.packageId.name))}),at)}function Xt(Ye){return xt().has(Y3(Ye))}function Le(Ye){return!!xt().get(Ye)}function gt(Ye){var mt;(mt=Ye.resolutionDiagnostics)!=null&&mt.length&&Ne.addFileProcessingDiagnostic({kind:2,diagnostics:Ye.resolutionDiagnostics})}function Bt(Ye,mt,Yt,Rn){if(_t.resolveModuleNameLiterals||!_t.resolveModuleNames)return gt(Yt);if(!At||td(mt))return;let Qn=To(Ye.originalFileName,Zr),Lr=ci(Qn),Yn=Jn(Ye),lr=At.getFromNonRelativeNameCache(mt,Rn,Lr,Yn);lr&&gt(lr)}function gr(Ye,mt,Yt){var Rn,Qn;let Lr=To(mt.originalFileName,Zr),Yn=Jn(mt);(Rn=xr)==null||Rn.push(xr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Lr}),Rl("beforeResolveModule");let lr=mn(Ye,Lr,Yn,Z,mt,Yt);return Rl("afterResolveModule"),Lf("ResolveModule","beforeResolveModule","afterResolveModule"),(Qn=xr)==null||Qn.pop(),lr}function tr(Ye,mt,Yt){var Rn,Qn;let Lr=Bo(mt)?void 0:mt,Yn=Bo(mt)?mt:To(mt.originalFileName,Zr),lr=Lr&&Jn(Lr);(Rn=xr)==null||Rn.push(xr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Yn}),Rl("beforeResolveTypeReference");let Oi=ri(Ye,Yn,lr,Z,Lr,Yt);return Rl("afterResolveTypeReference"),Lf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Qn=xr)==null||Qn.pop(),Oi}function Jn(Ye){var mt,Yt;let Rn=tl(Ye.originalFileName);if(Rn||!ad(Ye.originalFileName))return Rn?.resolvedRef;let Qn=(mt=ql(Ye.path))==null?void 0:mt.resolvedRef;if(Qn)return Qn;if(!_t.realpath||!Z.preserveSymlinks||!Ye.originalFileName.includes(xg))return;let Lr=jt(_t.realpath(Ye.originalFileName));return Lr===Ye.path||(Yt=ql(Lr))==null?void 0:Yt.resolvedRef}function ft(Ye,mt){return js(Mt(Ye),Mt(mt))}function Mt(Ye){if(dm(lo,Ye.fileName,!1)){let mt=xc(Ye.fileName);if(mt==="lib.d.ts"||mt==="lib.es6.d.ts")return 0;let Yt=yR(pN(mt,"lib."),".d.ts"),Rn=R3.indexOf(Yt);if(Rn!==-1)return Rn+1}return R3.length+2}function jt(Ye){return ks(Ye,Zr,Yc)}function Qt(){let Ye=Ne.getCommonSourceDirectory();if(Ye!==void 0)return Ye;let mt=Un(xe,Yt=>b1(Yt,Kt));return Ye=mP(Z,()=>Ui(mt,Yt=>Yt.isDeclarationFile?void 0:Yt.fileName),Zr,Yc,Yt=>bf(mt,Yt)),Ne.setCommonSourceDirectory(Ye),Ye}function In(){var Ye;if(!Xe){Ps(),Xe=new Set;for(let mt of xe)(Ye=mt.classifiableNames)==null||Ye.forEach(Yt=>Xe.add(Yt))}return Xe}function yn(Ye,mt){return En({entries:Ye,containingFile:mt,containingSourceFile:mt,redirectedReference:Jn(mt),nameAndModeGetter:yF,resolutionWorker:gr,getResolutionFromOldProgram:(Yt,Rn)=>pe?.getResolvedModule(mt,Yt,Rn),getResolved:nI,canReuseResolutionsInFile:()=>mt===pe?.getSourceFile(mt.fileName)&&!dr(mt.path),resolveToOwnAmbientModule:!0})}function wt(Ye,mt){let Yt=Bo(mt)?void 0:mt;return En({entries:Ye,containingFile:mt,containingSourceFile:Yt,redirectedReference:Yt&&Jn(Yt),nameAndModeGetter:_Ee,resolutionWorker:tr,getResolutionFromOldProgram:(Rn,Qn)=>{var Lr;return Yt?pe?.getResolvedTypeReferenceDirective(Yt,Rn,Qn):(Lr=pe?.getAutomaticTypeDirectiveResolutions())==null?void 0:Lr.get(Rn,Qn)},getResolved:b6,canReuseResolutionsInFile:()=>Yt?Yt===pe?.getSourceFile(Yt.fileName)&&!dr(Yt.path):!dr(jt(mt))})}function En({entries:Ye,containingFile:mt,containingSourceFile:Yt,redirectedReference:Rn,nameAndModeGetter:Qn,resolutionWorker:Lr,getResolutionFromOldProgram:Yn,getResolved:lr,canReuseResolutionsInFile:Oi,resolveToOwnAmbientModule:Ro}){if(!Ye.length)return ae;if(nt===0&&(!Ro||!Yt.ambientModuleNames.length))return Lr(Ye,mt,void 0);let _i,Do,Qi,hl,op=Oi();for(let Td=0;Td<Ye.length;Td++){let xm=Ye[Td];if(op){let jp=Qn.getName(xm),fT=Qn.getMode(xm,Yt,Rn?.commandLine.options??Z),p_=Yn(jp,fT),V_=p_&&lr(p_);if(V_){Pb(Z,_t)&&xo(_t,Lr===gr?V_.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:V_.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,jp,Yt?To(Yt.originalFileName,Zr):mt,V_.resolvedFileName,V_.packageId&&D0(V_.packageId)),(Qi??(Qi=new Array(Ye.length)))[Td]=p_,(hl??(hl=[])).push(xm);continue}}if(Ro){let jp=Qn.getName(xm);if(jn(Yt.ambientModuleNames,jp)){Pb(Z,_t)&&xo(_t,f.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,jp,To(Yt.originalFileName,Zr)),(Qi??(Qi=new Array(Ye.length)))[Td]=hEe;continue}}(_i??(_i=[])).push(xm),(Do??(Do=[])).push(Td)}if(!_i)return Qi;let Im=Lr(_i,mt,hl);return Qi?(Im.forEach((Td,xm)=>Qi[Do[xm]]=Td),Qi):Im}function xn(){return!MM(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Ye,mt,Yt)=>{let Rn=(mt?mt.commandLine.projectReferences:ye)[Yt],Qn=u_(Rn);return Ye?!Qn||Qn.sourceFile!==Ye.sourceFile||!$p(Ye.commandLine.fileNames,Qn.commandLine.fileNames):Qn!==void 0},(Ye,mt)=>{let Yt=mt?bd(mt.sourceFile.path).commandLine.projectReferences:ye;return!$p(Ye,Yt,XB)})}function Ln(){var Ye;if(!pe)return 0;let mt=pe.getCompilerOptions();if(y6(mt,Z))return 0;let Yt=pe.getRootFileNames();if(!$p(Yt,J)||!xn())return 0;ye&&(ht=ye.map(u_));let Rn=[],Qn=[];if(nt=2,qc(pe.getMissingFilePaths(),_i=>_t.fileExists(_i)))return 0;let Lr=pe.getSourceFiles(),Yn;(_i=>{_i[_i.Exists=0]="Exists",_i[_i.Modified=1]="Modified"})(Yn||(Yn={}));let lr=new Map;for(let _i of Lr){let Do=go(_i.fileName,At,_t,Z),Qi=_t.getSourceFileByPath?_t.getSourceFileByPath(_i.fileName,_i.resolvedPath,Do,void 0,Ot):_t.getSourceFile(_i.fileName,Do,void 0,Ot);if(!Qi)return 0;Qi.packageJsonLocations=(Ye=Do.packageJsonLocations)!=null&&Ye.length?Do.packageJsonLocations:void 0,Qi.packageJsonScope=Do.packageJsonScope,C.assert(!Qi.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let hl;if(_i.redirectInfo){if(Qi!==_i.redirectInfo.unredirected)return 0;hl=!1,Qi=_i}else if(pe.redirectTargetsMap.has(_i.path)){if(Qi!==_i)return 0;hl=!1}else hl=Qi!==_i;Qi.path=_i.path,Qi.originalFileName=_i.originalFileName,Qi.resolvedPath=_i.resolvedPath,Qi.fileName=_i.fileName;let op=pe.sourceFileToPackageName.get(_i.path);if(op!==void 0){let Im=lr.get(op),Td=hl?1:0;if(Im!==void 0&&Td===1||Im===1)return 0;lr.set(op,Td)}hl?(_i.impliedNodeFormat!==Qi.impliedNodeFormat?nt=1:$p(_i.libReferenceDirectives,Qi.libReferenceDirectives,Qs)?_i.hasNoDefaultLib!==Qi.hasNoDefaultLib?nt=1:$p(_i.referencedFiles,Qi.referencedFiles,Qs)?(Hs(Qi),$p(_i.imports,Qi.imports,Ec)&&$p(_i.moduleAugmentations,Qi.moduleAugmentations,Ec)?(_i.flags&12582912)!==(Qi.flags&12582912)?nt=1:$p(_i.typeReferenceDirectives,Qi.typeReferenceDirectives,Qs)||(nt=1):nt=1):nt=1:nt=1,Qn.push(Qi)):dr(_i.path)&&(nt=1,Qn.push(Qi)),Rn.push(Qi)}if(nt!==2)return nt;for(let _i of Qn){let Do=vEe(_i),Qi=yn(Do,_i);(je??(je=new Map)).set(_i.path,Qi);let hl=Eu(_i);$B(Do,Qi,jp=>pe.getResolvedModule(_i,jp.text,gF(_i,jp,hl)),Ete)&&(nt=1);let Im=_i.typeReferenceDirectives,Td=wt(Im,_i);(We??(We=new Map)).set(_i.path,Td),$B(Im,Td,jp=>pe.getResolvedTypeReferenceDirective(_i,pse(jp),Vb(jp,_i)),Ate)&&(nt=1)}if(nt!==2)return nt;if(Tte(mt,Z)||pe.resolvedLibReferences&&qc(pe.resolvedLibReferences,(_i,Do)=>Cg(Do).actual!==_i.actual))return 1;if(_t.hasChangedAutomaticTypeDirectiveNames){if(_t.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Be=U3(Z,_t),!$p(pe.getAutomaticTypeDirectiveNames(),Be))return 1;Ft=pe.getMissingFilePaths(),C.assert(Rn.length===pe.getSourceFiles().length);for(let _i of Rn)ot.set(_i.path,_i);pe.getFilesByNameMap().forEach((_i,Do)=>{if(!_i){ot.set(Do,_i);return}if(_i.path===Do){pe.isSourceFileFromExternalLibrary(_i)&&Kn.set(_i.path,!0);return}ot.set(Do,ot.get(_i.path))});let Ro=mt.configFile&&mt.configFile===Z.configFile||!mt.configFile&&!Z.configFile&&!tI(mt,Z,jm);return Ne.reuseStateFromOldProgram(pe.getProgramDiagnosticsContainer(),Ro),zt=Ro,xe=Rn,Be=pe.getAutomaticTypeDirectiveNames(),lt=pe.getAutomaticTypeDirectiveResolutions(),Ia=pe.sourceFileToPackageName,Mn=pe.redirectTargetsMap,Uo=pe.usesUriStyleNodeCoreModules,ge=pe.resolvedModules,Ge=pe.resolvedTypeReferenceDirectiveNames,ce=pe.resolvedLibReferences,at=pe.getCurrentPackagesMap(),2}function ln(Ye){return{getCanonicalFileName:Yc,getCommonSourceDirectory:Kt.getCommonSourceDirectory,getCompilerOptions:Kt.getCompilerOptions,getCurrentDirectory:()=>Zr,getSourceFile:Kt.getSourceFile,getSourceFileByPath:Kt.getSourceFileByPath,getSourceFiles:Kt.getSourceFiles,isSourceFileFromExternalLibrary:Bl,getRedirectFromSourceFile:tl,isSourceOfProjectReferenceRedirect:nf,getSymlinkCache:Tf,writeFile:Ye||Ii,isEmitBlocked:Go,shouldTransformImportCall:Am,getEmitModuleFormatOfFile:Th,getDefaultResolutionModeForFile:zu,getModeForResolutionAtIndex:yv,readFile:mt=>_t.readFile(mt),fileExists:mt=>{let Yt=jt(mt);return Ra(Yt)?!0:Ft.has(Yt)?!1:_t.fileExists(mt)},realpath:ia(_t,_t.realpath),useCaseSensitiveFileNames:()=>_t.useCaseSensitiveFileNames(),getBuildInfo:()=>{var mt;return(mt=Kt.getBuildInfo)==null?void 0:mt.call(Kt)},getSourceFileFromReference:(mt,Yt)=>Kt.getSourceFileFromReference(mt,Yt),redirectTargetsMap:Mn,getFileIncludeReasons:Kt.getFileIncludeReasons,createHash:ia(_t,_t.createHash),getModuleResolutionCache:()=>Kt.getModuleResolutionCache(),trace:ia(_t,_t.trace),getGlobalTypingsCacheLocation:Kt.getGlobalTypingsCacheLocation}}function Ii(Ye,mt,Yt,Rn,Qn,Lr){_t.writeFile(Ye,mt,Yt,Rn,Qn,Lr)}function ra(Ye){var mt,Yt;(mt=xr)==null||mt.push(xr.Phase.Emit,"emitBuildInfo",{},!0),Rl("beforeEmit");let Rn=XU(Qae,ln(Ye),void 0,Jae,!1,!0);return Rl("afterEmit"),Lf("Emit","beforeEmit","afterEmit"),(Yt=xr)==null||Yt.pop(),Rn}function sa(){return ht}function zo(){return ye}function Bl(Ye){return!!Kn.get(Ye.path)}function xl(Ye){if(!Ye.isDeclarationFile)return!1;if(Ye.hasNoDefaultLib)return!0;if(Z.noLib)return!1;let mt=_t.useCaseSensitiveFileNames()?i1:eb;return Z.lib?vt(Z.lib,Yt=>{let Rn=ce.get(Yt);return!!Rn&&mt(Ye.fileName,Rn.actual)}):mt(Ye.fileName,Di())}function Ps(){return Ce||(Ce=oae(Kt))}function co(Ye,mt,Yt,Rn,Qn,Lr,Yn){var lr,Oi;(lr=xr)==null||lr.push(xr.Phase.Emit,"emit",{path:Ye?.path},!0);let Ro=Hl(()=>Sc(Kt,Ye,mt,Yt,Rn,Qn,Lr,Yn));return(Oi=xr)==null||Oi.pop(),Ro}function Go(Ye){return Pr.has(jt(Ye))}function Sc(Ye,mt,Yt,Rn,Qn,Lr,Yn,lr){if(!Yn){let Do=fH(Ye,mt,Yt,Rn);if(Do)return Do}let Oi=Ps(),Ro=Oi.getEmitResolver(Z.outFile?void 0:mt,Rn,KU(Qn,Yn));Rl("beforeEmit");let _i=Oi.runWithCancellationToken(Rn,()=>XU(Ro,ln(Yt),mt,Kae(Z,Lr,Qn),Qn,!1,Yn,lr));return Rl("afterEmit"),Lf("Emit","beforeEmit","afterEmit"),_i}function $s(Ye){return Ra(jt(Ye))}function Ra(Ye){return ot.get(Ye)||void 0}function Zl(Ye,mt,Yt){return xR(Ye?mt(Ye,Yt):Ki(Kt.getSourceFiles(),Rn=>(Yt&&Yt.throwIfCancellationRequested(),mt(Rn,Yt))))}function vf(Ye,mt){return Zl(Ye,As,mt)}function Lo(Ye,mt,Yt){return Zl(Ye,(Rn,Qn)=>sc(Rn,Qn,Yt),mt)}function fa(Ye){return re?.get(Ye.path)}function is(Ye,mt){return vd(Ye,mt,void 0)}function qa(Ye){var mt;if(oD(Ye,Z,Kt))return ae;let Yt=Ne.getCombinedDiagnostics(Kt).getDiagnostics(Ye.fileName);return(mt=Ye.commentDirectives)!=null&&mt.length?$(Ye,Ye.commentDirectives,Yt).diagnostics:Yt}function Zt(Ye,mt){return Zl(Ye,Dr,mt)}function As(Ye){return Mu(Ye)?(Ye.additionalSyntacticDiagnostics||(Ye.additionalSyntacticDiagnostics=fn(Ye)),so(Ye.additionalSyntacticDiagnostics,Ye.parseDiagnostics)):Ye.parseDiagnostics}function Hl(Ye){try{return Ye()}catch(mt){throw mt instanceof yN&&(Ce=void 0),mt}}function sc(Ye,mt,Yt){return so(EF(vd(Ye,mt,Yt),Z),qa(Ye))}function vd(Ye,mt,Yt){if(Yt)return Fs(Ye,mt,Yt);let Rn=re?.get(Ye.path);return Rn||(re??(re=new Map)).set(Ye.path,Rn=Fs(Ye,mt)),Rn}function Fs(Ye,mt,Yt){return Hl(()=>{if(oD(Ye,Z,Kt))return ae;let Rn=Ps();C.assert(!!Ye.bindDiagnostics);let Qn=Ye.scriptKind===1||Ye.scriptKind===2,Lr=zN(Ye,Z.checkJs),Yn=Qn&&SM(Ye,Z),lr=Ye.bindDiagnostics,Oi=Rn.getDiagnostics(Ye,mt,Yt);return Lr&&(lr=Un(lr,Ro=>gEe.has(Ro.code)),Oi=Un(Oi,Ro=>gEe.has(Ro.code))),Ee(Ye,!Lr,!!Yt,lr,Oi,Yn?Ye.jsDocDiagnostics:void 0)})}function Ee(Ye,mt,Yt,...Rn){var Qn;let Lr=la(Rn);if(!mt||!((Qn=Ye.commentDirectives)!=null&&Qn.length))return Lr;let{diagnostics:Yn,directives:lr}=$(Ye,Ye.commentDirectives,Lr);if(Yt)return Yn;for(let Oi of lr.getUnusedExpectations())Yn.push(Gte(Ye,Oi.range,f.Unused_ts_expect_error_directive));return Yn}function $(Ye,mt,Yt){let Rn=Rte(Ye,mt);return{diagnostics:Yt.filter(Lr=>qt(Lr,Rn)===-1),directives:Rn}}function pt(Ye,mt){return Hl(()=>Ps().getSuggestionDiagnostics(Ye,mt))}function qt(Ye,mt){let{file:Yt,start:Rn}=Ye;if(!Yt)return-1;let Qn=og(Yt),Lr=AR(Qn,Rn).line-1;for(;Lr>=0;){if(mt.markUsed(Lr))return Lr;let Yn=Yt.text.slice(Qn[Lr],Qn[Lr+1]).trim();if(Yn!==""&&!/^\s*\/\/.*$/.test(Yn))return-1;Lr--}return-1}function fn(Ye){return Hl(()=>{let mt=[];return Yt(Ye,Ye),UI(Ye,Yt,Rn),mt;function Yt(lr,Oi){switch(Oi.kind){case 170:case 173:case 175:if(Oi.questionToken===lr)return mt.push(Yn(lr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(Oi.type===lr)return mt.push(Yn(lr,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(lr.kind){case 274:if(lr.isTypeOnly)return mt.push(Yn(Oi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(lr.isTypeOnly)return mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(lr.isTypeOnly)return mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,Su(lr)?"import...type":"export...type")),"skip";break;case 272:return mt.push(Yn(lr,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(lr.isExportEquals)return mt.push(Yn(lr,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(lr.token===119)return mt.push(Yn(lr,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:let _i=_a(120);return C.assertIsDefined(_i),mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,_i)),"skip";case 268:let Do=lr.flags&32?_a(145):_a(144);return C.assertIsDefined(Do),mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,Do)),"skip";case 266:return mt.push(Yn(lr,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return lr.body?void 0:(mt.push(Yn(lr,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:let Qi=C.checkDefined(_a(94));return mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,Qi)),"skip";case 236:return mt.push(Yn(lr,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return mt.push(Yn(lr.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return mt.push(Yn(lr.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:C.fail()}}function Rn(lr,Oi){if(Nj(Oi)){let Ro=hn(Oi.modifiers,zc);Ro&&mt.push(Yn(Ro,f.Decorators_are_not_valid_here))}else if(F1(Oi)&&Oi.modifiers){let Ro=ho(Oi.modifiers,zc);if(Ro>=0){if(to(Oi)&&!Z.experimentalDecorators)mt.push(Yn(Oi.modifiers[Ro],f.Decorators_are_not_valid_here));else if(Cc(Oi)){let _i=ho(Oi.modifiers,PI);if(_i>=0){let Do=ho(Oi.modifiers,o3);if(Ro>_i&&Do>=0&&Ro<Do)mt.push(Yn(Oi.modifiers[Ro],f.Decorators_are_not_valid_here));else if(_i>=0&&Ro<_i){let Qi=ho(Oi.modifiers,zc,_i);Qi>=0&&mt.push(pa(Yn(Oi.modifiers[Qi],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Yn(Oi.modifiers[Ro],f.Decorator_used_before_export_here)))}}}}}switch(Oi.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(lr===Oi.typeParameters)return mt.push(Lr(lr,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(lr===Oi.modifiers)return Qn(Oi.modifiers,Oi.kind===244),"skip";break;case 173:if(lr===Oi.modifiers){for(let Ro of lr)Aa(Ro)&&Ro.kind!==126&&Ro.kind!==129&&mt.push(Yn(Ro,f.The_0_modifier_can_only_be_used_in_TypeScript_files,_a(Ro.kind)));return"skip"}break;case 170:if(lr===Oi.modifiers&&vt(lr,Aa))return mt.push(Lr(lr,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(lr===Oi.typeArguments)return mt.push(Lr(lr,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Qn(lr,Oi){for(let Ro of lr)switch(Ro.kind){case 87:if(Oi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:mt.push(Yn(Ro,f.The_0_modifier_can_only_be_used_in_TypeScript_files,_a(Ro.kind)));break;case 126:case 95:case 90:case 129:}}function Lr(lr,Oi,...Ro){let _i=lr.pos;return Fc(Ye,_i,lr.end-_i,Oi,...Ro)}function Yn(lr,Oi,...Ro){return wf(Ye,lr,Oi,...Ro)}})}function ur(Ye,mt){let Yt=be?.get(Ye.path);return Yt||(be??(be=new Map)).set(Ye.path,Yt=si(Ye,mt)),Yt}function si(Ye,mt){return Hl(()=>{let Yt=Ps().getEmitResolver(Ye,mt);return qae(ln(gs),Yt,Ye)||ae})}function Dr(Ye,mt){return Ye.isDeclarationFile?ae:ur(Ye,mt)}function Fn(){return xR(so(Ne.getCombinedDiagnostics(Kt).getGlobalDiagnostics(),ro()))}function ro(){if(!Z.configFile)return ae;let Ye=Ne.getCombinedDiagnostics(Kt).getDiagnostics(Z.configFile.fileName);return Ll(mt=>{Ye=so(Ye,Ne.getCombinedDiagnostics(Kt).getDiagnostics(mt.sourceFile.fileName))}),Ye}function So(){return J.length?xR(Ps().getGlobalDiagnostics().slice()):ae}function Ns(){return q||ae}function Da(Ye,mt,Yt,Rn){tf(ya(Ye),mt,Yt,void 0,Rn)}function Qs(Ye,mt){return Ye.fileName===mt.fileName}function Ec(Ye,mt){return Ye.kind===80?mt.kind===80&&Ye.escapedText===mt.escapedText:mt.kind===11&&Ye.text===mt.text}function mc(Ye,mt){let Yt=L.createStringLiteral(Ye),Rn=L.createImportDeclaration(void 0,void 0,Yt);return aE(Rn,2),us(Yt,Rn),us(Rn,mt),Yt.flags&=-17,Rn.flags&=-17,Yt}function Hs(Ye){if(Ye.imports)return;let mt=Mu(Ye),Yt=Gc(Ye),Rn,Qn,Lr;if(mt||!Ye.isDeclarationFile&&(gm(Z)||Gc(Ye))){Z.importHelpers&&(Rn=[mc(pb,Ye)]);let lr=CW(Fk(Z,Ye),Z);lr&&(Rn||(Rn=[])).push(mc(lr,Ye))}for(let lr of Ye.statements)Yn(lr,!1);(Ye.flags&4194304||mt)&&XW(Ye,!0,!0,(lr,Oi)=>{z0(lr,!1),Rn=Bn(Rn,Oi)}),Ye.imports=Rn||ae,Ye.moduleAugmentations=Qn||ae,Ye.ambientModuleNames=Lr||ae;return;function Yn(lr,Oi){if(VL(lr)){let Ro=lI(lr);Ro&&ka(Ro)&&Ro.text&&(!Oi||!td(Ro.text))&&(z0(lr,!1),Rn=Bn(Rn,Ro),!Uo&&cn===0&&!Ye.isDeclarationFile&&(po(Ro.text,"node:")&&!KW.has(Ro.text)?Uo=!0:Uo===void 0&&zre.has(Ro.text)&&(Uo=!1)))}else if(pc(lr)&&gu(lr)&&(Oi||di(lr,128)||Ye.isDeclarationFile)){lr.name.parent=lr;let Ro=Wf(lr.name);if(Yt||Oi&&!td(Ro))(Qn||(Qn=[])).push(lr.name);else if(!Oi){Ye.isDeclarationFile&&(Lr||(Lr=[])).push(Ro);let _i=lr.body;if(_i)for(let Do of _i.statements)Yn(Do,!0)}}}}function Pl(Ye){var mt;let Yt=VV(Ye),Rn=Yt&&((mt=ce?.get(Yt))==null?void 0:mt.actual);return Rn!==void 0?$s(Rn):void 0}function vh(Ye,mt){return Pd(nH(mt.fileName,Ye.fileName),$s)}function Pd(Ye,mt,Yt,Rn){if(TR(Ye)){let Qn=_t.getCanonicalFileName(Ye);if(!Z.allowNonTsExtensions&&!Je(la(Ni),Yn=>El(Qn,Yn))){Yt&&(bg(Qn)?Yt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ye):Yt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ye,"'"+la(Ai).join("', '")+"'"));return}let Lr=mt(Ye);if(Yt)if(Lr)rT(Rn)&&Qn===_t.getCanonicalFileName(Ra(Rn.file).fileName)&&Yt(f.A_file_cannot_have_a_reference_to_itself);else{let Yn=tl(Ye);Yn?.outputDts?Yt(f.Output_file_0_has_not_been_built_from_source_file_1,Yn.outputDts,Ye):Yt(f.File_0_not_found,Ye)}return Lr}else{let Qn=Z.allowNonTsExtensions&&mt(Ye);if(Qn)return Qn;if(Yt&&Z.allowNonTsExtensions){Yt(f.File_0_not_found,Ye);return}let Lr=Je(Ai[0],Yn=>mt(Ye+Yn));return Yt&&!Lr&&Yt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ye,"'"+la(Ai).join("', '")+"'"),Lr}}function tf(Ye,mt,Yt,Rn,Qn){Pd(Ye,Lr=>er(Lr,mt,Yt,Qn,Rn),(Lr,...Yn)=>or(void 0,Qn,Lr,Yn),Qn)}function rp(Ye,mt){return tf(Ye,!1,!1,void 0,mt)}function ze(Ye,mt,Yt){!rT(Yt)&&vt(Ne.getFileReasons().get(mt.path),rT)?or(mt,Yt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[mt.fileName,Ye]):or(mt,Yt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ye,mt.fileName])}function Jt(Ye,mt,Yt,Rn,Qn,Lr,Yn){var lr;let Oi=$0.createRedirectedSourceFile({redirectTarget:Ye,unredirected:mt});return Oi.fileName=Yt,Oi.path=Rn,Oi.resolvedPath=Qn,Oi.originalFileName=Lr,Oi.packageJsonLocations=(lr=Yn.packageJsonLocations)!=null&&lr.length?Yn.packageJsonLocations:void 0,Oi.packageJsonScope=Yn.packageJsonScope,Kn.set(Rn,cn>0),Oi}function er(Ye,mt,Yt,Rn,Qn){var Lr,Yn;(Lr=xr)==null||Lr.push(xr.Phase.Program,"findSourceFile",{fileName:Ye,isDefaultLib:mt||void 0,fileIncludeKind:Yz[Rn.kind]});let lr=Za(Ye,mt,Yt,Rn,Qn);return(Yn=xr)==null||Yn.pop(),lr}function go(Ye,mt,Yt,Rn){let Qn=TF(To(Ye,Zr),mt?.getPackageJsonInfoCache(),Yt,Rn),Lr=Ga(Rn),Yn=Lk(Rn);return typeof Qn=="object"?{...Qn,languageVersion:Lr,setExternalModuleIndicator:Yn,jsDocParsingMode:Yt.jsDocParsingMode}:{languageVersion:Lr,impliedNodeFormat:Qn,setExternalModuleIndicator:Yn,jsDocParsingMode:Yt.jsDocParsingMode}}function Za(Ye,mt,Yt,Rn,Qn){var Lr,Yn;let lr=jt(Ye);if(dt){let Qi=ql(lr);if(!Qi&&_t.realpath&&Z.preserveSymlinks&&ad(Ye)&&Ye.includes(xg)){let hl=jt(_t.realpath(Ye));hl!==lr&&(Qi=ql(hl))}if(Qi?.source){let hl=er(Qi.source,mt,Yt,Rn,Qn);return hl&&Va(hl,lr,Ye,void 0),hl}}let Oi=Ye;if(ot.has(lr)){let Qi=ot.get(lr),hl=es(Qi||void 0,Rn,!0);if(Qi&&hl&&Z.forceConsistentCasingInFileNames!==!1){let op=Qi.fileName;jt(op)!==jt(Ye)&&(Ye=((Lr=tl(Ye))==null?void 0:Lr.outputDts)||Ye);let Td=mB(op,Zr),xm=mB(Ye,Zr);Td!==xm&&ze(Ye,Qi,Rn)}return Qi&&Kn.get(Qi.path)&&cn===0?(Kn.set(Qi.path,!1),Z.noResolve||(ld(Qi,mt),Gp(Qi)),Z.noLib||ip(Qi),gn.set(Qi.path,!1),bh(Qi)):Qi&&gn.get(Qi.path)&&cn<Wt&&(gn.set(Qi.path,!1),bh(Qi)),Qi||void 0}let Ro;if(!dt){let Qi=tl(Ye);if(Qi?.outputDts){if(Qi.resolvedRef.commandLine.options.outFile)return;Ye=Qi.outputDts,Ro=jt(Qi.outputDts)}}let _i=go(Ye,At,_t,Z),Do=_t.getSourceFile(Ye,_i,Qi=>or(void 0,Rn,f.Cannot_read_file_0_Colon_1,[Ye,Qi]),Ot);if(Qn){let Qi=D0(Qn),hl=$o.get(Qi);if(hl){let op=Jt(hl,Do,Ye,lr,jt(Ye),Oi,_i);return Mn.add(hl.path,Ye),Va(op,lr,Ye,Ro),es(op,Rn,!1),Ia.set(lr,S6(Qn)),ve.push(op),op}else Do&&($o.set(Qi,Do),Ia.set(lr,S6(Qn)))}if(Va(Do,lr,Ye,Ro),Do){if(Kn.set(lr,cn>0),Do.fileName=Ye,Do.path=lr,Do.resolvedPath=jt(Ye),Do.originalFileName=Oi,Do.packageJsonLocations=(Yn=_i.packageJsonLocations)!=null&&Yn.length?_i.packageJsonLocations:void 0,Do.packageJsonScope=_i.packageJsonScope,es(Do,Rn,!1),_t.useCaseSensitiveFileNames()){let Qi=Qv(lr),hl=le.get(Qi);hl?ze(Ye,hl,Rn):le.set(Qi,Do)}ir=ir||Do.hasNoDefaultLib&&!Yt,Z.noResolve||(ld(Do,mt),Gp(Do)),Z.noLib||ip(Do),bh(Do),mt?fe.push(Do):ve.push(Do),(Se??(Se=new Set)).add(Do.path)}return Do}function es(Ye,mt,Yt){return Ye&&(!Yt||!rT(mt)||!Se?.has(mt.file))?(Ne.getFileReasons().add(Ye.path,mt),!0):!1}function Va(Ye,mt,Yt,Rn){Rn?(Pc(Yt,Rn,Ye),Pc(Yt,mt,Ye||!1)):Pc(Yt,mt,Ye)}function Pc(Ye,mt,Yt){ot.set(mt,Yt),Yt!==void 0?Ft.delete(mt):Ft.set(mt,Ye)}function tl(Ye){return Fe?.get(jt(Ye))}function Ll(Ye){return jV(ht,Ye)}function ql(Ye){return it?.get(Ye)}function nf(Ye){return dt&&!!tl(Ye)}function bd(Ye){if(ne)return ne.get(Ye)||void 0}function ld(Ye,mt){Je(Ye.referencedFiles,(Yt,Rn)=>{tf(nH(Yt.fileName,Ye.fileName),mt,!1,void 0,{kind:4,file:Ye.path,index:Rn})})}function Gp(Ye){let mt=Ye.typeReferenceDirectives;if(!mt.length)return;let Yt=We?.get(Ye.path)||wt(mt,Ye),Rn=CD();(Ge??(Ge=new Map)).set(Ye.path,Rn);for(let Qn=0;Qn<mt.length;Qn++){let Lr=Ye.typeReferenceDirectives[Qn],Yn=Yt[Qn],lr=Lr.fileName,Oi=Vb(Lr,Ye);Rn.set(lr,Oi,Yn),Jf(lr,Oi,Yn,{kind:5,file:Ye.path,index:Qn})}}function Eu(Ye){var mt;return((mt=Jn(Ye))==null?void 0:mt.commandLine.options)||Z}function Jf(Ye,mt,Yt,Rn){var Qn,Lr;(Qn=xr)==null||Qn.push(xr.Phase.Program,"processTypeReferenceDirective",{directive:Ye,hasResolved:!!Yt.resolvedTypeReferenceDirective,refKind:Rn.kind,refPath:rT(Rn)?Rn.file:void 0}),B_(Ye,mt,Yt,Rn),(Lr=xr)==null||Lr.pop()}function B_(Ye,mt,Yt,Rn){gt(Yt);let{resolvedTypeReferenceDirective:Qn}=Yt;Qn?(Qn.isExternalLibraryImport&&cn++,tf(Qn.resolvedFileName,!1,!1,Qn.packageId,Rn),Qn.isExternalLibraryImport&&cn--):or(void 0,Rn,f.Cannot_find_type_definition_file_for_0,[Ye])}function Dg(Ye){let mt=ce?.get(Ye);if(mt)return mt.actual;let Yt=Cg(Ye);return(ce??(ce=new Map)).set(Ye,Yt),Yt.actual}function Cg(Ye){var mt,Yt,Rn,Qn,Lr;let Yn=De?.get(Ye);if(Yn)return Yn;if(Z.libReplacement===!1){let Do={resolution:{resolvedModule:void 0},actual:Qr(lo,Ye)};return(De??(De=new Map)).set(Ye,Do),Do}if(nt!==0&&pe&&!ai(Ye)){let Do=(mt=pe.resolvedLibReferences)==null?void 0:mt.get(Ye);if(Do){if(Do.resolution&&Pb(Z,_t)){let Qi=dH(Ye),hl=bF(Z,Zr,Ye);xo(_t,Do.resolution.resolvedModule?Do.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,Qi,To(hl,Zr),(Yt=Do.resolution.resolvedModule)==null?void 0:Yt.resolvedFileName,((Rn=Do.resolution.resolvedModule)==null?void 0:Rn.packageId)&&D0(Do.resolution.resolvedModule.packageId))}return(De??(De=new Map)).set(Ye,Do),Do}}let lr=dH(Ye),Oi=bF(Z,Zr,Ye);(Qn=xr)==null||Qn.push(xr.Phase.Program,"resolveLibrary",{resolveFrom:Oi}),Rl("beforeResolveLibrary");let Ro=qi(lr,Oi,Z,Ye);Rl("afterResolveLibrary"),Lf("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(Lr=xr)==null||Lr.pop();let _i={resolution:Ro,actual:Ro.resolvedModule?Ro.resolvedModule.resolvedFileName:Qr(lo,Ye)};return(De??(De=new Map)).set(Ye,_i),_i}function ip(Ye){Je(Ye.libReferenceDirectives,(mt,Yt)=>{let Rn=VV(mt);Rn?Da(Dg(Rn),!0,!0,{kind:7,file:Ye.path,index:Yt}):Ne.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:Ye.path,index:Yt}})})}function Yc(Ye){return _t.getCanonicalFileName(Ye)}function bh(Ye){if(Hs(Ye),Ye.imports.length||Ye.moduleAugmentations.length){let mt=vEe(Ye),Yt=je?.get(Ye.path)||yn(mt,Ye);C.assert(Yt.length===mt.length);let Rn=Eu(Ye),Qn=CD();(ge??(ge=new Map)).set(Ye.path,Qn);for(let Lr=0;Lr<mt.length;Lr++){let Yn=Yt[Lr].resolvedModule,lr=mt[Lr].text,Oi=gF(Ye,mt[Lr],Rn);if(Qn.set(lr,Oi,Yt[Lr]),Bt(Ye,lr,Yt[Lr],Oi),!Yn)continue;let Ro=Yn.isExternalLibraryImport,_i=!bM(Yn.extension)&&!tl(Yn.resolvedFileName),Do=Ro&&_i&&(!Yn.originalPath||kb(Yn.resolvedFileName)),Qi=Yn.resolvedFileName;Ro&&cn++;let hl=Do&&cn>Wt,op=Qi&&!mH(Rn,Yn,Ye)&&!Rn.noResolve&&Lr<Ye.imports.length&&!hl&&!(_i&&!Eb(Rn))&&(Ir(Ye.imports[Lr])||!(Ye.imports[Lr].flags&16777216));hl?gn.set(Ye.path,!0):op&&er(Qi,!1,!1,{kind:3,file:Ye.path,index:Lr},Yn.packageId),Ro&&cn--}}}function bf(Ye,mt){let Yt=!0,Rn=_t.getCanonicalFileName(To(mt,Zr));for(let Qn of Ye)Qn.isDeclarationFile||_t.getCanonicalFileName(To(Qn.fileName,Zr)).indexOf(Rn)!==0&&(Ne.addLazyConfigDiagnostic(Qn,f.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,Qn.fileName,mt),Yt=!1);return Yt}function u_(Ye){ne||(ne=new Map);let mt=ZI(Ye),Yt=jt(mt),Rn=ne.get(Yt);if(Rn!==void 0)return Rn||void 0;let Qn,Lr;if(_t.getParsedCommandLine){if(Qn=_t.getParsedCommandLine(mt),!Qn){Va(void 0,Yt,mt,void 0),ne.set(Yt,!1);return}Lr=C.checkDefined(Qn.options.configFile),C.assert(!Lr.path||Lr.path===Yt),Va(Lr,Yt,mt,void 0)}else{let lr=To(ci(mt),Zr);if(Lr=_t.getSourceFile(mt,100),Va(Lr,Yt,mt,void 0),Lr===void 0){ne.set(Yt,!1);return}Qn=Iw(Lr,en,lr,void 0,mt)}Lr.fileName=mt,Lr.path=Yt,Lr.resolvedPath=Yt,Lr.originalFileName=mt;let Yn={commandLine:Qn,sourceFile:Lr};if(ne.set(Yt,Yn),Z.configFile!==Lr){Fe??(Fe=new Map),it??(it=new Map);let lr;Qn.options.outFile&&(lr=rv(Qn.options.outFile,".d.ts"),it?.set(jt(lr),{resolvedRef:Yn}));let Oi=Cu(()=>xE(Yn.commandLine,!_t.useCaseSensitiveFileNames()));Qn.fileNames.forEach(Ro=>{let _i=jt(Ro),Do;!ad(Ro)&&!El(Ro,".json")&&(Qn.options.outFile?Do=lr:(Do=fP(Ro,Yn.commandLine,!_t.useCaseSensitiveFileNames(),Oi),it.set(jt(Do),{resolvedRef:Yn,source:Ro}))),Fe.set(_i,{resolvedRef:Yn,outputDts:Do})})}return Qn.projectReferences&&(Yn.references=Qn.projectReferences.map(u_)),Yn}function oe(){Z.strictPropertyInitialization&&!Vd(Z,"strictNullChecks")&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),Z.exactOptionalPropertyTypes&&!Vd(Z,"strictNullChecks")&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(Z.isolatedModules||Z.verbatimModuleSyntax)&&Z.outFile&&Ve(f.Option_0_cannot_be_specified_with_option_1,"outFile",Z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),Z.isolatedDeclarations&&(Eb(Z)&&Ve(f.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),hp(Z)||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),Z.inlineSourceMap&&(Z.sourceMap&&Ve(f.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),Z.mapRoot&&Ve(f.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),Z.composite&&(Z.declaration===!1&&Ve(f.Composite_projects_may_not_disable_declaration_emit,"declaration"),Z.incremental===!1&&Ve(f.Composite_projects_may_not_disable_incremental_compilation,"declaration"));let Ye=Z.outFile;if(!Z.tsBuildInfoFile&&Z.incremental&&!Ye&&!Z.configFilePath&&Ne.addConfigDiagnostic(Il(f.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),an(),ti(),Z.composite){let Yn=new Set(J.map(jt));for(let lr of xe)b1(lr,Kt)&&!Yn.has(lr.path)&&Ne.addLazyConfigDiagnostic(lr,f.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,lr.fileName,Z.configFilePath||"")}if(Z.paths){for(let Yn in Z.paths)if(Rs(Z.paths,Yn))if(vV(Yn)||$i(!0,Yn,f.Pattern_0_can_have_at_most_one_Asterisk_character,Yn),Mo(Z.paths[Yn])){let lr=Z.paths[Yn].length;lr===0&&$i(!1,Yn,f.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Yn);for(let Oi=0;Oi<lr;Oi++){let Ro=Z.paths[Yn][Oi],_i=typeof Ro;_i==="string"?(vV(Ro)||Ti(Yn,Oi,f.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Ro,Yn),!Z.baseUrl&&!Qp(Ro)&&!vN(Ro)&&Ti(Yn,Oi,f.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Ti(Yn,Oi,f.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Ro,Yn,_i)}}else $i(!1,Yn,f.Substitutions_for_pattern_0_should_be_an_array,Yn)}!Z.sourceMap&&!Z.inlineSourceMap&&(Z.inlineSources&&Ve(f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),Z.sourceRoot&&Ve(f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),Z.mapRoot&&!(Z.sourceMap||Z.declarationMap)&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),Z.declarationDir&&(hp(Z)||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),Ye&&Ve(f.Option_0_cannot_be_specified_with_option_1,"declarationDir","outFile")),Z.declarationMap&&!hp(Z)&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),Z.lib&&Z.noLib&&Ve(f.Option_0_cannot_be_specified_with_option_1,"lib","noLib");let mt=Ga(Z),Yt=hn(xe,Yn=>Gc(Yn)&&!Yn.isDeclarationFile);if(Z.isolatedModules||Z.verbatimModuleSyntax)Z.module===0&&mt<2&&Z.isolatedModules&&Ve(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),Z.preserveConstEnums===!1&&Ve(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,Z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Yt&&mt<2&&Z.module===0){let Yn=qS(Yt,typeof Yt.externalModuleIndicator=="boolean"?Yt:Yt.externalModuleIndicator);Ne.addConfigDiagnostic(Fc(Yt,Yn.start,Yn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ye&&!Z.emitDeclarationOnly){if(Z.module&&!(Z.module===2||Z.module===4))Ve(f.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(Z.module===void 0&&Yt){let Yn=qS(Yt,typeof Yt.externalModuleIndicator=="boolean"?Yt:Yt.externalModuleIndicator);Ne.addConfigDiagnostic(Fc(Yt,Yn.start,Yn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(I1(Z)&&(ru(Z)===1?Ve(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):IW(Z)||Ve(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),Z.outDir||Z.rootDir||Z.sourceRoot||Z.mapRoot||hp(Z)&&Z.declarationDir){let Yn=Qt();Z.outDir&&Yn===""&&xe.some(lr=>Fh(lr.fileName)>1)&&Ve(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}Z.checkJs&&!Eb(Z)&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),Z.emitDeclarationOnly&&(hp(Z)||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),Z.emitDecoratorMetadata&&!Z.experimentalDecorators&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Z.jsxFactory?(Z.reactNamespace&&Ve(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Z.jsx===4||Z.jsx===5)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",bw.get(""+Z.jsx)),qI(Z.jsxFactory,mt)||kt("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Z.jsxFactory)):Z.reactNamespace&&!pp(Z.reactNamespace,mt)&&kt("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Z.reactNamespace),Z.jsxFragmentFactory&&(Z.jsxFactory||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Z.jsx===4||Z.jsx===5)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",bw.get(""+Z.jsx)),qI(Z.jsxFragmentFactory,mt)||kt("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,Z.jsxFragmentFactory)),Z.reactNamespace&&(Z.jsx===4||Z.jsx===5)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",bw.get(""+Z.jsx)),Z.jsxImportSource&&Z.jsx===2&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",bw.get(""+Z.jsx));let Rn=vu(Z);Z.verbatimModuleSyntax&&(Rn===2||Rn===3||Rn===4)&&Ve(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),Z.allowImportingTsExtensions&&!(Z.noEmit||Z.emitDeclarationOnly||Z.rewriteRelativeImportExtensions)&&kt("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let Qn=ru(Z);if(Z.resolvePackageJsonExports&&!rD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),Z.resolvePackageJsonImports&&!rD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),Z.customConditions&&!rD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Qn===100&&!Wk(Rn)&&Rn!==200&&kt("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),bR[Rn]&&100<=Rn&&Rn<=199&&!(3<=Qn&&Qn<=99)){let Yn=bR[Rn],lr=vR[Yn]?Yn:"Node16";kt("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,lr,Yn)}else if(vR[Qn]&&3<=Qn&&Qn<=99&&!(100<=Rn&&Rn<=199)){let Yn=vR[Qn];kt("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,Yn,Yn)}if(!Z.noEmit&&!Z.suppressOutputPathCheck){let Yn=ln(),lr=new Set;UU(Yn,Oi=>{Z.emitDeclarationOnly||Lr(Oi.jsFilePath,lr),Lr(Oi.declarationFilePath,lr)})}function Lr(Yn,lr){if(Yn){let Oi=jt(Yn);if(ot.has(Oi)){let _i;Z.configFilePath||(_i=qo(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)),_i=qo(_i,f.Cannot_write_file_0_because_it_would_overwrite_input_file,Yn),Ca(Yn,SW(_i))}let Ro=_t.useCaseSensitiveFileNames()?Oi:Qv(Oi);lr.has(Ro)?Ca(Yn,Il(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Yn)):lr.add(Ro)}}}function ut(){let Ye=Z.ignoreDeprecations;if(Ye){if(Ye==="5.0")return new ih(Ye);de()}return ih.zero}function tn(Ye,mt,Yt,Rn){let Qn=new ih(Ye),Lr=new ih(mt),Yn=new ih(ie||he),lr=ut(),Oi=Lr.compareTo(Yn)!==1,Ro=!Oi&&lr.compareTo(Qn)===-1;(Oi||Ro)&&Rn((_i,Do,Qi)=>{Oi?Do===void 0?Yt(_i,Do,Qi,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,_i):Yt(_i,Do,Qi,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,_i,Do):Do===void 0?Yt(_i,Do,Qi,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,_i,mt,Ye):Yt(_i,Do,Qi,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,_i,Do,mt,Ye)})}function an(){function Ye(mt,Yt,Rn,Qn,...Lr){if(Rn){let Yn=qo(void 0,f.Use_0_instead,Rn),lr=qo(Yn,Qn,...Lr);yo(!Yt,mt,void 0,lr)}else yo(!Yt,mt,void 0,Qn,...Lr)}tn("5.0","5.5",Ye,mt=>{Z.target===0&&mt("target","ES3"),Z.noImplicitUseStrict&&mt("noImplicitUseStrict"),Z.keyofStringsOnly&&mt("keyofStringsOnly"),Z.suppressExcessPropertyErrors&&mt("suppressExcessPropertyErrors"),Z.suppressImplicitAnyIndexErrors&&mt("suppressImplicitAnyIndexErrors"),Z.noStrictGenericChecks&&mt("noStrictGenericChecks"),Z.charset&&mt("charset"),Z.out&&mt("out",void 0,"outFile"),Z.importsNotUsedAsValues&&mt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),Z.preserveValueImports&&mt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function wn(Ye,mt,Yt){function Rn(Qn,Lr,Yn,lr,...Oi){On(mt,Yt,lr,...Oi)}tn("5.0","5.5",Rn,Qn=>{Ye.prepend&&Qn("prepend")})}function or(Ye,mt,Yt,Rn){Ne.addFileProcessingDiagnostic({kind:1,file:Ye&&Ye.path,fileProcessingReason:mt,diagnostic:Yt,args:Rn})}function ti(){let Ye=Z.suppressOutputPathCheck?void 0:nT(Z);MM(ye,ht,(mt,Yt,Rn)=>{let Qn=(Yt?Yt.commandLine.projectReferences:ye)[Rn],Lr=Yt&&Yt.sourceFile;if(wn(Qn,Lr,Rn),!mt){On(Lr,Rn,f.File_0_not_found,Qn.path);return}let Yn=mt.commandLine.options;(!Yn.composite||Yn.noEmit)&&(Yt?Yt.commandLine.fileNames:J).length&&(Yn.composite||On(Lr,Rn,f.Referenced_project_0_must_have_setting_composite_Colon_true,Qn.path),Yn.noEmit&&On(Lr,Rn,f.Referenced_project_0_may_not_disable_emit,Qn.path)),!Yt&&Ye&&Ye===nT(Yn)&&(On(Lr,Rn,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ye,Qn.path),Pr.set(jt(Ye),!0))})}function Ti(Ye,mt,Yt,...Rn){let Qn=!0;z(Lr=>{Wa(Lr.initializer)&&BR(Lr.initializer,Ye,Yn=>{let lr=Yn.initializer;Cd(lr)&&lr.elements.length>mt&&(Ne.addConfigDiagnostic(wf(Z.configFile,lr.elements[mt],Yt,...Rn)),Qn=!1)})}),Qn&&ta(Yt,...Rn)}function $i(Ye,mt,Yt,...Rn){let Qn=!0;z(Lr=>{Wa(Lr.initializer)&&ml(Lr.initializer,Ye,mt,void 0,Yt,...Rn)&&(Qn=!1)}),Qn&&ta(Yt,...Rn)}function z(Ye){return HV(Eo(),"paths",Ye)}function Ve(Ye,mt,Yt,Rn){yo(!0,mt,Yt,Ye,mt,Yt,Rn)}function kt(Ye,mt,...Yt){yo(!1,Ye,void 0,mt,...Yt)}function On(Ye,mt,Yt,...Rn){let Qn=XL(Ye||Z.configFile,"references",Lr=>Cd(Lr.initializer)?Lr.initializer:void 0);Qn&&Qn.elements.length>mt?Ne.addConfigDiagnostic(wf(Ye||Z.configFile,Qn.elements[mt],Yt,...Rn)):Ne.addConfigDiagnostic(Il(Yt,...Rn))}function yo(Ye,mt,Yt,Rn,...Qn){let Lr=Eo();(!Lr||!ml(Lr,Ye,mt,Yt,Rn,...Qn))&&ta(Rn,...Qn)}function ta(Ye,...mt){let Yt=Vo();Yt?"messageText"in Ye?Ne.addConfigDiagnostic(mg(Z.configFile,Yt.name,Ye)):Ne.addConfigDiagnostic(wf(Z.configFile,Yt.name,Ye,...mt)):"messageText"in Ye?Ne.addConfigDiagnostic(SW(Ye)):Ne.addConfigDiagnostic(Il(Ye,...mt))}function Eo(){if(Ci===void 0){let Ye=Vo();Ci=Ye&&ni(Ye.initializer,Wa)||!1}return Ci||void 0}function Vo(){return $e===void 0&&($e=BR(UN(Z.configFile),"compilerOptions",Vs)||!1),$e||void 0}function ml(Ye,mt,Yt,Rn,Qn,...Lr){let Yn=!1;return BR(Ye,Yt,lr=>{"messageText"in Qn?Ne.addConfigDiagnostic(mg(Z.configFile,mt?lr.name:lr.initializer,Qn)):Ne.addConfigDiagnostic(wf(Z.configFile,mt?lr.name:lr.initializer,Qn,...Lr)),Yn=!0},Rn),Yn}function Ca(Ye,mt){Pr.set(jt(Ye),!0),Ne.addConfigDiagnostic(mt)}function cd(Ye){if(Z.noEmit)return!1;let mt=jt(Ye);if(Ra(mt))return!1;let Yt=Z.outFile;if(Yt)return Vp(mt,Yt)||Vp(mt,bu(Yt)+".d.ts");if(Z.declarationDir&&dm(Z.declarationDir,mt,Zr,!_t.useCaseSensitiveFileNames()))return!0;if(Z.outDir)return dm(Z.outDir,mt,Zr,!_t.useCaseSensitiveFileNames());if(Yl(mt,iD)||ad(mt)){let Rn=bu(mt);return!!Ra(Rn+".ts")||!!Ra(Rn+".tsx")}return!1}function Vp(Ye,mt){return Zg(Ye,mt,Zr,!_t.useCaseSensitiveFileNames())===0}function Tf(){return _t.getSymlinkCache?_t.getSymlinkCache():(Y||(Y=bV(Zr,Yc)),xe&&!Y.hasProcessedResolutions()&&Y.setSymlinksFromResolutions(B,Ae,lt),Y)}function Kf(Ye,mt){return gF(Ye,mt,Eu(Ye))}function Ty(Ye,mt){return mEe(Ye,mt,Eu(Ye))}function yv(Ye,mt){return Kf(Ye,Xw(Ye,mt))}function zu(Ye){return SF(Ye,Eu(Ye))}function G_(Ye){return RE(Ye,Eu(Ye))}function Th(Ye){return yP(Ye,Eu(Ye))}function Am(Ye){return yEe(Ye,Eu(Ye))}function Vb(Ye,mt){return Ye.resolutionMode||zu(mt)}}function yEe(e,t){let r=vu(t);return 100<=r&&r<=199||r===200?!1:yP(e,t)<5}function yP(e,t){return RE(e,t)??vu(t)}function RE(e,t){var r,i;let o=vu(t);if(100<=o&&o<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(((r=e.packageJsonScope)==null?void 0:r.contents.packageJsonContent.type)==="commonjs"||Yl(e.fileName,[".cjs",".cts"])))return 1;if(e.impliedNodeFormat===99&&(((i=e.packageJsonScope)==null?void 0:i.contents.packageJsonContent.type)==="module"||Yl(e.fileName,[".mjs",".mts"])))return 99}function SF(e,t){return gV(t)?RE(e,t):void 0}function bHe(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:gs,fileExists:d};e.compilerHost.fileExists=d;let l;return i&&(l=e.compilerHost.directoryExists=A=>i.call(e.compilerHost,A)?(v(A),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{let N=R.commandLine.options.outFile;if(N)t.add(ci(e.toPath(N)));else{let P=R.commandLine.options.declarationDir||R.commandLine.options.outDir;P&&t.add(e.toPath(P))}})),E(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:d,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function d(A){return r.call(e.compilerHost,A)?!0:!e.getResolvedProjectReferences()||!ad(A)?!1:E(A,!0)}function g(A){let R=e.getRedirectFromOutput(e.toPath(A));return R!==void 0?Bo(R.source)?r.call(e.compilerHost,R.source):!0:void 0}function _(A){let R=e.toPath(A),N=`${R}${Js}`;return pg(t,P=>R===P||po(P,N)||po(R,`${P}/`))}function v(A){var R;if(!e.getResolvedProjectReferences()||xM(A)||!s||!A.includes(xg))return;let N=e.getSymlinkCache(),P=Hc(e.toPath(A));if((R=N.getSymlinkedDirectories())!=null&&R.has(P))return;let k=ya(s.call(e.compilerHost,A)),F;if(k===A||(F=Hc(e.toPath(k)))===P){N.setSymlinkedDirectory(P,!1);return}N.setSymlinkedDirectory(A,{real:Hc(k),realPath:F})}function E(A,R){var N;let P=R?g:_,k=P(A);if(k!==void 0)return k;let F=e.getSymlinkCache(),O=F.getSymlinkedDirectories();if(!O)return!1;let G=e.toPath(A);return G.includes(xg)?R&&((N=F.getSymlinkedFiles())!=null&&N.has(G))?!0:cr(O.entries(),([j,J])=>{if(!J||!po(G,j))return;let Z=P(G.replace(j,J.realPath));if(R&&Z){let q=To(A,e.compilerHost.getCurrentDirectory());F.setSymlinkedFile(G,`${J.real}${q.replace(new RegExp(j,"i"),"")}`)}return Z})||!1:!1}}var pH={diagnostics:ae,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function fH(e,t,r,i){let o=e.getCompilerOptions();if(o.noEmit)return t?pH: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&&hp(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t){let 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 EF(e,t){return Un(e,r=>!r.skippedOn||!t[r.skippedOn])}function AF(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return C.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||r1,trace:e.trace?r=>e.trace(r):void 0}}function ZI(e){return jH(e.path)}function mH(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 Eb(e)||!Vd(e,"noImplicitAny")?void 0:f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return I1(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 vEe({imports:e,moduleAugmentations:t}){let r=e.map(i=>i);for(let i of t)i.kind===11&&r.push(i);return r}function Xw({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(let o of t)if(o.kind===11){if(r===i)return o;i++}C.fail("should never ask for module name at index higher than possible module name")}function fse(e){let t,r=lm(),i,o,s,l,u,d;return{addConfigDiagnostic(A){C.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(s??(s=aM())).add(A)},addLazyConfigDiagnostic(A,R,...N){C.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(l??(l=[])).push({file:A,diagnostic:R,args:N})},addFileProcessingDiagnostic(A){C.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(i??(i=[])).push(A)},setCommonSourceDirectory(A){o=A},reuseStateFromOldProgram(A,R){r=A.getFileReasons(),i=A.getFileProcessingDiagnostics(),R&&(o=A.getCommonSourceDirectory(),s=A.getConfigDiagnostics(),l=A.getLazyConfigDiagnostics())},getFileProcessingDiagnostics(){return i},getFileReasons(){return r},getCommonSourceDirectory(){return o},getConfigDiagnostics(){return s},getLazyConfigDiagnostics(){return l},getCombinedDiagnostics(A){return t||(t=aM(),s?.getDiagnostics().forEach(R=>t.add(R)),i?.forEach(R=>{switch(R.kind){case 1:return t.add(_(A,R.file&&A.getSourceFileByPath(R.file),R.fileProcessingReason,R.diagnostic,R.args||ae));case 0:return t.add(g(A,R));case 2:return R.diagnostics.forEach(N=>t.add(N));default:C.assertNever(R)}}),l?.forEach(({file:R,diagnostic:N,args:P})=>t.add(_(A,R,void 0,N,P))),u=void 0,d=void 0,t)}};function g(A,{reason:R}){let{file:N,pos:P,end:k}=gP(A,R),F=N.libReferenceDirectives[R.index],O=GV(F),G=yR(pN(O,"lib."),".d.ts"),j=o1(G,R3,Vs);return Fc(N,C.checkDefined(P),C.checkDefined(k)-P,j?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,O,j)}function _(A,R,N,P,k){let F,O,G,j,J,Z,q=R&&r.get(R.path),ye=rT(N)?N:void 0,ie=R&&u?.get(R.path);ie?(ie.fileIncludeReasonDetails?(F=new Set(q),q?.forEach(fe)):q?.forEach(de),J=ie.redirectInfo):(q?.forEach(de),J=R&&MH(R,A.getCompilerOptionsForFile(R))),N&&de(N);let K=F?.size!==q?.length;ye&&F?.size===1&&(F=void 0),F&&ie&&(ie.details&&!K?Z=qo(ie.details,P,...k??ae):ie.fileIncludeReasonDetails&&(K?ve()?O=Bn(ie.fileIncludeReasonDetails.next.slice(0,q.length),O[0]):O=[...ie.fileIncludeReasonDetails.next,O[0]]:ve()?O=ie.fileIncludeReasonDetails.next.slice(0,q.length):j=ie.fileIncludeReasonDetails)),Z||(j||(j=F&&qo(O,f.The_file_is_in_the_program_because_Colon)),Z=qo(J?j?[j,...J]:J:j,P,...k||ae)),R&&(ie?(!ie.fileIncludeReasonDetails||!K&&j)&&(ie.fileIncludeReasonDetails=j):(u??(u=new Map)).set(R.path,ie={fileIncludeReasonDetails:j,redirectInfo:J}),!ie.details&&!K&&(ie.details=Z.next));let pe=ye&&gP(A,ye);return pe&&WD(pe)?C6(pe.file,pe.pos,pe.end-pe.pos,Z,G):SW(Z,G);function de(xe){F?.has(xe)||((F??(F=new Set)).add(xe),(O??(O=[])).push(kH(A,xe)),fe(xe))}function fe(xe){!ye&&rT(xe)?ye=xe:ye!==xe&&(G=Bn(G,v(A,xe)))}function ve(){var xe;return((xe=ie.fileIncludeReasonDetails.next)==null?void 0:xe.length)!==q?.length}}function v(A,R){let N=d?.get(R);return N===void 0&&(d??(d=new Map)).set(R,N=E(A,R)??!1),N||void 0}function E(A,R){if(rT(R)){let G=gP(A,R),j;switch(R.kind){case 3:j=f.File_is_included_via_import_here;break;case 4:j=f.File_is_included_via_reference_here;break;case 5:j=f.File_is_included_via_type_library_reference_here;break;case 7:j=f.File_is_included_via_library_reference_here;break;default:C.assertNever(R)}return WD(G)?Fc(G.file,G.pos,G.end-G.pos,j):void 0}let N=A.getCurrentDirectory(),P=A.getRootFileNames(),k=A.getCompilerOptions();if(!k.configFile)return;let F,O;switch(R.kind){case 0:if(!k.configFile.configFileSpecs)return;let G=To(P[R.index],N),j=PH(A,G);if(j){F=w6(k.configFile,"files",j),O=f.File_is_matched_by_files_list_specified_here;break}let J=LH(A,G);if(!J||!Bo(J))return;F=w6(k.configFile,"include",J),O=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let Z=A.getResolvedProjectReferences(),q=A.getProjectReferences(),ye=C.checkDefined(Z?.[R.index]),ie=MM(q,Z,(ve,xe,Y)=>ve===ye?{sourceFile:xe?.sourceFile||k.configFile,index:Y}:void 0);if(!ie)return;let{sourceFile:K,index:pe}=ie,de=XL(K,"references",ve=>Cd(ve.initializer)?ve.initializer:void 0);return de&&de.elements.length>pe?wf(K,de.elements[pe],R.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(!k.types)return;F=UV(e(),"types",R.typeReference),O=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(R.index!==void 0){F=UV(e(),"lib",k.lib[R.index]),O=f.File_is_library_specified_here;break}let fe=xW(Ga(k));F=fe?Gre(e(),"target",fe):void 0,O=f.File_is_default_library_for_target_specified_here;break;default:C.assertNever(R)}return F&&wf(k.configFile,F,O)}}function mse(e,t,r,i,o,s){let l=[],{emitSkipped:u,diagnostics:d}=e.emit(t,g,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:d};function g(_,v,E){l.push({name:_,writeByteOrderMark:E,text:v})}}var hse=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(hse||{}),_h;(e=>{function t(){function ie(K,pe,de){let fe={getKeys:ve=>pe.get(ve),getValues:ve=>K.get(ve),keys:()=>K.keys(),size:()=>K.size,deleteKey:ve=>{(de||(de=new Set)).add(ve);let xe=K.get(ve);return xe?(xe.forEach(Y=>i(pe,Y,ve)),K.delete(ve),!0):!1},set:(ve,xe)=>{de?.delete(ve);let Y=K.get(ve);return K.set(ve,xe),Y?.forEach(Ce=>{xe.has(Ce)||i(pe,Ce,ve)}),xe.forEach(Ce=>{Y?.has(Ce)||r(pe,Ce,ve)}),fe}};return fe}return ie(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(ie,K,pe){let de=ie.get(K);de||(de=new Set,ie.set(K,de)),de.add(pe)}function i(ie,K,pe){let de=ie.get(K);return de?.delete(pe)?(de.size||ie.delete(K),!0):!1}function o(ie){return Ui(ie.declarations,K=>{var pe;return(pe=Wn(K))==null?void 0:pe.resolvedPath})}function s(ie,K){let pe=ie.getSymbolAtLocation(K);return pe&&o(pe)}function l(ie,K,pe,de){var fe;return ks(((fe=ie.getRedirectFromSourceFile(K))==null?void 0:fe.outputDts)||K,pe,de)}function u(ie,K,pe){let de;if(K.imports&&K.imports.length>0){let Y=ie.getTypeChecker();for(let Ce of K.imports){let Xe=s(Y,Ce);Xe?.forEach(xe)}}let fe=ci(K.resolvedPath);if(K.referencedFiles&&K.referencedFiles.length>0)for(let Y of K.referencedFiles){let Ce=l(ie,Y.fileName,fe,pe);xe(Ce)}if(ie.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:Y})=>{if(!Y)return;let Ce=Y.resolvedFileName,Xe=l(ie,Ce,fe,pe);xe(Xe)},K),K.moduleAugmentations.length){let Y=ie.getTypeChecker();for(let Ce of K.moduleAugmentations){if(!ka(Ce))continue;let Xe=Y.getSymbolAtLocation(Ce);Xe&&ve(Xe)}}for(let Y of ie.getTypeChecker().getAmbientModules())Y.declarations&&Y.declarations.length>1&&ve(Y);return de;function ve(Y){if(Y.declarations)for(let Ce of Y.declarations){let Xe=Wn(Ce);Xe&&Xe!==K&&xe(Xe.resolvedPath)}}function xe(Y){(de||(de=new Set)).add(Y)}}function d(ie,K){return K&&!K.referencedMap==!ie}e.canReuseOldState=d;function g(ie){return ie.module!==0&&!ie.outFile?t():void 0}e.createReferencedMap=g;function _(ie,K,pe){var de,fe;let ve=new Map,xe=ie.getCompilerOptions(),Y=g(xe),Ce=d(Y,K);ie.getTypeChecker();for(let Xe of ie.getSourceFiles()){let Se=C.checkDefined(Xe.version,"Program intended to be used with Builder should have source files with versions set"),re=Ce?(de=K.oldSignatures)==null?void 0:de.get(Xe.resolvedPath):void 0,be=re===void 0?Ce?(fe=K.fileInfos.get(Xe.resolvedPath))==null?void 0:fe.signature:void 0:re||void 0;if(Y){let Ne=u(ie,Xe,ie.getCanonicalFileName);Ne&&Y.set(Xe.resolvedPath,Ne)}ve.set(Xe.resolvedPath,{version:Se,signature:be,affectsGlobalScope:xe.outFile?void 0:J(Xe)||void 0,impliedFormat:Xe.impliedNodeFormat})}return{fileInfos:ve,referencedMap:Y,useFileVersionAsSignature:!pe&&!Ce}}e.create=_;function v(ie){ie.allFilesExcludingDefaultLibraryFile=void 0,ie.allFileNames=void 0}e.releaseCache=v;function E(ie,K,pe,de,fe){var ve;let xe=A(ie,K,pe,de,fe);return(ve=ie.oldSignatures)==null||ve.clear(),xe}e.getFilesAffectedBy=E;function A(ie,K,pe,de,fe){let ve=K.getSourceFileByPath(pe);return ve?P(ie,K,ve,de,fe)?(ie.referencedMap?ye:q)(ie,K,ve,de,fe):[ve]:ae}e.getFilesAffectedByWithOldState=A;function R(ie,K,pe){ie.fileInfos.get(pe).signature=K,(ie.hasCalledUpdateShapeSignature||(ie.hasCalledUpdateShapeSignature=new Set)).add(pe)}e.updateSignatureOfFile=R;function N(ie,K,pe,de,fe){ie.emit(K,(ve,xe,Y,Ce,Xe,Se)=>{C.assert(ad(ve),`File extension for signature expected to be dts: Got:: ${ve}`),fe(gH(ie,K,xe,de,Se),Xe)},pe,2,void 0,!0)}e.computeDtsSignature=N;function P(ie,K,pe,de,fe,ve=ie.useFileVersionAsSignature){var xe;if((xe=ie.hasCalledUpdateShapeSignature)!=null&&xe.has(pe.resolvedPath))return!1;let Y=ie.fileInfos.get(pe.resolvedPath),Ce=Y.signature,Xe;return!pe.isDeclarationFile&&!ve&&N(K,pe,de,fe,Se=>{Xe=Se,fe.storeSignatureInfo&&(ie.signatureInfo??(ie.signatureInfo=new Map)).set(pe.resolvedPath,0)}),Xe===void 0&&(Xe=pe.version,fe.storeSignatureInfo&&(ie.signatureInfo??(ie.signatureInfo=new Map)).set(pe.resolvedPath,2)),(ie.oldSignatures||(ie.oldSignatures=new Map)).set(pe.resolvedPath,Ce||!1),(ie.hasCalledUpdateShapeSignature||(ie.hasCalledUpdateShapeSignature=new Set)).add(pe.resolvedPath),Y.signature=Xe,Xe!==Ce}e.updateShapeSignature=P;function k(ie,K,pe){if(K.getCompilerOptions().outFile||!ie.referencedMap||J(pe))return F(ie,K);let fe=new Set,ve=[pe.resolvedPath];for(;ve.length;){let xe=ve.pop();if(!fe.has(xe)){fe.add(xe);let Y=ie.referencedMap.getValues(xe);if(Y)for(let Ce of Y.keys())ve.push(Ce)}}return Co(nh(fe.keys(),xe=>{var Y;return((Y=K.getSourceFileByPath(xe))==null?void 0:Y.fileName)??xe}))}e.getAllDependencies=k;function F(ie,K){if(!ie.allFileNames){let pe=K.getSourceFiles();ie.allFileNames=pe===ae?ae:pe.map(de=>de.fileName)}return ie.allFileNames}function O(ie,K){let pe=ie.referencedMap.getKeys(K);return pe?Co(pe.keys()):[]}e.getReferencedByPaths=O;function G(ie){for(let K of ie.statements)if(!x6(K))return!1;return!0}function j(ie){return vt(ie.moduleAugmentations,K=>N_(K.parent))}function J(ie){return j(ie)||!Np(ie)&&!Of(ie)&&!G(ie)}function Z(ie,K,pe){if(ie.allFilesExcludingDefaultLibraryFile)return ie.allFilesExcludingDefaultLibraryFile;let de;pe&&fe(pe);for(let ve of K.getSourceFiles())ve!==pe&&fe(ve);return ie.allFilesExcludingDefaultLibraryFile=de||ae,ie.allFilesExcludingDefaultLibraryFile;function fe(ve){K.isSourceFileDefaultLibrary(ve)||(de||(de=[])).push(ve)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function q(ie,K,pe){let de=K.getCompilerOptions();return de&&de.outFile?[pe]:Z(ie,K,pe)}function ye(ie,K,pe,de,fe){if(J(pe))return Z(ie,K,pe);let ve=K.getCompilerOptions();if(ve&&(gm(ve)||ve.outFile))return[pe];let xe=new Map;xe.set(pe.resolvedPath,pe);let Y=O(ie,pe.resolvedPath);for(;Y.length>0;){let Ce=Y.pop();if(!xe.has(Ce)){let Xe=K.getSourceFileByPath(Ce);xe.set(Ce,Xe),Xe&&P(ie,K,Xe,de,fe)&&Y.push(...O(ie,Xe.resolvedPath))}}return Co(nh(xe.values(),Ce=>Ce))}})(_h||(_h={}));var _se=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(_se||{});function FD(e){return e.program!==void 0}function THe(e){return C.assert(FD(e)),e}function Wb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),hp(e)&&(t=t|24),e.declarationMap&&(t=t|32),e.emitDeclarationOnly&&(t=t&56),t}function IF(e,t){let r=t&&($v(t)?t:Wb(t)),i=$v(e)?e:Wb(e);if(r===i)return 0;if(!r||!i)return i;let o=r^i,s=0;return o&7&&(s=i&7),o&8&&(s=s|i&8),o&48&&(s=s|i&48),s}function SHe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!pg(e,r=>!t.has(r))}function EHe(e,t){var r,i;let o=_h.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=s.outFile;o.semanticDiagnosticsPerFile=new Map,l&&s.composite&&t?.outSignature&&l===t.compilerOptions.outFile&&(o.outSignature=t.outSignature&&bEe(s,t.compilerOptions,t.outSignature)),o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0,o.checkPending=o.compilerOptions.noCheck?!0:void 0;let u=_h.canReuseOldState(o.referencedMap,t),d=u?t.compilerOptions:void 0,g=u&&!lre(s,d),_=s.composite&&t?.emitSignatures&&!l&&!dre(s,t.compilerOptions),v=!0;u?((r=t.changedFilesSet)==null||r.forEach(k=>o.changedFilesSet.add(k)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending,l&&o.changedFilesSet.size&&(g=!1,v=!1),o.hasErrorsFromOldState=t.hasErrors):o.buildInfoEmitPending=x1(s);let E=o.referencedMap,A=u?t.referencedMap:void 0,R=g&&!s.skipLibCheck==!d.skipLibCheck,N=R&&!s.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(o.fileInfos.forEach((k,F)=>{var O;let G,j;if(!u||!(G=t.fileInfos.get(F))||G.version!==k.version||G.impliedFormat!==k.impliedFormat||!SHe(j=E&&E.getValues(F),A&&A.getValues(F))||j&&pg(j,J=>!o.fileInfos.has(J)&&t.fileInfos.has(J)))P(F);else{let J=e.getSourceFileByPath(F),Z=v?(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(F):void 0;if(Z&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(F,t.hasReusableDiagnostic?SEe(Z,F,e):TEe(Z,e)),g){if(J.isDeclarationFile&&!R||J.hasNoDefaultLib&&!N)return;let q=t.semanticDiagnosticsPerFile.get(F);q&&(o.semanticDiagnosticsPerFile.set(F,t.hasReusableDiagnostic?SEe(q,F,e):TEe(q,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(F))}}if(_){let J=t.emitSignatures.get(F);J&&(o.emitSignatures??(o.emitSignatures=new Map)).set(F,bEe(s,t.compilerOptions,J))}}),u&&qc(t.fileInfos,(k,F)=>o.fileInfos.has(F)?!1:k.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!!l)))_h.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(k=>P(k.resolvedPath));else if(d){let k=cre(s,d)?Wb(s):IF(s,d);k!==0&&(l?o.changedFilesSet.size||(o.programEmitPending=o.programEmitPending?o.programEmitPending|k:k):(e.getSourceFiles().forEach(F=>{o.changedFilesSet.has(F.resolvedPath)||vH(o,F.resolvedPath,k)}),C.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set),o.buildInfoEmitPending=!0)}return u&&o.semanticDiagnosticsPerFile.size!==o.fileInfos.size&&t.checkPending!==o.checkPending&&(o.buildInfoEmitPending=!0),o;function P(k){o.changedFilesSet.add(k),l&&(g=!1,v=!1,o.semanticDiagnosticsFromOldState=void 0,o.semanticDiagnosticsPerFile.clear(),o.emitDiagnosticsPerFile=void 0),o.buildInfoEmitPending=!0,o.programEmitPending=void 0}}function bEe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Bo(r)?[r]:r[0]}function TEe(e,t){return e.length?Zi(e,r=>{if(Bo(r.messageText))return r;let i=gse(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 gse(e,t,r,i){let o=i(e);if(o===!0)return{...YB(t),next:yse(e.next,t,r,i)};if(o)return{...T6(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:yse(e.next,t,r,i)};let s=yse(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function yse(e,t,r,i){return Zi(e,o=>gse(o,t,r,i))}function SEe(e,t,r){if(!e.length)return ae;let i;return e.map(s=>{let l=EEe(s,t,r,o);l.reportsUnnecessary=s.reportsUnnecessary,l.reportsDeprecated=s.reportDeprecated,l.source=s.source,l.skippedOn=s.skippedOn;let{relatedInformation:u}=s;return l.relatedInformation=u?u.length?u.map(d=>EEe(d,t,r,o)):[]:void 0,l});function o(s){return i??(i=ci(To(nT(r.getCompilerOptions()),r.getCurrentDirectory()))),ks(s,i,r.getCanonicalFileName)}}function EEe(e,t,r,i){let{file:o}=e,s=o!==!1?r.getSourceFileByPath(o?i(o):t):void 0;return{...e,file:s,messageText:Bo(e.messageText)?e.messageText:gse(e.messageText,s,r,l=>l.info)}}function AHe(e){_h.releaseCache(e),e.program=void 0}function vse(e,t){C.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function AEe(e,t,r){for(var i;;){let{affectedFiles:o}=e;if(o){let u=e.seenAffectedFiles,d=e.affectedFilesIndex;for(;d<o.length;){let g=o[d];if(!u.has(g.resolvedPath))return e.affectedFilesIndex=d,vH(e,g.resolvedPath,Wb(e.compilerOptions)),RHe(e,g,t,r),g;d++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),e.affectedFiles=void 0}let s=e.changedFilesSet.keys().next();if(s.done)return;if(e.program.getCompilerOptions().outFile)return e.program;e.affectedFiles=_h.getFilesAffectedByWithOldState(e,e.program,s.value,t,r),e.currentChangedFilePath=s.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function IEe(e,t,r){var i,o;if(!(!((i=e.affectedFilesPendingEmit)!=null&&i.size)&&!e.programEmitPending)&&(!t&&!r&&(e.affectedFilesPendingEmit=void 0,e.programEmitPending=void 0),(o=e.affectedFilesPendingEmit)==null||o.forEach((s,l)=>{let u=r?s&55:s&7;u?e.affectedFilesPendingEmit.set(l,u):e.affectedFilesPendingEmit.delete(l)}),e.programEmitPending)){let s=r?e.programEmitPending&55:e.programEmitPending&7;s?e.programEmitPending=s:e.programEmitPending=void 0}}function xF(e,t,r,i){let o=IF(e,t);return r&&(o=o&56),i&&(o=o&8),o}function hH(e){return e?8:56}function IHe(e,t,r){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return qc(e.affectedFilesPendingEmit,(o,s)=>{var l;let u=e.program.getSourceFileByPath(s);if(!u||!b1(u,e.program)){e.affectedFilesPendingEmit.delete(s);return}let d=(l=e.seenEmittedFiles)==null?void 0:l.get(u.resolvedPath),g=xF(o,d,t,r);if(g)return{affectedFile:u,emitKind:g}})}function xHe(e,t){var r;if((r=e.emitDiagnosticsPerFile)!=null&&r.size)return qc(e.emitDiagnosticsPerFile,(i,o)=>{var s;let l=e.program.getSourceFileByPath(o);if(!l||!b1(l,e.program)){e.emitDiagnosticsPerFile.delete(o);return}let u=((s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath))||0;if(!(u&hH(t)))return{affectedFile:l,diagnostics:i,seenKind:u}})}function xEe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=e.program.getCompilerOptions();Je(e.program.getSourceFiles(),r=>e.program.isSourceFileDefaultLibrary(r)&&!Ere(r,t,e.program)&&Tse(e,r.resolvedPath))}}function RHe(e,t,r,i){if(Tse(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){xEe(e),_h.updateShapeSignature(e,e.program,t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||DHe(e,t,r,i)}function bse(e,t,r,i,o){if(Tse(e,t),!e.changedFilesSet.has(t)){let s=e.program.getSourceFileByPath(t);s&&(_h.updateShapeSignature(e,e.program,s,i,o,!0),r?vH(e,t,Wb(e.compilerOptions)):hp(e.compilerOptions)&&vH(e,t,e.compilerOptions.declarationMap?56:24))}}function Tse(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function REe(e,t){let r=C.checkDefined(e.oldSignatures).get(t)||void 0;return C.checkDefined(e.fileInfos.get(t)).signature!==r}function Sse(e,t,r,i,o){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(_h.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(l=>bse(e,l.resolvedPath,r,i,o)),xEe(e),!0):!1}function DHe(e,t,r,i){var o,s;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!REe(e,t.resolvedPath))return;if(gm(e.compilerOptions)){let d=new Map;d.set(t.resolvedPath,!0);let g=_h.getReferencedByPaths(e,t.resolvedPath);for(;g.length>0;){let _=g.pop();if(!d.has(_)){if(d.set(_,!0),Sse(e,_,!1,r,i))return;if(bse(e,_,!1,r,i),REe(e,_)){let v=e.program.getSourceFileByPath(_);g.push(..._h.getReferencedByPaths(e,v.resolvedPath))}}}}let l=new Set,u=!!((o=t.symbol)!=null&&o.exports)&&!!qc(t.symbol.exports,d=>{if((d.flags&128)!==0)return!0;let g=xd(d,e.program.getTypeChecker());return g===d?!1:(g.flags&128)!==0&&vt(g.declarations,_=>Wn(_)===t)});(s=e.referencedMap.getKeys(t.resolvedPath))==null||s.forEach(d=>{if(Sse(e,d,u,r,i))return!0;let g=e.referencedMap.getKeys(d);return g&&pg(g,_=>DEe(e,_,u,l,r,i))})}function DEe(e,t,r,i,o,s){var l;if(rh(i,t)){if(Sse(e,t,r,o,s))return!0;bse(e,t,r,o,s),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>DEe(e,u,r,i,o,s))}}function _H(e,t,r,i){return e.compilerOptions.noCheck?ae:so(CHe(e,t,r,i),e.program.getProgramDiagnostics(t))}function CHe(e,t,r,i){i??(i=e.semanticDiagnosticsPerFile);let o=t.resolvedPath,s=i.get(o);if(s)return EF(s,e.compilerOptions);let l=e.program.getBindAndCheckDiagnostics(t,r);return i.set(o,l),e.buildInfoEmitPending=!0,EF(l,e.compilerOptions)}function Ese(e){var t;return!!((t=e.options)!=null&&t.outFile)}function Yw(e){return!!e.fileNames}function NHe(e){return!Yw(e)&&!!e.root}function CEe(e){e.hasErrors===void 0&&(x1(e.compilerOptions)?e.hasErrors=!vt(e.program.getSourceFiles(),t=>{var r,i;let o=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return o===void 0||!!o.length||!!((i=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&i.length)})&&(NEe(e)||vt(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=vt(e.program.getSourceFiles(),t=>{var r,i;let o=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!o?.length||!!((i=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&i.length)})||NEe(e))}function NEe(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function MEe(e){return CEe(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}function MHe(e){var t,r;let i=e.program.getCurrentDirectory(),o=ci(To(nT(e.compilerOptions),i)),s=e.latestChangedDtsFile?F(e.latestChangedDtsFile):void 0,l=[],u=new Map,d=new Set(e.program.getRootFileNames().map(Y=>ks(Y,i,e.program.getCanonicalFileName)));if(CEe(e),!x1(e.compilerOptions))return{root:Co(d,Ce=>O(Ce)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Me};let g=[];if(e.compilerOptions.outFile){let Y=Co(e.fileInfos.entries(),([Xe,Se])=>{let re=G(Xe);return J(Xe,re),Se.impliedFormat?{version:Se.version,impliedFormat:Se.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Se.version});return{fileNames:l,fileInfos:Y,root:g,resolvedRoot:Z(),options:q(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:ie(),emitDiagnosticsPerFile:K(),changeFileSet:xe(),outSignature:e.outSignature,latestChangedDtsFile:s,pendingEmit:e.programEmitPending?e.programEmitPending===Wb(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Me}}let _,v,E,A=Co(e.fileInfos.entries(),([Y,Ce])=>{var Xe,Se;let re=G(Y);J(Y,re),C.assert(l[re-1]===O(Y));let be=(Xe=e.oldSignatures)==null?void 0:Xe.get(Y),Ne=be!==void 0?be||void 0:Ce.signature;if(e.compilerOptions.composite){let Be=e.program.getSourceFileByPath(Y);if(!Of(Be)&&b1(Be,e.program)){let lt=(Se=e.emitSignatures)==null?void 0:Se.get(Y);lt!==Ne&&(E=Bn(E,lt===void 0?re:[re,!Bo(lt)&&lt[0]===Ne?ae:lt]))}}return Ce.version===Ne?Ce.affectsGlobalScope||Ce.impliedFormat?{version:Ce.version,signature:void 0,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:Ce.version:Ne!==void 0?be===void 0?Ce:{version:Ce.version,signature:Ne,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:{version:Ce.version,signature:!1,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}}),R;(t=e.referencedMap)!=null&&t.size()&&(R=Co(e.referencedMap.keys()).sort(Wd).map(Y=>[G(Y),j(e.referencedMap.getValues(Y))]));let N=ie(),P;if((r=e.affectedFilesPendingEmit)!=null&&r.size){let Y=Wb(e.compilerOptions),Ce=new Set;for(let Xe of Co(e.affectedFilesPendingEmit.keys()).sort(Wd))if(rh(Ce,Xe)){let Se=e.program.getSourceFileByPath(Xe);if(!Se||!b1(Se,e.program))continue;let re=G(Xe),be=e.affectedFilesPendingEmit.get(Xe);P=Bn(P,be===Y?re:be===24?[re]:[re,be])}}return{fileNames:l,fileIdsList:_,fileInfos:A,root:g,resolvedRoot:Z(),options:q(e.compilerOptions),referencedMap:R,semanticDiagnosticsPerFile:N,emitDiagnosticsPerFile:K(),changeFileSet:xe(),affectedFilesPendingEmit:P,emitSignatures:E,latestChangedDtsFile:s,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Me};function F(Y){return O(To(Y,i))}function O(Y){return wS(lf(o,Y,e.program.getCanonicalFileName))}function G(Y){let Ce=u.get(Y);return Ce===void 0&&(l.push(O(Y)),u.set(Y,Ce=l.length)),Ce}function j(Y){let Ce=Co(Y.keys(),G).sort(js),Xe=Ce.join(),Se=v?.get(Xe);return Se===void 0&&(_=Bn(_,Ce),(v??(v=new Map)).set(Xe,Se=_.length)),Se}function J(Y,Ce){let Xe=e.program.getSourceFile(Y);if(!e.program.getFileIncludeReasons().get(Xe.path).some(Ne=>Ne.kind===0))return;if(!g.length)return g.push(Ce);let Se=g[g.length-1],re=Mo(Se);if(re&&Se[1]===Ce-1)return Se[1]=Ce;if(re||g.length===1||Se!==Ce-1)return g.push(Ce);let be=g[g.length-2];return!$v(be)||be!==Se-1?g.push(Ce):(g[g.length-2]=[be,Ce],g.length=g.length-1)}function Z(){let Y;return d.forEach(Ce=>{let Xe=e.program.getSourceFileByPath(Ce);Xe&&Ce!==Xe.resolvedPath&&(Y=Bn(Y,[G(Xe.resolvedPath),G(Ce)]))}),Y}function q(Y){let Ce,{optionsNameMap:Xe}=RD();for(let Se of Oh(Y).sort(Wd)){let re=Xe.get(Se.toLowerCase());re?.affectsBuildInfo&&((Ce||(Ce={}))[Se]=ye(re,Y[Se]))}return Ce}function ye(Y,Ce){if(Y){if(C.assert(Y.type!=="listOrElement"),Y.type==="list"){let Xe=Ce;if(Y.element.isFilePath&&Xe.length)return Xe.map(F)}else if(Y.isFilePath)return F(Ce)}return Ce}function ie(){let Y;return e.fileInfos.forEach((Ce,Xe)=>{let Se=e.semanticDiagnosticsPerFile.get(Xe);Se?Se.length&&(Y=Bn(Y,[G(Xe),pe(Se,Xe)])):e.changedFilesSet.has(Xe)||(Y=Bn(Y,G(Xe)))}),Y}function K(){var Y;let Ce;if(!((Y=e.emitDiagnosticsPerFile)!=null&&Y.size))return Ce;for(let Xe of Co(e.emitDiagnosticsPerFile.keys()).sort(Wd)){let Se=e.emitDiagnosticsPerFile.get(Xe);Ce=Bn(Ce,[G(Xe),pe(Se,Xe)])}return Ce}function pe(Y,Ce){return C.assert(!!Y.length),Y.map(Xe=>{let Se=de(Xe,Ce);Se.reportsUnnecessary=Xe.reportsUnnecessary,Se.reportDeprecated=Xe.reportsDeprecated,Se.source=Xe.source,Se.skippedOn=Xe.skippedOn;let{relatedInformation:re}=Xe;return Se.relatedInformation=re?re.length?re.map(be=>de(be,Ce)):[]:void 0,Se})}function de(Y,Ce){let{file:Xe}=Y;return{...Y,file:Xe?Xe.resolvedPath===Ce?void 0:O(Xe.resolvedPath):!1,messageText:Bo(Y.messageText)?Y.messageText:fe(Y.messageText)}}function fe(Y){if(Y.repopulateInfo)return{info:Y.repopulateInfo(),next:ve(Y.next)};let Ce=ve(Y.next);return Ce===Y.next?Y:{...Y,next:Ce}}function ve(Y){return Y&&(Je(Y,(Ce,Xe)=>{let Se=fe(Ce);if(Ce===Se)return;let re=Xe>0?Y.slice(0,Xe-1):[];re.push(Se);for(let be=Xe+1;be<Y.length;be++)re.push(fe(Y[be]));return re})||Y)}function xe(){let Y;if(e.changedFilesSet.size)for(let Ce of Co(e.changedFilesSet.keys()).sort(Wd))Y=Bn(Y,G(Ce));return Y}}var Ase=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Ase||{});function RF(e,t,r,i,o,s){let l,u,d;return e===void 0?(C.assert(t===void 0),l=r,d=i,C.assert(!!d),u=d.getProgram()):Mo(e)?(d=i,u=Kw({rootNames:e,options:t,host:r,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(u=e,l=t,d=r,o=i),{host:l,newProgram:u,oldProgram:d,configFileParsingDiagnostics:o||ae}}function PEe(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function gH(e,t,r,i,o){var s;r=PEe(r,o);let l;return(s=o?.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(g=>`${d(g)}${W8[g.category]}${g.code}: ${u(g.messageText)}`).join(`
`)),(i.createHash??uL)(r);function u(g){return Bo(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(`
`):g.messageText}function d(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(l===void 0&&(l=ci(t.resolvedPath)),`${wS(lf(l,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function PHe(e,t,r){return(t.createHash??uL)(PEe(e,r))}function yH(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.state;if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;let l=EHe(t,s);t.getBuildInfo=()=>MHe(THe(l)),t=void 0,i=void 0,s=void 0;let u=TH(l,o);return u.state=l,u.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,u.getAllDependencies=F=>_h.getAllDependencies(l,C.checkDefined(l.program),F),u.getSemanticDiagnostics=k,u.getDeclarationDiagnostics=N,u.emit=A,u.releaseProgram=()=>AHe(l),e===0?u.getSemanticDiagnosticsOfNextAffectedFile=P:e===1?(u.getSemanticDiagnosticsOfNextAffectedFile=P,u.emitNextAffectedFile=v,u.emitBuildInfo=d):ha(),u;function d(F,O){if(C.assert(FD(l)),MEe(l)){let G=l.program.emitBuildInfo(F||ia(r,r.writeFile),O);return l.buildInfoEmitPending=!1,G}return pH}function g(F,O,G,j,J){var Z,q,ye,ie;C.assert(FD(l));let K=AEe(l,O,r),pe=Wb(l.compilerOptions),de=J?8:G?pe&56:pe;if(!K){if(l.compilerOptions.outFile){if(l.programEmitPending&&(de=xF(l.programEmitPending,l.seenProgramEmit,G,J),de&&(K=l.program)),!K&&((Z=l.emitDiagnosticsPerFile)!=null&&Z.size)){let xe=l.seenProgramEmit||0;if(!(xe&hH(J))){l.seenProgramEmit=hH(J)|xe;let Y=[];return l.emitDiagnosticsPerFile.forEach(Ce=>Xr(Y,Ce)),{result:{emitSkipped:!0,diagnostics:Y},affected:l.program}}}}else{let xe=IHe(l,G,J);if(xe)({affectedFile:K,emitKind:de}=xe);else{let Y=xHe(l,J);if(Y)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(Y.affectedFile.resolvedPath,Y.seenKind|hH(J)),{result:{emitSkipped:!0,diagnostics:Y.diagnostics},affected:Y.affectedFile}}}if(!K){if(J||!MEe(l))return;let xe=l.program,Y=xe.emitBuildInfo(F||ia(r,r.writeFile),O);return l.buildInfoEmitPending=!1,{result:Y,affected:xe}}}let fe;de&7&&(fe=0),de&56&&(fe=fe===void 0?1:void 0);let ve=J?{emitSkipped:!0,diagnostics:l.program.getDeclarationDiagnostics(K===l.program?void 0:K,O)}:l.program.emit(K===l.program?void 0:K,E(F,j),O,fe,j,void 0,!0);if(K!==l.program){let xe=K;l.seenAffectedFiles.add(xe.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;let Y=((q=l.seenEmittedFiles)==null?void 0:q.get(xe.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(xe.resolvedPath,de|Y);let Ce=((ye=l.affectedFilesPendingEmit)==null?void 0:ye.get(xe.resolvedPath))||pe,Xe=IF(Ce,de|Y);Xe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(xe.resolvedPath,Xe):(ie=l.affectedFilesPendingEmit)==null||ie.delete(xe.resolvedPath),ve.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(xe.resolvedPath,ve.diagnostics)}else l.changedFilesSet.clear(),l.programEmitPending=l.changedFilesSet.size?IF(pe,de):l.programEmitPending?IF(l.programEmitPending,de):void 0,l.seenProgramEmit=de|(l.seenProgramEmit||0),_(ve.diagnostics),l.buildInfoEmitPending=!0;return{result:ve,affected:K}}function _(F){let O;F.forEach(G=>{if(!G.file)return;let j=O?.get(G.file.resolvedPath);j||(O??(O=new Map)).set(G.file.resolvedPath,j=[]),j.push(G)}),O&&(l.emitDiagnosticsPerFile=O)}function v(F,O,G,j){return g(F,O,G,j,!1)}function E(F,O){return C.assert(FD(l)),hp(l.compilerOptions)?(G,j,J,Z,q,ye)=>{var ie,K,pe;if(ad(G))if(l.compilerOptions.outFile){if(l.compilerOptions.composite){let fe=de(l.outSignature,void 0);if(!fe)return ye.skippedDtsWrite=!0;l.outSignature=fe}}else{C.assert(q?.length===1);let fe;if(!O){let ve=q[0],xe=l.fileInfos.get(ve.resolvedPath);if(xe.signature===ve.version){let Y=gH(l.program,ve,j,r,ye);(ie=ye?.diagnostics)!=null&&ie.length||(fe=Y),Y!==ve.version&&(r.storeSignatureInfo&&(l.signatureInfo??(l.signatureInfo=new Map)).set(ve.resolvedPath,1),l.affectedFiles&&((K=l.oldSignatures)==null?void 0:K.get(ve.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(ve.resolvedPath,xe.signature||!1),xe.signature=Y)}}if(l.compilerOptions.composite){let ve=q[0].resolvedPath;if(fe=de((pe=l.emitSignatures)==null?void 0:pe.get(ve),fe),!fe)return ye.skippedDtsWrite=!0;(l.emitSignatures??(l.emitSignatures=new Map)).set(ve,fe)}}F?F(G,j,J,Z,q,ye):r.writeFile?r.writeFile(G,j,J,Z,q,ye):l.program.writeFile(G,j,J,Z,q,ye);function de(fe,ve){let xe=!fe||Bo(fe)?fe:fe[0];if(ve??(ve=PHe(j,r,ye)),ve===xe){if(fe===xe)return;ye?ye.differsOnlyInMap=!0:ye={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=G;return ve}}:F||ia(r,r.writeFile)}function A(F,O,G,j,J){C.assert(FD(l)),e===1&&vse(l,F);let Z=fH(u,F,O,G);if(Z)return Z;if(!F)if(e===1){let ye=[],ie=!1,K,pe=[],de;for(;de=v(O,G,j,J);)ie=ie||de.result.emitSkipped,K=Xr(K,de.result.diagnostics),pe=Xr(pe,de.result.emittedFiles),ye=Xr(ye,de.result.sourceMaps);return{emitSkipped:ie,diagnostics:K||ae,emittedFiles:pe,sourceMaps:ye}}else IEe(l,j,!1);let q=l.program.emit(F,E(O,J),G,j,J);return R(F,j,!1,q.diagnostics),q}function R(F,O,G,j){!F&&e!==1&&(IEe(l,O,G),_(j))}function N(F,O){var G;if(C.assert(FD(l)),e===1){vse(l,F);let j,J;for(;j=g(void 0,O,void 0,void 0,!0);)F||(J=Xr(J,j.result.diagnostics));return(F?(G=l.emitDiagnosticsPerFile)==null?void 0:G.get(F.resolvedPath):J)||ae}else{let j=l.program.getDeclarationDiagnostics(F,O);return R(F,void 0,!0,j),j}}function P(F,O){for(C.assert(FD(l));;){let G=AEe(l,F,r),j;if(G)if(G!==l.program){let J=G;if((!O||!O(J))&&(j=_H(l,J,F)),l.seenAffectedFiles.add(J.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!j)continue}else{let J,Z=new Map;l.program.getSourceFiles().forEach(q=>J=Xr(J,_H(l,q,F,Z))),l.semanticDiagnosticsPerFile=Z,j=J||ae,l.changedFilesSet.clear(),l.programEmitPending=Wb(l.compilerOptions),l.compilerOptions.noCheck||(l.checkPending=void 0),l.buildInfoEmitPending=!0}else{l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0);return}return{result:j,affected:G}}}function k(F,O){if(C.assert(FD(l)),vse(l,F),F)return _H(l,F,O);for(;;){let j=P(O);if(!j)break;if(j.affected===l.program)return j.result}let G;for(let j of l.program.getSourceFiles())G=Xr(G,_H(l,j,O));return l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0),G||ae}}function vH(e,t,r){var i,o;let 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 Ise(e){return Bo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Bo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function xse(e,t){return $v(e)?t:e[1]||24}function Rse(e,t){return e||Wb(t||{})}function Dse(e,t,r){var i,o,s,l;let u=ci(To(t,r.getCurrentDirectory())),d=Fd(r.useCaseSensitiveFileNames()),g,_=(i=e.fileNames)==null?void 0:i.map(N),v,E=e.latestChangedDtsFile?P(e.latestChangedDtsFile):void 0,A=new Map,R=new Set(Vt(e.changeFileSet,k));if(Ese(e))e.fileInfos.forEach((J,Z)=>{let q=k(Z+1);A.set(q,Bo(J)?{version:J,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:J)}),g={fileInfos:A,compilerOptions:e.options?O3(e.options,P):{},semanticDiagnosticsPerFile:G(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:j(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,latestChangedDtsFile:E,outSignature:e.outSignature,programEmitPending:e.pendingEmit===void 0?void 0:Rse(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{v=(o=e.fileIdsList)==null?void 0:o.map(q=>new Set(q.map(k)));let J=(s=e.options)!=null&&s.composite&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((q,ye)=>{let ie=k(ye+1),K=Ise(q);A.set(ie,K),J&&K.signature&&J.set(ie,K.signature)}),(l=e.emitSignatures)==null||l.forEach(q=>{if($v(q))J.delete(k(q));else{let ye=k(q[0]);J.set(ye,!Bo(q[1])&&!q[1].length?[J.get(ye)]:q[1])}});let Z=e.affectedFilesPendingEmit?Wb(e.options||{}):void 0;g={fileInfos:A,compilerOptions:e.options?O3(e.options,P):{},referencedMap:O(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:G(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:j(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&hR(e.affectedFilesPendingEmit,q=>k($v(q)?q:q[0]),q=>xse(q,Z)),latestChangedDtsFile:E,emitSignatures:J?.size?J:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:g,getProgram:ha,getProgramOrUndefined:r1,releaseProgram:gs,getCompilerOptions:()=>g.compilerOptions,getSourceFile:ha,getSourceFiles:ha,getOptionsDiagnostics:ha,getGlobalDiagnostics:ha,getConfigFileParsingDiagnostics:ha,getSyntacticDiagnostics:ha,getDeclarationDiagnostics:ha,getSemanticDiagnostics:ha,emit:ha,getAllDependencies:ha,getCurrentDirectory:ha,emitNextAffectedFile:ha,getSemanticDiagnosticsOfNextAffectedFile:ha,emitBuildInfo:ha,close:gs,hasChangedEmitSignature:Qg};function N(J){return ks(J,u,d)}function P(J){return To(J,u)}function k(J){return _[J-1]}function F(J){return v[J-1]}function O(J,Z){let q=_h.createReferencedMap(Z);return!q||!J||J.forEach(([ye,ie])=>q.set(k(ye),F(ie))),q}function G(J){let Z=new Map(nh(A.keys(),q=>R.has(q)?void 0:[q,ae]));return J?.forEach(q=>{$v(q)?Z.delete(k(q)):Z.set(k(q[0]),q[1])}),Z}function j(J){return J&&hR(J,Z=>k(Z[0]),Z=>Z[1])}}function bH(e,t,r){let i=ci(To(t,r.getCurrentDirectory())),o=Fd(r.useCaseSensitiveFileNames()),s=new Map,l=0,u=new Map,d=new Map(e.resolvedRoot);return e.fileInfos.forEach((_,v)=>{let E=ks(e.fileNames[v],i,o),A=Bo(_)?_:_.version;if(s.set(E,A),l<e.root.length){let R=e.root[l],N=v+1;Mo(R)?R[0]<=N&&N<=R[1]&&(g(N,E),R[1]===N&&l++):R===N&&(g(N,E),l++)}}),{fileInfos:s,roots:u};function g(_,v){let E=d.get(_);E?u.set(ks(e.fileNames[E-1],i,o),v):u.set(v,void 0)}}function Cse(e,t,r){if(!NHe(e))return;let i=ci(To(t,r.getCurrentDirectory())),o=Fd(r.useCaseSensitiveFileNames());return e.root.map(s=>ks(s,i,o))}function TH(e,t){return{state:void 0,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:ha,getCurrentDirectory:()=>r().getCurrentDirectory(),close:gs};function r(){return C.checkDefined(e.program)}}function LEe(e,t,r,i,o,s){return yH(0,RF(e,t,r,i,o,s))}function SH(e,t,r,i,o,s){return yH(1,RF(e,t,r,i,o,s))}function kEe(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:u}=RF(e,t,r,i,o,s);return TH({program:l,compilerOptions:l.getCompilerOptions()},u)}function DF(e){return el(e,"/node_modules/.staging")?yR(e,"/.staging"):vt(B8,t=>e.includes(t))?void 0:e}function Nse(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-z]:/i)===0;if(e[0]!==Js&&!i&&e[1].search(/[a-z]\$$/i)===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 EH(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=Nse(e,t);return t>r+1}function $w(e){return EH(zd(e))}function Mse(e){return OEe(ci(e))}function wEe(e,t){if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(t[r]!==e[r])return!1;return!0}function OEe(e){return $w(e)}function Pse(e){return OEe(e)}function AH(e,t,r,i,o,s,l,u){let d=zd(t);e=Rp(e)?ya(e):To(e,l());let g=zd(e),_=Nse(d,d.length);if(d.length<=_+1)return;let v=d.indexOf("node_modules");if(v!==-1&&v+1<=_+1)return;let E=d.lastIndexOf("node_modules");return s&&wEe(o,d)?d.length>o.length+1?Lse(g,d,Math.max(o.length+1,_+1),E):{dir:r,dirPath:i,nonRecursive:!0}:WEe(g,d,d.length-1,_,v,o,E,u)}function WEe(e,t,r,i,o,s,l,u){if(o!==-1)return Lse(e,t,o+1,l);let d=!0,g=r;if(!u){for(let _=0;_<r;_++)if(t[_]!==s[_]){d=!1,g=Math.max(_+1,i+1);break}}return Lse(e,t,g,l,d)}function Lse(e,t,r,i,o){let s;return i!==-1&&i+1>=r&&i+2<t.length&&(po(t[i+1],"@")?i+3<t.length&&(s=i+3):s=i+2),{dir:A0(e,r),dirPath:A0(t,r),nonRecursive:o,packageDir:s!==void 0?A0(e,s):void 0,packageDirPath:s!==void 0?A0(t,s):void 0}}function kse(e,t,r,i,o,s,l,u){let d=zd(t);if(o&&wEe(i,d))return r;e=Rp(e)?ya(e):To(e,s());let g=WEe(zd(e),d,d.length,Nse(d,d.length),d.indexOf("node_modules"),i,d.lastIndexOf("node_modules"),l);return g&&u(g.dirPath)?g.dirPath:void 0}function wse(e,t){let r=To(e,t());return pB(r)?r:Jy(r)}function CF(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function Ose(e,t,r,i,o){return{nameAndMode:yF,resolve:(s,l)=>LHe(i,o,s,e,r,t,l)}}function LHe(e,t,r,i,o,s,l){let u=CF(e),d=SE(r,i,o,u,t,s,l);if(!e.getGlobalTypingsCacheLocation)return d;let g=e.getGlobalTypingsCacheLocation();if(g!==void 0&&!td(r)&&!(d.resolvedModule&&FW(d.resolvedModule.extension))){let{resolvedModule:_,failedLookupLocations:v,affectingLocations:E,resolutionDiagnostics:A}=Joe(C.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,g,t);if(_)return d.resolvedModule=_,d.failedLookupLocations=DD(d.failedLookupLocations,v),d.affectingLocations=DD(d.affectingLocations,E),d.resolutionDiagnostics=DD(d.resolutionDiagnostics,A),d}return d}function IH(e,t,r){let i,o,s,l=new Set,u=new Set,d=new Set,g=new Map,_=new Map,v=!1,E,A,R,N,P,k=!1,F=Cu(()=>e.getCurrentDirectory()),O=e.getCachedDirectoryStructureHost(),G=new Map,j=ND(F(),e.getCanonicalFileName,e.getCompilationSettings()),J=new Map,Z=q3(F(),e.getCanonicalFileName,e.getCompilationSettings(),j.getPackageJsonInfoCache(),j.optionsToRedirectsKey),q=new Map,ye=ND(F(),e.getCanonicalFileName,aU(e.getCompilationSettings()),j.getPackageJsonInfoCache()),ie=new Map,K=new Map,pe=wse(t,F),de=e.toPath(pe),fe=zd(de),ve=EH(fe),xe=new Map,Y=new Map,Ce=new Map,Xe=new Map;return{rootDirForResolution:t,resolvedModuleNames:G,resolvedTypeReferenceDirectives:J,resolvedLibraries:q,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:d,directoryWatchesOfFailedLookups:ie,fileWatchesOfAffectingLocations:K,packageDirWatchers:Y,dirPathToSymlinkPackageRefCount:Ce,watchFailedLookupLocationsOfExternalModuleResolutions:en,getModuleResolutionCache:()=>j,startRecordingFilesWithChangedResolutions:be,finishRecordingFilesWithChangedResolutions:Ne,startCachingPerDirectoryResolution:ce,finishCachingPerDirectoryResolution:ge,resolveModuleNameLiterals:cn,resolveTypeReferenceDirectiveReferences:Wt,resolveLibrary:gn,resolveSingleModuleNameWithoutWatching:Kn,removeResolutionsFromProjectReferenceRedirects:ai,removeResolutionsOfFile:qi,hasChangedAutomaticTypeDirectiveNames:()=>v,invalidateResolutionOfFile:Ia,invalidateResolutionsOfFailedLookupLocations:Ft,setFilesWithInvalidatedNonRelativeUnresolvedImports:Mn,createHasInvalidatedResolutions:lt,isFileWithInvalidatedNonRelativeUnresolvedImports:Be,updateTypeRootsWatch:dt,closeTypeRootsWatch:Fe,clear:Se,onChangesAffectModuleResolution:re};function Se(){mp(ie,qf),mp(K,qf),xe.clear(),Y.clear(),Ce.clear(),l.clear(),Fe(),G.clear(),J.clear(),g.clear(),u.clear(),d.clear(),R=void 0,N=void 0,P=void 0,A=void 0,E=void 0,k=!1,j.clear(),Z.clear(),j.update(e.getCompilationSettings()),Z.update(e.getCompilationSettings()),ye.clear(),_.clear(),q.clear(),v=!1}function re(){k=!0,j.clearAllExceptPackageJsonInfoCache(),Z.clearAllExceptPackageJsonInfoCache(),j.update(e.getCompilationSettings()),Z.update(e.getCompilationSettings())}function be(){i=[]}function Ne(){let Ue=i;return i=void 0,Ue}function Be(Ue){if(!s)return!1;let Rt=s.get(Ue);return!!Rt&&!!Rt.length}function lt(Ue,Rt){Ft();let It=o;return o=void 0,{hasInvalidatedResolutions:Ot=>Ue(Ot)||k||!!It?.has(Ot)||Be(Ot),hasInvalidatedLibResolutions:Ot=>{var nt;return Rt(Ot)||!!((nt=q?.get(Ot))!=null&&nt.isInvalidated)}}}function ce(){j.isReadonly=void 0,Z.isReadonly=void 0,ye.isReadonly=void 0,j.getPackageJsonInfoCache().isReadonly=void 0,j.clearAllExceptPackageJsonInfoCache(),Z.clearAllExceptPackageJsonInfoCache(),ye.clearAllExceptPackageJsonInfoCache(),Ai(),xe.clear()}function De(Ue){q.forEach((Rt,It)=>{var Ot;(Ot=Ue?.resolvedLibReferences)!=null&&Ot.has(It)||(At(Rt,e.toPath(bF(e.getCompilationSettings(),F(),It)),nI),q.delete(It))})}function ge(Ue,Rt){s=void 0,k=!1,Ai(),Ue!==Rt&&(De(Ue),Ue?.getSourceFiles().forEach(It=>{var Ot;let nt=((Ot=It.packageJsonLocations)==null?void 0:Ot.length)??0,Kt=_.get(It.resolvedPath)??ae;for(let Sr=Kt.length;Sr<nt;Sr++)zt(It.packageJsonLocations[Sr],!1);if(Kt.length>nt)for(let Sr=nt;Sr<Kt.length;Sr++)K.get(Kt[Sr]).files--;nt?_.set(It.resolvedPath,It.packageJsonLocations):_.delete(It.resolvedPath)}),_.forEach((It,Ot)=>{let nt=Ue?.getSourceFileByPath(Ot);(!nt||nt.resolvedPath!==Ot)&&(It.forEach(Kt=>K.get(Kt).files--),_.delete(Ot))})),ie.forEach(Ge),K.forEach(We),Y.forEach(je),v=!1,j.isReadonly=!0,Z.isReadonly=!0,ye.isReadonly=!0,j.getPackageJsonInfoCache().isReadonly=!0,xe.clear()}function je(Ue,Rt){Ue.dirPathToWatcher.size===0&&Y.delete(Rt)}function Ge(Ue,Rt){Ue.refCount===0&&(ie.delete(Rt),Ue.watcher.close())}function We(Ue,Rt){var It;Ue.files===0&&Ue.resolutions===0&&!((It=Ue.symlinks)!=null&&It.size)&&(K.delete(Rt),Ue.watcher.close())}function at({entries:Ue,containingFile:Rt,containingSourceFile:It,redirectedReference:Ot,options:nt,perFileCache:Kt,reusedNames:Sr,loader:Oe,getResolutionWithResolvedFileName:Nt,deferWatchingNonRelativeResolution:_e,shouldRetryResolution:B,logChanges:Ae}){var te;let xt=e.toPath(Rt),Xt=Kt.get(xt)||Kt.set(xt,CD()).get(xt),Le=[],gt=Ae&&Be(xt),Bt=e.getCurrentProgram(),gr=Bt&&((te=Bt.getRedirectFromSourceFile(Rt))==null?void 0:te.resolvedRef),tr=gr?!Ot||Ot.sourceFile.path!==gr.sourceFile.path:!!Ot,Jn=CD();for(let Mt of Ue){let jt=Oe.nameAndMode.getName(Mt),Qt=Oe.nameAndMode.getMode(Mt,It,Ot?.commandLine.options||nt),In=Xt.get(jt,Qt);if(!Jn.has(jt,Qt)&&(k||tr||!In||In.isInvalidated||gt&&!td(jt)&&B(In))){let yn=In;In=Oe.resolve(jt,Qt),e.onDiscoveredSymlink&&kHe(In)&&e.onDiscoveredSymlink(),Xt.set(jt,Qt,In),In!==yn&&(en(jt,In,xt,Nt,_e),yn&&At(yn,xt,Nt)),Ae&&i&&!ft(yn,In)&&(i.push(xt),Ae=!1)}else{let yn=CF(e);if(Pb(nt,yn)&&!Jn.has(jt,Qt)){let wt=Nt(In);xo(yn,Kt===G?wt?.resolvedFileName?wt.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:wt?.resolvedFileName?wt.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,jt,Rt,wt?.resolvedFileName,wt?.packageId&&D0(wt.packageId))}}C.assert(In!==void 0&&!In.isInvalidated),Jn.set(jt,Qt,!0),Le.push(In)}return Sr?.forEach(Mt=>Jn.set(Oe.nameAndMode.getName(Mt),Oe.nameAndMode.getMode(Mt,It,Ot?.commandLine.options||nt),!0)),Xt.size()!==Jn.size()&&Xt.forEach((Mt,jt,Qt)=>{Jn.has(jt,Qt)||(At(Mt,xt,Nt),Xt.delete(jt,Qt))}),Le;function ft(Mt,jt){if(Mt===jt)return!0;if(!Mt||!jt)return!1;let Qt=Nt(Mt),In=Nt(jt);return Qt===In?!0:!Qt||!In?!1:Qt.resolvedFileName===In.resolvedFileName}}function Wt(Ue,Rt,It,Ot,nt,Kt){return at({entries:Ue,containingFile:Rt,containingSourceFile:nt,redirectedReference:It,options:Ot,reusedNames:Kt,perFileCache:J,loader:vF(Rt,It,Ot,CF(e),Z),getResolutionWithResolvedFileName:b6,shouldRetryResolution:Sr=>Sr.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function cn(Ue,Rt,It,Ot,nt,Kt){return at({entries:Ue,containingFile:Rt,containingSourceFile:nt,redirectedReference:It,options:Ot,reusedNames:Kt,perFileCache:G,loader:Ose(Rt,It,Ot,e,j),getResolutionWithResolvedFileName:nI,shouldRetryResolution:Sr=>!Sr.resolvedModule||!bM(Sr.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function gn(Ue,Rt,It,Ot){let nt=CF(e),Kt=q?.get(Ot);if(!Kt||Kt.isInvalidated){let Sr=Kt;Kt=J3(Ue,Rt,It,nt,ye);let Oe=e.toPath(Rt);en(Ue,Kt,Oe,nI,!1),q.set(Ot,Kt),Sr&&At(Sr,Oe,nI)}else if(Pb(It,nt)){let Sr=nI(Kt);xo(nt,Sr?.resolvedFileName?Sr.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,Ue,Rt,Sr?.resolvedFileName,Sr?.packageId&&D0(Sr.packageId))}return Kt}function Kn(Ue,Rt){var It,Ot;let nt=e.toPath(Rt),Kt=G.get(nt),Sr=Kt?.get(Ue,void 0);if(Sr&&!Sr.isInvalidated)return Sr;let Oe=(It=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:It.call(e,j),Nt=CF(e),_e=SE(Ue,Rt,e.getCompilationSettings(),Nt,j);return(Ot=e.afterResolveSingleModuleNameWithoutWatching)==null||Ot.call(e,j,Ue,Rt,_e,Oe),_e}function _t(Ue){return el(Ue,"/node_modules/@types")}function en(Ue,Rt,It,Ot,nt){if((Rt.files??(Rt.files=new Set)).add(It),Rt.files.size!==1)return;!nt||td(Ue)?Di(Rt):l.add(Rt);let Kt=Ot(Rt);if(Kt&&Kt.resolvedFileName){let Sr=e.toPath(Kt.resolvedFileName),Oe=g.get(Sr);Oe||g.set(Sr,Oe=new Set),Oe.add(Rt)}}function ir(Ue,Rt){let It=e.toPath(Ue),Ot=AH(Ue,It,pe,de,fe,ve,F,e.preferNonRecursiveWatch);if(Ot){let{dir:nt,dirPath:Kt,nonRecursive:Sr,packageDir:Oe,packageDirPath:Nt}=Ot;Kt===de?(C.assert(Sr),C.assert(!Oe),Rt=!0):Pr(nt,Kt,Oe,Nt,Sr)}return Rt}function Di(Ue){var Rt;C.assert(!!((Rt=Ue.files)!=null&&Rt.size));let{failedLookupLocations:It,affectingLocations:Ot,alternateResult:nt}=Ue;if(!It?.length&&!Ot?.length&&!nt)return;(It?.length||nt)&&u.add(Ue);let Kt=!1;if(It)for(let Sr of It)Kt=ir(Sr,Kt);nt&&(Kt=ir(nt,Kt)),Kt&&Pr(pe,de,void 0,void 0,!0),lo(Ue,!It?.length&&!nt)}function lo(Ue,Rt){var It;C.assert(!!((It=Ue.files)!=null&&It.size));let{affectingLocations:Ot}=Ue;if(Ot?.length){Rt&&d.add(Ue);for(let nt of Ot)zt(nt,!0)}}function zt(Ue,Rt){let It=K.get(Ue);if(It){Rt?It.resolutions++:It.files++;return}let Ot=Ue,nt=!1,Kt;e.realpath&&(Ot=e.realpath(Ue),Ue!==Ot&&(nt=!0,Kt=K.get(Ot)));let Sr=Rt?1:0,Oe=Rt?0:1;if(!nt||!Kt){let Nt={watcher:Pse(e.toPath(Ot))?e.watchAffectingFileLocation(Ot,(_e,B)=>{O?.addOrDeleteFile(_e,e.toPath(Ot),B),Zr(Ot,j.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):BD,resolutions:nt?0:Sr,files:nt?0:Oe,symlinks:void 0};K.set(Ot,Nt),nt&&(Kt=Nt)}if(nt){C.assert(!!Kt);let Nt={watcher:{close:()=>{var _e;let B=K.get(Ot);(_e=B?.symlinks)!=null&&_e.delete(Ue)&&!B.symlinks.size&&!B.resolutions&&!B.files&&(K.delete(Ot),B.watcher.close())}},resolutions:Sr,files:Oe,symlinks:void 0};K.set(Ue,Nt),(Kt.symlinks??(Kt.symlinks=new Set)).add(Ue)}}function Zr(Ue,Rt){var It;let Ot=K.get(Ue);Ot?.resolutions&&(A??(A=new Set)).add(Ue),Ot?.files&&(E??(E=new Set)).add(Ue),(It=Ot?.symlinks)==null||It.forEach(nt=>Zr(nt,Rt)),Rt?.delete(e.toPath(Ue))}function Ai(){l.forEach(Di),l.clear()}function Ni(Ue,Rt,It,Ot,nt){C.assert(!nt);let Kt=xe.get(Ot),Sr=Y.get(Ot);if(Kt===void 0){let _e=e.realpath(It);Kt=_e!==It&&e.toPath(_e)!==Ot,xe.set(Ot,Kt),Sr?Sr.isSymlink!==Kt&&(Sr.dirPathToWatcher.forEach(B=>{mn(Sr.isSymlink?Ot:Rt),B.watcher=Nt()}),Sr.isSymlink=Kt):Y.set(Ot,Sr={dirPathToWatcher:new Map,isSymlink:Kt})}else C.assertIsDefined(Sr),C.assert(Kt===Sr.isSymlink);let Oe=Sr.dirPathToWatcher.get(Rt);Oe?Oe.refCount++:(Sr.dirPathToWatcher.set(Rt,{watcher:Nt(),refCount:1}),Kt&&Ce.set(Rt,(Ce.get(Rt)??0)+1));function Nt(){return Kt?Ci(It,Ot,nt):Ci(Ue,Rt,nt)}}function Pr(Ue,Rt,It,Ot,nt){!Ot||!e.realpath?Ci(Ue,Rt,nt):Ni(Ue,Rt,It,Ot,nt)}function Ci(Ue,Rt,It){let Ot=ie.get(Rt);return Ot?(C.assert(!!It==!!Ot.nonRecursive),Ot.refCount++):ie.set(Rt,Ot={watcher:dr(Ue,Rt,It),refCount:1,nonRecursive:It}),Ot}function $e(Ue,Rt){let It=e.toPath(Ue),Ot=AH(Ue,It,pe,de,fe,ve,F,e.preferNonRecursiveWatch);if(Ot){let{dirPath:nt,packageDirPath:Kt}=Ot;if(nt===de)Rt=!0;else if(Kt&&e.realpath){let Sr=Y.get(Kt),Oe=Sr.dirPathToWatcher.get(nt);if(Oe.refCount--,Oe.refCount===0&&(mn(Sr.isSymlink?Kt:nt),Sr.dirPathToWatcher.delete(nt),Sr.isSymlink)){let Nt=Ce.get(nt)-1;Nt===0?Ce.delete(nt):Ce.set(nt,Nt)}}else mn(nt)}return Rt}function At(Ue,Rt,It){if(C.checkDefined(Ue.files).delete(Rt),Ue.files.size)return;Ue.files=void 0;let Ot=It(Ue);if(Ot&&Ot.resolvedFileName){let Oe=e.toPath(Ot.resolvedFileName),Nt=g.get(Oe);Nt?.delete(Ue)&&!Nt.size&&g.delete(Oe)}let{failedLookupLocations:nt,affectingLocations:Kt,alternateResult:Sr}=Ue;if(u.delete(Ue)){let Oe=!1;if(nt)for(let Nt of nt)Oe=$e(Nt,Oe);Sr&&(Oe=$e(Sr,Oe)),Oe&&mn(de)}else Kt?.length&&d.delete(Ue);if(Kt)for(let Oe of Kt){let Nt=K.get(Oe);Nt.resolutions--}}function mn(Ue){let Rt=ie.get(Ue);Rt.refCount--}function dr(Ue,Rt,It){return e.watchDirectoryOfFailedLookupLocation(Ue,Ot=>{let nt=e.toPath(Ot);O&&O.addOrDeleteFileOrDirectory(Ot,nt),Uo(nt,Rt===nt)},It?0:1)}function ri(Ue,Rt,It){let Ot=Ue.get(Rt);Ot&&(Ot.forEach(nt=>At(nt,Rt,It)),Ue.delete(Rt))}function ai(Ue){if(!El(Ue,".json"))return;let Rt=e.getCurrentProgram();if(!Rt)return;let It=Rt.getResolvedProjectReferenceByPath(Ue);It&&It.commandLine.fileNames.forEach(Ot=>qi(e.toPath(Ot)))}function qi(Ue){ri(G,Ue,nI),ri(J,Ue,b6)}function $o(Ue,Rt){if(!Ue)return!1;let It=!1;return Ue.forEach(Ot=>{if(!(Ot.isInvalidated||!Rt(Ot))){Ot.isInvalidated=It=!0;for(let nt of C.checkDefined(Ot.files))(o??(o=new Set)).add(nt),v=v||el(nt,_P)}}),It}function Ia(Ue){qi(Ue);let Rt=v;$o(g.get(Ue),n1)&&v&&!Rt&&e.onChangedAutomaticTypeDirectiveNames()}function Mn(Ue){C.assert(s===Ue||s===void 0),s=Ue}function Uo(Ue,Rt){if(Rt)(P||(P=new Set)).add(Ue);else{let It=DF(Ue);if(!It||(Ue=It,e.fileIsOpen(Ue)))return!1;let Ot=ci(Ue);if(_t(Ue)||q8(Ue)||_t(Ot)||q8(Ot))(R||(R=new Set)).add(Ue),(N||(N=new Set)).add(Ue);else{if(nse(e.getCurrentProgram(),Ue)||El(Ue,".map"))return!1;(R||(R=new Set)).add(Ue),(N||(N=new Set)).add(Ue);let nt=Cw(Ue,!0);nt&&(N||(N=new Set)).add(nt)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ot(){let Ue=j.getPackageJsonInfoCache().getInternalMap();Ue&&(R||N||P)&&Ue.forEach((Rt,It)=>ht(It)?Ue.delete(It):void 0)}function Ft(){var Ue;if(k)return E=void 0,ot(),(R||N||P||A)&&$o(q,le),R=void 0,N=void 0,P=void 0,A=void 0,!0;let Rt=!1;return E&&((Ue=e.getCurrentProgram())==null||Ue.getSourceFiles().forEach(It=>{vt(It.packageJsonLocations,Ot=>E.has(Ot))&&((o??(o=new Set)).add(It.path),Rt=!0)}),E=void 0),!R&&!N&&!P&&!A||(Rt=$o(u,le)||Rt,ot(),R=void 0,N=void 0,P=void 0,Rt=$o(d,ne)||Rt,A=void 0),Rt}function le(Ue){var Rt;return ne(Ue)?!0:!R&&!N&&!P?!1:((Rt=Ue.failedLookupLocations)==null?void 0:Rt.some(It=>ht(e.toPath(It))))||!!Ue.alternateResult&&ht(e.toPath(Ue.alternateResult))}function ht(Ue){return R?.has(Ue)||cr(N?.keys()||[],Rt=>po(Ue,Rt)?!0:void 0)||cr(P?.keys()||[],Rt=>Ue.length>Rt.length&&po(Ue,Rt)&&(pB(Rt)||Ue[Rt.length]===Js)?!0:void 0)}function ne(Ue){var Rt;return!!A&&((Rt=Ue.affectingLocations)==null?void 0:Rt.some(It=>A.has(It)))}function Fe(){mp(Xe,zm)}function it(Ue){return Lt(Ue)?e.watchTypeRootsDirectory(Ue,Rt=>{let It=e.toPath(Rt);O&&O.addOrDeleteFileOrDirectory(Rt,It),v=!0,e.onChangedAutomaticTypeDirectiveNames();let Ot=kse(Ue,e.toPath(Ue),de,fe,ve,F,e.preferNonRecursiveWatch,nt=>ie.has(nt)||Ce.has(nt));Ot&&Uo(It,Ot===It)},1):BD}function dt(){let Ue=e.getCompilationSettings();if(Ue.types){Fe();return}let Rt=ZM(Ue,{getCurrentDirectory:F});Rt?hM(Xe,new Set(Rt),{createNewValue:it,onDeleteValue:zm}):Fe()}function Lt(Ue){return e.getCompilationSettings().typeRoots?!0:Mse(e.toPath(Ue))}}function kHe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var FEe=Uc?{getCurrentDirectory:()=>Uc.getCurrentDirectory(),getNewLine:()=>Uc.newLine,getCanonicalFileName:Fd(Uc.useCaseSensitiveFileNames)}:void 0;function ex(e,t){let r=e===Uc&&FEe?FEe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Fd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(oH(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(cse(i,r)+r.getNewLine()),i[0]=void 0}}function zEe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&jn(BEe,t.code)?(e.clearScreen(),!0):!1}var BEe=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code];function wHe(e,t){return jn(BEe,e.code)?t+t:t}function Qw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function xH(e,t){return t?(r,i,o)=>{zEe(e,r,o);let s=`[${j1(Qw(e),"\x1B[90m")}] `;s+=`${o_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";zEe(e,r,o)||(s+=i),s+=`${Qw(e)} - `,s+=`${o_(r.messageText,e.newLine)}${wHe(r,i)}`,e.write(s)}}function Wse(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=d=>jEe(o,s,d);let u=Sw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function NF(e){return Io(e,t=>t.category===1)}function MF(e){return Un(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=hn(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=ca(i.file,i.start);return{fileName:r,line:o+1}}})}function RH(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function GEe(e,t){let r=j1(":"+e.line,"\x1B[90m");return vN(e.fileName)&&vN(t)?lf(t,e.fileName,!1)+r:e.fileName+r}function DH(e,t,r,i){if(e===0)return"";let o=t.filter(_=>_!==void 0),s=o.map(_=>`${_.fileName}:${_.line}`).filter((_,v,E)=>E.indexOf(_)===v),l=o[0]&&GEe(o[0],i.getCurrentDirectory()),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];let d=Il(...u),g=s.length>1?OHe(o,i):"";return`${r}${o_(d.messageText,r)}${r}${r}${g}`}function OHe(e,t){let r=e.filter((v,E,A)=>E===A.findIndex(R=>R?.fileName===v?.fileName));if(r.length===0)return"";let i=v=>Math.log(v)*Math.LOG10E+1,o=r.map(v=>[v,Io(e,E=>E.fileName===v.fileName)]),s=Lz(o,0,v=>v[1]),l=f.Errors_Files.message,u=l.split(" ")[0].length,d=Math.max(u,i(s)),g=Math.max(i(s)-u,0),_="";return _+=" ".repeat(g)+l+`
`,o.forEach(v=>{let[E,A]=v,R=Math.log(A)*Math.LOG10E+1|0,N=R<d?" ".repeat(d-R):"",P=GEe(E,t.getCurrentDirectory());_+=`${N}${A} ${P}
`}),_}function CH(e){return!!e.state}function WHe(e,t){let r=e.getCompilerOptions();r.explainFiles?NH(CH(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&Je(e.getSourceFiles(),i=>{t(i.fileName)})}function NH(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>bN(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${zD(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${kH(e,u,s).messageText}`)),(i=MH(l,e.getCompilerOptionsForFile(l),s))==null||i.forEach(u=>t(` ${u.messageText}`))}function MH(e,t,r){var i;let o;if(e.path!==e.resolvedPath&&(o??(o=[])).push(qo(void 0,f.File_is_output_of_project_reference_source_0,zD(e.originalFileName,r))),e.redirectInfo&&(o??(o=[])).push(qo(void 0,f.File_redirects_to_file_0,zD(e.redirectInfo.redirectTarget,r))),Np(e))switch(RE(e,t)){case 99:e.packageJsonScope&&(o??(o=[])).push(qo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,zD(Ba(e.packageJsonLocations),r)));break;case 1:e.packageJsonScope?(o??(o=[])).push(qo(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,zD(Ba(e.packageJsonLocations),r))):(i=e.packageJsonLocations)!=null&&i.length&&(o??(o=[])).push(qo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return o}function PH(e,t){var r;let i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let o=e.getCanonicalFileName(t),s=ci(To(i.fileName,e.getCurrentDirectory())),l=ho(i.configFileSpecs.validatedFilesSpec,u=>e.getCanonicalFileName(To(u,s))===o);return l!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[l]:void 0}function LH(e,t){var r,i;let o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let s=El(t,".json"),l=ci(To(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames(),d=ho((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,g=>{if(s&&!el(g,".json"))return!1;let _=EV(g,l,"files");return!!_&&nv(`(?:${_})$`,u).test(t)});return d!==-1?o.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[d]:void 0}function kH(e,t,r){var i,o;let s=e.getCompilerOptions();if(rT(t)){let l=gP(e,t),u=WD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,d;switch(C.assert(WD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:WD(l)?d=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===pb?d=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:d=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:C.assert(!l.packageId),d=f.Referenced_via_0_from_file_1;break;case 5:d=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:C.assert(!l.packageId),d=f.Library_referenced_via_0_from_file_1;break;default:C.assertNever(t)}return qo(void 0,d,u,zD(l.file,r),l.packageId&&D0(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return qo(void 0,f.Root_file_specified_for_compilation);let l=To(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(PH(e,l))return qo(void 0,f.Part_of_files_list_in_tsconfig_json);let d=LH(e,l);return Bo(d)?qo(void 0,f.Matched_by_include_pattern_0_in_1,d,zD(s.configFile,r)):qo(void 0,d?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:let g=t.kind===2,_=C.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return qo(void 0,s.outFile?g?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:g?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,zD(_.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{let v=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,D0(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,D0(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return qo(void 0,...v)}case 6:{if(t.index!==void 0)return qo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let v=xW(Ga(s)),E=v?[f.Default_library_for_target_0,v]:[f.Default_library];return qo(void 0,...E)}default:C.assertNever(t)}}function zD(e,t){let r=Bo(e)?e:e.fileName;return t?t(r):r}function PF(e,t,r,i,o,s,l,u){let d=e.getCompilerOptions(),g=e.getConfigFileParsingDiagnostics().slice(),_=g.length;Xr(g,e.getSyntacticDiagnostics(void 0,s)),g.length===_&&(Xr(g,e.getOptionsDiagnostics(s)),d.listFilesOnly||(Xr(g,e.getGlobalDiagnostics(s)),g.length===_&&Xr(g,e.getSemanticDiagnostics(void 0,s)),d.noEmit&&hp(d)&&g.length===_&&Xr(g,e.getDeclarationDiagnostics(void 0,s))));let v=d.listFilesOnly?{emitSkipped:!0,diagnostics:ae}:e.emit(void 0,o,s,l,u);Xr(g,v.diagnostics);let E=xR(g);if(E.forEach(t),r){let A=e.getCurrentDirectory();Je(v.emittedFiles,R=>{let N=To(R,A);r(`TSFILE: ${N}`)}),WHe(e,r)}return i&&i(NF(E),MF(E)),{emitResult:v,diagnostics:E}}function wH(e,t,r,i,o,s,l,u){let{emitResult:d,diagnostics:g}=PF(e,t,r,i,o,s,l,u);return d.emitSkipped&&g.length>0?1:g.length>0?2:0}var BD={close:gs},vP=()=>BD;function OH(e=Uc,t){return{onWatchStatusChange:t||xH(e),watchFile:ia(e,e.watchFile)||vP,watchDirectory:ia(e,e.watchDirectory)||vP,setTimeout:ia(e,e.setTimeout)||gs,clearTimeout:ia(e,e.clearTimeout)||gs,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var sd={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 WH(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):gs,o=eH(e,r,i);return o.writeLog=i,o}function FH(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:rH((s,l)=>l?e.readFile(s,l):o.readFile(s),void 0),getDefaultLibLocation:ia(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:iH((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Cu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Fd(i),getNewLine:()=>tv(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),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return o}function LF(e,t){if(t.match(lae)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){let s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Zd(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(RU)){t=t.substring(0,i);break}else if(!l.match(DU))break;r=i}}return(e.createHash||uL)(t)}function kF(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=LF(e,i.text)),i}}function zH(e,t){let r=Cu(()=>ci(ya(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Cu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Qr(r(),yL(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||SH,storeSignatureInfo:e.storeSignatureInfo,now:ia(e,e.now)}}function VEe(e=Uc,t,r,i){let o=l=>e.write(l+e.newLine),s=zH(e,t);return Mz(s,OH(e,i)),s.afterProgramCreate=l=>{let u=l.getCompilerOptions(),d=tv(u);PF(l,r,o,g=>s.onWatchStatusChange(Il(RH(g),g),d,u,g))},s}function jEe(e,t,r){t(r),e.exit(1)}function BH({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){let d=l||ex(o),g=VEe(o,s,d,u);return g.onUnRecoverableConfigFileDiagnostic=_=>jEe(o,d,_),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function GH({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){let d=VEe(o,s,l||ex(o),u);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function Fse(e){let t=e.system||Uc,r=e.host||(e.host=OF(e.options,t)),i=zse(e),o=wH(i,e.reportDiagnostic||ex(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(DH(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}function wF(e,t){let r=nT(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{let o=t.readFile(r);if(!o)return;i=YU(r,o)}if(!(!i||i.version!==Me||!Yw(i)))return Dse(i,r,t)}function OF(e,t=Uc){let r=_F(e,void 0,t);return r.createHash=ia(t,t.createHash),r.storeSignatureInfo=t.storeSignatureInfo,kF(r),hP(r,i=>ks(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function zse({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||OF(t),s=s||SH;let l=wF(t,o);return s(e,t,o,l,r,i)}function UEe(e,t,r,i,o,s,l,u){return Mo(e)?GH({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):BH({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function VH(e){let t,r,i,o,s=new Map([[void 0,void 0]]),l,u,d,g,_=e.extendedConfigCache,v=!1,E=new Map,A,R=!1,N=e.useCaseSensitiveFileNames(),P=e.getCurrentDirectory(),{configFileName:k,optionsToExtend:F={},watchOptionsToExtend:O,extraFileExtensions:G,createProgram:j}=e,{rootFiles:J,options:Z,watchOptions:q,projectReferences:ye}=e,ie,K,pe=!1,de=!1,fe=k===void 0?void 0:fF(e,P,N),ve=fe||e,xe=AF(e,ve),Y=Kn();k&&e.configFileParsingResult&&(Mn(e.configFileParsingResult),Y=Kn()),Ni(f.Starting_compilation_in_watch_mode),k&&!e.configFileParsingResult&&(Y=tv(F),C.assert(!J),Ia(),Y=Kn()),C.assert(Z),C.assert(J);let{watchFile:Ce,watchDirectory:Xe,writeLog:Se}=WH(e,Z),re=Fd(N);Se(`Current directory: ${P} CaseSensitiveFileNames: ${N}`);let be;k&&(be=Ce(k,dr,2e3,q,sd.ConfigFile));let Ne=FH(e,()=>Z,ve);kF(Ne);let Be=Ne.getSourceFile;Ne.getSourceFile=(It,...Ot)=>lo(It,_t(It),...Ot),Ne.getSourceFileByPath=lo,Ne.getNewLine=()=>Y,Ne.fileExists=Di,Ne.onReleaseOldSourceFile=Ai,Ne.onReleaseParsedCommandLine=Ft,Ne.toPath=_t,Ne.getCompilationSettings=()=>Z,Ne.useSourceOfProjectReferenceRedirect=ia(e,e.useSourceOfProjectReferenceRedirect),Ne.preferNonRecursiveWatch=e.preferNonRecursiveWatch,Ne.watchDirectoryOfFailedLookupLocation=(It,Ot,nt)=>Xe(It,Ot,nt,q,sd.FailedLookupLocations),Ne.watchAffectingFileLocation=(It,Ot)=>Ce(It,Ot,2e3,q,sd.AffectingFileLocation),Ne.watchTypeRootsDirectory=(It,Ot,nt)=>Xe(It,Ot,nt,q,sd.TypeRoots),Ne.getCachedDirectoryStructureHost=()=>fe,Ne.scheduleInvalidateResolutionsOfFailedLookupLocations=$e,Ne.onInvalidatedResolution=mn,Ne.onChangedAutomaticTypeDirectiveNames=mn,Ne.fileIsOpen=Qg,Ne.getCurrentProgram=at,Ne.writeLog=Se,Ne.getParsedCommandLine=Uo;let lt=IH(Ne,k?ci(To(k,P)):P,!1);Ne.resolveModuleNameLiterals=ia(e,e.resolveModuleNameLiterals),Ne.resolveModuleNames=ia(e,e.resolveModuleNames),!Ne.resolveModuleNameLiterals&&!Ne.resolveModuleNames&&(Ne.resolveModuleNameLiterals=lt.resolveModuleNameLiterals.bind(lt)),Ne.resolveTypeReferenceDirectiveReferences=ia(e,e.resolveTypeReferenceDirectiveReferences),Ne.resolveTypeReferenceDirectives=ia(e,e.resolveTypeReferenceDirectives),!Ne.resolveTypeReferenceDirectiveReferences&&!Ne.resolveTypeReferenceDirectives&&(Ne.resolveTypeReferenceDirectiveReferences=lt.resolveTypeReferenceDirectiveReferences.bind(lt)),Ne.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):lt.resolveLibrary.bind(lt),Ne.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ia(e,e.getModuleResolutionCache):()=>lt.getModuleResolutionCache();let De=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ia(e,e.hasInvalidatedResolutions)||n1:Qg,ge=e.resolveLibrary?ia(e,e.hasInvalidatedLibResolutions)||n1:Qg;return t=wF(Z,Ne),Wt(),k?{getCurrentProgram:We,getProgram:ai,close:je,getResolutionCache:Ge}:{getCurrentProgram:We,getProgram:ai,updateRootFileNames:gn,close:je,getResolutionCache:Ge};function je(){Ci(),lt.clear(),mp(E,It=>{It&&It.fileWatcher&&(It.fileWatcher.close(),It.fileWatcher=void 0)}),be&&(be.close(),be=void 0),_?.clear(),_=void 0,g&&(mp(g,qf),g=void 0),o&&(mp(o,qf),o=void 0),i&&(mp(i,zm),i=void 0),d&&(mp(d,It=>{var Ot;(Ot=It.watcher)==null||Ot.close(),It.watcher=void 0,It.watchedDirectories&&mp(It.watchedDirectories,qf),It.watchedDirectories=void 0}),d=void 0),t=void 0}function Ge(){return lt}function We(){return t}function at(){return t&&t.getProgramOrUndefined()}function Wt(){Se("Synchronizing program"),C.assert(Z),C.assert(J),Ci();let It=We();R&&(Y=Kn(),It&&y6(It.getCompilerOptions(),Z)&&lt.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:Ot,hasInvalidatedLibResolutions:nt}=lt.createHasInvalidatedResolutions(De,ge),{originalReadFile:Kt,originalFileExists:Sr,originalDirectoryExists:Oe,originalCreateDirectory:Nt,originalWriteFile:_e,readFileWithCache:B}=hP(Ne,_t);return uH(at(),J,Z,Ae=>Zr(Ae,B),Ae=>Ne.fileExists(Ae),Ot,nt,Pr,Uo,ye)?de&&(v&&Ni(f.File_change_detected_Starting_incremental_compilation),t=j(void 0,void 0,Ne,t,K,ye),de=!1):(v&&Ni(f.File_change_detected_Starting_incremental_compilation),cn(Ot,nt)),v=!1,e.afterProgramCreate&&It!==t&&e.afterProgramCreate(t),Ne.readFile=Kt,Ne.fileExists=Sr,Ne.directoryExists=Oe,Ne.createDirectory=Nt,Ne.writeFile=_e,s?.forEach((Ae,te)=>{if(!te)dt(),k&&Ue(_t(k),Z,q,sd.ExtendedConfigFile);else{let xt=d?.get(te);xt&&Rt(Ae,te,xt)}}),s=void 0,t}function cn(It,Ot){Se("CreatingProgramWith::"),Se(` roots: ${JSON.stringify(J)}`),Se(` options: ${JSON.stringify(Z)}`),ye&&Se(` projectReferences: ${JSON.stringify(ye)}`);let nt=R||!at();R=!1,de=!1,lt.startCachingPerDirectoryResolution(),Ne.hasInvalidatedResolutions=It,Ne.hasInvalidatedLibResolutions=Ot,Ne.hasChangedAutomaticTypeDirectiveNames=Pr;let Kt=at();if(t=j(J,Z,Ne,t,K,ye),lt.finishCachingPerDirectoryResolution(t.getProgram(),Kt),ZU(t.getProgram(),i||(i=new Map),Fe),nt&&lt.updateTypeRootsWatch(),A){for(let Sr of A)i.has(Sr)||E.delete(Sr);A=void 0}}function gn(It){C.assert(!k,"Cannot update root file names with config file watch mode"),J=It,mn()}function Kn(){return tv(Z||F)}function _t(It){return ks(It,P,re)}function en(It){return typeof It=="boolean"}function ir(It){return typeof It.version=="boolean"}function Di(It){let Ot=_t(It);return en(E.get(Ot))?!1:ve.fileExists(It)}function lo(It,Ot,nt,Kt,Sr){let Oe=E.get(Ot);if(en(Oe))return;let Nt=typeof nt=="object"?nt.impliedNodeFormat:void 0;if(Oe===void 0||Sr||ir(Oe)||Oe.sourceFile.impliedNodeFormat!==Nt){let _e=Be(It,nt,Kt);if(Oe)_e?(Oe.sourceFile=_e,Oe.version=_e.version,Oe.fileWatcher||(Oe.fileWatcher=le(Ot,It,ht,250,q,sd.SourceFile))):(Oe.fileWatcher&&Oe.fileWatcher.close(),E.set(Ot,!1));else if(_e){let B=le(Ot,It,ht,250,q,sd.SourceFile);E.set(Ot,{sourceFile:_e,version:_e.version,fileWatcher:B})}else E.set(Ot,!1);return _e}return Oe.sourceFile}function zt(It){let Ot=E.get(It);Ot!==void 0&&(en(Ot)?E.set(It,{version:!1}):Ot.version=!1)}function Zr(It,Ot){let nt=E.get(It);if(!nt)return;if(nt.version)return nt.version;let Kt=Ot(It);return Kt!==void 0?LF(Ne,Kt):void 0}function Ai(It,Ot,nt){let Kt=E.get(It.resolvedPath);Kt!==void 0&&(en(Kt)?(A||(A=[])).push(It.path):Kt.sourceFile===It&&(Kt.fileWatcher&&Kt.fileWatcher.close(),E.delete(It.resolvedPath),nt||lt.removeResolutionsOfFile(It.path)))}function Ni(It){e.onWatchStatusChange&&e.onWatchStatusChange(Il(It),Y,Z||F)}function Pr(){return lt.hasChangedAutomaticTypeDirectiveNames()}function Ci(){return u?(e.clearTimeout(u),u=void 0,!0):!1}function $e(){if(!e.setTimeout||!e.clearTimeout)return lt.invalidateResolutionsOfFailedLookupLocations();let It=Ci();Se(`Scheduling invalidateFailedLookup${It?", Cancelled earlier one":""}`),u=e.setTimeout(At,250,"timerToInvalidateFailedLookupResolutions")}function At(){u=void 0,lt.invalidateResolutionsOfFailedLookupLocations()&&mn()}function mn(){!e.setTimeout||!e.clearTimeout||(l&&e.clearTimeout(l),Se("Scheduling update"),l=e.setTimeout(ri,250,"timerToUpdateProgram"))}function dr(){C.assert(!!k),r=2,mn()}function ri(){l=void 0,v=!0,ai()}function ai(){switch(r){case 1:qi();break;case 2:$o();break;default:Wt();break}return We()}function qi(){Se("Reloading new file names and options"),C.assert(Z),C.assert(k),r=0,J=$M(Z.configFile.configFileSpecs,To(ci(k),P),Z,xe,G),z3(J,To(k,P),Z.configFile.configFileSpecs,K,pe)&&(de=!0),Wt()}function $o(){C.assert(k),Se(`Reloading config file: ${k}`),r=0,fe&&fe.clearCache(),Ia(),R=!0,(s??(s=new Map)).set(void 0,void 0),Wt()}function Ia(){C.assert(k),Mn(Sw(k,F,xe,_||(_=new Map),O,G))}function Mn(It){J=It.fileNames,Z=It.options,q=It.watchOptions,ye=It.projectReferences,ie=It.wildcardDirectories,K=U1(It).slice(),pe=Rw(It.raw),de=!0}function Uo(It){let Ot=_t(It),nt=d?.get(Ot);if(nt){if(!nt.updateLevel)return nt.parsedCommandLine;if(nt.parsedCommandLine&&nt.updateLevel===1&&!e.getParsedCommandLine){Se("Reloading new file names and options"),C.assert(Z);let Sr=$M(nt.parsedCommandLine.options.configFile.configFileSpecs,To(ci(It),P),Z,xe);return nt.parsedCommandLine={...nt.parsedCommandLine,fileNames:Sr},nt.updateLevel=void 0,nt.parsedCommandLine}}Se(`Loading config file: ${It}`);let Kt=e.getParsedCommandLine?e.getParsedCommandLine(It):ot(It);return nt?(nt.parsedCommandLine=Kt,nt.updateLevel=void 0):(d||(d=new Map)).set(Ot,nt={parsedCommandLine:Kt}),(s??(s=new Map)).set(Ot,It),Kt}function ot(It){let Ot=xe.onUnRecoverableConfigFileDiagnostic;xe.onUnRecoverableConfigFileDiagnostic=gs;let nt=Sw(It,void 0,xe,_||(_=new Map),O);return xe.onUnRecoverableConfigFileDiagnostic=Ot,nt}function Ft(It){var Ot;let nt=_t(It),Kt=d?.get(nt);Kt&&(d.delete(nt),Kt.watchedDirectories&&mp(Kt.watchedDirectories,qf),(Ot=Kt.watcher)==null||Ot.close(),QU(nt,g))}function le(It,Ot,nt,Kt,Sr,Oe){return Ce(Ot,(Nt,_e)=>nt(Nt,_e,It),Kt,Sr,Oe)}function ht(It,Ot,nt){ne(It,nt,Ot),Ot===2&&E.has(nt)&&lt.invalidateResolutionOfFile(nt),zt(nt),mn()}function ne(It,Ot,nt){fe&&fe.addOrDeleteFile(It,Ot,nt)}function Fe(It,Ot){return d?.has(It)?BD:le(It,Ot,it,500,q,sd.MissingFile)}function it(It,Ot,nt){ne(It,nt,Ot),Ot===0&&i.has(nt)&&(i.get(nt).close(),i.delete(nt),zt(nt),mn())}function dt(){jw(o||(o=new Map),ie,Lt)}function Lt(It,Ot){return Xe(It,nt=>{C.assert(k),C.assert(Z);let Kt=_t(nt);fe&&fe.addOrDeleteFileOrDirectory(nt,Kt),zt(Kt),!Uw({watchedDirPath:_t(It),fileOrDirectory:nt,fileOrDirectoryPath:Kt,configFileName:k,extraFileExtensions:G,options:Z,program:We()||J,currentDirectory:P,useCaseSensitiveFileNames:N,writeLog:Se,toPath:_t})&&r!==2&&(r=1,mn())},Ot,q,sd.WildcardDirectory)}function Ue(It,Ot,nt,Kt){mF(It,Ot,g||(g=new Map),(Sr,Oe)=>Ce(Sr,(Nt,_e)=>{var B;ne(Sr,Oe,_e),_&&hF(_,Oe,_t);let Ae=(B=g.get(Oe))==null?void 0:B.projects;Ae?.size&&Ae.forEach(te=>{if(k&&_t(k)===te)r=2;else{let xt=d?.get(te);xt&&(xt.updateLevel=2),lt.removeResolutionsFromProjectReferenceRedirects(te)}mn()})},2e3,nt,Kt),_t)}function Rt(It,Ot,nt){var Kt,Sr,Oe,Nt;nt.watcher||(nt.watcher=Ce(It,(_e,B)=>{ne(It,Ot,B);let Ae=d?.get(Ot);Ae&&(Ae.updateLevel=2),lt.removeResolutionsFromProjectReferenceRedirects(Ot),mn()},2e3,((Kt=nt.parsedCommandLine)==null?void 0:Kt.watchOptions)||q,sd.ConfigFileOfReferencedProject)),jw(nt.watchedDirectories||(nt.watchedDirectories=new Map),(Sr=nt.parsedCommandLine)==null?void 0:Sr.wildcardDirectories,(_e,B)=>{var Ae;return Xe(_e,te=>{let xt=_t(te);fe&&fe.addOrDeleteFileOrDirectory(te,xt),zt(xt);let Xt=d?.get(Ot);Xt?.parsedCommandLine&&(Uw({watchedDirPath:_t(_e),fileOrDirectory:te,fileOrDirectoryPath:xt,configFileName:It,options:Xt.parsedCommandLine.options,program:Xt.parsedCommandLine.fileNames,currentDirectory:P,useCaseSensitiveFileNames:N,writeLog:Se,toPath:_t})||Xt.updateLevel!==2&&(Xt.updateLevel=1,mn()))},B,((Ae=nt.parsedCommandLine)==null?void 0:Ae.watchOptions)||q,sd.WildcardDirectoryOfReferencedProject)}),Ue(Ot,(Oe=nt.parsedCommandLine)==null?void 0:Oe.options,((Nt=nt.parsedCommandLine)==null?void 0:Nt.watchOptions)||q,sd.ExtendedConfigOfReferencedProject)}}var Bse=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",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))(Bse||{});function jH(e){return El(e,".json")?e:Qr(e,"tsconfig.json")}var FHe=new Date(-864e13);function zHe(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Gse(e,t){return zHe(e,t,()=>new Map)}function UH(e){return e.now?e.now():new Date}function tx(e){return!!e&&!!e.buildOrder}function Zw(e){return tx(e)?e.buildOrder:e}function WF(e,t){return r=>{let i=t?`[${j1(Qw(e),"\x1B[90m")}] `:`${Qw(e)} - `;i+=`${o_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function HEe(e,t,r,i){let o=zH(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):r1,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):gs,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):gs,o.reportDiagnostic=r||ex(e),o.reportSolutionBuilderStatus=i||WF(e),o.now=ia(e,e.now),o}function Vse(e=Uc,t,r,i,o){let s=HEe(e,t,r,i);return s.reportErrorSummary=o,s}function jse(e=Uc,t,r,i,o){let s=HEe(e,t,r,i),l=OH(e,o);return Mz(s,l),s}function BHe(e){let t={};return D3.forEach(r=>{Rs(e,r.name)&&(t[r.name]=e[r.name])}),t.tscBuild=!0,t}function Use(e,t,r){return pAe(!1,e,t,r)}function Hse(e,t,r,i){return pAe(!0,e,t,r,i)}function GHe(e,t,r,i,o){let s=t,l=t,u=BHe(i),d=FH(s,()=>N.projectCompilerOptions);kF(d),d.getParsedCommandLine=P=>GD(N,P,z_(N,P)),d.resolveModuleNameLiterals=ia(s,s.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=ia(s,s.resolveTypeReferenceDirectiveReferences),d.resolveLibrary=ia(s,s.resolveLibrary),d.resolveModuleNames=ia(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=ia(s,s.resolveTypeReferenceDirectives),d.getModuleResolutionCache=ia(s,s.getModuleResolutionCache);let g,_;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(g=ND(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(P,k,F,O,G)=>qw(P,k,F,O,G,s,g,cH),d.getModuleResolutionCache=()=>g),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(_=q3(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache(),g?.optionsToRedirectsKey),d.resolveTypeReferenceDirectiveReferences=(P,k,F,O,G)=>qw(P,k,F,O,G,s,_,vF));let v;d.resolveLibrary||(v=ND(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache()),d.resolveLibrary=(P,k,F)=>J3(P,k,F,s,v)),d.getBuildInfo=(P,k)=>rAe(N,P,z_(N,k),void 0);let{watchFile:E,watchDirectory:A,writeLog:R}=WH(l,i),N={host:s,hostWithWatch:l,parseConfigFileHost:AF(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:d,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:_,libraryResolutionCache:v,buildOrder:void 0,readFileWithCache:P=>s.readFile(P),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:E,watchDirectory:A,writeLog:R};return N}function Um(e,t){return ks(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function z_(e,t){let{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;let o=Um(e,t);return r.set(t,o),o}function qEe(e){return!!e.options}function VHe(e,t){let r=e.configFileCache.get(t);return r&&qEe(r)?r:void 0}function GD(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return qEe(o)?o:void 0;Rl("SolutionBuilder::beforeConfigFileParsing");let s,{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:d,extendedConfigCache:g,host:_}=e,v;return _.getParsedCommandLine?(v=_.getParsedCommandLine(t),v||(s=Il(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,v=Sw(t,u,l,g,d),l.onUnRecoverableConfigFileDiagnostic=gs),i.set(r,v||s),Rl("SolutionBuilder::afterConfigFileParsing"),Lf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),v}function eO(e,t){return jH(rb(e.compilerHost.getCurrentDirectory(),t))}function JEe(e,t){let r=new Map,i=new Map,o=[],s,l;for(let d of t)u(d);return l?{buildOrder:s||ae,circularDiagnostics:l}:s||ae;function u(d,g){let _=z_(e,d);if(i.has(_))return;if(r.has(_)){g||(l||(l=[])).push(Il(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r
`)));return}r.set(_,!0),o.push(d);let v=GD(e,d,_);if(v&&v.projectReferences)for(let E of v.projectReferences){let A=eO(e,E.path);u(A,g||E.circular)}o.pop(),i.set(_,!0),(s||(s=[])).push(d)}}function FF(e){return e.buildOrder||jHe(e)}function jHe(e){let t=JEe(e,e.rootNames.map(o=>eO(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(Zw(t).map(o=>z_(e,o))),i={onDeleteValue:gs};return yg(e.configFileCache,r,i),yg(e.projectStatus,r,i),yg(e.builderPrograms,r,i),yg(e.diagnostics,r,i),yg(e.projectPendingBuild,r,i),yg(e.projectErrorsReported,r,i),yg(e.buildInfoCache,r,i),yg(e.outputTimeStamps,r,i),yg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(yg(e.allWatchedConfigFiles,r,{onDeleteValue:zm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),yg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(qf)}),yg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(zm)}),yg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(zm)})),e.buildOrder=t}function KEe(e,t,r){let i=t&&eO(e,t),o=FF(e);if(tx(o))return o;if(i){let l=z_(e,i);if(ho(o,d=>z_(e,d)===l)===-1)return}let s=i?JEe(e,[i]):o;return C.assert(!tx(s)),C.assert(!r||i!==void 0),C.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function XEe(e){e.cache&&qse(e);let{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:g,getSourceFileWithCache:_,readFileWithCache:v}=hP(r,E=>Um(e,E),(...E)=>o.call(t,...E));e.readFileWithCache=v,t.getSourceFile=_,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:o}}function qse(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),u?.clear(),e.cache=void 0}function YEe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function $Ee({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function QEe(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&tle(e,f.Starting_compilation_in_watch_mode),XEe(e),Zw(FF(e)).forEach(i=>e.projectPendingBuild.set(z_(e,i),0)),t&&t.throwIfCancellationRequested()}var Jse=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(Jse||{});function ZEe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function UHe(e,t,r,i,o){let s=!0;return{kind:1,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{oAe(e,i,r),s=!1},done:()=>(s&&oAe(e,i,r),Rl("SolutionBuilder::Timestamps only updates"),ZEe(e,r))}}function HHe(e,t,r,i,o,s,l){let u=0,d,g;return{kind:0,project:t,projectPath:r,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>v(Vs),getProgram:()=>v(P=>P.getProgramOrUndefined()),getSourceFile:P=>v(k=>k.getSourceFile(P)),getSourceFiles:()=>E(P=>P.getSourceFiles()),getOptionsDiagnostics:P=>E(k=>k.getOptionsDiagnostics(P)),getGlobalDiagnostics:P=>E(k=>k.getGlobalDiagnostics(P)),getConfigFileParsingDiagnostics:()=>E(P=>P.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(P,k)=>E(F=>F.getSyntacticDiagnostics(P,k)),getAllDependencies:P=>E(k=>k.getAllDependencies(P)),getSemanticDiagnostics:(P,k)=>E(F=>F.getSemanticDiagnostics(P,k)),getSemanticDiagnosticsOfNextAffectedFile:(P,k)=>v(F=>F.getSemanticDiagnosticsOfNextAffectedFile&&F.getSemanticDiagnosticsOfNextAffectedFile(P,k)),emit:(P,k,F,O,G)=>P||O?v(j=>{var J,Z;return j.emit(P,k,F,O,G||((Z=(J=e.host).getCustomTransformers)==null?void 0:Z.call(J,t)))}):(N(0,F),R(k,F,G)),done:_};function _(P,k,F){return N(3,P,k,F),Rl("SolutionBuilder::Projects built"),ZEe(e,r)}function v(P){return N(0),d&&P(d)}function E(P){return v(P)||ae}function A(){var P,k,F;if(C.assert(d===void 0),e.options.dry){Fp(e,f.A_non_dry_build_would_build_project_0,t),g=1,u=2;return}if(e.options.verbose&&Fp(e,f.Building_project_0,t),o.fileNames.length===0){tO(e,r,U1(o)),g=0,u=2;return}let{host:O,compilerHost:G}=e;if(e.projectCompilerOptions=o.options,(P=e.moduleResolutionCache)==null||P.update(o.options),(k=e.typeReferenceDirectiveResolutionCache)==null||k.update(o.options),d=O.createProgram(o.fileNames,o.options,G,qHe(e,r,o),U1(o),o.projectReferences),e.watch){let j=(F=e.moduleResolutionCache)==null?void 0:F.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(r,j&&new Set(Co(j.values(),J=>e.host.realpath&&(H3(J)||J.directoryExists)?e.host.realpath(Qr(J.packageDirectory,"package.json")):Qr(J.packageDirectory,"package.json")))),e.builderPrograms.set(r,d)}u++}function R(P,k,F){var O,G,j;C.assertIsDefined(d),C.assert(u===1);let{host:J,compilerHost:Z}=e,q=new Map,ye=d.getCompilerOptions(),ie=x1(ye),K,pe,{emitResult:de,diagnostics:fe}=PF(d,ve=>J.reportDiagnostic(ve),e.write,void 0,(ve,xe,Y,Ce,Xe,Se)=>{var re;let be=Um(e,ve);if(q.set(Um(e,ve),ve),Se?.buildInfo){pe||(pe=UH(e.host));let Be=(re=d.hasChangedEmitSignature)==null?void 0:re.call(d),lt=JH(e,ve,r);lt?(lt.buildInfo=Se.buildInfo,lt.modifiedTime=pe,Be&&(lt.latestChangedDtsTime=pe)):e.buildInfoCache.set(r,{path:Um(e,ve),buildInfo:Se.buildInfo,modifiedTime:pe,latestChangedDtsTime:Be?pe:void 0})}let Ne=Se?.differsOnlyInMap?HA(e.host,ve):void 0;(P||Z.writeFile)(ve,xe,Y,Ce,Xe,Se),Se?.differsOnlyInMap?e.host.setModifiedTime(ve,Ne):!ie&&e.watch&&(K||(K=Xse(e,r))).set(be,pe||(pe=UH(e.host)))},k,void 0,F||((G=(O=e.host).getCustomTransformers)==null?void 0:G.call(O,t)));return(!ye.noEmitOnError||!fe.length)&&(q.size||s.type!==8)&&iAe(e,o,r,f.Updating_unchanged_output_timestamps_of_project_0,q),e.projectErrorsReported.set(r,!0),g=(j=d.hasChangedEmitSignature)!=null&&j.call(d)?0:2,fe.length?(e.diagnostics.set(r,fe),e.projectStatus.set(r,{type:0,reason:"it had errors"}),g|=4):(e.diagnostics.delete(r),e.projectStatus.set(r,{type:1,oldestOutputFileName:C8(q.values())??JU(o,!J.useCaseSensitiveFileNames())})),JHe(e,d),u=2,de}function N(P,k,F,O){for(;u<=P&&u<3;){let G=u;switch(u){case 0:A();break;case 1:R(F,k,O);break;case 2:$He(e,t,r,i,o,l,C.checkDefined(g)),u++;break}C.assert(u>G)}}}function eAe(e,t,r){if(!e.projectPendingBuild.size||tx(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){let l=t[s],u=z_(e,l),d=e.projectPendingBuild.get(u);if(d===void 0)continue;r&&(r=!1,hAe(e,t));let g=GD(e,l,u);if(!g){fAe(e,u),o.delete(u);continue}d===2?(cAe(e,l,u,g),dAe(e,u,g),uAe(e,l,u,g),Zse(e,l,u,g),ele(e,l,u,g)):d===1&&(g.fileNames=$M(g.options.configFile.configFileSpecs,ci(l),g.options,e.parseConfigFileHost),z3(g.fileNames,l,g.options.configFile.configFileSpecs,g.errors,Rw(g.raw)),Zse(e,l,u,g),ele(e,l,u,g));let _=$se(e,g,u);if(!i.force){if(_.type===1){XH(e,l,_),tO(e,u,U1(g)),o.delete(u),i.dry&&Fp(e,f.Project_0_is_up_to_date,l);continue}if(_.type===2||_.type===15)return tO(e,u,U1(g)),{kind:1,status:_,project:l,projectPath:u,projectIndex:s,config:g}}if(_.type===12){XH(e,l,_),tO(e,u,U1(g)),o.delete(u),i.verbose&&Fp(e,_.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,_.upstreamProjectName);continue}if(_.type===16){XH(e,l,_),tO(e,u,U1(g)),o.delete(u);continue}return{kind:0,status:_,project:l,projectPath:u,projectIndex:s,config:g}}}function tAe(e,t,r){return XH(e,t.project,t.status),t.kind!==1?HHe(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,r):UHe(e,t.project,t.projectPath,t.config,r)}function Kse(e,t,r){let i=eAe(e,t,r);return i&&tAe(e,i,t)}function qHe({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;let s=t.get(i);return s||wF(o.options,r)}function JHe(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}function HH(e){return!!e.watcher}function nAe(e,t){let r=Um(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!HH(i))return i;if(i.modifiedTime)return i.modifiedTime}let o=HA(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function qH(e,t,r,i,o,s,l){let u=Um(e,t),d=e.filesWatched.get(u);if(d&&HH(d))d.callbacks.push(r);else{let g=e.watchFile(t,(_,v,E)=>{let A=C.checkDefined(e.filesWatched.get(u));C.assert(HH(A)),A.modifiedTime=E,A.callbacks.forEach(R=>R(_,v,E))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:g,modifiedTime:d})}return{close:()=>{let g=C.checkDefined(e.filesWatched.get(u));C.assert(HH(g)),g.callbacks.length===1?(e.filesWatched.delete(u),qf(g)):jA(g.callbacks,r)}}}function Xse(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function JH(e,t,r){let i=Um(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function rAe(e,t,r,i){let o=Um(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;let l=e.readFileWithCache(t),u=l?YU(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||xp}),u}function Yse(e,t,r,i){let o=nAe(e,t);if(r<o)return{type:5,outOfDateOutputFileName:i,newerInputFileName:t}}function KHe(e,t,r){var i,o,s,l,u;if(eU(t))return{type:16};let d,g=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(let fe of t.projectReferences){let ve=ZI(fe),xe=z_(e,ve),Y=GD(e,ve,xe),Ce=$se(e,Y,xe);if(!(Ce.type===13||Ce.type===16)){if(e.options.stopBuildOnErrors&&(Ce.type===0||Ce.type===12))return{type:12,upstreamProjectName:fe.path,upstreamProjectBlocked:Ce.type===12};g||(d||(d=[])).push({ref:fe,refStatus:Ce,resolvedRefPath:xe,resolvedConfig:Y})}}}if(g)return{type:17};let{host:_}=e,v=nT(t.options),E=x1(t.options),A=JH(e,v,r),R=A?.modifiedTime||HA(_,v);if(R===xp)return A||e.buildInfoCache.set(r,{path:Um(e,v),buildInfo:!1,modifiedTime:R}),{type:3,missingOutputFileName:v};let N=rAe(e,v,r,R);if(!N)return{type:4,fileName:v};let P=E&&Yw(N)?N:void 0;if((P||!E)&&N.version!==Me)return{type:14,version:N.version};if(!t.options.noCheck&&(N.errors||N.checkPending))return{type:8,buildInfoFile:v};if(P){if(!t.options.noCheck&&((i=P.changeFileSet)!=null&&i.length||(o=P.semanticDiagnosticsPerFile)!=null&&o.length||hp(t.options)&&((s=P.emitDiagnosticsPerFile)!=null&&s.length)))return{type:8,buildInfoFile:v};if(!t.options.noEmit&&((l=P.changeFileSet)!=null&&l.length||(u=P.affectedFilesPendingEmit)!=null&&u.length||P.pendingEmit!==void 0))return{type:7,buildInfoFile:v};if((!t.options.noEmit||t.options.noEmit&&hp(t.options))&&xF(t.options,P.options||{},void 0,!!t.options.noEmit))return{type:9,buildInfoFile:v}}let k=R,F=v,O,G=FHe,j=!1,J=new Set,Z;for(let fe of t.fileNames){let ve=nAe(e,fe);if(ve===xp)return{type:0,reason:`${fe} does not exist`};let xe=Um(e,fe);if(R<ve){let Y,Ce;if(P){Z||(Z=bH(P,v,_));let Xe=Z.roots.get(xe);Y=Z.fileInfos.get(Xe??xe);let Se=Y?e.readFileWithCache(Xe??fe):void 0;Ce=Se!==void 0?LF(_,Se):void 0,Y&&Y===Ce&&(j=!0)}if(!Y||Y!==Ce)return{type:5,outOfDateOutputFileName:v,newerInputFileName:fe}}ve>G&&(O=fe,G=ve),J.add(xe)}let q;if(P?(Z||(Z=bH(P,v,_)),q=qc(Z.roots,(fe,ve)=>J.has(ve)?void 0:ve)):q=Je(Cse(N,v,_),fe=>J.has(fe)?void 0:fe),q)return{type:10,buildInfoFile:v,inputFile:q};if(!E){let fe=pF(t,!_.useCaseSensitiveFileNames()),ve=Xse(e,r);for(let xe of fe){if(xe===v)continue;let Y=Um(e,xe),Ce=ve?.get(Y);if(Ce||(Ce=HA(e.host,xe),ve?.set(Y,Ce)),Ce===xp)return{type:3,missingOutputFileName:xe};if(Ce<G)return{type:5,outOfDateOutputFileName:xe,newerInputFileName:O};Ce<k&&(k=Ce,F=xe)}}let ye=!1;if(d)for(let{ref:fe,refStatus:ve,resolvedConfig:xe,resolvedRefPath:Y}of d){if(ve.newestInputFileTime&&ve.newestInputFileTime<=k)continue;if(XHe(e,A??(A=e.buildInfoCache.get(r)),Y))return{type:6,outOfDateOutputFileName:v,newerProjectName:fe.path};let Ce=YHe(e,xe.options,Y);if(Ce&&Ce<=k){ye=!0;continue}return C.assert(F!==void 0,"Should have an oldest output filename here"),{type:6,outOfDateOutputFileName:F,newerProjectName:fe.path}}let ie=Yse(e,t.options.configFilePath,k,F);if(ie)return ie;let K=Je(t.options.configFile.extendedSourceFiles||ae,fe=>Yse(e,fe,k,F));if(K)return K;let pe=e.lastCachedPackageJsonLookups.get(r),de=pe&&pg(pe,fe=>Yse(e,fe,k,F));return de||{type:ye?2:j?15:1,newestInputFileTime:G,newestInputFileName:O,oldestOutputFileName:F}}function XHe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function $se(e,t,r){if(t===void 0)return{type:0,reason:"config file deleted mid-build"};let i=e.projectStatus.get(r);if(i!==void 0)return i;Rl("SolutionBuilder::beforeUpToDateCheck");let o=KHe(e,t,r);return Rl("SolutionBuilder::afterUpToDateCheck"),Lf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function iAe(e,t,r,i,o){if(t.options.noEmit)return;let s,l=nT(t.options),u=x1(t.options);if(l&&u){o?.has(Um(e,l))||(e.options.verbose&&Fp(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=UH(e.host)),JH(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:d}=e,g=pF(t,!d.useCaseSensitiveFileNames()),_=Xse(e,r),v=_?new Set:void 0;if(!o||g.length!==o.size){let E=!!e.options.verbose;for(let A of g){let R=Um(e,A);o?.has(R)||(E&&(E=!1,Fp(e,i,t.options.configFilePath)),d.setModifiedTime(A,s||(s=UH(e.host))),A===l?JH(e,l,r).modifiedTime=s:_&&(_.set(R,s),v.add(R)))}}_?.forEach((E,A)=>{!o?.has(A)&&!v.has(A)&&_.delete(A)})}function YHe(e,t,r){if(!t.composite)return;let i=C.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let o=i.buildInfo&&Yw(i.buildInfo)&&i.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(To(i.buildInfo.latestChangedDtsFile,ci(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function oAe(e,t,r){if(e.options.dry)return Fp(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);iAe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:JU(t,!e.host.useCaseSensitiveFileNames())})}function $He(e,t,r,i,o,s,l){if(!(e.options.stopBuildOnErrors&&l&4)&&o.options.composite)for(let u=i+1;u<s.length;u++){let d=s[u],g=z_(e,d);if(e.projectPendingBuild.has(g))continue;let _=GD(e,d,g);if(!(!_||!_.projectReferences))for(let v of _.projectReferences){let E=eO(e,v.path);if(z_(e,E)!==r)continue;let A=e.projectStatus.get(g);if(A)switch(A.type){case 1:if(l&2){A.type=2;break}case 15:case 2:l&2||e.projectStatus.set(g,{type:6,outOfDateOutputFileName:A.oldestOutputFileName,newerProjectName:t});break;case 12:z_(e,eO(e,A.upstreamProjectName))===r&&YEe(e,g);break}$Ee(e,g,0);break}}}function aAe(e,t,r,i,o,s){Rl("SolutionBuilder::beforeBuild");let l=QHe(e,t,r,i,o,s);return Rl("SolutionBuilder::afterBuild"),Lf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l}function QHe(e,t,r,i,o,s){let l=KEe(e,t,s);if(!l)return 3;QEe(e,r);let u=!0,d=0;for(;;){let g=Kse(e,l,u);if(!g)break;u=!1,g.done(r,i,o?.(g.project)),e.diagnostics.has(g.projectPath)||d++}return qse(e),mAe(e,l),nqe(e,l),tx(l)?4:l.some(g=>e.diagnostics.has(z_(e,g)))?d?2:1:0}function sAe(e,t,r){Rl("SolutionBuilder::beforeClean");let i=ZHe(e,t,r);return Rl("SolutionBuilder::afterClean"),Lf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function ZHe(e,t,r){let i=KEe(e,t,r);if(!i)return 3;if(tx(i))return KH(e,i.circularDiagnostics),4;let{options:o,host:s}=e,l=o.dry?[]:void 0;for(let u of i){let d=z_(e,u),g=GD(e,u,d);if(g===void 0){fAe(e,d);continue}let _=pF(g,!s.useCaseSensitiveFileNames());if(!_.length)continue;let v=new Set(g.fileNames.map(E=>Um(e,E)));for(let E of _)v.has(Um(e,E))||s.fileExists(E)&&(l?l.push(E):(s.deleteFile(E),Qse(e,d,0)))}return l&&Fp(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r
* ${u}`).join("")),0}function Qse(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,YEe(e,t),$Ee(e,t,r),XEe(e)}function zF(e,t,r){e.reportFileChangeDetected=!0,Qse(e,t,r),lAe(e,250,!0)}function lAe(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(eqe,t,"timerToBuildInvalidatedProject",e,r))}function eqe(e,t,r){Rl("SolutionBuilder::beforeBuild");let i=tqe(t,r);Rl("SolutionBuilder::afterBuild"),Lf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&mAe(t,i)}function tqe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),tle(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=FF(e),o=Kse(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=eAe(e,i,!1);if(!s)break;if(s.kind!==1&&(t||r===5)){lAe(e,100,!1);return}tAe(e,s,i).done(),s.kind!==1&&r++}return qse(e),i}function cAe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,qH(e,t,()=>zF(e,r,2),2e3,i?.watchOptions,sd.ConfigFile,t))}function dAe(e,t,r){mF(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>qH(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>zF(e,l,2))},2e3,r?.watchOptions,sd.ExtendedConfigFile),i=>Um(e,i))}function uAe(e,t,r,i){e.watch&&jw(Gse(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;Uw({watchedDirPath:Um(e,o),fileOrDirectory:l,fileOrDirectoryPath:Um(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=VHe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>Um(e,d)})||zF(e,r,1)},s,i?.watchOptions,sd.WildcardDirectory,t))}function Zse(e,t,r,i){e.watch&&hM(Gse(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>qH(e,o,()=>zF(e,r,0),250,i?.watchOptions,sd.SourceFile,t),onDeleteValue:zm})}function ele(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||hM(Gse(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>qH(e,o,()=>zF(e,r,0),2e3,i?.watchOptions,sd.PackageJson,t),onDeleteValue:zm})}function nqe(e,t){if(e.watchAllProjectsPending){Rl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of Zw(t)){let i=z_(e,r),o=GD(e,r,i);cAe(e,r,i,o),dAe(e,i,o),o&&(uAe(e,r,i,o),Zse(e,r,i,o),ele(e,r,i,o))}Rl("SolutionBuilder::afterWatcherCreation"),Lf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function rqe(e){mp(e.allWatchedConfigFiles,zm),mp(e.allWatchedExtendedConfigFiles,qf),mp(e.allWatchedWildcardDirectories,t=>mp(t,qf)),mp(e.allWatchedInputFiles,t=>mp(t,zm)),mp(e.allWatchedPackageJsonFiles,t=>mp(t,zm))}function pAe(e,t,r,i,o){let s=GHe(e,t,r,i,o);return{build:(l,u,d,g)=>aAe(s,l,u,d,g),clean:l=>sAe(s,l),buildReferences:(l,u,d,g)=>aAe(s,l,u,d,g,!0),cleanReferences:l=>sAe(s,l,!0),getNextInvalidatedProject:l=>(QEe(s,l),Kse(s,FF(s),!1)),getBuildOrder:()=>FF(s),getUpToDateStatusOfProject:l=>{let u=eO(s,l),d=z_(s,u);return $se(s,GD(s,u,d),d)},invalidateProject:(l,u)=>Qse(s,l,u||0),close:()=>rqe(s)}}function Nd(e,t){return bN(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Fp(e,t,...r){e.host.reportSolutionBuilderStatus(Il(t,...r))}function tle(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Il(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function KH({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function tO(e,t,r){KH(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function fAe(e,t){tO(e,t,[e.configFileCache.get(t)])}function mAe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];tx(t)?(hAe(e,t.buildOrder),KH(e,t.circularDiagnostics),r&&(o+=NF(t.circularDiagnostics)),r&&(s=[...s,...MF(t.circularDiagnostics)])):(t.forEach(l=>{let u=z_(e,l);e.projectErrorsReported.has(u)||KH(e,i.get(u)||ae)}),r&&i.forEach(l=>o+=NF(l)),r&&i.forEach(l=>[...s,...MF(l)])),e.watch?tle(e,RH(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function hAe(e,t){e.options.verbose&&Fp(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r
* `+Nd(e,r)).join(""))}function iqe(e,t,r){switch(r.type){case 5:return Fp(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Nd(e,t),Nd(e,r.outOfDateOutputFileName),Nd(e,r.newerInputFileName));case 6:return Fp(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Nd(e,t),Nd(e,r.outOfDateOutputFileName),Nd(e,r.newerProjectName));case 3:return Fp(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Nd(e,t),Nd(e,r.missingOutputFileName));case 4:return Fp(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Nd(e,t),Nd(e,r.fileName));case 7:return Fp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Nd(e,t),Nd(e,r.buildInfoFile));case 8:return Fp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,Nd(e,t),Nd(e,r.buildInfoFile));case 9:return Fp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Nd(e,t),Nd(e,r.buildInfoFile));case 10:return Fp(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,Nd(e,t),Nd(e,r.buildInfoFile),Nd(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Fp(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Nd(e,t),Nd(e,r.newestInputFileName||""),Nd(e,r.oldestOutputFileName||""));break;case 2:return Fp(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Nd(e,t));case 15:return Fp(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Nd(e,t));case 11:return Fp(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Nd(e,t),Nd(e,r.upstreamProjectName));case 12:return Fp(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,Nd(e,t),Nd(e,r.upstreamProjectName));case 0:return Fp(e,f.Project_0_is_out_of_date_because_1,Nd(e,t),r.reason);case 14:return Fp(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Nd(e,t),r.version,Me);case 17:return Fp(e,f.Project_0_is_being_forcibly_rebuilt,Nd(e,t))}}function XH(e,t,r){e.options.verbose&&iqe(e,t,r)}var nle=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(nle||{});function oqe(e){let t=aqe();return Je(e.getSourceFiles(),r=>{let i=sqe(e,r),o=og(r).length;t.set(i,t.get(i)+o)}),t}function aqe(){let e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}function sqe(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";let r=t.path;return Yl(r,AV)?"TypeScript":Yl(r,iD)?"JavaScript":El(r,".json")?"JSON":"Other"}function YH(e,t,r){return BF(e,r)?ex(e,!0):t}function _Ae(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function BF(e,t){return!t||typeof t.pretty>"u"?_Ae(e):t.pretty}function gAe(e){return e.options.all?Ap(jm.concat(bE),(t,r)=>sL(t.name,r.name)):Un(jm.concat(bE),t=>!!t.showInSimplifiedHelpView)}function $H(e){e.write(tp(f.Version_0,Me)+e.newLine)}function QH(e){if(!_Ae(e))return{bold:_=>_,blue:_=>_,blueBackground:_=>_,brightWhite:_=>_};function r(_){return`\x1B[1m${_}\x1B[22m`}let i=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),o=e.getEnvironmentVariable("WT_SESSION"),s=e.getEnvironmentVariable("TERM_PROGRAM")&&e.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function l(_){return i&&!o&&!s?g(_):`\x1B[94m${_}\x1B[39m`}let u=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function d(_){return u?`\x1B[48;5;68m${_}\x1B[39;49m`:`\x1B[44m${_}\x1B[39;49m`}function g(_){return`\x1B[97m${_}\x1B[39m`}return{bold:r,blue:l,brightWhite:g,blueBackground:d}}function yAe(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function lqe(e,t,r,i){var o;let s=[],l=QH(e),u=yAe(t),d=R(t),g=typeof t.defaultValueDescription=="object"?tp(t.defaultValueDescription):v(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),_=((o=e.getWidthOfTerminal)==null?void 0:o.call(e))??0;if(_>=80){let N="";t.description&&(N=tp(t.description)),s.push(...A(u,N,r,i,_,!0),e.newLine),E(d,t)&&(d&&s.push(...A(d.valueType,d.possibleValues,r,i,_,!1),e.newLine),g&&s.push(...A(tp(f.default_Colon),g,r,i,_,!1),e.newLine)),s.push(e.newLine)}else{if(s.push(l.blue(u),e.newLine),t.description){let N=tp(t.description);s.push(N)}if(s.push(e.newLine),E(d,t)){if(d&&s.push(`${d.valueType} ${d.possibleValues}`),g){d&&s.push(e.newLine);let N=tp(f.default_Colon);s.push(`${N} ${g}`)}s.push(e.newLine)}s.push(e.newLine)}return s;function v(N,P){return N!==void 0&&typeof P=="object"?Co(P.entries()).filter(([,k])=>k===N).map(([k])=>k).join("/"):String(N)}function E(N,P){let k=["string"],F=[void 0,"false","n/a"],O=P.defaultValueDescription;return!(P.category===f.Command_line_Options||jn(k,N?.possibleValues)&&jn(F,O))}function A(N,P,k,F,O,G){let j=[],J=!0,Z=P,q=O-F;for(;Z.length>0;){let ye="";J?(ye=N.padStart(k),ye=ye.padEnd(F),ye=G?l.blue(ye):ye):ye="".padStart(F);let ie=Z.substr(0,q);Z=Z.slice(q),j.push(`${ye}${ie}`),J=!1}return j}function R(N){if(N.type==="object")return;return{valueType:P(N),possibleValues:k(N)};function P(F){switch(C.assert(F.type!=="listOrElement"),F.type){case"string":case"number":case"boolean":return tp(f.type_Colon);case"list":return tp(f.one_or_more_Colon);default:return tp(f.one_of_Colon)}}function k(F){let O;switch(F.type){case"string":case"number":case"boolean":O=F.type;break;case"list":case"listOrElement":O=k(F.element);break;case"object":O="";break;default:let G={};return F.type.forEach((j,J)=>{var Z;(Z=F.deprecatedKeys)!=null&&Z.has(J)||(G[j]||(G[j]=[])).push(J)}),Object.entries(G).map(([,j])=>j.join("/")).join(", ")}return O}}}function vAe(e,t){let r=0;for(let l of t){let u=yAe(l).length;r=r>u?r:u}let i=r+2,o=i+2,s=[];for(let l of t){let u=lqe(e,l,i,o);s=[...s,...u]}return s[s.length-2]!==e.newLine&&s.push(e.newLine),s}function nO(e,t,r,i,o,s){let l=[];if(l.push(QH(e).bold(t)+e.newLine+e.newLine),o&&l.push(o+e.newLine+e.newLine),!i)return l=[...l,...vAe(e,r)],s&&l.push(s+e.newLine+e.newLine),l;let u=new Map;for(let d of r){if(!d.category)continue;let g=tp(d.category),_=u.get(g)??[];_.push(d),u.set(g,_)}return u.forEach((d,g)=>{l.push(`### ${g}${e.newLine}${e.newLine}`),l=[...l,...vAe(e,d)]}),s&&l.push(s+e.newLine+e.newLine),l}function cqe(e,t){let r=QH(e),i=[...ZH(e,`${tp(f.tsc_Colon_The_TypeScript_Compiler)} - ${tp(f.Version_0,Me)}`)];i.push(r.bold(tp(f.COMMON_COMMANDS))+e.newLine+e.newLine),l("tsc",f.Compiles_the_current_project_tsconfig_json_in_the_working_directory),l("tsc app.ts util.ts",f.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),l("tsc -b",f.Build_a_composite_project_in_the_working_directory),l("tsc --init",f.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),l("tsc -p ./path/to/tsconfig.json",f.Compiles_the_TypeScript_project_located_at_the_specified_path),l("tsc --help --all",f.An_expanded_version_of_this_information_showing_all_possible_compiler_options),l(["tsc --noEmit","tsc --target esnext"],f.Compiles_the_current_project_with_additional_settings);let o=t.filter(u=>u.isCommandLineOnly||u.category===f.Command_line_Options),s=t.filter(u=>!jn(o,u));i=[...i,...nO(e,tp(f.COMMAND_LINE_FLAGS),o,!1,void 0,void 0),...nO(e,tp(f.COMMON_COMPILER_OPTIONS),s,!1,void 0,TI(f.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let u of i)e.write(u);function l(u,d){let g=typeof u=="string"?[u]:u;for(let _ of g)i.push(" "+r.blue(_)+e.newLine);i.push(" "+tp(d)+e.newLine+e.newLine)}}function dqe(e,t,r,i){let o=[...ZH(e,`${tp(f.tsc_Colon_The_TypeScript_Compiler)} - ${tp(f.Version_0,Me)}`)];o=[...o,...nO(e,tp(f.ALL_COMPILER_OPTIONS),t,!0,void 0,TI(f.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],o=[...o,...nO(e,tp(f.WATCH_OPTIONS),i,!1,tp(f.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],o=[...o,...nO(e,tp(f.BUILD_OPTIONS),Un(r,s=>s!==bE),!1,TI(f.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,"https://aka.ms/tsc-composite-builds"))];for(let s of o)e.write(s)}function bAe(e,t){let r=[...ZH(e,`${tp(f.tsc_Colon_The_TypeScript_Compiler)} - ${tp(f.Version_0,Me)}`)];r=[...r,...nO(e,tp(f.BUILD_OPTIONS),Un(t,i=>i!==bE),!1,TI(f.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,"https://aka.ms/tsc-composite-builds"))];for(let i of r)e.write(i)}function ZH(e,t){var r;let i=QH(e),o=[],s=((r=e.getWidthOfTerminal)==null?void 0:r.call(e))??0,l=5,u=i.blueBackground("".padStart(l)),d=i.blueBackground(i.brightWhite("TS ".padStart(l)));if(s>=t.length+l){let _=(s>120?120:s)-l;o.push(t.padEnd(_)+u+e.newLine),o.push("".padStart(_)+d+e.newLine)}else o.push(t+e.newLine),o.push(e.newLine);return o}function TAe(e,t){t.options.all?dqe(e,gAe(t),jj,JI):cqe(e,gAe(t))}function SAe(e,t,r){let i=ex(e),o;if(r.options.locale&&IB(r.options.locale,e,r.errors),r.errors.length>0)return r.errors.forEach(i),e.exit(1);if(r.options.init)return mqe(e,i,r.options),e.exit(0);if(r.options.version)return $H(e),e.exit(0);if(r.options.help||r.options.all)return TAe(e,r),e.exit(0);if(r.options.watch&&r.options.listFilesOnly)return i(Il(f.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(r.options.project){if(r.fileNames.length!==0)return i(Il(f.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);let u=ya(r.options.project);if(!u||e.directoryExists(u)){if(o=Qr(u,"tsconfig.json"),!e.fileExists(o))return i(Il(f.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,r.options.project)),e.exit(1)}else if(o=u,!e.fileExists(o))return i(Il(f.The_specified_path_does_not_exist_Colon_0,r.options.project)),e.exit(1)}else if(r.fileNames.length===0){let u=ya(e.getCurrentDirectory());o=tH(u,d=>e.fileExists(d))}if(r.fileNames.length===0&&!o)return r.options.showConfig?i(Il(f.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,ya(e.getCurrentDirectory()))):($H(e),TAe(e,r)),e.exit(1);let s=e.getCurrentDirectory(),l=O3(r.options,u=>To(u,s));if(o){let u=new Map,d=Wse(o,l,u,r.watchOptions,e,i);if(l.showConfig)return d.errors.length!==0?(i=YH(e,i,d.options),d.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(Yj(d,o,e),null,4)+e.newLine),e.exit(0));if(i=YH(e,i,d.options),cV(d.options))return ile(e,i)?void 0:uqe(e,t,i,d,l,r.watchOptions,u);x1(d.options)?xAe(e,t,i,d):IAe(e,t,i,d)}else{if(l.showConfig)return e.write(JSON.stringify(Yj(r,Qr(s,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=YH(e,i,l),cV(l))return ile(e,i)?void 0:pqe(e,t,i,r.fileNames,l,r.watchOptions);x1(l)?xAe(e,t,i,{...r,options:l}):IAe(e,t,i,{...r,options:l})}}function rle(e){if(e.length>0&&e[0].charCodeAt(0)===45){let t=e[0].slice(e[0].charCodeAt(1)===45?2:1).toLowerCase();return t===bE.name||t===bE.shortName}return!1}function EAe(e,t,r){if(rle(r)){let{buildOptions:o,watchOptions:s,projects:l,errors:u}=voe(r);if(o.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(o.generateCpuProfile,()=>AAe(e,t,o,s,l,u));else return AAe(e,t,o,s,l,u)}let i=goe(r,o=>e.readFile(o));if(i.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(i.options.generateCpuProfile,()=>SAe(e,t,i));else return SAe(e,t,i)}function ile(e,t){return!e.watchFile||!e.watchDirectory?(t(Il(f.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var GF=2;function AAe(e,t,r,i,o,s){let l=YH(e,ex(e),r);if(r.locale&&IB(r.locale,e,s),s.length>0)return s.forEach(l),e.exit(1);if(r.help||o.length===0)return $H(e),bAe(e,Tw),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||r.clean&&!e.deleteFile)return l(Il(f.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(r.watch){if(ile(e,l))return;let v=jse(e,void 0,l,WF(e,BF(e,r)),ale(e,r));v.jsDocParsingMode=GF;let E=NAe(e,r);RAe(e,t,v,E);let A=v.onWatchStatusChange,R=!1;v.onWatchStatusChange=(P,k,F,O)=>{A?.(P,k,F,O),R&&(P.code===f.Found_0_errors_Watching_for_file_changes.code||P.code===f.Found_1_error_Watching_for_file_changes.code)&&sle(N,E)};let N=Hse(v,o,r,i);return N.build(),sle(N,E),R=!0,N}let u=Vse(e,void 0,l,WF(e,BF(e,r)),ole(e,r));u.jsDocParsingMode=GF;let d=NAe(e,r);RAe(e,t,u,d);let g=Use(u,o,r),_=r.clean?g.clean():g.build();return sle(g,d),cZ(),e.exit(_)}function ole(e,t){return BF(e,t)?(r,i)=>e.write(DH(r,i,e.newLine,e)):void 0}function IAe(e,t,r,i){let{fileNames:o,options:s,projectReferences:l}=i,u=_F(s,void 0,e);u.jsDocParsingMode=GF;let d=u.getCurrentDirectory(),g=Fd(u.useCaseSensitiveFileNames());hP(u,A=>ks(A,d,g)),lle(e,s,!1);let _={rootNames:o,options:s,projectReferences:l,host:u,configFileParsingDiagnostics:U1(i)},v=Kw(_),E=wH(v,r,A=>e.write(A+e.newLine),ole(e,s));return tq(e,v,void 0),t(v),e.exit(E)}function xAe(e,t,r,i){let{options:o,fileNames:s,projectReferences:l}=i;lle(e,o,!1);let u=OF(o,e);u.jsDocParsingMode=GF;let d=Fse({host:u,system:e,rootNames:s,options:o,configFileParsingDiagnostics:U1(i),projectReferences:l,reportDiagnostic:r,reportErrorSummary:ole(e,o),afterProgramEmitAndDiagnostics:g=>{tq(e,g.getProgram(),void 0),t(g)}});return e.exit(d)}function RAe(e,t,r,i){DAe(e,r,!0),r.afterProgramEmitAndDiagnostics=o=>{tq(e,o.getProgram(),i),t(o)}}function DAe(e,t,r){let i=t.createProgram;t.createProgram=(o,s,l,u,d,g)=>(C.assert(o!==void 0||s===void 0&&!!u),s!==void 0&&lle(e,s,r),i(o,s,l,u,d,g))}function CAe(e,t,r){r.jsDocParsingMode=GF,DAe(e,r,!1);let i=r.afterProgramCreate;r.afterProgramCreate=o=>{i(o),tq(e,o.getProgram(),void 0),t(o)}}function ale(e,t){return xH(e,BF(e,t))}function uqe(e,t,r,i,o,s,l){let u=BH({configFileName:i.options.configFilePath,optionsToExtend:o,watchOptionsToExtend:s,system:e,reportDiagnostic:r,reportWatchStatus:ale(e,i.options)});return CAe(e,t,u),u.configFileParsingResult=i,u.extendedConfigCache=l,VH(u)}function pqe(e,t,r,i,o,s){let l=GH({rootFiles:i,options:o,watchOptions:s,system:e,reportDiagnostic:r,reportWatchStatus:ale(e,o)});return CAe(e,t,l),VH(l)}function NAe(e,t){if(e===Uc&&t.extendedDiagnostics)return Uz(),fqe()}function fqe(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:r,clear:i};function t(o){let s=e?.get(o.name);s?s.type===2?s.value=Math.max(s.value,o.value):s.value+=o.value:(e??(e=new Map)).set(o.name,o)}function r(o){e?.forEach(o)}function i(){e=void 0}}function sle(e,t){if(!t)return;if(!aZ()){Uc.write(f.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
`);return}let r=[];r.push({name:"Projects in scope",value:Zw(e.getBuildOrder()).length,type:1}),i("SolutionBuilder::Projects built"),i("SolutionBuilder::Timestamps only updates"),i("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(s=>{s.name=`Aggregate ${s.name}`,r.push(s)}),jz((s,l)=>{eq(s)&&r.push({name:`${o(s)} time`,value:l,type:0})}),sZ(),Uz(),t.clear(),LAe(Uc,r);function i(s){let l=ube(s);l&&r.push({name:o(s),value:l,type:1})}function o(s){return s.replace("SolutionBuilder::","")}}function MAe(e,t){return e===Uc&&(t.diagnostics||t.extendedDiagnostics)}function PAe(e,t){return e===Uc&&t.generateTrace}function lle(e,t,r){MAe(e,t)&&Uz(e),PAe(e,t)&&lZ(r?"build":"project",t.generateTrace,t.configFilePath)}function eq(e){return po(e,"SolutionBuilder::")}function tq(e,t,r){var i;let o=t.getCompilerOptions();PAe(e,o)&&((i=xr)==null||i.stopTracing());let s;if(MAe(e,o)){s=[];let g=e.getMemoryUsage?e.getMemoryUsage():-1;u("Files",t.getSourceFiles().length);let _=oqe(t);if(o.extendedDiagnostics)for(let[P,k]of _.entries())u("Lines of "+P,k);else u("Lines",Gn(_.values(),(P,k)=>P+k,0));u("Identifiers",t.getIdentifierCount()),u("Symbols",t.getSymbolCount()),u("Types",t.getTypeCount()),u("Instantiations",t.getInstantiationCount()),g>=0&&l({name:"Memory used",value:g,type:2},!0);let v=aZ(),E=v?gN("Program"):0,A=v?gN("Bind"):0,R=v?gN("Check"):0,N=v?gN("Emit"):0;if(o.extendedDiagnostics){let P=t.getRelationCacheSizes();u("Assignability cache size",P.assignable),u("Identity cache size",P.identity),u("Subtype cache size",P.subtype),u("Strict subtype cache size",P.strictSubtype),v&&jz((k,F)=>{eq(k)||d(`${k} time`,F,!0)})}else v&&(d("I/O read",gN("I/O Read"),!0),d("I/O write",gN("I/O Write"),!0),d("Parse time",E,!0),d("Bind time",A,!0),d("Check time",R,!0),d("Emit time",N,!0));v&&d("Total time",E+A+R+N,!1),LAe(e,s),v?r?(jz(P=>{eq(P)||fbe(P)}),pbe(P=>{eq(P)||mbe(P)})):sZ():e.write(f.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
`)}function l(g,_){s.push(g),_&&r?.addAggregateStatistic(g)}function u(g,_){l({name:g,value:_,type:1},!0)}function d(g,_,v){l({name:g,value:_,type:0},v)}}function LAe(e,t){let r=0,i=0;for(let o of t){o.name.length>r&&(r=o.name.length);let s=kAe(o);s.length>i&&(i=s.length)}for(let o of t)e.write(`${o.name}:`.padEnd(r+2)+kAe(o).toString().padStart(i)+e.newLine)}function kAe(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:C.assertNever(e.type)}}function mqe(e,t,r){let i=e.getCurrentDirectory(),o=ya(Qr(i,"tsconfig.json"));if(e.fileExists(o))t(Il(f.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,Eoe(r,e.newLine));let s=[e.newLine,...ZH(e,"Created a new tsconfig.json")];s.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(let l of s)e.write(l)}}function a_(e,t=!0){return{type:e,reportFallback:t}}var wAe=a_(void 0,!1),OAe=a_(void 0,!1),bP=a_(void 0,!0);function cle(e,t){let r=Vd(e,"strictNullChecks");return{serializeTypeOfDeclaration:_,serializeReturnTypeForSignature:E,serializeTypeOfExpression:g,serializeTypeOfAccessor:d,tryReuseExistingTypeNode(ge,je){if(t.canReuseTypeNode(ge,je))return o(ge,je)}};function i(ge,je,Ge=je){return je===void 0?void 0:t.markNodeReuse(ge,je.flags&16?je:L.cloneNode(je),Ge??je)}function o(ge,je){let{finalizeBoundary:Ge,startRecoveryScope:We,hadError:at,markError:Wt}=t.createRecoveryBoundary(ge),cn=st(je,gn,Ri);if(!Ge())return;return ge.approximateLength+=je.end-je.pos,cn;function gn(zt){if(at())return zt;let Zr=We(),Ai=Bre(zt)?t.enterNewScope(ge,zt):void 0,Ni=lo(zt);return Ai?.(),at()?Ri(zt)&&!wI(zt)?(Zr(),t.serializeExistingTypeNode(ge,zt)):zt:Ni?t.markNodeReuse(ge,Ni,zt):void 0}function Kn(zt){let Zr=QN(zt);switch(Zr.kind){case 184:return Di(Zr);case 187:return ir(Zr);case 200:return _t(Zr);case 199:let Ai=Zr;if(Ai.operator===143)return en(Ai)}return st(zt,gn,Ri)}function _t(zt){let Zr=Kn(zt.objectType);if(Zr!==void 0)return L.updateIndexedAccessTypeNode(zt,Zr,st(zt.indexType,gn,Ri))}function en(zt){C.assertEqual(zt.operator,143);let Zr=Kn(zt.type);if(Zr!==void 0)return L.updateTypeOperatorNode(zt,Zr)}function ir(zt){let{introducesError:Zr,node:Ai}=t.trackExistingEntityName(ge,zt.exprName);if(!Zr)return L.updateTypeQueryNode(zt,Ai,Xn(zt.typeArguments,gn,Ri));let Ni=t.serializeTypeName(ge,zt.exprName,!0);if(Ni)return t.markNodeReuse(ge,Ni,zt.exprName)}function Di(zt){if(t.canReuseTypeNode(ge,zt)){let{introducesError:Zr,node:Ai}=t.trackExistingEntityName(ge,zt.typeName),Ni=Xn(zt.typeArguments,gn,Ri);if(Zr){let Pr=t.serializeTypeName(ge,zt.typeName,!1,Ni);if(Pr)return t.markNodeReuse(ge,Pr,zt.typeName)}else{let Pr=L.updateTypeReferenceNode(zt,Ai,Ni);return t.markNodeReuse(ge,Pr,zt)}}}function lo(zt){var Zr;if(K0(zt))return st(zt.type,gn,Ri);if(Cie(zt)||zt.kind===320)return L.createKeywordTypeNode(133);if(Nie(zt))return L.createKeywordTypeNode(159);if(yD(zt))return L.createUnionTypeNode([st(zt.type,gn,Ri),L.createLiteralTypeNode(L.createNull())]);if(pj(zt))return L.createUnionTypeNode([st(zt.type,gn,Ri),L.createKeywordTypeNode(157)]);if(p3(zt))return st(zt.type,gn);if(f3(zt))return L.createArrayTypeNode(st(zt.type,gn,Ri));if(gE(zt))return L.createTypeLiteralNode(Vt(zt.jsDocPropertyTags,At=>{let mn=st(He(At.name)?At.name:At.name.right,gn,He),dr=t.getJsDocPropertyOverride(ge,zt,At);return L.createPropertySignature(void 0,mn,At.isBracketed||At.typeExpression&&pj(At.typeExpression.type)?L.createToken(58):void 0,dr||At.typeExpression&&st(At.typeExpression.type,gn,Ri)||L.createKeywordTypeNode(133))}));if(wp(zt)&&He(zt.typeName)&&zt.typeName.escapedText==="")return jr(L.createKeywordTypeNode(133),zt);if((dy(zt)||wp(zt))&&H6(zt))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,st(zt.typeArguments[0],gn,Ri))],st(zt.typeArguments[1],gn,Ri))]);if(vD(zt))if(dI(zt)){let At;return L.createConstructorTypeNode(void 0,Xn(zt.typeParameters,gn,sl),Ui(zt.parameters,(mn,dr)=>mn.name&&He(mn.name)&&mn.name.escapedText==="new"?(At=mn.type,void 0):L.createParameterDeclaration(void 0,Pr(mn),t.markNodeReuse(ge,L.createIdentifier(Ci(mn,dr)),mn),L.cloneNode(mn.questionToken),st(mn.type,gn,Ri),void 0)),st(At||zt.type,gn,Ri)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(Xn(zt.typeParameters,gn,sl),Vt(zt.parameters,(At,mn)=>L.createParameterDeclaration(void 0,Pr(At),t.markNodeReuse(ge,L.createIdentifier(Ci(At,mn)),At),L.cloneNode(At.questionToken),st(At.type,gn,Ri),void 0)),st(zt.type,gn,Ri)||L.createKeywordTypeNode(133));if(zM(zt))return t.canReuseTypeNode(ge,zt)||Wt(),zt;if(sl(zt)){let{node:At}=t.trackExistingEntityName(ge,zt.name);return L.updateTypeParameterDeclaration(zt,Xn(zt.modifiers,gn,Aa),At,st(zt.constraint,gn,Ri),st(zt.default,gn,Ri))}if(P1(zt)){let At=_t(zt);return At||(Wt(),zt)}if(wp(zt)){let At=Di(zt);return At||(Wt(),zt)}if(ry(zt)){if(((Zr=zt.attributes)==null?void 0:Zr.token)===132)return Wt(),zt;if(!t.canReuseTypeNode(ge,zt))return t.serializeExistingTypeNode(ge,zt);let At=$e(zt,zt.argument.literal),mn=At===zt.argument.literal?i(ge,zt.argument.literal):At;return L.updateImportTypeNode(zt,mn===zt.argument.literal?i(ge,zt.argument):L.createLiteralTypeNode(mn),st(zt.attributes,gn,hE),st(zt.qualifier,gn,Nu),Xn(zt.typeArguments,gn,Ri),zt.isTypeOf)}if(nd(zt)&&zt.name.kind===168&&!t.hasLateBindableName(zt)){if(!oy(zt))return Ai(zt,gn);if(t.shouldRemoveDeclaration(ge,zt))return}if(Yo(zt)&&!zt.type||Po(zt)&&!zt.type&&!zt.initializer||Tu(zt)&&!zt.type&&!zt.initializer||to(zt)&&!zt.type&&!zt.initializer){let At=Ai(zt,gn);return At===zt&&(At=t.markNodeReuse(ge,L.cloneNode(zt),zt)),At.type=L.createKeywordTypeNode(133),to(zt)&&(At.modifiers=void 0),At}if(N1(zt)){let At=ir(zt);return At||(Wt(),zt)}if(va(zt)&&Ds(zt.expression)){let{node:At,introducesError:mn}=t.trackExistingEntityName(ge,zt.expression);if(mn){let dr=t.serializeTypeOfExpression(ge,zt.expression),ri;if(lv(dr))ri=dr.literal;else{let ai=t.evaluateEntityNameExpression(zt.expression),qi=typeof ai.value=="string"?L.createStringLiteral(ai.value,void 0):typeof ai.value=="number"?L.createNumericLiteral(ai.value,0):void 0;if(!qi)return Zh(dr)&&t.trackComputedName(ge,zt.expression),zt;ri=qi}return ri.kind===11&&pp(ri.text,Ga(e))?L.createIdentifier(ri.text):ri.kind===9&&!ri.text.startsWith("-")?ri:L.updateComputedPropertyName(zt,ri)}else return L.updateComputedPropertyName(zt,At)}if(wI(zt)){let At;if(He(zt.parameterName)){let{node:mn,introducesError:dr}=t.trackExistingEntityName(ge,zt.parameterName);dr&&Wt(),At=mn}else At=L.cloneNode(zt.parameterName);return L.updateTypePredicateNode(zt,L.cloneNode(zt.assertsModifier),At,st(zt.type,gn,Ri))}if(OI(zt)||ku(zt)||uE(zt)){let At=Ai(zt,gn),mn=t.markNodeReuse(ge,At===zt?L.cloneNode(zt):At,zt),dr=Qa(mn);return Cr(mn,dr|(ge.flags&1024&&ku(zt)?0:1)),mn}if(ka(zt)&&ge.flags&268435456&&!zt.singleQuote){let At=L.cloneNode(zt);return At.singleQuote=!0,At}if(M1(zt)){let At=st(zt.checkType,gn,Ri),mn=t.enterNewScope(ge,zt),dr=st(zt.extendsType,gn,Ri),ri=st(zt.trueType,gn,Ri);mn();let ai=st(zt.falseType,gn,Ri);return L.updateConditionalTypeNode(zt,At,dr,ri,ai)}if(G0(zt)){if(zt.operator===158&&zt.type.kind===155){if(!t.canReuseTypeNode(ge,zt))return Wt(),zt}else if(zt.operator===143){let At=en(zt);return At||(Wt(),zt)}}return Ai(zt,gn);function Ai(At,mn){let dr=!ge.enclosingFile||ge.enclosingFile!==Wn(At);return kn(At,mn,void 0,dr?Ni:void 0)}function Ni(At,mn,dr,ri,ai){let qi=Xn(At,mn,dr,ri,ai);return qi&&(qi.pos!==-1||qi.end!==-1)&&(qi===At&&(qi=L.createNodeArray(At.slice(),At.hasTrailingComma)),uh(qi,-1,-1)),qi}function Pr(At){return At.dotDotDotToken||(At.type&&f3(At.type)?L.createToken(26):void 0)}function Ci(At,mn){return At.name&&He(At.name)&&At.name.escapedText==="this"?"this":Pr(At)?"args":`arg${mn}`}function $e(At,mn){let dr=t.getModuleSpecifierOverride(ge,At,mn);return dr?jr(L.createStringLiteral(dr),mn):mn}}}function s(ge,je,Ge){if(!ge)return;let We;return(!Ge||Be(ge))&&t.canReuseTypeNode(je,ge)&&(We=o(je,ge),We!==void 0&&(We=Ne(We,Ge,void 0,je))),We}function l(ge,je,Ge,We,at,Wt=at!==void 0){if(!ge||!t.canReuseTypeNodeAnnotation(je,Ge,ge,We,at)&&(!at||!t.canReuseTypeNodeAnnotation(je,Ge,ge,We,!1)))return;let cn;return(!at||Be(ge))&&(cn=s(ge,je,at)),cn!==void 0||!Wt?cn:(je.tracker.reportInferenceFallback(Ge),t.serializeExistingTypeNode(je,ge,at)??L.createKeywordTypeNode(133))}function u(ge,je,Ge,We){if(!ge)return;let at=s(ge,je,Ge);return at!==void 0?at:(je.tracker.reportInferenceFallback(ge),t.serializeExistingTypeNode(je,ge,Ge)??L.createKeywordTypeNode(133))}function d(ge,je,Ge){return N(ge,je,Ge)??Z(ge,t.getAllAccessorDeclarations(ge),Ge,je)}function g(ge,je,Ge,We){let at=ie(ge,je,!1,Ge,We);return at.type!==void 0?at.type:j(ge,je,at.reportFallback)}function _(ge,je,Ge){switch(ge.kind){case 170:case 342:return k(ge,je,Ge);case 261:return P(ge,je,Ge);case 172:case 349:case 173:return O(ge,je,Ge);case 209:return G(ge,je,Ge);case 278:return g(ge.expression,Ge,void 0,!0);case 212:case 213:case 227:return F(ge,je,Ge);case 304:case 305:return v(ge,je,Ge);default:C.assertNever(ge,`Node needs to be an inferrable node, found ${C.formatSyntaxKind(ge.kind)}`)}}function v(ge,je,Ge){let We=Rc(ge),at;if(We&&t.canReuseTypeNodeAnnotation(Ge,ge,We,je)&&(at=s(We,Ge)),!at&&ge.kind===304){let Wt=ge.initializer,cn=W1(Wt)?SD(Wt):Wt.kind===235||Wt.kind===217?Wt.type:void 0;cn&&!wm(cn)&&t.canReuseTypeNodeAnnotation(Ge,ge,cn,je)&&(at=s(cn,Ge))}return at??G(ge,je,Ge,!1)}function E(ge,je,Ge){switch(ge.kind){case 178:return d(ge,je,Ge);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return lt(ge,je,Ge);default:C.assertNever(ge,`Node needs to be an inferrable node, found ${C.formatSyntaxKind(ge.kind)}`)}}function A(ge){if(ge)return ge.kind===178?Ir(ge)&&Ky(ge)||Pp(ge):XG(ge)}function R(ge,je){let Ge=A(ge);return!Ge&&ge!==je.firstAccessor&&(Ge=A(je.firstAccessor)),!Ge&&je.secondAccessor&&ge!==je.secondAccessor&&(Ge=A(je.secondAccessor)),Ge}function N(ge,je,Ge){let We=t.getAllAccessorDeclarations(ge),at=R(ge,We);if(at&&!wI(at))return q(Ge,ge,()=>l(at,Ge,ge,je)??G(ge,je,Ge));if(We.getAccessor)return q(Ge,We.getAccessor,()=>lt(We.getAccessor,je,Ge))}function P(ge,je,Ge){var We;let at=Rc(ge),Wt=bP;return at?Wt=a_(l(at,Ge,ge,je)):ge.initializer&&(((We=je.declarations)==null?void 0:We.length)===1||Io(je.declarations,yi)===1)&&!t.isExpandoFunctionDeclaration(ge)&&!De(ge)&&(Wt=ie(ge.initializer,Ge,void 0,void 0,Ute(ge))),Wt.type!==void 0?Wt.type:G(ge,je,Ge,Wt.reportFallback)}function k(ge,je,Ge){let We=ge.parent;if(We.kind===179)return d(We,void 0,Ge);let at=Rc(ge),Wt=t.requiresAddingImplicitUndefined(ge,je,Ge.enclosingDeclaration),cn=bP;return at?cn=a_(l(at,Ge,ge,je,Wt)):to(ge)&&ge.initializer&&He(ge.name)&&!De(ge)&&(cn=ie(ge.initializer,Ge,void 0,Wt)),cn.type!==void 0?cn.type:G(ge,je,Ge,cn.reportFallback)}function F(ge,je,Ge){let We=Rc(ge),at;We&&(at=l(We,Ge,ge,je));let Wt=Ge.suppressReportInferenceFallback;Ge.suppressReportInferenceFallback=!0;let cn=at??G(ge,je,Ge,!1);return Ge.suppressReportInferenceFallback=Wt,cn}function O(ge,je,Ge){let We=Rc(ge),at=t.requiresAddingImplicitUndefined(ge,je,Ge.enclosingDeclaration),Wt=bP;if(We)Wt=a_(l(We,Ge,ge,je,at));else{let cn=Po(ge)?ge.initializer:void 0;if(cn&&!De(ge)){let gn=HL(ge);Wt=ie(cn,Ge,void 0,at,gn)}}return Wt.type!==void 0?Wt.type:G(ge,je,Ge,Wt.reportFallback)}function G(ge,je,Ge,We=!0){return We&&Ge.tracker.reportInferenceFallback(ge),Ge.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(Ge,ge,je)}function j(ge,je,Ge=!0,We){return C.assert(!We),Ge&&je.tracker.reportInferenceFallback(ge),je.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeTypeOfExpression(je,ge)??L.createKeywordTypeNode(133)}function J(ge,je,Ge,We){return We&&je.tracker.reportInferenceFallback(ge),je.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(je,ge,Ge)??L.createKeywordTypeNode(133)}function Z(ge,je,Ge,We,at=!0){return ge.kind===178?lt(ge,We,Ge,at):(at&&Ge.tracker.reportInferenceFallback(ge),(je.getAccessor&&lt(je.getAccessor,We,Ge,at))??t.serializeTypeOfDeclaration(Ge,ge,We)??L.createKeywordTypeNode(133))}function q(ge,je,Ge){let We=t.enterNewScope(ge,je),at=Ge();return We(),at}function ye(ge,je,Ge,We){return wm(je)?ie(ge,Ge,!0,We):a_(u(je,Ge,We))}function ie(ge,je,Ge=!1,We=!1,at=!1){switch(ge.kind){case 218:return W1(ge)?ye(ge.expression,SD(ge),je,We):ie(ge.expression,je,Ge,We);case 80:if(t.isUndefinedIdentifierExpression(ge))return a_(re());break;case 106:return a_(r?Ne(L.createLiteralTypeNode(L.createNull()),We,ge,je):L.createKeywordTypeNode(133));case 220:case 219:return C.type(ge),q(je,ge,()=>K(ge,je));case 217:case 235:let Wt=ge;return ye(Wt.expression,Wt.type,je,We);case 225:let cn=ge;if(qW(cn))return be(cn.operator===40?cn.operand:cn,cn.operand.kind===10?163:150,je,Ge||at,We);break;case 210:return de(ge,je,Ge,We);case 211:return ve(ge,je,Ge,We);case 232:return a_(j(ge,je,!0,We));case 229:if(!Ge&&!at)return a_(L.createKeywordTypeNode(154));break;default:let gn,Kn=ge;switch(ge.kind){case 9:gn=150;break;case 15:Kn=L.createStringLiteral(ge.text),gn=154;break;case 11:gn=154;break;case 10:gn=163;break;case 112:case 97:gn=136;break}if(gn)return be(Kn,gn,je,Ge||at,We)}return bP}function K(ge,je){let Ge=lt(ge,void 0,je),We=Ce(ge.typeParameters,je),at=ge.parameters.map(Wt=>Y(Wt,je));return a_(L.createFunctionTypeNode(We,at,Ge))}function pe(ge,je,Ge){if(!Ge)return je.tracker.reportInferenceFallback(ge),!1;for(let We of ge.elements)if(We.kind===231)return je.tracker.reportInferenceFallback(We),!1;return!0}function de(ge,je,Ge,We){if(!pe(ge,je,Ge))return We||rd(Fm(ge).parent)?OAe:a_(j(ge,je,!1,We));let at=je.noInferenceFallback;je.noInferenceFallback=!0;let Wt=[];for(let gn of ge.elements)if(C.assert(gn.kind!==231),gn.kind===233)Wt.push(re());else{let Kn=ie(gn,je,Ge),_t=Kn.type!==void 0?Kn.type:j(gn,je,Kn.reportFallback);Wt.push(_t)}let cn=L.createTupleTypeNode(Wt);return cn.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},je.noInferenceFallback=at,wAe}function fe(ge,je){let Ge=!0;for(let We of ge.properties){if(We.flags&262144){Ge=!1;break}if(We.kind===305||We.kind===306)je.tracker.reportInferenceFallback(We),Ge=!1;else if(We.name.flags&262144){Ge=!1;break}else if(We.name.kind===81)Ge=!1;else if(We.name.kind===168){let at=We.name.expression;!qW(at,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(at)&&(je.tracker.reportInferenceFallback(We.name),Ge=!1)}}return Ge}function ve(ge,je,Ge,We){if(!fe(ge,je))return We||rd(Fm(ge).parent)?OAe:a_(j(ge,je,!1,We));let at=je.noInferenceFallback;je.noInferenceFallback=!0;let Wt=[],cn=je.flags;je.flags|=4194304;for(let Kn of ge.properties){C.assert(!Ud(Kn)&&!Ig(Kn));let _t=Kn.name,en;switch(Kn.kind){case 175:en=q(je,Kn,()=>Xe(Kn,_t,je,Ge));break;case 304:en=xe(Kn,_t,je,Ge);break;case 179:case 178:en=Se(Kn,_t,je);break}en&&(Dc(en,Kn),Wt.push(en))}je.flags=cn;let gn=L.createTypeLiteralNode(Wt);return je.flags&1024||Cr(gn,1),je.noInferenceFallback=at,wAe}function xe(ge,je,Ge,We){let at=We?[L.createModifier(148)]:[],Wt=ie(ge.initializer,Ge,We),cn=Wt.type!==void 0?Wt.type:G(ge,void 0,Ge,Wt.reportFallback);return L.createPropertySignature(at,i(Ge,je),void 0,cn)}function Y(ge,je){return L.updateParameterDeclaration(ge,void 0,i(je,ge.dotDotDotToken),t.serializeNameOfParameter(je,ge),t.isOptionalParameter(ge)?L.createToken(58):void 0,k(ge,void 0,je),void 0)}function Ce(ge,je){return ge?.map(Ge=>{var We;let{node:at}=t.trackExistingEntityName(je,Ge.name);return L.updateTypeParameterDeclaration(Ge,(We=Ge.modifiers)==null?void 0:We.map(Wt=>i(je,Wt)),at,u(Ge.constraint,je),u(Ge.default,je))})}function Xe(ge,je,Ge,We){let at=lt(ge,void 0,Ge),Wt=Ce(ge.typeParameters,Ge),cn=ge.parameters.map(gn=>Y(gn,Ge));return We?L.createPropertySignature([L.createModifier(148)],i(Ge,je),i(Ge,ge.questionToken),L.createFunctionTypeNode(Wt,cn,at)):(He(je)&&je.escapedText==="new"&&(je=L.createStringLiteral("new")),L.createMethodSignature([],i(Ge,je),i(Ge,ge.questionToken),Wt,cn,at))}function Se(ge,je,Ge){let We=t.getAllAccessorDeclarations(ge),at=We.getAccessor&&A(We.getAccessor),Wt=We.setAccessor&&A(We.setAccessor);if(at!==void 0&&Wt!==void 0)return q(Ge,ge,()=>{let cn=ge.parameters.map(gn=>Y(gn,Ge));return dg(ge)?L.updateGetAccessorDeclaration(ge,[],i(Ge,je),cn,u(at,Ge),void 0):L.updateSetAccessorDeclaration(ge,[],i(Ge,je),cn,void 0)});if(We.firstAccessor===ge){let gn=(at?q(Ge,We.getAccessor,()=>u(at,Ge)):Wt?q(Ge,We.setAccessor,()=>u(Wt,Ge)):void 0)??Z(ge,We,Ge,void 0);return L.createPropertySignature(We.setAccessor===void 0?[L.createModifier(148)]:[],i(Ge,je),void 0,gn)}}function re(){return r?L.createKeywordTypeNode(157):L.createKeywordTypeNode(133)}function be(ge,je,Ge,We,at){let Wt;return We?(ge.kind===225&&ge.operator===40&&(Wt=L.createLiteralTypeNode(i(Ge,ge.operand))),Wt=L.createLiteralTypeNode(i(Ge,ge))):Wt=L.createKeywordTypeNode(je),a_(Ne(Wt,at,ge,Ge))}function Ne(ge,je,Ge,We){let at=Ge&&Fm(Ge).parent,Wt=at&&rd(at)&&II(at);return!r||!(je||Wt)?ge:(Be(ge)||We.tracker.reportInferenceFallback(ge),sv(ge)?L.createUnionTypeNode([...ge.types,L.createKeywordTypeNode(157)]):L.createUnionTypeNode([ge,L.createKeywordTypeNode(157)]))}function Be(ge){return!r||Qu(ge.kind)||ge.kind===202||ge.kind===185||ge.kind===186||ge.kind===189||ge.kind===190||ge.kind===188||ge.kind===204||ge.kind===198?!0:ge.kind===197?Be(ge.type):ge.kind===193||ge.kind===194?ge.types.every(Be):!1}function lt(ge,je,Ge,We=!0){let at=bP,Wt=dI(ge)?Rc(ge.parameters[0]):Pp(ge);return Wt?at=a_(l(Wt,Ge,ge,je)):ZS(ge)&&(at=ce(ge,Ge)),at.type!==void 0?at.type:J(ge,Ge,je,We&&at.reportFallback&&!Wt)}function ce(ge,je){let Ge;if(ge&&!Ol(ge.body)){if(dc(ge)&3)return bP;let at=ge.body;at&&ea(at)?_b(at,Wt=>{if(Wt.parent!==at)return Ge=void 0,!0;if(!Ge)Ge=Wt.expression;else return Ge=void 0,!0}):Ge=at}if(Ge)if(De(Ge)){let We=W1(Ge)?SD(Ge):fD(Ge)||l3(Ge)?Ge.type:void 0;if(We&&!wm(We))return a_(s(We,je))}else return ie(Ge,je);return bP}function De(ge){return Dn(ge.parent,je=>Zo(je)||!Ms(je)&&!!Rc(je)||n_(je)||_D(je))}}var Fb={};x(Fb,{NameValidationResult:()=>jAe,discoverTypings:()=>gqe,isTypingUpToDate:()=>GAe,loadSafeList:()=>hqe,loadTypesMap:()=>_qe,nonRelativeModuleNameForTypingCache:()=>VAe,renderPackageNameValidationFailure:()=>vqe,validatePackageName:()=>yqe});var VF="action::set",jF="action::invalidate",UF="action::packageInstalled",nq="event::typesRegistry",rq="event::beginInstallTypes",iq="event::endInstallTypes",dle="event::initializationFailed",rO="action::watchTypingLocations",oq;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(oq||(oq={}));function WAe(e){return Uc.args.includes(e)}function FAe(e){let t=Uc.args.indexOf(e);return t>=0&&t<Uc.args.length-1?Uc.args[t+1]:void 0}function zAe(){let 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")}`}var BAe=`
`;function TP(e){return BAe+e.replace(/\n/g,BAe)}function iT(e){return TP(JSON.stringify(e,void 0,2))}function GAe(e,t){return new ih(iL(t,`ts${he}`)||iL(t,"latest")).compareTo(e.version)<=0}function VAe(e){return sD.has(e)?"node":e}function hqe(e,t){let r=Ew(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function _qe(e,t){var r;let i=Ew(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function gqe(e,t,r,i,o,s,l,u,d,g){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let _=new Map;r=Ui(r,G=>{let j=ya(G);if(bg(j))return j});let v=[];l.include&&k(l.include,"Explicitly included types");let E=l.exclude||[];if(!g.types){let G=new Set(r.map(ci));G.add(i),G.forEach(j=>{F(j,"bower.json","bower_components",v),F(j,"package.json","node_modules",v)})}if(l.disableFilenameBasedTypeAcquisition||O(r),u){let G=t1(u.map(VAe),i1,Wd);k(G,"Inferred typings from unresolved imports")}for(let G of E)_.delete(G)&&t&&t(`Typing for ${G} is in exclude list, will be ignored.`);s.forEach((G,j)=>{let J=d.get(j);_.get(j)===!1&&J!==void 0&&GAe(G,J)&&_.set(j,G.typingLocation)});let A=[],R=[];_.forEach((G,j)=>{G?R.push(G):A.push(j)});let N={cachedTypingPaths:R,newTypingNames:A,filesToWatch:v};return t&&t(`Finished typings discovery:${iT(N)}`),N;function P(G){_.has(G)||_.set(G,!1)}function k(G,j){t&&t(`${j}: ${JSON.stringify(G)}`),Je(G,P)}function F(G,j,J,Z){let q=Qr(G,j),ye,ie;e.fileExists(q)&&(Z.push(q),ye=Ew(q,fe=>e.readFile(fe)).config,ie=Ki([ye.dependencies,ye.devDependencies,ye.optionalDependencies,ye.peerDependencies],Oh),k(ie,`Typing names in '${q}' dependencies`));let K=Qr(G,J);if(Z.push(K),!e.directoryExists(K))return;let pe=[],de=ie?ie.map(fe=>Qr(K,fe,j)):e.readDirectory(K,[".json"],void 0,void 0,3).filter(fe=>{if(xc(fe)!==j)return!1;let ve=zd(ya(fe)),xe=ve[ve.length-3][0]==="@";return xe&&Qv(ve[ve.length-4])===J||!xe&&Qv(ve[ve.length-3])===J});t&&t(`Searching for typing names in ${K}; all files: ${JSON.stringify(de)}`);for(let fe of de){let ve=ya(fe),Y=Ew(ve,Xe=>e.readFile(Xe)).config;if(!Y.name)continue;let Ce=Y.types||Y.typings;if(Ce){let Xe=To(Ce,ci(ve));e.fileExists(Xe)?(t&&t(` Package '${Y.name}' provides its own types.`),_.set(Y.name,Xe)):t&&t(` Package '${Y.name}' provides its own types but they are missing.`)}else pe.push(Y.name)}k(pe," Found package names")}function O(G){let j=Ui(G,Z=>{if(!bg(Z))return;let q=bu(Qv(xc(Z))),ye=Wz(q);return o.get(ye)});j.length&&k(j,"Inferred typings from file names"),vt(G,Z=>El(Z,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),P("react"))}}var jAe=(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))(jAe||{}),UAe=214;function yqe(e){return ule(e,!0)}function ule(e,t){if(!e)return 1;if(e.length>UAe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let i=ule(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=ule(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function vqe(e,t){return typeof e=="object"?HAe(t,e.result,e.name,e.isScopeName):HAe(t,e,t,!1)}function HAe(e,t,r,i){let 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 ${UAe} 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 C.fail();default:C.assertNever(t)}}var HF;(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})(HF||(HF={}));var ple=(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))(ple||{}),fle=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(fle||{}),mle=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(mle||{}),Tm={},hle=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(hle||{}),aq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(aq||{}),sq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(sq||{}),_le=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(_le||{}),gle=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(gle||{}),yle=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(yle||{}),lq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(lq||{});function qF(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 qAe=qF(`
`),JF=(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))(JF||{}),vle=(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))(vle||{}),ble=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(ble||{}),Tle=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(Tle||{}),Sle=(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))(Sle||{}),Ele=(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))(Ele||{}),Ale=(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))(Ale||{}),Ile=(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))(Ile||{}),xle=(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))(xle||{}),cq=(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))(cq||{}),yd=lg(99,!0),Rle=(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))(Rle||{});function KF(e){switch(e.kind){case 261:return Ir(e)&&CB(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return e.name===void 0?3:2;case 307:case 264:return 3;case 268:return gu(e)||my(e)===1?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function DE(e){e=Sq(e);let t=e.parent;return e.kind===308?1:ll(t)||iu(t)||uy(t)||Su(t)||Gm(t)||Bc(t)&&e===t.name?7:XF(e)?bqe(e):P_(e)?KF(t):Nu(e)&&Dn(e,Ip(UM,ZA,X0))?7:Aqe(e)?2:Tqe(e)?4:sl(t)?(C.assert(vm(t.parent)),2):lv(t)?3:1}function bqe(e){let t=e.kind===167?e:Lu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===272?7:4}function XF(e){if(!e.parent)return!1;for(;e.parent.kind===167;)e=e.parent;return KS(e.parent)&&e.parent.moduleReference===e}function Tqe(e){return Sqe(e)||Eqe(e)}function Sqe(e){let t=e,r=!0;if(t.parent.kind===167){for(;t.parent&&t.parent.kind===167;)t=t.parent;r=t.right===e}return t.parent.kind===184&&!r}function Eqe(e){let t=e,r=!0;if(t.parent.kind===212){for(;t.parent&&t.parent.kind===212;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===234&&t.parent.parent.kind===299){let i=t.parent.parent.parent;return i.kind===264&&t.parent.parent.token===119||i.kind===265&&t.parent.parent.token===96}return!1}function Aqe(e){switch(dM(e)&&(e=e.parent),e.kind){case 110:return!M_(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return Uh(e.parent)}return!1}function dq(e,t=!1,r=!1){return iO(e,Zo,pq,t,r)}function SP(e,t=!1,r=!1){return iO(e,L1,pq,t,r)}function uq(e,t=!1,r=!1){return iO(e,Bh,pq,t,r)}function Dle(e,t=!1,r=!1){return iO(e,V0,Iqe,t,r)}function Cle(e,t=!1,r=!1){return iO(e,zc,pq,t,r)}function Nle(e,t=!1,r=!1){return iO(e,nu,xqe,t,r)}function pq(e){return e.expression}function Iqe(e){return e.tag}function xqe(e){return e.tagName}function iO(e,t,r,i,o){let s=i?Rqe(e):YF(e);return o&&(s=Ul(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function YF(e){return VD(e)?e.parent:e}function Rqe(e){return VD(e)||_q(e)?e.parent:e}function $F(e,t){for(;e;){if(e.kind===257&&e.label.escapedText===t)return e.label;e=e.parent}}function oO(e,t){return qr(e.expression)?e.expression.name.text===t:!1}function aO(e){var t;return He(e)&&((t=ni(e.parent,MN))==null?void 0:t.label)===e}function fq(e){var t;return He(e)&&((t=ni(e.parent,Nb))==null?void 0:t.label)===e}function mq(e){return fq(e)||aO(e)}function hq(e){var t;return((t=ni(e.parent,LR))==null?void 0:t.tagName)===e}function Mle(e){var t;return((t=ni(e.parent,Lu))==null?void 0:t.right)===e}function VD(e){var t;return((t=ni(e.parent,qr))==null?void 0:t.name)===e}function _q(e){var t;return((t=ni(e.parent,Ws))==null?void 0:t.argumentExpression)===e}function gq(e){var t;return((t=ni(e.parent,pc))==null?void 0:t.name)===e}function yq(e){var t;return He(e)&&((t=ni(e.parent,Yo))==null?void 0:t.name)===e}function QF(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return Oo(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return e.parent.parent.kind===200;default:return!1}}function Ple(e){return M0(e.parent.parent)&&qN(e.parent.parent)===e}function CE(e){for(mm(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function H1(e){switch(e.kind){case 308:return Gc(e)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return t(e);case 209:return t(qh(e));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:let{initializer:r}=e;return Yo(r)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return di(e,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:let i=oc(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=H1(o);return l===""?"const":l;case 3:return Us(o)?"method":"property";case 4:return"property";case 5:return Us(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Gm(e.parent)?"alias":"";case 278:let s=H1(e.expression);return s===""?"const":s;default:return""}function t(r){return FR(r)?"const":N6(r)?"let":"var"}}function jD(e){switch(e.kind){case 110:return!0;case 80:return KG(e)&&e.parent.kind===170;default:return!1}}var Dqe=/^\/\/\/\s*</;function Sm(e,t){let r=og(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function Lle(e,t){return sO(e,t.pos)&&sO(e,t.end)}function UD(e,t){return e.pos<=t&&t<=e.end}function sO(e,t){return e.pos<t&&t<e.end}function lO(e,t,r){return e.pos<=t&&e.end>=r}function EP(e,t,r){return e7(e.pos,e.end,t,r)}function ZF(e,t,r,i){return e7(e.getStart(t),e.end,r,i)}function e7(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return o<s}function vq(e,t,r){return C.assert(e.pos<=t),t<e.end||!gh(e,r)}function gh(e,t){if(e===void 0||Ol(e))return!1;switch(e.kind){case 264:case 265:case 267:case 211:case 207:case 188:case 242:case 269:case 270:case 276:case 280:return bq(e,20,t);case 300:return gh(e.block,t);case 215:if(!e.arguments)return!0;case 214:case 218:case 197:return bq(e,22,t);case 185:case 186:return gh(e.type,t);case 177:case 178:case 179:case 263:case 219:case 175:case 174:case 181:case 180:case 220:return e.body?gh(e.body,t):e.type?gh(e.type,t):Tq(e,22,t);case 268:return!!e.body&&gh(e.body,t);case 246:return e.elseStatement?gh(e.elseStatement,t):gh(e.thenStatement,t);case 245:return gh(e.expression,t)||Tq(e,27,t);case 210:case 208:case 213:case 168:case 190:return bq(e,24,t);case 182:return e.type?gh(e.type,t):Tq(e,24,t);case 297:case 298:return!1;case 249:case 250:case 251:case 248:return gh(e.statement,t);case 247:return Tq(e,117,t)?bq(e,22,t):gh(e.statement,t);case 187:return gh(e.exprName,t);case 222:case 221:case 223:case 230:case 231:return gh(e.expression,t);case 216:return gh(e.template,t);case 229:let i=Zs(e.templateSpans);return gh(i,t);case 240:return pm(e.literal);case 279:case 273:return pm(e.moduleSpecifier);case 225:return gh(e.operand,t);case 227:return gh(e.right,t);case 228:return gh(e.whenFalse,t);default:return!0}}function bq(e,t,r){let i=e.getChildren(r);if(i.length){let o=Ba(i);if(o.kind===t)return!0;if(o.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function kle(e){let t=t7(e);if(!t)return;let r=t.getChildren();return{listItemIndex:wR(r,e),list:t}}function Tq(e,t,r){return!!Es(e,t,r)}function Es(e,t,r){return hn(e.getChildren(r),i=>i.kind===t)}function t7(e){let t=hn(e.parent.getChildren(),r=>TD(r)&&Zu(r,e));return C.assert(!t||jn(t.getChildren(),e)),t}function JAe(e){return e.kind===90}function Cqe(e){return e.kind===86}function Nqe(e){return e.kind===100}function Mqe(e){if(nd(e))return e.name;if(Cc(e)){let t=e.modifiers&&hn(e.modifiers,JAe);if(t)return t}if(uc(e)){let t=hn(e.getChildren(),Cqe);if(t)return t}}function Pqe(e){if(nd(e))return e.name;if(Ql(e)){let t=hn(e.modifiers,JAe);if(t)return t}if(Us(e)){let t=hn(e.getChildren(),Nqe);if(t)return t}}function Lqe(e){let t;return Dn(e,r=>(Ri(r)&&(t=r),!Lu(r.parent)&&!Ri(r.parent)&&!l1(r.parent))),t}function n7(e,t){if(e.flags&16777216)return;let r=y7(e,t);if(r)return r;let i=Lqe(e);return i&&t.getTypeAtLocation(i)}function kqe(e,t){if(!t)switch(e.kind){case 264:case 232:return Mqe(e);case 263:case 219:return Pqe(e);case 177:return e}if(nd(e))return e.name}function KAe(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(t_(e.importClause.namedBindings)){let r=ig(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Ag(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function XAe(e,t){if(e.exportClause){if(Hf(e.exportClause))return ig(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(w_(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function wqe(e){if(e.types.length===1)return e.types[0].expression}function YAe(e,t){let{parent:r}=e;if(Aa(e)&&(t||e.kind!==90)?bm(r)&&jn(r.modifiers,e):e.kind===86?Cc(r)||uc(e):e.kind===100?Ql(r)||Us(e):e.kind===120?gd(r):e.kind===94?q0(r):e.kind===156?ym(r):e.kind===145||e.kind===144?pc(r):e.kind===102?Bc(r):e.kind===139?jf(r):e.kind===153&&_p(r)){let i=kqe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&_d(r)&&r.declarations.length===1){let i=r.declarations[0];if(He(i.name))return i.name}if(e.kind===156){if(Gm(r)&&r.isTypeOnly){let i=KAe(r.parent,t);if(i)return i}if(fc(r)&&r.isTypeOnly){let i=XAe(r,t);if(i)return i}}if(e.kind===130){if(Su(r)&&r.propertyName||iu(r)&&r.propertyName||Ag(r)||w_(r))return r.name;if(fc(r)&&r.exportClause&&w_(r.exportClause))return r.exportClause.name}if(e.kind===102&&vl(r)){let i=KAe(r,t);if(i)return i}if(e.kind===95){if(fc(r)){let i=XAe(r,t);if(i)return i}if(ll(r))return Ul(r.expression)}if(e.kind===149&&uy(r))return r.expression;if(e.kind===161&&(vl(r)||fc(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Op(r)&&r.token===e.kind){let i=wqe(r);if(i)return i}if(e.kind===96){if(sl(r)&&r.constraint&&wp(r.constraint))return r.constraint.typeName;if(M1(r)&&wp(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&cE(r))return r.typeParameter.name;if(e.kind===103&&sl(r)&&uE(r.parent))return r.name;if(e.kind===143&&G0(r)&&r.operator===143&&wp(r.type))return r.type.typeName;if(e.kind===148&&G0(r)&&r.operator===148&&iw(r.type)&&wp(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&L1(r)||e.kind===116&&FI(r)||e.kind===114&&pD(r)||e.kind===135&&Cb(r)||e.kind===127&&ow(r)||e.kind===91&&yie(r))&&r.expression)return Ul(r.expression);if((e.kind===103||e.kind===104)&&Nr(r)&&r.operatorToken===e)return Ul(r.right);if(e.kind===130&&fD(r)&&wp(r.type))return r.type.typeName;if(e.kind===103&&d3(r)||e.kind===165&&aw(r))return Ul(r.expression)}return e}function Sq(e){return YAe(e,!1)}function r7(e){return YAe(e,!0)}function np(e,t){return HD(e,t,r=>Hh(r)||Qu(r.kind)||eo(r))}function HD(e,t,r){return $Ae(e,t,!1,r,!1)}function Fi(e,t){return $Ae(e,t,!0,void 0,!1)}function $Ae(e,t,r,i,o){let s=e,l;e:for(;;){let d=s.getChildren(e),g=BA(d,t,(_,v)=>v,(_,v)=>{let E=d[_].getEnd();if(E<t)return-1;let A=r?d[_].getFullStart():d[_].getStart(e,!0);return A>t?1:u(d[_],A,E)?d[_-1]&&u(d[_-1])?1:0:i&&A===t&&d[_-1]&&d[_-1].getEnd()===t&&u(d[_-1])?1:-1});if(l)return l;if(g>=0&&d[g]){s=d[g];continue e}return s}function u(d,g,_){if(_??(_=d.getEnd()),_<t||(g??(g=r?d.getFullStart():d.getStart(e,!0)),g>t))return!1;if(t<_||t===_&&(d.kind===1||o))return!0;if(i&&_===t){let v=Vc(t,e,d);if(v&&i(v))return l=v,!0}return!1}}function wle(e,t){let r=Fi(e,t);for(;i7(r);){let i=q1(r,r.parent,e);if(!i)return;r=i}return r}function AP(e,t){let r=Fi(e,t);return XA(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Vc(t,e)}function q1(e,t,r){return i(t);function i(o){return XA(o)&&o.pos===e.end?o:Hn(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&Gle(s,r)?i(s):void 0)}}function Vc(e,t,r,i){let o=s(r||t);return C.assert(!(o&&i7(o))),o;function s(l){if(QAe(l)&&l.kind!==1)return l;let u=l.getChildren(t),d=BA(u,e,(_,v)=>v,(_,v)=>e<u[_].end?!u[_-1]||e>=u[_-1].end?0:1:-1);if(d>=0&&u[d]){let _=u[d];if(e<_.end)if(_.getStart(t,!i)>=e||!Gle(_,t)||i7(_)){let A=Wle(u,d,t,l.kind);return A?!i&&m6(A)&&A.getChildren(t).length?s(A):Ole(A,t):void 0}else return s(_)}C.assert(r!==void 0||l.kind===308||l.kind===1||m6(l));let g=Wle(u,u.length,t,l.kind);return g&&Ole(g,t)}}function QAe(e){return XA(e)&&!i7(e)}function Ole(e,t){if(QAe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=Wle(r,r.length,t,e.kind);return i&&Ole(i,t)}function Wle(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(i7(s))o===0&&(i===12||i===286)&&C.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Gle(e[o],r))return e[o]}}function nx(e,t,r=Vc(t,e)){if(r&&OB(r)){let i=r.getStart(e),o=r.getEnd();if(i<t&&t<o)return!0;if(t===o)return!!r.isUnterminated}return!1}function Fle(e,t){let r=Fi(e,t);return r?!!(r.kind===12||r.kind===30&&r.parent.kind===12||r.kind===30&&r.parent.kind===295||r&&r.kind===20&&r.parent.kind===295||r.kind===30&&r.parent.kind===288):!1}function i7(e){return NI(e)&&e.containsOnlyTriviaWhiteSpaces}function Eq(e,t){let r=Fi(e,t);return sb(r.kind)&&t>r.getStart(e)}function zle(e,t){let r=Fi(e,t);return!!(NI(r)||r.kind===19&&_D(r.parent)&&n_(r.parent.parent)||r.kind===30&&nu(r.parent)&&n_(r.parent.parent))}function o7(e,t){function r(i){for(;i;)if(i.kind>=286&&i.kind<=295||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===285){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(Fi(e,t))}function a7(e,t,r){let i=_a(e.kind),o=_a(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)<l){let g=Vc(l+1,r);if(g&&g.kind===t)return g}let u=e.kind,d=0;for(;;){let g=Vc(e.getFullStart(),r);if(!g)return;if(e=g,e.kind===t){if(d===0)return e;d--}else e.kind===u&&d++}}function Oqe(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function cO(e,t,r){let i=Iq(e,t);return i!==void 0&&(Uh(i.called)||Aq(i.called,i.nTypeArguments,r).length!==0||cO(i.called,t,r))}function Aq(e,t,r){let i=r.getTypeAtLocation(e);return eu(e.parent)&&(i=Oqe(i,CN(e.parent),!0)),(L1(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function Iq(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=Vc(r.getFullStart(),t),r&&r.kind===29&&(r=Vc(r.getFullStart(),t)),!r||!He(r))return;if(!i)return P_(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=a7(r,19,t),!r)return;break;case 22:if(r=a7(r,21,t),!r)return;break;case 24:if(r=a7(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(Ri(r))break;return}r=Vc(r.getFullStart(),t)}}function uv(e,t,r){return Mc.getRangeOfEnclosingComment(e,t,void 0,r)}function Ble(e,t){let r=Fi(e,t);return!!Dn(r,mh)}function Gle(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function IP(e,t=0){let r=[],i=rd(e)?AB(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||$l(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===278&&r.push("export"),r.length>0?r.join(","):""}function Vle(e){if(e.kind===184||e.kind===214)return e.typeArguments;if(Yo(e)||e.kind===264||e.kind===265)return e.typeParameters}function s7(e){return e===2||e===3}function xq(e){return!!(e===11||e===14||sb(e))}function ZAe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function jle(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(ZAe(r,t[0],t[1])||ZAe(r,t[1],t[0]))}function dO(e,t,r){return sb(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function Rq(e){switch(e){case 125:case 123:case 124:return!0}return!1}function Dq(e){let t=VQ(e);return Qj(t,e&&e.configFile),t}function pv(e){return!!((e.kind===210||e.kind===211)&&(e.parent.kind===227&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===251&&e.parent.initializer===e||pv(e.parent.kind===304?e.parent.parent:e.parent)))}function Ule(e,t){return eIe(e,t,!0)}function Hle(e,t){return eIe(e,t,!1)}function eIe(e,t,r){let i=uv(e,t,void 0);return!!i&&r===Dqe.test(e.text.substring(i.pos,i.end))}function Cq(e,t){if(e)switch(e.kind){case 11:case 15:return Nq(e,t);default:return Fu(e)}}function Fu(e,t,r){return ic(e.getStart(t),(r||e).getEnd())}function Nq(e,t){let r=e.getEnd()-1;if(e.isUnterminated){if(e.getStart()===r)return;r=Math.min(t,e.getEnd())}return ic(e.getStart()+1,r)}function Mq(e,t){return Ff(e.getStart(t),e.end)}function fv(e){return ic(e.pos,e.end)}function l7(e){return Ff(e.start,e.start+e.length)}function c7(e,t,r){return uO(Id(e,t),r)}function uO(e,t){return{span:e,newText:t}}var Pq=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159];function xP(e){return jn(Pq,e)}function tIe(e){return e.kind===156}function d7(e){return tIe(e)||He(e)&&e.text==="type"}function qD(){let e=[];return t=>{let r=ss(t);return!e[r]&&(e[r]=!0)}}function rx(e){return e.getText(0,e.getLength())}function pO(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function Lq(e){return e.isTypeParameter()&&e.getConstraint()||e}function fO(e){return e.kind===168?df(e.expression)?e.expression.text:void 0:eo(e)?Kr(e):Wf(e)}function qle(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Jle(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function kq(e){return!!e.module||Ga(e)>=2||!!e.noEmit}function oT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ia(t,t.readFile),useCaseSensitiveFileNames:ia(t,t.useCaseSensitiveFileNames)||e.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,getRedirectFromSourceFile:r=>e.getRedirectFromSourceFile(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ia(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:r=>e.getDefaultResolutionModeForFile(r),getModeForResolutionAtIndex:(r,i)=>e.getModeForResolutionAtIndex(r,i)}}function wq(e,t){return{...oT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function u7(e){return e===2||e>=3&&e<=99||e===100}function zb(e,t,r,i,o){return L.createImportDeclaration(void 0,e||t?L.createImportClause(o?156:void 0,e,t&&t.length?L.createNamedImports(t):void 0):void 0,typeof r=="string"?RP(r,i):r,void 0)}function RP(e,t){return L.createStringLiteral(e,t===0)}var Kle=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(Kle||{});function Oq(e,t){return q6(e,t)?1:0}function zp(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=hg(e)&&e.imports&&hn(e.imports,i=>ka(i)&&!Os(i.parent));return r?Oq(r,e):1}}function Wq(e){switch(e){case 0:return"'";case 1:return'"';default:return C.assertNever(e)}}function Fq(e){let t=p7(e);return t===void 0?void 0:Vi(t)}function p7(e){return e.escapedName!=="default"?e.escapedName:Hn(e.declarations,t=>{let r=Oo(t);return r&&r.kind===80?r.escapedText:void 0})}function f7(e){return cs(e)&&(uy(e.parent)||vl(e.parent)||i_(e.parent)||$u(e.parent,!1)&&e.parent.arguments[0]===e||Yu(e.parent)&&e.parent.arguments[0]===e)}function mO(e){return Ha(e)&&pf(e.parent)&&He(e.name)&&!e.propertyName}function m7(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function hO(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!Wqe(r,e.parent,t))return e;e=e.parent}}function Wqe(e,t,r){return TB(e,t.getStart(r))&&t.getEnd()<=Dl(e)}function JD(e,t){return bm(e)?hn(e.modifiers,r=>r.kind===t):void 0}function zq(e,t,r,i,o){var s;let u=(Mo(r)?r[0]:r).kind===244?nk:iI,d=Un(t.statements,u),{comparer:g,isSorted:_}=pT.getOrganizeImportsStringComparerWithDetection(d,o),v=Mo(r)?Ap(r,(E,A)=>pT.compareImportsOrRequireStatements(E,A,g)):[r];if(!d?.length){if(hg(t))e.insertNodesAtTopOfFile(t,v,i);else for(let E of v)e.insertStatementsInNewFile(t.fileName,[E],(s=yl(E))==null?void 0:s.getSourceFile());return}if(C.assert(hg(t)),d&&_)for(let E of v){let A=pT.getImportDeclarationInsertionIndex(d,E,g);if(A===0){let R=d[0]===t.statements[0]?{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,R)}else{let R=d[A-1];e.insertNodeAfter(t,R,E)}}else{let E=Zs(d);E?e.insertNodesAfter(t,E,v):e.insertNodesAtTopOfFile(t,v,i)}}function Bq(e,t){return C.assert(e.isTypeOnly),ma(e.getChildAt(0,t),tIe)}function KD(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Gq(e,t,r){return(r?i1:eb)(e.fileName,t.fileName)&&KD(e.textSpan,t.textSpan)}function Vq(e){return(t,r)=>Gq(t,r,e)}function jq(e,t){if(e){for(let r=0;r<e.length;r++)if(e.indexOf(e[r])===r){let i=t(e[r],r);if(i)return i}}}function Xle(e,t,r){for(let i=t;i<r;i++)if(!ag(e.charCodeAt(i)))return!1;return!0}function DP(e,t,r){let i=t.tryGetSourcePosition(e);return i&&(!r||r(ya(i.fileName))?i:void 0)}function h7(e,t,r){let{fileName:i,textSpan:o}=e,s=DP({fileName:i,pos:o.start},t,r);if(!s)return;let l=DP({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:Uq(e,t,r),originalContextSpan:e.contextSpan}}function Uq(e,t,r){let i=e.contextSpan&&DP({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&DP({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 Hq(e){let t=e.declarations?Ic(e.declarations):void 0;return!!Dn(t,r=>to(r)?!0:Ha(r)||pf(r)||cv(r)?!1:"quit")}var Yle=new Map;function Fqe(e){return e=e||FN,Yle.has(e)||Yle.set(e,zqe(e)),Yle.get(e)}function zqe(e){let t=e*10,r,i,o,s;v();let l=E=>d(E,17);return{displayParts:()=>{let E=r.length&&r[r.length-1].text;return s>t&&E&&E!=="..."&&(ag(E.charCodeAt(E.length-1))||r.push(gp(" ",16)),r.push(gp("...",15))),r},writeKeyword:E=>d(E,5),writeOperator:E=>d(E,12),writePunctuation:E=>d(E,15),writeTrailingSemicolon:E=>d(E,15),writeSpace:E=>d(E,16),writeStringLiteral:E=>d(E,8),writeParameter:E=>d(E,13),writeProperty:E=>d(E,14),writeLiteral:E=>d(E,8),writeSymbol:g,writeLine:_,write:l,writeComment:l,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ha,getIndent:()=>o,increaseIndent:()=>{o++},decreaseIndent:()=>{o--},clear:v};function u(){if(!(s>t)&&i){let E=rW(o);E&&(s+=E.length,r.push(gp(E,16))),i=!1}}function d(E,A){s>t||(u(),s+=E.length,r.push(gp(E,A)))}function g(E,A){s>t||(u(),s+=E.length,r.push(Bqe(E,A)))}function _(){s>t||(s+=1,r.push(XD()),i=!0)}function v(){r=[],i=!0,o=0,s=0}}function Bqe(e,t){return gp(e,r(t));function r(i){let o=i.flags;return o&3?Hq(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 gp(e,t){return{text:e,kind:JF[t]}}function zl(){return gp(" ",16)}function Bp(e){return gp(_a(e),5)}function su(e){return gp(_a(e),15)}function CP(e){return gp(_a(e),12)}function $le(e){return gp(e,13)}function Qle(e){return gp(e,14)}function qq(e){let t=OS(e);return t===void 0?gf(e):Bp(t)}function gf(e){return gp(e,17)}function Zle(e){return gp(e,0)}function ece(e){return gp(e,18)}function tce(e){return gp(e,24)}function Gqe(e,t){return{text:e,kind:JF[23],target:{fileName:Wn(t).fileName,textSpan:Fu(t)}}}function nIe(e){return gp(e,22)}function nce(e,t){var r;let i=Rie(e)?"link":Die(e)?"linkcode":"linkplain",o=[nIe(`{@${i} `)];if(!e.name)e.text&&o.push(tce(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?Xq(s,t):void 0,u=jqe(e.text),d=Al(e.name)+e.text.slice(0,u),g=Vqe(e.text.slice(u)),_=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(_)o.push(Gqe(d,_)),g&&o.push(tce(g));else{let v=u===0||e.text.charCodeAt(u)===124&&d.charCodeAt(d.length-1)!==32?" ":"";o.push(tce(d+v+g))}}return o.push(nIe("}")),o}function Vqe(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 jqe(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}var Uqe=`
`;function _y(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||Uqe}function XD(){return gp(`
`,6)}function Bb(e,t){let r=Fqe(t);try{return e(r),r.displayParts()}finally{r.clear()}}function _O(e,t,r,i=0,o,s,l){return Bb(u=>{e.writeType(t,r,i|1024|16384,u,o,s,l)},o)}function NP(e,t,r,i,o=0){return Bb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function Jq(e,t,r,i=0,o,s,l){return i|=25632,Bb(u=>{e.writeSignature(t,r,i,void 0,u,o,s,l)},o)}function rce(e){return!!e.parent&&lb(e.parent)&&e.parent.propertyName===e}function Kq(e,t){return LW(e,t.getScriptKind&&t.getScriptKind(e))}function Xq(e,t){let r=e;for(;Hqe(r)||ug(r)&&r.links.target;)ug(r)&&r.links.target?r=r.links.target:r=xd(r,t);return r}function Hqe(e){return(e.flags&2097152)!==0}function ice(e,t){return Ta(xd(e,t))}function oce(e,t){for(;ag(e.charCodeAt(t));)t+=1;return t}function _7(e,t){for(;t>-1&&zh(e.charCodeAt(t));)t-=1;return t+1}function NE(e,t){let r=e.getSourceFile(),i=r.text;qqe(e,i)?YD(e,t,r):yO(e,t,r),MP(e,t,r)}function qqe(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;o<i;o++)if(t.charCodeAt(o)===10)return!0;return!1}function ME(e,t){let r=e;for(let i=1;!E6(t,r);i++)r=`${e}_${i}`;return r}function gO(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:u}of e){C.assert(l===t);for(let d of u){let{span:g,newText:_}=d,v=Jqe(_,L_(r));if(v!==-1&&(s=g.start+o+v,!i))return s;o+=_.length-g.length}}return C.assert(i),C.assert(s>=0),s}function YD(e,t,r,i,o){hL(r.text,e.pos,ace(t,r,i,o,xb))}function MP(e,t,r,i,o){_L(r.text,e.end,ace(t,r,i,o,LM))}function yO(e,t,r,i,o){_L(r.text,e.pos,ace(t,r,i,o,xb))}function ace(e,t,r,i,o){return(s,l,u,d)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:d)}}function Jqe(e,t){if(po(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 g7(e){return Nr(e)&&e.operatorToken.kind===28||Wa(e)||(fD(e)||mD(e))&&Wa(e.expression)}function y7(e,t,r){let i=Fm(e.parent);switch(i.kind){case 215:return t.getContextualType(i,r);case 227:{let{left:o,operatorToken:s,right:l}=i;return v7(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 297:return $q(i,t);default:return t.getContextualType(e,r)}}function PP(e,t,r){let i=zp(e,t),o=JSON.stringify(r);return i===0?`'${hm(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function v7(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function sce(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function Yq(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function $q(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var Qq="anonymous function";function LP(e,t,r,i){let o=r.getTypeChecker(),s=!0,l=()=>s=!1,u=o.typeToTypeNode(e,t,1,8,{trackSymbol:(d,g,_)=>(s=s&&o.isSymbolAccessible(d,g,_,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:wq(r,i)});return s?u:void 0}function lce(e){return e===180||e===181||e===182||e===172||e===174}function rIe(e){return e===263||e===177||e===175||e===178||e===179}function iIe(e){return e===268}function cce(e){return e===244||e===245||e===247||e===252||e===253||e===254||e===258||e===260||e===173||e===266||e===273||e===272||e===279||e===271||e===278}var Kqe=Ip(lce,rIe,iIe,cce);function Xqe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(lce(e.kind)){if(r&&r.kind===28)return!1}else if(iIe(e.kind)){let u=Ba(e.getChildren(t));if(u&&e_(u))return!1}else if(rIe(e.kind)){let u=Ba(e.getChildren(t));if(u&&m1(u))return!1}else if(!cce(e.kind))return!1;if(e.kind===247)return!0;let i=Dn(e,u=>!u.parent),o=q1(e,i,t);if(!o||o.kind===20)return!0;let s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function b7(e,t,r){let i=Dn(t,o=>o.end!==e?"quit":Kqe(o.kind));return!!i&&Xqe(i,r)}function vO(e){let t=0,r=0,i=5;return Jo(e,function o(s){if(cce(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(lce(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let u=ca(e,l.getStart(e)).line,d=ca(e,Vh(e,l.end).start).line;u!==d&&r++}}return t+r>=i?!0:Jo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function T7(e,t){return dce(e,e.getDirectories,t)||[]}function Zq(e,t,r,i,o){return dce(e,e.readDirectory,t,r,i,o)||ae}function kP(e,t){return dce(e,e.fileExists,t)}function S7(e,t){return E7(()=>ch(t,e))||!1}function E7(e){try{return e()}catch{return}}function dce(e,t,...r){return E7(()=>t&&t.apply(e,r))}function eJ(e,t){let r=[];return O_(t,e,i=>{let o=Qr(i,"package.json");kP(t,o)&&r.push(o)}),r}function uce(e,t){let r;return O_(t,e,i=>{if(i==="node_modules"||(r=tH(i,o=>kP(t,o),"package.json"),r))return!0}),r}function Yqe(e,t){if(!t.fileExists)return[];let r=[];return O_(t,ci(e),i=>{let o=Qr(i,"package.json");if(t.fileExists(o)){let s=tJ(o,t);s&&r.push(s)}}),r}function tJ(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=Ck(i),s={};if(o)for(let d of r){let g=o[d];if(!g)continue;let _=new Map;for(let v in g)_.set(v,g[v]);s[d]=_}let l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(d,g){return!!u(d,g)}};function u(d,g=15){for(let[_,v]of l)if(v&&g&_){let E=v.get(d);if(E!==void 0)return E}}}function $D(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Yqe(e.fileName,r)).filter(R=>R.parseable),o,s,l;return{allowsImportingAmbientModule:d,getSourceFileInfo:g,allowsImportingSpecifier:_};function u(R){let N=A(R);for(let P of i)if(P.has(N)||P.has(Y3(N)))return!0;return!1}function d(R,N){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{let G=s.get(R);if(G!==void 0)return G}let P=hm(R.getName());if(v(P))return s.set(R,!0),!0;let k=R.valueDeclaration.getSourceFile(),F=E(k.fileName,N);if(typeof F>"u")return s.set(R,!0),!0;let O=u(F)||u(P);return s.set(R,O),O}function g(R,N){if(!i.length)return{importable:!0,packageName:void 0};if(!l)l=new Map;else{let O=l.get(R);if(O!==void 0)return O}let P=E(R.fileName,N);if(!P){let O={importable:!0,packageName:P};return l.set(R,O),O}let F={importable:u(P),packageName:P};return l.set(R,F),F}function _(R){return!i.length||v(R)||Qp(R)||Rp(R)?!0:u(R)}function v(R){return!!(hg(e)&&Mu(e)&&sD.has(R)&&(o===void 0&&(o=A7(e)),o))}function E(R,N){if(!R.includes("node_modules"))return;let P=hy.getNodeModulesPackageName(r.getCompilationSettings(),e,R,N,t);if(P&&!Qp(P)&&!Rp(P))return A(P)}function A(R){let N=zd(rP(R)).slice(1);return po(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function A7(e){return vt(e.imports,({text:t})=>sD.has(t))}function bO(e){return jn(zd(e),"node_modules")}function oIe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function pce(e,t){let r=Fu(e),i=BA(t,r,Vs,N8);if(i>=0){let o=t[i];return C.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ma(o,oIe)}}function fce(e,t){var r;let i=BA(t,e.start,l=>l.start,js);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=Dl(e);for(;;){let l=ni(t[i],oIe);if(!l||l.start>s)break;Iee(e,l)&&o.push(l),i++}return o}function ix({startPosition:e,endPosition:t}){return ic(e,t===void 0?e:t)}function nJ(e,t){let r=Fi(e,t.start);return Dn(r,o=>o.getStart(e)<t.start||o.getEnd()>Dl(t)?"quit":St(o)&&KD(t,Fu(o,e)))}function rJ(e,t,r=Vs){return e?Mo(e)?r(Vt(e,t)):t(e,0):void 0}function iJ(e){return Mo(e)?$a(e):e}function I7(e,t,r){return e.escapedName==="export="||e.escapedName==="default"?oJ(e)||TO($qe(e),t,!!r):e.name}function oJ(e){return Hn(e.declarations,t=>{var r,i,o;if(ll(t))return(r=ni(Ul(t.expression),He))==null?void 0:r.text;if(iu(t)&&t.symbol.flags===2097152)return(i=ni(t.propertyName,He))==null?void 0:i.text;let s=(o=ni(Oo(t),He))==null?void 0:o.text;if(s)return s;if(e.parent&&!eI(e.parent))return e.parent.getName()})}function $qe(e){var t;return C.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${C.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=C.formatSyntaxKind(r.kind),o=Ir(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${C.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function TO(e,t,r){return SO(bu(hm(e.name)),t,r)}function SO(e,t,r){let i=xc(yR(bu(e),"/index")),o="",s=!0,l=i.charCodeAt(0);x_(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;u<i.length;u++){let d=i.charCodeAt(u),g=ey(d,t);if(g){let _=String.fromCharCode(d);s||(_=_.toUpperCase()),o+=_}s=g}return pI(o)?`_${o}`:o||"_"}function mce(e,t,r){let 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 aJ(e){return e.charCodeAt(0)===95}function x7(e){return!!(AB(e)&65536)}function R7(e,t){let r;for(let i of e.imports)if(sD.has(i.text)&&!KW.has(i.text)){if(po(i.text,"node:"))return!0;r=!1}return r??t.usesUriStyleNodeCoreModules}function EO(e){return e===`
`?1:0}function J1(e){return Mo(e)?vg(Ho(e[0]),e.slice(1)):Ho(e)}function D7({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!vO(t);return{...e,semicolons:i?"remove":"ignore"}}function sJ(e){return e===2||e===3}function QD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function C7(e,t){let r=new Set,i=new Set,o=new Set;for(let u of t)if(!jM(u)){let d=ds(u.expression);if(BS(d))switch(d.kind){case 15:case 11:r.add(d.text);break;case 9:i.add(parseInt(d.text));break;case 10:let g=Are(el(d.text,"n")?d.text.slice(0,-1):d.text);g&&o.add(R1(g));break}else{let g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&py(g.valueDeclaration)){let _=e.getConstantValue(g.valueDeclaration);_!==void 0&&s(_)}}}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(R1(u))}}}function lJ(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!bg(s))return!1;let l=typeof e=="string"?t.getCompilerOptions():t.getCompilerOptionsForFile(e),u=vu(l),d=typeof e=="string"?{fileName:e,impliedNodeFormat:Jw(ks(e,r.getCurrentDirectory(),ay(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l)}:e,g=RE(d,l);if(g===99)return!1;if(g===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&Wk(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}function ox(e){switch(e.kind){case 242:case 308:case 269:case 297:return!0;default:return!1}}function N7(e,t,r,i){var o;let s=TF(e,(o=r.getPackageJsonInfoCache)==null?void 0:o.call(r),i,r.getCompilerOptions()),l,u;return typeof s=="object"&&(l=s.impliedNodeFormat,u=s.packageJsonScope),{path:ks(e,r.getCurrentDirectory(),r.getCanonicalFileName),fileName:e,externalModuleIndicator:t===99?!0:void 0,commonJsModuleIndicator:t===1?!0:void 0,impliedNodeFormat:l,packageJsonScope:u,statements:ae,imports:ae}}var hce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(hce||{}),_ce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(_ce||{});function cJ(e){let t=1,r=lm(),i=new Map,o=new Map,s,l={isUsableByFile:A=>A===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(A,R,N,P,k,F,O,G)=>{A!==s&&(l.clear(),s=A);let j;if(k){let xe=VW(k.fileName);if(xe){let{topLevelNodeModulesIndex:Y,topLevelPackageNameIndex:Ce,packageRootIndex:Xe}=xe;if(j=Mw(rP(k.fileName.substring(Ce+1,Xe))),po(A,k.path.substring(0,Y))){let Se=o.get(j),re=k.fileName.substring(0,Ce+1);if(Se){let be=Se.indexOf(xg);Y>be&&o.set(j,re)}else o.set(j,re)}}}let Z=F===1&&uM(R)||R,q=F===0||eI(Z)?Vi(N):Zqe(Z,G,void 0),ye=typeof q=="string"?q:q[0],ie=typeof q=="string"?void 0:q[1],K=hm(P.name),pe=t++,de=xd(R,G),fe=R.flags&33554432?void 0:R,ve=P.flags&33554432?void 0:P;(!fe||!ve)&&i.set(pe,[R,P]),r.add(d(ye,R,td(K)?void 0:K,G),{id:pe,symbolTableKey:N,symbolName:ye,capitalizedSymbolName:ie,moduleName:K,moduleFile:k,moduleFileName:k?.fileName,packageName:j,exportKind:F,targetFlags:de.flags,isFromPackageJson:O,symbol:fe,moduleSymbol:ve})},get:(A,R)=>{if(A!==s)return;let N=r.get(R);return N?.map(u)},search:(A,R,N,P)=>{if(A===s)return qc(r,(k,F)=>{let{symbolName:O,ambientModuleName:G}=g(F),j=R&&k[0].capitalizedSymbolName||O;if(N(j,k[0].targetFlags)){let Z=k.map(u).filter((q,ye)=>E(q,k[ye].packageName));if(Z.length){let q=P(Z,j,!!G,F);if(q!==void 0)return q}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(A,R,N)=>_(A)&&_(R)?!1:s&&s!==R.path||N&&A7(A)!==A7(R)||!$p(A.moduleAugmentations,R.moduleAugmentations)||!v(A,R)?(l.clear(),!0):(s=R.path,!1)};return C.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(A){if(A.symbol&&A.moduleSymbol)return A;let{id:R,exportKind:N,targetFlags:P,isFromPackageJson:k,moduleFileName:F}=A,[O,G]=i.get(R)||ae;if(O&&G)return{symbol:O,moduleSymbol:G,moduleFileName:F,exportKind:N,targetFlags:P,isFromPackageJson:k};let j=(k?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),J=A.moduleSymbol||G||C.checkDefined(A.moduleFile?j.getMergedSymbol(A.moduleFile.symbol):j.tryFindAmbientModule(A.moduleName)),Z=A.symbol||O||C.checkDefined(N===2?j.resolveExternalModuleSymbol(J):j.tryGetMemberInModuleExportsAndProperties(Vi(A.symbolTableKey),J),`Could not find symbol '${A.symbolName}' by key '${A.symbolTableKey}' in module ${J.name}`);return i.set(R,[Z,J]),{symbol:Z,moduleSymbol:J,moduleFileName:F,exportKind:N,targetFlags:P,isFromPackageJson:k}}function d(A,R,N,P){let k=N||"";return`${A.length} ${Ta(xd(R,P))} ${A} ${k}`}function g(A){let R=A.indexOf(" "),N=A.indexOf(" ",R+1),P=parseInt(A.substring(0,R),10),k=A.substring(N+1),F=k.substring(0,P),O=k.substring(P+1);return{symbolName:F,ambientModuleName:O===""?void 0:O}}function _(A){return!A.commonJsModuleIndicator&&!A.externalModuleIndicator&&!A.moduleAugmentations&&!A.ambientModuleNames}function v(A,R){if(!$p(A.ambientModuleNames,R.ambientModuleNames))return!1;let N=-1,P=-1;for(let k of R.ambientModuleNames){let F=O=>iG(O)&&O.name.text===k;if(N=ho(A.statements,F,N+1),P=ho(R.statements,F,P+1),A.statements[N]!==R.statements[P])return!1}return!0}function E(A,R){if(!R||!A.moduleFileName)return!0;let N=e.getGlobalTypingsCacheLocation();if(N&&po(A.moduleFileName,N))return!0;let P=o.get(R);return!P||po(A.moduleFileName,P)}}function dJ(e,t,r,i,o,s,l,u){var d;if(!r){let A,R=hm(i.name);return sD.has(R)&&(A=R7(t,e))!==void 0?A===po(R,"node:"):!s||s.allowsImportingAmbientModule(i,l)||gce(t,R)}if(C.assertIsDefined(r),t===r)return!1;let g=u?.get(t.path,r.path,o,{});if(g?.isBlockedByPackageJsonDependencies!==void 0)return!g.isBlockedByPackageJsonDependencies||!!g.packageName&&gce(t,g.packageName);let _=ay(l),v=(d=l.getGlobalTypingsCacheLocation)==null?void 0:d.call(l),E=!!hy.forEachFileNameOfModule(t.fileName,r.fileName,l,!1,A=>{let R=e.getSourceFile(A);return(R===r||!R)&&Qqe(t.fileName,A,_,v,l)});if(s){let A=E?s.getSourceFileInfo(r,l):void 0;return u?.setBlockedByPackageJsonDependencies(t.path,r.path,o,{},A?.packageName,!A?.importable),!!A?.importable||E&&!!A?.packageName&&gce(t,A.packageName)}return E}function gce(e,t){return e.imports&&e.imports.some(r=>r.text===t||r.text.startsWith(t+"/"))}function Qqe(e,t,r,i,o){let s=O_(o,t,u=>xc(u)==="node_modules"?u:void 0),l=s&&ci(r(s));return l===void 0||po(r(e),l)||!!i&&po(r(i),l)}function uJ(e,t,r,i,o){var s,l;let u=tE(t),d=r.autoImportFileExcludePatterns&&aIe(r,u);sIe(e.getTypeChecker(),e.getSourceFiles(),d,t,(_,v)=>o(_,v,e,!1));let g=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(g){let _=Ls(),v=e.getTypeChecker();sIe(g.getTypeChecker(),g.getSourceFiles(),d,t,(E,A)=>{(A&&!e.getSourceFile(A.fileName)||!A&&!v.resolveName(E.name,void 0,1536,!1))&&o(E,A,g,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Ls()-_}`)}}function aIe(e,t){return Ui(e.autoImportFileExcludePatterns,r=>{let i=MW(r,"","exclude");return i?nv(i,t):void 0})}function sIe(e,t,r,i,o){var s;let l=r&&lIe(r,i);for(let u of e.getAmbientModules())!u.name.includes("*")&&!(r&&((s=u.declarations)!=null&&s.every(d=>l(d.getSourceFile()))))&&o(u,void 0);for(let u of t)Np(u)&&!l?.(u)&&o(e.getMergedSymbol(u.symbol),u)}function lIe(e,t){var r;let i=(r=t.getSymlinkCache)==null?void 0:r.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:o,path:s})=>{if(e.some(l=>l.test(o)))return!0;if(i?.size&&kb(o)){let l=ci(o);return O_(t,ci(s),u=>{let d=i.get(Hc(u));if(d)return d.some(g=>e.some(_=>_.test(o.replace(l,g))));l=ci(l)})??!1}return!1}}function yce(e,t){return t.autoImportFileExcludePatterns?lIe(aIe(t,tE(e)),e):()=>!1}function AO(e,t,r,i,o){var s,l,u,d,g;let _=Ls();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let v=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||cJ({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var A;return(A=t.getPackageJsonAutoImportProvider)==null?void 0:A.call(t)},getGlobalTypingsCacheLocation:()=>{var A;return(A=t.getGlobalTypingsCacheLocation)==null?void 0:A.call(t)}});if(v.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),v;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let E=0;try{uJ(r,t,i,!0,(A,R,N,P)=>{++E%100===0&&o?.throwIfCancellationRequested();let k=new Set,F=N.getTypeChecker(),O=M7(A,F);O&&cIe(O.symbol,F)&&v.add(e.path,O.symbol,O.exportKind===1?"default":"export=",A,R,O.exportKind,P,F),F.forEachExportAndPropertyOfModule(A,(G,j)=>{G!==O?.symbol&&cIe(G,F)&&_m(k,j)&&v.add(e.path,G,j,A,R,0,P,F)})})}catch(A){throw v.clear(),A}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${Ls()-_} ms`),v}function M7(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e){let o=t.tryGetMemberInModuleExports("default",r);return o?{symbol:o,exportKind:1}:{symbol:r,exportKind:2}}let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function cIe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!iM(e)&&!vne(e)}function Zqe(e,t,r){let i;return P7(e,t,r,(o,s)=>(i=s?[o,s]:o,!0)),C.checkDefined(i)}function P7(e,t,r,i){let o,s=e,l=new Set;for(;s;){let u=oJ(s);if(u){let d=i(u);if(d)return d}if(s.escapedName!=="default"&&s.escapedName!=="export="){let d=i(s.name);if(d)return d}if(o=Bn(o,s),!_m(l,s))break;s=s.flags&2097152?t.getImmediateAliasedSymbol(s):void 0}for(let u of o??ae)if(u.parent&&eI(u.parent)){let d=i(TO(u.parent,r,!1),TO(u.parent,r,!0));if(d)return d}}function dIe(){let e=lg(99,!1);function t(i,o,s){return rJe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0,d=[],{prefix:g,pushTemplate:_}=aJe(o);i=g+i;let v=g.length;_&&d.push(16),e.setText(i);let E=0,A=[],R=0;do{l=e.scan(),KR(l)||(N(),u=l);let P=e.getTokenEnd();if(nJe(e.getTokenStart(),P,v,cJe(l),A),P>=i.length){let k=tJe(e,l,Zs(d));k!==void 0&&(E=k)}}while(l!==1);function N(){switch(l){case 44:case 69:!eJe[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:d.push(l);break;case 19:d.length>0&&d.push(l);break;case 20:if(d.length>0){let P=Zs(d);P===16?(l=e.reScanTemplateToken(!1),l===18?d.pop():C.assertEqual(l,17,"Should have been a template middle.")):(C.assertEqual(P,19,"Should have been an open brace"),d.pop())}break;default:if(!Qu(l))break;(u===25||Qu(u)&&Qu(l)&&!oJe(u,l))&&(l=80)}}return{endOfLineState:E,spans:A}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}var eJe=GQ([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function tJe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),o=i.length-1,s=0;for(;i.charCodeAt(o-s)===92;)s++;return(s&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(sb(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return C.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function nJe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);let s=t-e;s>0&&o.push(e-r,s,i)}function rJe(e,t){let r=[],i=e.spans,o=0;for(let l=0;l<i.length;l+=3){let u=i[l],d=i[l+1],g=i[l+2];if(o>=0){let _=u-o;_>0&&r.push({length:_,classification:4})}r.push({length:d,classification:iJe(g)}),o=u+d}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function iJe(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 oJe(e,t){if(!Rq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function aJe(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 C.assertNever(e)}}function sJe(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 lJe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function cJe(e){if(Qu(e))return 3;if(sJe(e)||lJe(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 sb(e)?6:2}}function vce(e,t,r,i,o){return fIe(pJ(e,t,r,i,o))}function uIe(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function pJ(e,t,r,i,o){let s=[];return r.forEachChild(function u(d){if(!(!d||!bL(o,d.pos,d.getFullWidth()))){if(uIe(t,d.kind),He(d)&&!Ol(d)&&i.has(d.escapedText)){let g=e.getSymbolAtLocation(d),_=g&&pIe(g,DE(d),e);_&&l(d.getStart(r),d.getEnd(),_)}d.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,d,g){let _=d-u;C.assert(_>0,`Classification had non-positive length of ${_}`),s.push(u),s.push(_),s.push(g)}}function pIe(e,t,r){let i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&dJe(e)?14:void 0:i&2097152?pIe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function dJe(e){return vt(e.declarations,t=>pc(t)&&my(t)===1)}function uJe(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 fIe(e){C.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:Id(t[i],t[i+1]),classificationType:uJe(t[i+2])});return r}function bce(e,t,r){return fIe(fJ(e,t,r))}function fJ(e,t,r){let i=r.start,o=r.length,s=lg(99,!1,t.languageVariant,t.text),l=lg(99,!1,t.languageVariant,t.text),u=[];return G(t),{spans:u,endOfLineState:0};function d(j,J,Z){u.push(j),u.push(J),u.push(Z)}function g(j){for(s.resetTokenState(j.pos);;){let J=s.getTokenEnd();if(!vee(t.text,J))return J;let Z=s.scan(),q=s.getTokenEnd(),ye=q-J;if(!KR(Z))return J;switch(Z){case 4:case 5:continue;case 2:case 3:_(j,Z,J,ye),s.resetTokenState(q);continue;case 7:let ie=t.text,K=ie.charCodeAt(J);if(K===60||K===62){d(J,ye,1);continue}C.assert(K===124||K===61),N(ie,J,q);break;case 6:break;default:C.assertNever(Z)}}}function _(j,J,Z,q){if(J===3){let ye=roe(t.text,Z,q);if(ye&&ye.jsDoc){us(ye.jsDoc,j),E(ye.jsDoc);return}}else if(J===2&&A(Z,q))return;v(Z,q)}function v(j,J){d(j,J,1)}function E(j){var J,Z,q,ye,ie,K,pe,de;let fe=j.pos;if(j.tags)for(let xe of j.tags){xe.pos!==fe&&v(fe,xe.pos-fe),d(xe.pos,1,10),d(xe.tagName.pos,xe.tagName.end-xe.tagName.pos,18),fe=xe.tagName.end;let Y=xe.tagName.end;switch(xe.kind){case 342:let Ce=xe;ve(Ce),Y=Ce.isNameFirst&&((J=Ce.typeExpression)==null?void 0:J.end)||Ce.name.end;break;case 349:let Xe=xe;Y=Xe.isNameFirst&&((Z=Xe.typeExpression)==null?void 0:Z.end)||Xe.name.end;break;case 346:R(xe),fe=xe.end,Y=xe.typeParameters.end;break;case 347:let Se=xe;Y=((q=Se.typeExpression)==null?void 0:q.kind)===310&&((ye=Se.fullName)==null?void 0:ye.end)||((ie=Se.typeExpression)==null?void 0:ie.end)||Y;break;case 339:Y=xe.typeExpression.end;break;case 345:G(xe.typeExpression),fe=xe.end,Y=xe.typeExpression.end;break;case 344:case 341:Y=xe.typeExpression.end;break;case 343:G(xe.typeExpression),fe=xe.end,Y=((K=xe.typeExpression)==null?void 0:K.end)||Y;break;case 348:Y=((pe=xe.name)==null?void 0:pe.end)||Y;break;case 329:case 330:Y=xe.class.end;break;case 350:G(xe.typeExpression),fe=xe.end,Y=((de=xe.typeExpression)==null?void 0:de.end)||Y;break}typeof xe.comment=="object"?v(xe.comment.pos,xe.comment.end-xe.comment.pos):typeof xe.comment=="string"&&v(Y,xe.end-Y)}fe!==j.end&&v(fe,j.end-fe);return;function ve(xe){xe.isNameFirst&&(v(fe,xe.name.pos-fe),d(xe.name.pos,xe.name.end-xe.name.pos,17),fe=xe.name.end),xe.typeExpression&&(v(fe,xe.typeExpression.pos-fe),G(xe.typeExpression),fe=xe.typeExpression.end),xe.isNameFirst||(v(fe,xe.name.pos-fe),d(xe.name.pos,xe.name.end-xe.name.pos,17),fe=xe.name.end)}}function A(j,J){let Z=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/m,q=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,ye=t.text.substr(j,J),ie=Z.exec(ye);if(!ie||!ie[3]||!(ie[3]in F8))return!1;let K=j;v(K,ie[1].length),K+=ie[1].length,d(K,ie[2].length,10),K+=ie[2].length,d(K,ie[3].length,21),K+=ie[3].length;let pe=ie[4],de=K;for(;;){let ve=q.exec(pe);if(!ve)break;let xe=K+ve.index+ve[1].length;xe>de&&(v(de,xe-de),de=xe),d(de,ve[2].length,22),de+=ve[2].length,ve[3].length&&(v(de,ve[3].length),de+=ve[3].length),d(de,ve[4].length,5),de+=ve[4].length,ve[5].length&&(v(de,ve[5].length),de+=ve[5].length),d(de,ve[6].length,24),de+=ve[6].length}K+=ie[4].length,K>de&&v(de,K-de),ie[5]&&(d(K,ie[5].length,10),K+=ie[5].length);let fe=j+J;return K<fe&&v(K,fe-K),!0}function R(j){for(let J of j.getChildren())G(J)}function N(j,J,Z){let q;for(q=J;q<Z&&!Zd(j.charCodeAt(q));q++);for(d(J,q-J,1),l.resetTokenState(q);l.getTokenEnd()<Z;)P()}function P(){let j=l.getTokenEnd(),J=l.scan(),Z=l.getTokenEnd(),q=O(J);q&&d(j,Z-j,q)}function k(j){if(mh(j)||Ol(j))return!0;let J=F(j);if(!XA(j)&&j.kind!==12&&J===void 0)return!1;let Z=j.kind===12?j.pos:g(j),q=j.end-Z;if(C.assert(q>=0),q>0){let ye=J||O(j.kind,j);ye&&d(Z,q,ye)}return!0}function F(j){switch(j.parent&&j.parent.kind){case 287:if(j.parent.tagName===j)return 19;break;case 288:if(j.parent.tagName===j)return 20;break;case 286:if(j.parent.tagName===j)return 21;break;case 292:if(j.parent.name===j)return 22;break}}function O(j,J){if(Qu(j))return 3;if((j===30||j===32)&&J&&Vle(J.parent))return 10;if(MG(j)){if(J){let Z=J.parent;if(j===64&&(Z.kind===261||Z.kind===173||Z.kind===170||Z.kind===292)||Z.kind===227||Z.kind===225||Z.kind===226||Z.kind===228)return 5}return 10}else{if(j===9)return 4;if(j===10)return 25;if(j===11)return J&&J.parent.kind===292?24:6;if(j===14)return 6;if(sb(j))return 6;if(j===12)return 23;if(j===80){if(J){switch(J.parent.kind){case 264:return J.parent.name===J?11:void 0;case 169:return J.parent.name===J?15:void 0;case 265:return J.parent.name===J?13:void 0;case 267:return J.parent.name===J?12:void 0;case 268:return J.parent.name===J?14:void 0;case 170:return J.parent.name===J?bb(J)?3:17:void 0}if(wm(J.parent))return 3}return 2}}}function G(j){if(j&&TL(i,o,j.pos,j.getFullWidth())){uIe(e,j.kind);for(let J of j.getChildren(t))k(J)||G(J)}}}var L7;(e=>{function t(K,pe,de,fe,ve){let xe=np(de,fe);if(xe.parent&&(ph(xe.parent)&&xe.parent.tagName===xe||k1(xe.parent))){let{openingElement:Y,closingElement:Ce}=xe.parent.parent,Xe=[Y,Ce].map(({tagName:Se})=>r(Se,de));return[{fileName:de.fileName,highlightSpans:Xe}]}return i(fe,xe,K,pe,ve)||o(xe,de)}e.getDocumentHighlights=t;function r(K,pe){return{fileName:pe.fileName,textSpan:Fu(K,pe),kind:"none"}}function i(K,pe,de,fe,ve){let xe=new Set(ve.map(Se=>Se.fileName)),Y=Ys.getReferenceEntriesForNode(K,pe,de,ve,fe,void 0,xe);if(!Y)return;let Ce=oL(Y.map(Ys.toHighlightSpan),Se=>Se.fileName,Se=>Se.span),Xe=Fd(de.useCaseSensitiveFileNames());return Co(nh(Ce.entries(),([Se,re])=>{if(!xe.has(Se)){if(!de.redirectTargetsMap.has(ks(Se,de.getCurrentDirectory(),Xe)))return;let be=de.getSourceFile(Se);Se=hn(ve,Be=>!!Be.redirectInfo&&Be.redirectInfo.redirectTarget===be).fileName,C.assert(xe.has(Se))}return{fileName:Se,highlightSpans:re}}))}function o(K,pe){let de=s(K,pe);return de&&[{fileName:pe.fileName,highlightSpans:de}]}function s(K,pe){switch(K.kind){case 101:case 93:return U0(K.parent)?q(K.parent,pe):void 0;case 107:return fe(K.parent,ef,G);case 111:return fe(K.parent,uj,O);case 113:case 85:case 98:let xe=K.kind===85?K.parent.parent:K.parent;return fe(xe,mE,F);case 109:return fe(K.parent,GM,k);case 84:case 90:return jM(K.parent)||gD(K.parent)?fe(K.parent.parent.parent,GM,k):void 0;case 83:case 88:return fe(K.parent,MN,P);case 99:case 117:case 92:return fe(K.parent,Y=>ub(Y,!0),N);case 137:return de(Ml,[137]);case 139:case 153:return de(db,[139,153]);case 135:return fe(K.parent,Cb,j);case 134:return ve(j(K));case 127:return ve(J(K));case 103:case 147:return;default:return cb(K.kind)&&(rd(K.parent)||ac(K.parent))?ve(E(K.kind,K.parent)):void 0}function de(xe,Y){return fe(K.parent,xe,Ce=>{var Xe;return Ui((Xe=ni(Ce,ah))==null?void 0:Xe.symbol.declarations,Se=>xe(Se)?hn(Se.getChildren(pe),re=>jn(Y,re.kind)):void 0)})}function fe(xe,Y,Ce){return Y(xe)?ve(Ce(xe,pe)):void 0}function ve(xe){return xe&&xe.map(Y=>r(Y,pe))}}function l(K){return uj(K)?[K]:mE(K)?so(K.catchClause?l(K.catchClause):K.tryBlock&&l(K.tryBlock),K.finallyBlock&&l(K.finallyBlock)):Yo(K)?void 0:g(K,l)}function u(K){let pe=K;for(;pe.parent;){let de=pe.parent;if(m1(de)||de.kind===308)return de;if(mE(de)&&de.tryBlock===pe&&de.catchClause)return pe;pe=de}}function d(K){return MN(K)?[K]:Yo(K)?void 0:g(K,d)}function g(K,pe){let de=[];return K.forEachChild(fe=>{let ve=pe(fe);ve!==void 0&&de.push(...VA(ve))}),de}function _(K,pe){let de=v(pe);return!!de&&de===K}function v(K){return Dn(K,pe=>{switch(pe.kind){case 256:if(K.kind===252)return!1;case 249:case 250:case 251:case 248:case 247:return!K.label||ie(pe,K.label.escapedText);default:return Yo(pe)&&"quit"}})}function E(K,pe){return Ui(A(pe,hI(K)),de=>JD(de,K))}function A(K,pe){let de=K.parent;switch(de.kind){case 269:case 308:case 242:case 297:case 298:return pe&64&&Cc(K)?[...K.members,K]:de.statements;case 177:case 175:case 263:return[...de.parameters,...ui(de.parent)?de.parent.members:[]];case 264:case 232:case 265:case 188:let fe=de.members;if(pe&15){let ve=hn(de.members,Ml);if(ve)return[...fe,...ve.parameters]}else if(pe&64)return[...fe,de];return fe;default:return}}function R(K,pe,...de){return pe&&jn(de,pe.kind)?(K.push(pe),!0):!1}function N(K){let pe=[];if(R(pe,K.getFirstToken(),99,117,92)&&K.kind===247){let de=K.getChildren();for(let fe=de.length-1;fe>=0&&!R(pe,de[fe],117);fe--);}return Je(d(K.statement),de=>{_(K,de)&&R(pe,de.getFirstToken(),83,88)}),pe}function P(K){let pe=v(K);if(pe)switch(pe.kind){case 249:case 250:case 251:case 247:case 248:return N(pe);case 256:return k(pe)}}function k(K){let pe=[];return R(pe,K.getFirstToken(),109),Je(K.caseBlock.clauses,de=>{R(pe,de.getFirstToken(),84,90),Je(d(de),fe=>{_(K,fe)&&R(pe,fe.getFirstToken(),83)})}),pe}function F(K,pe){let de=[];if(R(de,K.getFirstToken(),113),K.catchClause&&R(de,K.catchClause.getFirstToken(),85),K.finallyBlock){let fe=Es(K,98,pe);R(de,fe,98)}return de}function O(K,pe){let de=u(K);if(!de)return;let fe=[];return Je(l(de),ve=>{fe.push(Es(ve,111,pe))}),m1(de)&&_b(de,ve=>{fe.push(Es(ve,107,pe))}),fe}function G(K,pe){let de=cf(K);if(!de)return;let fe=[];return _b(ma(de.body,ea),ve=>{fe.push(Es(ve,107,pe))}),Je(l(de.body),ve=>{fe.push(Es(ve,111,pe))}),fe}function j(K){let pe=cf(K);if(!pe)return;let de=[];return pe.modifiers&&pe.modifiers.forEach(fe=>{R(de,fe,134)}),Jo(pe,fe=>{Z(fe,ve=>{Cb(ve)&&R(de,ve.getFirstToken(),135)})}),de}function J(K){let pe=cf(K);if(!pe)return;let de=[];return Jo(pe,fe=>{Z(fe,ve=>{ow(ve)&&R(de,ve.getFirstToken(),127)})}),de}function Z(K,pe){pe(K),!Yo(K)&&!ui(K)&&!gd(K)&&!pc(K)&&!ym(K)&&!Ri(K)&&Jo(K,de=>Z(de,pe))}function q(K,pe){let de=ye(K,pe),fe=[];for(let ve=0;ve<de.length;ve++){if(de[ve].kind===93&&ve<de.length-1){let xe=de[ve],Y=de[ve+1],Ce=!0;for(let Xe=Y.getStart(pe)-1;Xe>=xe.end;Xe--)if(!zh(pe.text.charCodeAt(Xe))){Ce=!1;break}if(Ce){fe.push({fileName:pe.fileName,textSpan:ic(xe.getStart(),Y.end),kind:"reference"}),ve++;continue}}fe.push(r(de[ve],pe))}return fe}function ye(K,pe){let de=[];for(;U0(K.parent)&&K.parent.elseStatement===K;)K=K.parent;for(;;){let fe=K.getChildren(pe);R(de,fe[0],101);for(let ve=fe.length-1;ve>=0&&!R(de,fe[ve],93);ve--);if(!K.elseStatement||!U0(K.elseStatement))break;K=K.elseStatement}return de}function ie(K,pe){return!!Dn(K.parent,de=>Nb(de)?de.label.escapedText===pe:"quit")}})(L7||(L7={}));function IO(e){return!!e.sourceFile}function Tce(e,t,r){return mJ(e,t,r)}function mJ(e,t="",r,i){let o=new Map,s=Fd(!!e);function l(){let P=Co(o.keys()).filter(k=>k&&k.charAt(0)==="_").map(k=>{let F=o.get(k),O=[];return F.forEach((G,j)=>{IO(G)?O.push({name:j,scriptKind:G.sourceFile.scriptKind,refCount:G.languageServiceRefCount}):G.forEach((J,Z)=>O.push({name:j,scriptKind:Z,refCount:J.languageServiceRefCount}))}),O.sort((G,j)=>j.refCount-G.refCount),{bucket:k,sourceFiles:O}});return JSON.stringify(P,void 0,2)}function u(P){return typeof P.getCompilationSettings=="function"?P.getCompilationSettings():P}function d(P,k,F,O,G,j){let J=ks(P,t,s),Z=hJ(u(k));return g(P,J,k,Z,F,O,G,j)}function g(P,k,F,O,G,j,J,Z){return A(P,k,F,O,G,j,!0,J,Z)}function _(P,k,F,O,G,j){let J=ks(P,t,s),Z=hJ(u(k));return v(P,J,k,Z,F,O,G,j)}function v(P,k,F,O,G,j,J,Z){return A(P,k,u(F),O,G,j,!1,J,Z)}function E(P,k){let F=IO(P)?P:P.get(C.checkDefined(k,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return C.assert(k===void 0||!F||F.sourceFile.scriptKind===k,`Script kind should match provided ScriptKind:${k} and sourceFile.scriptKind: ${F?.sourceFile.scriptKind}, !entry: ${!F}`),F}function A(P,k,F,O,G,j,J,Z,q){var ye,ie,K,pe;Z=LW(P,Z);let de=u(F),fe=F===de?void 0:F,ve=Z===6?100:Ga(de),xe=typeof q=="object"?q:{languageVersion:ve,impliedNodeFormat:fe&&Jw(k,(pe=(K=(ie=(ye=fe.getCompilerHost)==null?void 0:ye.call(fe))==null?void 0:ie.getModuleResolutionCache)==null?void 0:K.call(ie))==null?void 0:pe.getPackageJsonInfoCache(),fe,de),setExternalModuleIndicator:Lk(de),jsDocParsingMode:r};xe.languageVersion=ve,C.assertEqual(r,xe.jsDocParsingMode);let Y=o.size,Ce=Sce(O,xe.impliedNodeFormat),Xe=FA(o,Ce,()=>new Map);if(xr){o.size>Y&&xr.instant(xr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:de.configFilePath,key:Ce});let Ne=!ad(k)&&qc(o,(Be,lt)=>lt!==Ce&&Be.has(k)&&lt);Ne&&xr.instant(xr.Phase.Session,"documentRegistryBucketOverlap",{path:k,key1:Ne,key2:Ce})}let Se=Xe.get(k),re=Se&&E(Se,Z);if(!re&&i){let Ne=i.getDocument(Ce,k);Ne&&Ne.scriptKind===Z&&Ne.text===rx(G)&&(C.assert(J),re={sourceFile:Ne,languageServiceRefCount:0},be())}if(re)re.sourceFile.version!==j&&(re.sourceFile=KJ(re.sourceFile,G,j,G.getChangeRange(re.sourceFile.scriptSnapshot)),i&&i.setDocument(Ce,k,re.sourceFile)),J&&re.languageServiceRefCount++;else{let Ne=X7(P,G,xe,j,!1,Z);i&&i.setDocument(Ce,k,Ne),re={sourceFile:Ne,languageServiceRefCount:1},be()}return C.assert(re.languageServiceRefCount!==0),re.sourceFile;function be(){if(!Se)Xe.set(k,re);else if(IO(Se)){let Ne=new Map;Ne.set(Se.sourceFile.scriptKind,Se),Ne.set(Z,re),Xe.set(k,Ne)}else Se.set(Z,re)}}function R(P,k,F,O){let G=ks(P,t,s),j=hJ(k);return N(G,j,F,O)}function N(P,k,F,O){let G=C.checkDefined(o.get(Sce(k,O))),j=G.get(P),J=E(j,F);J.languageServiceRefCount--,C.assert(J.languageServiceRefCount>=0),J.languageServiceRefCount===0&&(IO(j)?G.delete(P):(j.delete(F),j.size===1&&G.set(P,cr(j.values(),Vs))))}return{acquireDocument:d,acquireDocumentWithKey:g,updateDocument:_,updateDocumentWithKey:v,releaseDocument:R,releaseDocumentWithKey:N,getKeyForCompilationSettings:hJ,getDocumentRegistryBucketKeyWithMode:Sce,reportStats:l,getBuckets:()=>o}}function hJ(e){return oU(e,Vj)}function Sce(e,t){return t?`${e}|${t}`:e}function Ece(e,t,r,i,o,s,l){let u=tE(i),d=Fd(u),g=_J(t,r,d,l),_=_J(r,t,d,l);return Rr.ChangeTracker.with({host:i,formatContext:o,preferences:s},v=>{fJe(e,v,g,t,r,i.getCurrentDirectory(),u),mJe(e,v,g,_,i,d)})}function _J(e,t,r,i){let o=r(e);return l=>{let u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),d=s(u?u.fileName:l);return u?d===void 0?void 0:pJe(u.fileName,d,l,r):d};function s(l){if(r(l)===o)return t;let u=TV(l,o,r);return u===void 0?void 0:t+"/"+u}}function pJe(e,t,r,i){let o=SR(e,t,i);return Ace(ci(r),o)}function fJe(e,t,r,i,o,s,l){let{configFile:u}=e.getCompilerOptions();if(!u)return;let d=ci(u.fileName),g=UN(u);if(!g)return;Ice(g,(A,R)=>{switch(R){case"files":case"include":case"exclude":{if(_(A)||R!=="include"||!Cd(A.initializer))return;let P=Ui(A.initializer.elements,F=>ka(F)?F.text:void 0);if(P.length===0)return;let k=PW(d,[],P,l,s);nv(C.checkDefined(k.includeFilePattern),l).test(i)&&!nv(C.checkDefined(k.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Ba(A.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":Ice(A.initializer,(N,P)=>{let k=Hj(P);C.assert(k?.type!=="listOrElement"),k&&(k.isFilePath||k.type==="list"&&k.element.isFilePath)?_(N):P==="paths"&&Ice(N.initializer,F=>{if(Cd(F.initializer))for(let O of F.initializer.elements)v(O)})});return}});function _(A){let R=Cd(A.initializer)?A.initializer.elements:[A.initializer],N=!1;for(let P of R)N=v(P)||N;return N}function v(A){if(!ka(A))return!1;let R=Ace(d,A.text),N=r(R);return N!==void 0?(t.replaceRangeWithText(u,hIe(A,u),E(N)),!0):!1}function E(A){return lf(d,A,!l)}}function mJe(e,t,r,i,o,s){let l=e.getSourceFiles();for(let u of l){let d=r(u.fileName),g=d??u.fileName,_=ci(g),v=i(u.fileName),E=v||u.fileName,A=ci(E),R=d!==void 0||v!==void 0;gJe(u,t,N=>{if(!Qp(N))return;let P=Ace(A,N),k=r(P);return k===void 0?void 0:wS(lf(_,k,s))},N=>{let P=e.getTypeChecker().getSymbolAtLocation(N);if(P?.declarations&&P.declarations.some(F=>gu(F)))return;let k=v!==void 0?mIe(N,SE(N.text,E,e.getCompilerOptions(),o),r,l):_Je(P,N,u,e,o,r);return k!==void 0&&(k.updated||R&&Qp(N.text))?hy.updateModuleSpecifier(e.getCompilerOptions(),u,g,k.newFileName,oT(e,o),N.text):void 0})}}function hJe(e,t){return ya(Qr(e,t))}function Ace(e,t){return wS(hJe(e,t))}function _Je(e,t,r,i,o,s){if(e){let l=hn(e.declarations,Yi).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{let l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t,r):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return mIe(t,u,s,i.getSourceFiles())}}function mIe(e,t,r,i){if(!t)return;if(t.resolvedModule){let d=u(t.resolvedModule.resolvedFileName);if(d)return d}let o=Je(t.failedLookupLocations,s)||Qp(e.text)&&Je(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(d){let g=r(d);return g&&hn(i,_=>_.fileName===g)?l(d):void 0}function l(d){return el(d,"/package.json")?void 0:u(d)}function u(d){let g=r(d);return g&&{newFileName:g,updated:!0}}}function gJe(e,t,r,i){for(let o of e.referencedFiles||ae){let s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(let o of e.imports){let s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,hIe(o,e),s)}}function hIe(e,t){return Ff(e.getStart(t)+1,e.end-1)}function Ice(e,t){if(Wa(e))for(let r of e.properties)Nc(r)&&ka(r.name)&&t(r,r.name.text)}var gJ=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(gJ||{});function wP(e,t){return{kind:e,isCaseSensitive:t}}function xce(e){let t=new Map,r=e.trim().split(".").map(i=>TJe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>wP(2,!0),getFullMatch:()=>wP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>yJe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Rce(i,Ba(r),t),patternContainsDots:r.length>1}}function yJe(e,t,r,i){if(!Rce(t,Ba(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=yIe(s,Rce(e[u],r[l],i));return s}function _Ie(e,t){let r=t.get(e);return r||t.set(e,r=Lce(e)),r}function gIe(e,t,r){let i=SJe(e,t.textLowerCase);if(i===0)return wP(t.text.length===e.length?0:1,po(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=_Ie(e,r);for(let s of o)if(Dce(e,s,t.text,!0))return wP(2,Dce(e,s,t.text,!1));if(t.text.length<e.length&&ZD(e.charCodeAt(i)))return wP(2,!1)}else{if(e.indexOf(t.text)>0)return wP(2,!0);if(t.characterSpans.length>0){let o=_Ie(e,r),s=vIe(e,o,t,!1)?!0:vIe(e,o,t,!0)?!1:void 0;if(s!==void 0)return wP(3,s)}}}function Rce(e,t,r){if(yJ(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=gIe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=yIe(o,gIe(e,s,r));return o}function yIe(e,t){return kz([e,t],vJe)}function vJe(e,t){return e===void 0?1:t===void 0?-1:js(e.kind,t.kind)||E0(!e.isCaseSensitive,!t.isCaseSensitive)}function Dce(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&EIe(0,o.length,s=>bJe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function bJe(e,t,r){return r?Cce(e)===Cce(t):e===t}function vIe(e,t,r,i){let o=r.characterSpans,s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let u=t[s],d=!1;for(;l<o.length;l++){let g=o[l];if(d&&(!ZD(r.text.charCodeAt(o[l-1].start))||!ZD(r.text.charCodeAt(o[l].start)))||!Dce(e,u,r.text,i,g))break;d=!0,u=Id(u.start+g.length,u.length-g.length)}s++}}function TJe(e){return{totalTextChunk:Mce(e),subWordTextChunks:AJe(e)}}function ZD(e){if(e>=65&&e<=90)return!0;if(e<127||!K8(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function bIe(e){if(e>=97&&e<=122)return!0;if(e<127||!K8(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function SJe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(yJ(t,(o,s)=>Cce(e.charCodeAt(s+i))===o))return i;return-1}function Cce(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Nce(e){return e>=48&&e<=57}function EJe(e){return ZD(e)||bIe(e)||Nce(e)||e===95||e===36}function AJe(e){let t=[],r=0,i=0;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);EJe(s)?(i===0&&(r=o),i++):i>0&&(t.push(Mce(e.substr(r,i))),i=0)}return i>0&&t.push(Mce(e.substr(r,i))),t}function Mce(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Pce(e)}}function Pce(e){return TIe(e,!1)}function Lce(e){return TIe(e,!0)}function TIe(e,t){let r=[],i=0;for(let o=1;o<e.length;o++){let s=Nce(e.charCodeAt(o-1)),l=Nce(e.charCodeAt(o)),u=xJe(e,t,o),d=t&&IJe(e,o,i);(kce(e.charCodeAt(o-1))||kce(e.charCodeAt(o))||s!==l||u||d)&&(SIe(e,i,o)||r.push(Id(i,o-i)),i=o)}return SIe(e,i,e.length)||r.push(Id(i,e.length-i)),r}function kce(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 SIe(e,t,r){return yJ(e,i=>kce(i)&&i!==95,t,r)}function IJe(e,t,r){return t!==r&&t+1<e.length&&ZD(e.charCodeAt(t))&&bIe(e.charCodeAt(t+1))&&yJ(e,ZD,r,t)}function xJe(e,t,r){let i=ZD(e.charCodeAt(r-1));return ZD(e.charCodeAt(r))&&(!t||!i)}function EIe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function yJ(e,t,r=0,i=e.length){return EIe(r,i,o=>t(e.charCodeAt(o),o))}function AIe(e,t=!0,r=!1){let i={pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s,l,u,d=0,g=!1;function _(){return l=u,u=yd.scan(),u===19?d++:u===20&&d--,u}function v(){let j=yd.getTokenValue(),J=yd.getTokenStart();return{fileName:j,pos:J,end:J+j.length}}function E(){s||(s=[]),s.push({ref:v(),depth:d})}function A(){o.push(v()),R()}function R(){d===0&&(g=!0)}function N(){let j=yd.getToken();return j===138?(j=_(),j===144&&(j=_(),j===11&&E()),!0):!1}function P(){if(l===25)return!1;let j=yd.getToken();if(j===102){if(j=_(),j===21){if(j=_(),j===11||j===15)return A(),!0}else{if(j===11)return A(),!0;if(j===156&&yd.lookAhead(()=>{let Z=yd.scan();return Z!==161&&(Z===42||Z===19||Z===80||Qu(Z))})&&(j=_()),j===80||Qu(j))if(j=_(),j===161){if(j=_(),j===11)return A(),!0}else if(j===64){if(F(!0))return!0}else if(j===28)j=_();else return!0;if(j===19){for(j=_();j!==20&&j!==1;)j=_();j===20&&(j=_(),j===161&&(j=_(),j===11&&A()))}else j===42&&(j=_(),j===130&&(j=_(),(j===80||Qu(j))&&(j=_(),j===161&&(j=_(),j===11&&A()))))}return!0}return!1}function k(){let j=yd.getToken();if(j===95){if(R(),j=_(),j===156&&yd.lookAhead(()=>{let Z=yd.scan();return Z===42||Z===19})&&(j=_()),j===19){for(j=_();j!==20&&j!==1;)j=_();j===20&&(j=_(),j===161&&(j=_(),j===11&&A()))}else if(j===42)j=_(),j===161&&(j=_(),j===11&&A());else if(j===102&&(j=_(),j===156&&yd.lookAhead(()=>{let Z=yd.scan();return Z===80||Qu(Z)})&&(j=_()),(j===80||Qu(j))&&(j=_(),j===64&&F(!0))))return!0;return!0}return!1}function F(j,J=!1){let Z=j?_():yd.getToken();return Z===149?(Z=_(),Z===21&&(Z=_(),(Z===11||J&&Z===15)&&A()),!0):!1}function O(){let j=yd.getToken();if(j===80&&yd.getTokenValue()==="define"){if(j=_(),j!==21)return!0;if(j=_(),j===11||j===15)if(j=_(),j===28)j=_();else return!0;if(j!==23)return!0;for(j=_();j!==24&&j!==1;)(j===11||j===15)&&A(),j=_();return!0}return!1}function G(){for(yd.setText(e),_();yd.getToken()!==1;){if(yd.getToken()===16){let j=[yd.getToken()];e:for(;et(j);){let J=yd.scan();switch(J){case 1:break e;case 102:P();break;case 16:j.push(J);break;case 19:et(j)&&j.push(J);break;case 20:et(j)&&(Zs(j)===16?yd.reScanTemplateToken(!1)===18&&j.pop():j.pop());break}}_()}N()||P()||k()||r&&(F(!1,!0)||O())||_()}yd.setText(void 0)}if(t&&G(),Wj(i,e),Fj(i,gs),g){if(s)for(let j of s)o.push(j.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let j;if(s)for(let J of s)J.depth===0?(j||(j=[]),j.push(J.ref.fileName)):o.push(J.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:j}}}var RJe=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function wce(e){let t=Fd(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:d,toLineColumnOffset:E,clearCache:A,documentPositionMappers:o};function s(R){return ks(R,r,t)}function l(R,N){let P=s(R),k=o.get(P);if(k)return k;let F;if(e.getDocumentPositionMapper)F=e.getDocumentPositionMapper(R,N);else if(e.readFile){let O=v(R);F=O&&vJ({getSourceFileLike:v,getCanonicalFileName:t,log:G=>e.log(G)},R,CU(O.text,og(O)),G=>!e.fileExists||e.fileExists(G)?e.readFile(G):void 0)}return o.set(P,F||MU),F||MU}function u(R){if(!ad(R.fileName)||!g(R.fileName))return;let P=l(R.fileName).getSourcePosition(R);return!P||P===R?void 0:u(P)||P}function d(R){if(ad(R.fileName))return;let N=g(R.fileName);if(!N)return;let P=e.getProgram();if(P.isSourceOfProjectReferenceRedirect(N.fileName))return;let F=P.getCompilerOptions().outFile,O=F?bu(F)+".d.ts":iW(R.fileName,P.getCompilerOptions(),P);if(O===void 0)return;let G=l(O,R.fileName).getGeneratedPosition(R);return G===R?void 0:G}function g(R){let N=e.getProgram();if(!N)return;let P=s(R),k=N.getSourceFileByPath(P);return k&&k.resolvedPath===P?k:void 0}function _(R){let N=s(R),P=i.get(N);if(P!==void 0)return P||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(N,!1);return}let k=e.readFile(R),F=k?DJe(k):!1;return i.set(N,F),F||void 0}function v(R){return e.getSourceFileLike?e.getSourceFileLike(R):g(R)||_(R)}function E(R,N){return v(R).getLineAndCharacterOfPosition(N)}function A(){i.clear(),o.clear()}}function vJ(e,t,r,i){let o=cae(r);if(o){let u=RJe.exec(o);if(u){if(u[1]){let d=u[1];return IIe(e,Vne(Uc,d),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&To(o,ci(t));for(let u of s){let d=To(u,ci(t)),g=i(d,l);if(Bo(g))return IIe(e,g,d);if(g!==void 0)return g||void 0}}function IIe(e,t,r){let i=dae(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Bo)))return pae(e,i,r)}function DJe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return AR(og(this),r)}}}var Oce=new Map;function bJ(e,t,r){var i;t.getSemanticDiagnostics(e,r);let o=[],s=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||Yl(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Jle(t)||kq(t.getCompilerOptions()))&&CJe(e)&&o.push(Ar(LJe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let u=Mu(e);if(Oce.clear(),d(e),SI(t.getCompilerOptions()))for(let g of e.imports){let _=$N(g);if(Bc(_)&&di(_,32))continue;let v=NJe(_);if(!v)continue;let E=(i=t.getResolvedModuleFromModuleSpecifier(g,e))==null?void 0:i.resolvedModule,A=E&&t.getSourceFile(E.resolvedFileName);A&&A.externalModuleIndicator&&A.externalModuleIndicator!==!0&&ll(A.externalModuleIndicator)&&A.externalModuleIndicator.isExportEquals&&o.push(Ar(v,f.Import_may_be_converted_to_a_default_import))}return Xr(o,e.bindSuggestionDiagnostics),Xr(o,t.getSuggestionDiagnostics(e,r)),o.sort((g,_)=>g.start-_.start),o;function d(g){if(u)wJe(g,s)&&o.push(Ar(yi(g.parent)?g.parent.name:g,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(ac(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){let v=g.declarationList.declarations[0].initializer;v&&$u(v,!0)&&o.push(Ar(v,f.require_call_may_be_converted_to_an_import))}let _=lu.getJSDocTypedefNodes(g);for(let v of _)o.push(Ar(v,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));lu.parameterShouldGetTypeFromJSDoc(g)&&o.push(Ar(g.name||g,f.JSDoc_types_may_be_moved_to_TypeScript_types))}EJ(g)&&MJe(g,s,o),g.forEachChild(d)}}function CJe(e){return e.statements.some(t=>{switch(t.kind){case 244:return t.declarationList.declarations.some(r=>!!r.initializer&&$u(xIe(r.initializer),!0));case 245:{let{expression:r}=t;if(!Nr(r))return $u(r,!0);let i=oc(r);return i===1||i===2}default:return!1}})}function xIe(e){return qr(e)?xIe(e.expression):e}function NJe(e){switch(e.kind){case 273:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===275&&ka(r)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function MJe(e,t,r){PJe(e,t)&&!Oce.has(NIe(e))&&r.push(Ar(!e.name&&yi(e.parent)&&He(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function PJe(e,t){return!nM(e)&&e.body&&ea(e.body)&&kJe(e.body,t)&&TJ(e,t)}function TJ(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function LJe(e){return Nr(e)?e.left:e}function kJe(e,t){return!!_b(e,r=>k7(r,t))}function k7(e,t){return ef(e)&&!!e.expression&&SJ(e.expression,t)}function SJ(e,t){if(!RIe(e)||!DIe(e)||!e.arguments.every(i=>CIe(i,t)))return!1;let r=e.expression.expression;for(;RIe(r)||qr(r);)if(Zo(r)){if(!DIe(r)||!r.arguments.every(i=>CIe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function RIe(e){return Zo(e)&&(oO(e,"then")||oO(e,"catch")||oO(e,"finally"))}function DIe(e){let 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||vt(e.arguments,i=>i.kind===106||He(i)&&i.text==="undefined")}function CIe(e,t){switch(e.kind){case 263:case 219:if(dc(e)&1)return!1;case 220:Oce.set(NIe(e),!0);case 106:return!0;case 80:case 212:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||vt(xd(i,t).declarations,o=>Yo(o)||Yy(o)&&!!o.initializer&&Yo(o.initializer)):!1}default:return!1}}function NIe(e){return`${e.pos.toString()}:${e.end.toString()}`}function wJe(e,t){var r,i,o,s;if(Us(e)){if(yi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Ql(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function EJ(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var OJe=new Set(["isolatedModules"]);function Wce(e,t){return PIe(e,t,!1)}function MIe(e,t){return PIe(e,t,!0)}var WJe=`/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number {}
interface Object {}
interface RegExp {}
interface String {}
interface Array<T> { length: number; [n: number]: T; }
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}`,w7="lib.d.ts",Fce;function PIe(e,t,r){Fce??(Fce=HI(w7,WJe,{languageVersion:99}));let i=[],o=t.compilerOptions?AJ(t.compilerOptions,i):{},s=K7();for(let N in s)Rs(s,N)&&o[N]===void 0&&(o[N]=s[N]);for(let N of poe)o.verbatimModuleSyntax&&OJe.has(N.name)||(o[N.name]=N.transpileOptionValue);o.suppressOutputPathCheck=!0,o.allowNonTsExtensions=!0,r?(o.declaration=!0,o.emitDeclarationOnly=!0,o.isolatedDeclarations=!0):(o.declaration=!1,o.declarationMap=!1);let l=tv(o),u={getSourceFile:N=>N===ya(d)?g:N===ya(w7)?Fce:void 0,writeFile:(N,P)=>{El(N,".map")?(C.assertEqual(v,void 0,"Unexpected multiple source map outputs, file:",N),v=P):(C.assertEqual(_,void 0,"Unexpected multiple outputs, file:",N),_=P)},getDefaultLibFileName:()=>w7,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:N=>N,getCurrentDirectory:()=>"",getNewLine:()=>l,fileExists:N=>N===d||!!r&&N===w7,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),g=HI(d,e,{languageVersion:Ga(o),impliedNodeFormat:Jw(ks(d,"",u.getCanonicalFileName),void 0,u,o),setExternalModuleIndicator:Lk(o),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(g.moduleName=t.moduleName),t.renamedDependencies&&(g.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let _,v,A=Kw(r?[d,w7]:[d],o,u);t.reportDiagnostics&&(Xr(i,A.getSyntacticDiagnostics(g)),Xr(i,A.getOptionsDiagnostics()));let R=A.emit(void 0,void 0,void 0,r,t.transformers,r);return Xr(i,R.diagnostics),_===void 0?C.fail("Output generation failed"):{outputText:_,diagnostics:i,sourceMapText:v}}function LIe(e,t,r,i,o){let s=Wce(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Xr(i,s.diagnostics),s.outputText}var zce;function AJ(e,t){zce=zce||Un(jm,r=>typeof r.type=="object"&&!qc(r.type,i=>typeof i!="number")),e=Dq(e);for(let r of zce){if(!Rs(e,r.name))continue;let i=e[r.name];Bo(i)?e[r.name]=M3(r,i,t):qc(r.type,o=>o===i)||t.push(moe(r))}return e}var Bce={};x(Bce,{getNavigateToItems:()=>kIe});function kIe(e,t,r,i,o,s,l){let u=xce(i);if(!u)return ae;let d=[],g=e.length===1?e[0]:void 0;for(let _ of e)r.throwIfCancellationRequested(),!(s&&_.isDeclarationFile)&&(wIe(_,!!l,g)||_.getNamedDeclarations().forEach((v,E)=>{FJe(u,E,v,t,_.fileName,!!l,g,d)}));return d.sort(VJe),(o===void 0?d:d.slice(0,o)).map(jJe)}function wIe(e,t,r){return e!==r&&t&&(bO(e.path)||e.hasNoDefaultLib)}function FJe(e,t,r,i,o,s,l,u){let d=e.getMatchForLastSegmentOfPattern(t);if(d){for(let g of r)if(zJe(g,i,s,l))if(e.patternContainsDots){let _=e.getFullMatch(GJe(g),t);_&&u.push({name:t,fileName:o,matchKind:_.kind,isCaseSensitive:_.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:g})}}function zJe(e,t,r,i){var o;switch(e.kind){case 274:case 277:case 272:let s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>wIe(u.getSourceFile(),r,i)));default:return!0}}function BJe(e,t){let r=Oo(e);return!!r&&(OIe(r,t)||r.kind===168&&Gce(r.expression,t))}function Gce(e,t){return OIe(e,t)||qr(e)&&(t.push(e.name.text),!0)&&Gce(e.expression,t)}function OIe(e,t){return Hh(e)&&(t.push(Wf(e)),!0)}function GJe(e){let t=[],r=Oo(e);if(r&&r.kind===168&&!Gce(r.expression,t))return ae;t.shift();let i=CE(e);for(;i;){if(!BJe(i,t))return ae;i=CE(i)}return t.reverse(),t}function VJe(e,t){return js(e.matchKind,t.matchKind)||lL(e.name,t.name)}function jJe(e){let t=e.declaration,r=CE(t),i=r&&Oo(r);return{name:e.name,kind:H1(t),kindModifiers:IP(t),matchKind:gJ[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Fu(t),containerName:i?i.text:"",containerKind:i?H1(r):""}}var Vce={};x(Vce,{getNavigationBarItems:()=>FIe,getNavigationTree:()=>zIe});var UJe=/\s+/g,jce=150,IJ,xO,O7=[],mv,WIe=[],eC,Uce=[];function FIe(e,t){IJ=t,xO=e;try{return Vt(XJe(VIe(e)),YJe)}finally{BIe()}}function zIe(e,t){IJ=t,xO=e;try{return $Ie(VIe(e))}finally{BIe()}}function BIe(){xO=void 0,IJ=void 0,O7=[],mv=void 0,Uce=[]}function W7(e){return OP(e.getText(xO))}function xJ(e){return e.node.kind}function GIe(e,t){e.children?e.children.push(t):e.children=[t]}function VIe(e){C.assert(!O7.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};mv=t;for(let r of e.statements)ax(r);return aT(),C.assert(!mv&&!O7.length),t}function K1(e,t){GIe(mv,Hce(e,t))}function Hce(e,t){return{node:e,name:t||(rd(e)||St(e)?Oo(e):void 0),additionalNodes:void 0,parent:mv,children:void 0,indent:mv.indent+1}}function jIe(e){eC||(eC=new Map),eC.set(e,!0)}function UIe(e){for(let t=0;t<e;t++)aT()}function HIe(e,t){let r=[];for(;!Hh(t);){let i=ak(t),o=iy(t);t=t.expression,!(o==="prototype"||eo(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){let o=r[i];X1(e,o)}return[r.length-1,r[0]]}function X1(e,t){let r=Hce(e,t);GIe(mv,r),O7.push(mv),WIe.push(eC),eC=void 0,mv=r}function aT(){mv.children&&(RJ(mv.children,mv),Kce(mv.children)),mv=O7.pop(),eC=WIe.pop()}function sT(e,t,r){X1(e,r),ax(t),aT()}function qIe(e){e.initializer&&QJe(e.initializer)?(X1(e),Jo(e.initializer,ax),aT()):sT(e,e.initializer)}function qce(e){let t=Oo(e);if(t===void 0)return!1;if(va(t)){let r=t.expression;return Ds(r)||ep(r)||df(r)}return!!t}function ax(e){if(IJ.throwIfCancellationRequested(),!(!e||XA(e)))switch(e.kind){case 177:let t=e;sT(t,t.body);for(let l of t.parameters)Dp(l,t)&&K1(l);break;case 175:case 178:case 179:case 174:qce(e)&&sT(e,e.body);break;case 173:qce(e)&&qIe(e);break;case 172:qce(e)&&K1(e);break;case 274:let r=e;r.name&&K1(r.name);let{namedBindings:i}=r;if(i)if(i.kind===275)K1(i);else for(let l of i.elements)K1(l);break;case 305:sT(e,e.name);break;case 306:let{expression:o}=e;He(o)?K1(e,o):K1(e);break;case 209:case 304:case 261:{let l=e;Qo(l.name)?ax(l.name):qIe(l);break}case 263:let s=e.name;s&&He(s)&&jIe(s.text),sT(e,e.body);break;case 220:case 219:sT(e,e.body);break;case 267:X1(e);for(let l of e.members)$Je(l)||K1(l);aT();break;case 264:case 232:case 265:X1(e);for(let l of e.members)ax(l);aT();break;case 268:sT(e,ZIe(e).body);break;case 278:{let l=e.expression,u=Wa(l)||Zo(l)?l:Xs(l)||Us(l)?l.body:void 0;u?(X1(e),ax(u),aT()):K1(e);break}case 282:case 272:case 182:case 180:case 181:case 266:K1(e);break;case 214:case 227:{let l=oc(e);switch(l){case 1:case 2:sT(e,e.right);return;case 6:case 3:{let u=e,d=u.left,g=l===3?d.expression:d,_=0,v;He(g.expression)?(jIe(g.expression.text),v=g.expression):[_,v]=HIe(u,g.expression),l===6?Wa(u.right)&&u.right.properties.length>0&&(X1(u,v),Jo(u.right,ax),aT()):Us(u.right)||Xs(u.right)?sT(e,u.right,v):(X1(u,v),sT(e,u.right,d.name),aT()),UIe(_);return}case 7:case 9:{let u=e,d=l===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[_,v]=HIe(e,d);X1(e,v),X1(e,bt(L.createIdentifier(g.text),g)),ax(e.arguments[2]),aT(),aT(),UIe(_);return}case 5:{let u=e,d=u.left,g=d.expression;if(He(g)&&iy(d)!=="prototype"&&eC&&eC.has(g.text)){Us(u.right)||Xs(u.right)?sT(e,u.right,g):_1(d)&&(X1(u,g),sT(u.left,u.right,ak(d)),aT());return}break}case 4:case 0:case 8:break;default:C.assertNever(l)}}default:Zp(e)&&Je(e.jsDoc,l=>{Je(l.tags,u=>{mm(u)&&K1(u)})}),Jo(e,ax)}}function RJ(e,t){let r=new Map;ul(e,(i,o)=>{let s=i.name||Oo(i.node),l=s&&W7(s);if(!l)return!0;let u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(let d of u)if(JIe(d,i,o,t))return!1;return u.push(i),!0}else{let d=u;return JIe(d,i,o,t)?!1:(r.set(l,[d,i]),!0)}})}var RO={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function HJe(e,t,r,i){function o(u){return Us(u)||Ql(u)||yi(u)}let s=Nr(t.node)||Zo(t.node)?oc(t.node):0,l=Nr(e.node)||Zo(e.node)?oc(e.node):0;if(RO[s]&&RO[l]||o(e.node)&&RO[s]||o(t.node)&&RO[l]||Cc(e.node)&&Jce(e.node)&&RO[s]||Cc(t.node)&&RO[l]||Cc(e.node)&&Jce(e.node)&&o(t.node)||Cc(t.node)&&o(e.node)&&Jce(e.node)){let u=e.additionalNodes&&Zs(e.additionalNodes)||e.node;if(!Cc(e.node)&&!Cc(t.node)||o(e.node)||o(t.node)){let g=o(e.node)?e.node:o(t.node)?t.node:void 0;if(g!==void 0){let _=bt(L.createConstructorDeclaration(void 0,[],void 0),g),v=Hce(_);v.indent=e.indent+1,v.children=e.node===g?e.children:t.children,e.children=e.node===g?so([v],t.children||[t]):so(e.children||[{...e}],[v])}else(e.children||t.children)&&(e.children=so(e.children||[{...e}],t.children||[t]),e.children&&(RJ(e.children,e),Kce(e.children)));u=e.node=bt(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=so(e.children,t.children),e.children&&RJ(e.children,e);let d=t.node;return i.children[r-1].node.end===u.end?bt(u,{pos:u.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(bt(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function JIe(e,t,r,i){return HJe(e,t,r,i)?!0:qJe(e.node,t.node,i)?(JJe(e,t),!0):!1}function qJe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(KIe(e,r)&&KIe(t,r)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return ua(e)===ua(t);case 268:return XIe(e,t)&&$ce(e)===$ce(t);default:return!0}}function Jce(e){return!!(e.flags&16)}function KIe(e,t){if(e.parent===void 0)return!1;let r=e_(e.parent)?e.parent.parent:e.parent;return r===t.node||jn(t.additionalNodes,r)}function XIe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==268||XIe(e.body,t.body))}function JJe(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&&(RJ(e.children,e),Kce(e.children))}function Kce(e){e.sort(KJe)}function KJe(e,t){return lL(YIe(e.node),YIe(t.node))||js(xJ(e),xJ(t))}function YIe(e){if(e.kind===268)return QIe(e);let t=Oo(e);if(t&&bc(t)){let r=eE(t);return r&&Vi(r)}switch(e.kind){case 219:case 220:case 232:return txe(e);default:return}}function Xce(e,t){if(e.kind===268)return OP(QIe(e));if(t){let r=He(t)?t.text:Ws(t)?`[${W7(t.argumentExpression)}]`:W7(t);if(r.length>0)return OP(r)}switch(e.kind){case 308:let r=e;return Gc(r)?`"${L_(xc(bu(ya(r.fileName))))}"`:"<global>";case 278:return ll(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return Zy(e)&2048?"default":txe(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return"<unknown>"}}function XJe(e){let t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(let s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(xJ(o)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(xJ(l.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}function $Ie(e){return{text:Xce(e.node,e.name),kind:H1(e.node),kindModifiers:exe(e.node),spans:Yce(e),nameSpan:e.name&&Qce(e.name),childItems:Vt(e.children,$Ie)}}function YJe(e){return{text:Xce(e.node,e.name),kind:H1(e.node),kindModifiers:exe(e.node),spans:Yce(e),childItems:Vt(e.children,t)||Uce,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:Xce(r.node,r.name),kind:H1(r.node),kindModifiers:IP(r.node),spans:Yce(r),childItems:Uce,indent:0,bolded:!1,grayed:!1}}}function Yce(e){let t=[Qce(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(Qce(r));return t}function QIe(e){return gu(e)?Al(e.name):$ce(e)}function $ce(e){let t=[Wf(e.name)];for(;e.body&&e.body.kind===268;)e=e.body,t.push(Wf(e.name));return t.join(".")}function ZIe(e){return e.body&&pc(e.body)?ZIe(e.body):e}function $Je(e){return!e.name||e.name.kind===168}function Qce(e){return e.kind===308?fv(e):Fu(e,xO)}function exe(e){return e.parent&&e.parent.kind===261&&(e=e.parent),IP(e)}function txe(e){let{parent:t}=e;if(e.name&&WL(e.name)>0)return OP(ws(e.name));if(yi(t))return OP(ws(t.name));if(Nr(t)&&t.operatorToken.kind===64)return W7(t.left).replace(UJe,"");if(Nc(t))return W7(t.name);if(Zy(e)&2048)return"default";if(ui(e))return"<class>";if(Zo(t)){let r=nxe(t.expression);if(r!==void 0){if(r=OP(r),r.length>jce)return`${r} callback`;let i=OP(Ui(t.arguments,o=>cs(o)||QA(o)?o.getText(xO):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function nxe(e){if(He(e))return e.text;if(qr(e)){let t=nxe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function QJe(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}function OP(e){return e=e.length>jce?e.substring(0,jce)+"...":e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var sx={};x(sx,{addExportsInOldFile:()=>cde,addImportsForMovedSymbols:()=>dde,addNewFileToTsconfig:()=>lde,addOrRemoveBracesToArrowFunction:()=>JKe,addTargetFileImports:()=>vde,containsJsx:()=>fde,convertArrowFunctionOrFunctionExpression:()=>QKe,convertParamsToDestructuredObject:()=>cXe,convertStringOrTemplateLiteral:()=>RXe,convertToOptionalChainExpression:()=>WXe,createNewFileName:()=>pde,doChangeNamedToNamespaceOrDefault:()=>lxe,extractSymbol:()=>eRe,generateGetAccessorAndSetAccessor:()=>bYe,getApplicableRefactors:()=>ZJe,getEditsForRefactor:()=>eKe,getExistingLocals:()=>gde,getIdentifierForNode:()=>yde,getNewStatementsAndRemoveFromOldFile:()=>sde,getStatementsToMove:()=>DO,getUsageInfo:()=>F7,inferFunctionReturnType:()=>TYe,isInImport:()=>OJ,isRefactorErrorInfo:()=>gy,refactorKindBeginsWith:()=>lT,registerRefactor:()=>Rg});var Zce=new Map;function Rg(e,t){Zce.set(e,t)}function ZJe(e,t){return Co(sf(Zce.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>lT(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function eKe(e,t,r,i){let o=Zce.get(t);return o&&o.getEditsForAction(e,r,i)}var ede="Convert export",DJ={name:"Convert default export to named export",description:Ho(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},CJ={name:"Convert named export to default export",description:Ho(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};Rg(ede,{kinds:[DJ.kind,CJ.kind],getAvailableActions:function(t){let r=rxe(t,t.triggerReason==="invoked");if(!r)return ae;if(!gy(r)){let i=r.wasDefault?DJ:CJ;return[{name:ede,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:ede,description:Ho(f.Convert_default_export_to_named_export),actions:[{...DJ,notApplicableReason:r.error},{...CJ,notApplicableReason:r.error}]}]:ae},getEditsForAction:function(t,r){C.assert(r===DJ.name||r===CJ.name,"Unexpected action name");let i=rxe(t);return C.assert(i&&!gy(i),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(t,s=>tKe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function rxe(e,t=!0){let{file:r,program:i}=e,o=ix(e),s=Fi(r,o.start),l=s.parent&&Zy(s.parent)&32&&t?s.parent:hO(s,r,o);if(!l||!Yi(l.parent)&&!(e_(l.parent)&&gu(l.parent.parent)))return{error:Ho(f.Could_not_find_export_statement)};let u=i.getTypeChecker(),d=aKe(l.parent,u),g=Zy(l)||(ll(l)&&!l.isExportEquals?2080:0),_=!!(g&2048);if(!(g&32)||!_&&d.exports.has("default"))return{error:Ho(f.This_file_already_has_a_default_export)};let v=E=>He(E)&&u.getSymbolAtLocation(E)?void 0:{error:Ho(f.Can_only_convert_named_export)};switch(l.kind){case 263:case 264:case 265:case 267:case 266:case 268:{let E=l;return E.name?v(E.name)||{exportNode:E,exportName:E.name,wasDefault:_,exportingModuleSymbol:d}:void 0}case 244:{let E=l;if(!(E.declarationList.flags&2)||E.declarationList.declarations.length!==1)return;let A=$a(E.declarationList.declarations);return A.initializer?(C.assert(!_,"Can't have a default flag here"),v(A.name)||{exportNode:E,exportName:A.name,wasDefault:_,exportingModuleSymbol:d}):void 0}case 278:{let E=l;return E.isExportEquals?void 0:v(E.expression)||{exportNode:E,exportName:E.expression,wasDefault:_,exportingModuleSymbol:d}}default:return}}function tKe(e,t,r,i,o){nKe(e,r,i,t.getTypeChecker()),rKe(t,r,i,o)}function nKe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(ll(r)&&!r.isExportEquals){let l=r.expression,u=ixe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([u])))}else o.delete(e,C.checkDefined(JD(r,90),"Should find a default keyword in modifier list"));else{let l=C.checkDefined(JD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 263:case 264:case 265:o.insertNodeAfter(e,l,L.createToken(90));break;case 244:let u=$a(r.declarationList.declarations);if(!Ys.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,L.createExportDefault(C.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:o.deleteModifier(e,l),o.insertNodeAfter(e,r,L.createExportDefault(L.createIdentifier(i.text)));break;default:C.fail(`Unexpected exportNode kind ${r.kind}`)}}}function rKe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),u=C.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Ys.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,d=>{if(r===d)return;let g=d.getSourceFile();t?iKe(g,d,o,r.text):oKe(g,d,o)})}function iKe(e,t,r,i){let{parent:o}=t;switch(o.kind){case 212:r.replaceNode(e,t,L.createIdentifier(i));break;case 277:case 282:{let l=o;r.replaceNode(e,l,tde(i,l.name.text));break}case 274:{let l=o;C.assert(l.name===t,"Import clause name should match provided ref");let u=tde(i,t.text),{namedBindings:d}=l;if(!d)r.replaceNode(e,t,L.createNamedImports([u]));else if(d.kind===275){r.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});let g=ka(l.parent.moduleSpecifier)?Oq(l.parent.moduleSpecifier,e):1,_=zb(void 0,[tde(i,t.text)],l.parent.moduleSpecifier,g);r.insertNodeAfter(e,l.parent,_)}else r.delete(e,t),r.insertNodeAtEndOfList(e,d.elements,u);break}case 206:let s=o;r.replaceNode(e,o,L.createImportTypeNode(s.argument,s.attributes,L.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:C.failBadSyntaxKind(o)}}function oKe(e,t,r){let i=t.parent;switch(i.kind){case 212:r.replaceNode(e,t,L.createIdentifier("default"));break;case 277:{let o=L.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 282:{r.replaceNode(e,i,ixe("default",i.name.text));break}default:C.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function tde(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function ixe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function aKe(e,t){if(Yi(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&f1(r.valueDeclaration)?t.getMergedSymbol(r):r}var nde="Convert import",NJ={0:{name:"Convert namespace import to named imports",description:Ho(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Ho(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Ho(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};Rg(nde,{kinds:GA(NJ).map(e=>e.kind),getAvailableActions:function(t){let r=oxe(t,t.triggerReason==="invoked");if(!r)return ae;if(!gy(r)){let i=NJ[r.convertTo];return[{name:nde,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?GA(NJ).map(i=>({name:nde,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):ae},getEditsForAction:function(t,r){C.assert(vt(GA(NJ),s=>s.name===r),"Unexpected action name");let i=oxe(t);return C.assert(i&&!gy(i),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(t,s=>sKe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}});function oxe(e,t=!0){let{file:r}=e,i=ix(e),o=Fi(r,i.start),s=t?Dn(o,Ip(vl,i_)):hO(o,r,i);if(s===void 0||!(vl(s)||i_(s)))return{error:"Selection is not an import declaration."};let l=i.start+i.length,u=q1(s,s.parent,r);if(u&&l>u.getStart())return;let{importClause:d}=s;return d?d.namedBindings?d.namedBindings.kind===275?{convertTo:0,import:d.namedBindings}:axe(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:Ho(f.Could_not_find_namespace_import_or_named_imports)}:{error:Ho(f.Could_not_find_import_clause)}}function axe(e,t){return SI(e.getCompilerOptions())&&dKe(t.parent.moduleSpecifier,e.getTypeChecker())}function sKe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?lKe(e,o,r,i.import,SI(t.getCompilerOptions())):lxe(e,t,r,i.import,i.convertTo===1)}function lKe(e,t,r,i,o){let s=!1,l=[],u=new Map;Ys.Core.eachSymbolReferenceInFile(i.name,t,e,v=>{if(!PL(v.parent))s=!0;else{let E=sxe(v.parent).text;t.resolveName(E,v,-1,!0)&&u.set(E,!0),C.assert(cKe(v.parent)===v,"Parent expression should match id"),l.push(v.parent)}});let d=new Map;for(let v of l){let E=sxe(v).text,A=d.get(E);A===void 0&&d.set(E,A=u.has(E)?ME(E,e):E),r.replaceNode(e,v,L.createIdentifier(A))}let g=[];d.forEach((v,E)=>{g.push(L.createImportSpecifier(!1,v===E?void 0:L.createIdentifier(E),L.createIdentifier(v)))});let _=i.parent.parent;if(s&&!o&&vl(_))r.insertNodeAfter(e,_,cxe(_,void 0,g));else{let v=s?L.createIdentifier(i.name.text):void 0;r.replaceNode(e,i.parent,dxe(v,g))}}function sxe(e){return qr(e)?e.name:e.right}function cKe(e){return qr(e)?e.expression:e.left}function lxe(e,t,r,i,o=axe(t,i.parent)){let s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,d=new Set;i.elements.forEach(R=>{let N=s.getSymbolAtLocation(R.name);N&&d.add(N)});let g=u&&ka(u)?SO(u.text,99):"module";function _(R){return!!Ys.Core.eachSymbolReferenceInFile(R.name,s,e,N=>{let P=s.resolveName(g,N,-1,!0);return P?d.has(P)?iu(N.parent):!0:!1})}let E=i.elements.some(_)?ME(g,e):g,A=new Set;for(let R of i.elements){let N=R.propertyName||R.name;Ys.Core.eachSymbolReferenceInFile(R.name,s,e,P=>{let k=N.kind===11?L.createElementAccessExpression(L.createIdentifier(E),L.cloneNode(N)):L.createPropertyAccessExpression(L.createIdentifier(E),L.cloneNode(N));Ud(P.parent)?r.replaceNode(e,P.parent,L.createPropertyAssignment(P.text,k)):iu(P.parent)?A.add(R):r.replaceNode(e,P,k)})}if(r.replaceNode(e,i,o?L.createIdentifier(E):L.createNamespaceImport(L.createIdentifier(E))),A.size&&vl(l)){let R=Co(A.values(),N=>L.createImportSpecifier(N.isTypeOnly,N.propertyName&&L.cloneNode(N.propertyName),L.cloneNode(N.name)));r.insertNodeAfter(e,i.parent.parent,cxe(l,void 0,R))}}function dKe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function cxe(e,t,r){return L.createImportDeclaration(void 0,dxe(t,r),e.moduleSpecifier,void 0)}function dxe(e,t){return L.createImportClause(void 0,e,t&&t.length?L.createNamedImports(t):void 0)}var rde="Extract type",MJ={name:"Extract to type alias",description:Ho(f.Extract_to_type_alias),kind:"refactor.extract.type"},PJ={name:"Extract to interface",description:Ho(f.Extract_to_interface),kind:"refactor.extract.interface"},LJ={name:"Extract to typedef",description:Ho(f.Extract_to_typedef),kind:"refactor.extract.typedef"};Rg(rde,{kinds:[MJ.kind,PJ.kind,LJ.kind],getAvailableActions:function(t){let{info:r,affectedTextRange:i}=uxe(t,t.triggerReason==="invoked");return r?gy(r)?t.preferences.provideRefactorNotApplicableReason?[{name:rde,description:Ho(f.Extract_type),actions:[{...LJ,notApplicableReason:r.error},{...MJ,notApplicableReason:r.error},{...PJ,notApplicableReason:r.error}]}]:ae:[{name:rde,description:Ho(f.Extract_type),actions:r.isJS?[LJ]:Bn([MJ],r.typeElements&&PJ)}].map(s=>({...s,actions:s.actions.map(l=>({...l,range:i?{start:{line:ca(t.file,i.pos).line,offset:ca(t.file,i.pos).character},end:{line:ca(t.file,i.end).line,offset:ca(t.file,i.end).character}}:void 0}))})):ae},getEditsForAction:function(t,r){let{file:i}=t,{info:o}=uxe(t);C.assert(o&&!gy(o),"Expected to find a range to extract");let s=ME("NewType",i),l=Rr.ChangeTracker.with(t,g=>{switch(r){case MJ.name:return C.assert(!o.isJS,"Invalid actionName/JS combo"),fKe(g,i,s,o);case LJ.name:return C.assert(o.isJS,"Invalid actionName/JS combo"),hKe(g,t,i,s,o);case PJ.name:return C.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),mKe(g,i,s,o);default:C.fail("Unexpected action name")}}),u=i.fileName,d=gO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:d}}});function uxe(e,t=!0){let{file:r,startPosition:i}=e,o=Mu(r),s=l7(ix(e)),l=s.pos===s.end&&t,u=uKe(r,i,s,l);if(!u||!Ri(u))return{info:{error:Ho(f.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let d=e.program.getTypeChecker(),g=_Ke(u,o);if(g===void 0)return{info:{error:Ho(f.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let _=gKe(u,g);if(!Ri(_))return{info:{error:Ho(f.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let v=[];(sv(_.parent)||WI(_.parent))&&s.end>u.end&&Xr(v,_.parent.types.filter(P=>ZF(P,r,s.pos,s.end)));let E=v.length>1?v:_,{typeParameters:A,affectedTextRange:R}=pKe(d,E,g,r);if(!A)return{info:{error:Ho(f.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let N=kJ(d,E);return{info:{isJS:o,selection:E,enclosingNode:g,typeParameters:A,typeElements:N},affectedTextRange:R}}function uKe(e,t,r,i){let o=[()=>Fi(e,t),()=>HD(e,t,()=>!0)];for(let s of o){let l=s(),u=ZF(l,e,r.pos,r.end),d=Dn(l,g=>g.parent&&Ri(g)&&!Y1(r,g.parent,e)&&(i||u));if(d)return d}}function kJ(e,t){if(t){if(Mo(t)){let r=[];for(let i of t){let o=kJ(e,i);if(!o)return;Xr(r,o)}return r}if(WI(t)){let r=[],i=new Set;for(let o of t.types){let s=kJ(e,o);if(!s||!s.every(l=>l.name&&_m(i,fO(l.name))))return;Xr(r,s)}return r}else{if(dE(t))return kJ(e,t.type);if(ku(t))return t.members}}}function Y1(e,t,r){return lO(e,La(r.text,t.pos),t.end)}function pKe(e,t,r,i){let o=[],s=VA(t),l={pos:s[0].getStart(i),end:s[s.length-1].end};for(let d of s)if(u(d))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:o,affectedTextRange:l};function u(d){if(wp(d)){if(He(d.typeName)){let g=d.typeName,_=e.resolveName(g.text,g,262144,!0);for(let v of _?.declarations||ae)if(sl(v)&&v.getSourceFile()===i){if(v.name.escapedText===g.escapedText&&Y1(v,l,i))return!0;if(Y1(r,v,i)&&!Y1(l,v,i)){Pf(o,v);break}}}}else if(cE(d)){let g=Dn(d,_=>M1(_)&&Y1(_.extendsType,d,i));if(!g||!Y1(l,g,i))return!0}else if(wI(d)||zM(d)){let g=Dn(d.parent,Yo);if(g&&g.type&&Y1(g.type,d,i)&&!Y1(l,g,i))return!0}else if(N1(d)){if(He(d.exprName)){let g=e.resolveName(d.exprName.text,d.exprName,111551,!1);if(g?.valueDeclaration&&Y1(r,g.valueDeclaration,i)&&!Y1(l,g.valueDeclaration,i))return!0}else if(bb(d.exprName.left)&&!Y1(l,d.parent,i))return!0}return i&&OI(d)&&ca(i,d.pos).line===ca(i,d.end).line&&Cr(d,1),Jo(d,u)}}function fKe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:d}=ide(i),g=L.createTypeAliasDeclaration(void 0,r,s.map(_=>L.updateTypeParameterDeclaration(_,_.modifiers,_.name,_.constraint,void 0)),d);e.insertNodeBefore(t,o,ej(g),!0),e.replaceNodeRange(t,l,u,L.createTypeReferenceNode(r,s.map(_=>L.createTypeReferenceNode(_.name,void 0))),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.ExcludeWhitespace})}function mKe(e,t,r,i){var o;let{enclosingNode:s,typeParameters:l,typeElements:u}=i,d=L.createInterfaceDeclaration(void 0,r,l,void 0,u);bt(d,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,ej(d),!0);let{firstTypeNode:g,lastTypeNode:_}=ide(i);e.replaceNodeRange(t,g,_,L.createTypeReferenceNode(r,l.map(v=>L.createTypeReferenceNode(v.name,void 0))),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.ExcludeWhitespace})}function hKe(e,t,r,i,o){var s;VA(o.selection).forEach(R=>{Cr(R,7168)});let{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:d,lastTypeNode:g,newTypeNode:_}=ide(o),v=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(_),L.createIdentifier(i)),E=[];Je(u,R=>{let N=DR(R),P=L.createTypeParameterDeclaration(void 0,R.name),k=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&ma(N,K0),[P]);E.push(k)});let A=L.createJSDocComment(void 0,L.createNodeArray(so(E,[v])));if(mh(l)){let R=l.getStart(r),N=_y(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),A,{suffix:N+N+r.text.slice(_7(r.text,R-1),R)})}else e.insertNodeBefore(r,l,A,!0);e.replaceNodeRange(r,d,g,L.createTypeReferenceNode(i,u.map(R=>L.createTypeReferenceNode(R.name,void 0))))}function ide(e){return Mo(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:sv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function _Ke(e,t){return Dn(e,ji)||(t?Dn(e,mh):void 0)}function gKe(e,t){return Dn(e,r=>r===t?"quit":!!(sv(r.parent)||WI(r.parent)))??e}var wJ="Move to file",ode=Ho(f.Move_to_file),ade={name:"Move to file",description:ode,kind:"refactor.move.file"};Rg(wJ,{kinds:[ade.kind],getAvailableActions:function(t,r){let i=t.file,o=DO(t);if(!r)return ae;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let s=Dn(Fi(i,t.startPosition),ox),l=Dn(Fi(i,t.endPosition),ox);if(s&&!Yi(s)&&l&&!Yi(l))return ae}if(t.preferences.allowTextChangesInNewFiles&&o){let s={start:{line:ca(i,o.all[0].getStart(i)).line,offset:ca(i,o.all[0].getStart(i)).character},end:{line:ca(i,Ba(o.all).end).line,offset:ca(i,Ba(o.all).end).character}};return[{name:wJ,description:ode,actions:[{...ade,range:s}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:wJ,description:ode,actions:[{...ade,notApplicableReason:Ho(f.Selection_is_not_a_valid_statement_or_statements)}]}]:ae},getEditsForAction:function(t,r,i){C.assert(r===wJ,"Wrong refactor invoked");let o=C.checkDefined(DO(t)),{host:s,program:l}=t;C.assert(i,"No interactive refactor arguments available");let u=i.targetFile;return bg(u)||iE(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?pxe(Ho(f.Cannot_move_statements_to_the_selected_file)):{edits:Rr.ChangeTracker.with(t,g=>yKe(t,t.file,i.targetFile,t.program,o,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:pxe(Ho(f.Cannot_move_to_file_selected_file_is_invalid))}});function pxe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function yKe(e,t,r,i,o,s,l,u){let d=i.getTypeChecker(),g=!l.fileExists(r),_=g?N7(r,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,i,l):C.checkDefined(i.getSourceFile(r)),v=lu.createImportAdder(t,e.program,e.preferences,e.host),E=lu.createImportAdder(_,e.program,e.preferences,e.host);sde(t,_,F7(t,o.all,d,g?void 0:gde(_,o.all,d)),s,o,i,l,u,E,v),g&&lde(i,s,t.fileName,r,ay(l))}function sde(e,t,r,i,o,s,l,u,d,g){let _=s.getTypeChecker(),v=Bz(e.statements,jh),E=!lJ(t.fileName,s,l,!!e.commonJsModuleIndicator),A=zp(e,u);dde(r.oldFileImportsFromTargetFile,t.fileName,g,s),bKe(e,o.all,r.unusedImportsFromOldFile,g),g.writeFixes(i,A),vKe(e,o.ranges,i),TKe(i,s,l,e,r.movedSymbols,t.fileName,A),cde(e,r.targetFileImportsFromOldFile,i,E),vde(e,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,_,s,d),!hg(t)&&v.length&&i.insertStatementsInNewFile(t.fileName,v,e),d.writeFixes(i,A);let R=RKe(e,o.all,Co(r.oldFileImportsFromTargetFile.keys()),E);hg(t)&&t.statements.length>0?jKe(i,s,R,t,o):hg(t)?i.insertNodesAtEndOfFile(t,R,!1):i.insertStatementsInNewFile(t.fileName,d.hasFixes()?[4,...R]:R,e)}function lde(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=ya(Qr(r,"..",i)),u=SR(s.fileName,l,o),d=s.statements[0]&&ni(s.statements[0].expression,Wa),g=d&&hn(d.properties,_=>Nc(_)&&ka(_.name)&&_.name.text==="files");g&&Cd(g.initializer)&&t.insertNodeInListAfter(s,Ba(g.initializer.elements),L.createStringLiteral(u),g.initializer.elements)}function vKe(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function bKe(e,t,r,i){for(let o of e.statements)jn(t,o)||mxe(o,s=>{hxe(s,l=>{r.has(l.symbol)&&i.removeExistingImport(l)})})}function cde(e,t,r,i){let o=qD();t.forEach((s,l)=>{if(l.declarations)for(let u of l.declarations){if(!_de(u))continue;let d=wKe(u);if(!d)continue;let g=vxe(u);o(g)&&OKe(e,g,d,r,i)}})}function TKe(e,t,r,i,o,s,l){let u=t.getTypeChecker();for(let d of t.getSourceFiles())if(d!==i)for(let g of d.statements)mxe(g,_=>{if(u.getSymbolAtLocation(IKe(_))!==i.symbol)return;let v=P=>{let k=Ha(P.parent)?m7(u,P.parent):xd(u.getSymbolAtLocation(P),u);return!!k&&o.has(k)};DKe(d,_,e,v);let E=rb(ci(To(i.fileName,t.getCurrentDirectory())),s);if(gR(!t.useCaseSensitiveFileNames())(E,d.fileName)===0)return;let A=hy.getModuleSpecifier(t.getCompilerOptions(),d,d.fileName,E,oT(t,r)),R=PKe(_,RP(A,l),v);R&&e.insertNodeAfter(d,g,R);let N=SKe(_);N&&EKe(e,d,u,o,A,N,_,l)})}function SKe(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===275?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return ni(e.name,He);default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function EKe(e,t,r,i,o,s,l,u){let d=SO(o,99),g=!1,_=[];if(Ys.Core.eachSymbolReferenceInFile(s,r,t,v=>{qr(v.parent)&&(g=g||!!r.resolveName(d,v,-1,!0),i.has(r.getSymbolAtLocation(v.parent.name))&&_.push(v))}),_.length){let v=g?ME(d,t):d;for(let E of _)e.replaceNode(t,E,L.createIdentifier(v));e.insertNodeAfter(t,l,AKe(l,d,o,u))}}function AKe(e,t,r,i){let o=L.createIdentifier(t),s=RP(r,i);switch(e.kind){case 273:return L.createImportDeclaration(void 0,L.createImportClause(void 0,void 0,L.createNamespaceImport(o)),s,void 0);case 272:return L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(s));case 261:return L.createVariableDeclaration(o,void 0,void 0,fxe(s));default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function fxe(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function IKe(e){return e.kind===273?e.moduleSpecifier:e.kind===272?e.moduleReference.expression:e.initializer.arguments[0]}function mxe(e,t){if(vl(e))ka(e.moduleSpecifier)&&t(e);else if(Bc(e))uy(e.moduleReference)&&cs(e.moduleReference.expression)&&t(e);else if(ac(e))for(let r of e.declarationList.declarations)r.initializer&&$u(r.initializer,!0)&&t(r)}function hxe(e,t){var r,i,o,s,l;if(e.kind===273){if((r=e.importClause)!=null&&r.name&&t(e.importClause),((o=(i=e.importClause)==null?void 0:i.namedBindings)==null?void 0:o.kind)===275&&t(e.importClause.namedBindings),((l=(s=e.importClause)==null?void 0:s.namedBindings)==null?void 0:l.kind)===276)for(let u of e.importClause.namedBindings.elements)t(u)}else if(e.kind===272)t(e);else if(e.kind===261){if(e.name.kind===80)t(e);else if(e.name.kind===207)for(let u of e.name.elements)He(u.name)&&t(u)}}function dde(e,t,r,i){for(let[o,s]of e){let l=I7(o,Ga(i.getCompilerOptions())),u=o.name==="default"&&o.parent?1:0;r.addImportForNonExistentExport(l,t,u,o.flags,s)}}function xKe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function RKe(e,t,r,i){return Ki(t,o=>{if(gxe(o)&&!_xe(e,o,i)&&hde(o,s=>{var l;return r.includes(C.checkDefined((l=ni(s,ah))==null?void 0:l.symbol))})){let s=CKe(_s(o),i);if(s)return s}return _s(o)})}function _xe(e,t,r,i){var o;return r?!od(t)&&di(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&ude(t).some(s=>e.symbol.exports.has(Cl(s)))}function DKe(e,t,r,i){if(t.kind===273&&t.importClause){let{name:o,namedBindings:s}=t.importClause;if((!o||i(o))&&(!s||s.kind===276&&s.elements.length!==0&&s.elements.every(l=>i(l.name))))return r.delete(e,t)}hxe(t,o=>{o.name&&He(o.name)&&i(o.name)&&r.delete(e,o)})}function gxe(e){return C.assert(Yi(e.parent),"Node parent should be a SourceFile"),Sxe(e)||ac(e)}function CKe(e,t){return t?[NKe(e)]:MKe(e)}function NKe(e){let t=bm(e)?so([L.createModifier(95)],a1(e)):void 0;switch(e.kind){case 263:return L.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:let r=F1(e)?ob(e):void 0;return L.updateClassDeclaration(e,so(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return L.updateVariableStatement(e,t,e.declarationList);case 268:return L.updateModuleDeclaration(e,t,e.name,e.body);case 267:return L.updateEnumDeclaration(e,t,e.name,e.members);case 266:return L.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 265:return L.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return L.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 245:return C.fail();default:return C.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function MKe(e){return[e,...ude(e).map(yxe)]}function yxe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function ude(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return Ui(e.declarationList.declarations,t=>He(t.name)?t.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return ae;case 245:return C.fail("Can't export an ExpressionStatement");default:return C.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function PKe(e,t,r){switch(e.kind){case 273:{let i=e.importClause;if(!i)return;let o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&LKe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.phaseModifier,o,s),_s(t),void 0):void 0}case 272:return r(e.name)?e:void 0;case 261:{let i=kKe(e.name,r);return i?xKe(i,e.type,fxe(t),e.parent.flags):void 0}default:return C.assertNever(e,`Unexpected import kind ${e.kind}`)}}function LKe(e,t){if(e.kind===275)return t(e.name)?e:void 0;{let r=e.elements.filter(i=>t(i.name));return r.length?L.createNamedImports(r):void 0}}function kKe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 208:return e;case 207:{let r=e.elements.filter(i=>i.propertyName||!He(i.name)||t(i.name));return r.length?L.createObjectBindingPattern(r):void 0}}}function wKe(e){return od(e)?ni(e.expression.left.name,He):ni(e.name,He)}function vxe(e){switch(e.kind){case 261:return e.parent.parent;case 209:return vxe(ma(e.parent.parent,t=>yi(t)||Ha(t)));default:return e}}function OKe(e,t,r,i,o){if(!_xe(e,t,o,r))if(o)od(t)||i.insertExportModifier(e,t);else{let s=ude(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(yxe))}}function pde(e,t,r,i){let o=t.getTypeChecker();if(i){let s=F7(e,i.all,o),l=ci(e.fileName),u=TM(e.fileName);return Qr(l,BKe(GKe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function WKe(e){let{file:t}=e,r=l7(ix(e)),{statements:i}=t,o=ho(i,g=>g.end>r.pos);if(o===-1)return;let s=i[o],l=Exe(t,s);l&&(o=l.start);let u=ho(i,g=>g.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;let d=Exe(t,i[u]);return d&&(u=d.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function DO(e){let t=WKe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return Sz(o,FKe,(l,u)=>{for(let d=l;d<u;d++)r.push(o[d]);i.push({first:o[l],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function fde(e){return hn(e,t=>!!(t.transformFlags&2))}function FKe(e){return!zKe(e)&&!jh(e)}function zKe(e){switch(e.kind){case 273:return!0;case 272:return!di(e,32);case 244:return e.declarationList.declarations.every(t=>!!t.initializer&&$u(t.initializer,!0));default:return!1}}function F7(e,t,r,i=new Set,o){var s;let l=new Set,u=new Map,d=new Map,g=E(fde(t));g&&u.set(g,[!1,ni((s=g.declarations)==null?void 0:s[0],A=>Su(A)||Gm(A)||Ag(A)||Bc(A)||Ha(A)||yi(A))]);for(let A of t)hde(A,R=>{l.add(C.checkDefined(od(R)?r.getSymbolAtLocation(R.expression.left):R.symbol,"Need a symbol here"))});let _=new Set;for(let A of t)mde(A,r,o,(R,N)=>{if(!vt(R.declarations))return;if(i.has(xd(R,r))){_.add(R);return}let P=hn(R.declarations,OJ);if(P){let k=u.get(R);u.set(R,[(k===void 0||k)&&N,ni(P,F=>Su(F)||Gm(F)||Ag(F)||Bc(F)||Ha(F)||yi(F))])}else!l.has(R)&&Vn(R.declarations,k=>_de(k)&&VKe(k)===e)&&d.set(R,N)});for(let A of u.keys())_.add(A);let v=new Map;for(let A of e.statements)jn(t,A)||(g&&A.transformFlags&2&&_.delete(g),mde(A,r,o,(R,N)=>{l.has(R)&&v.set(R,N),_.delete(R)}));return{movedSymbols:l,targetFileImportsFromOldFile:d,oldFileImportsFromTargetFile:v,oldImportsNeededByTargetFile:u,unusedImportsFromOldFile:_};function E(A){if(A===void 0)return;let R=r.getJsxNamespace(A),N=r.resolveName(R,A,1920,!0);return N&&vt(N.declarations,OJ)?N:void 0}}function BKe(e,t,r,i){let o=e;for(let s=1;;s++){let l=Qr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function GKe(e,t){return pg(e,Fq)||pg(t,Fq)||"newFile"}function mde(e,t,r,i){e.forEachChild(function o(s){if(He(s)&&!P_(s)){if(r&&!Zu(r,s))return;let l=t.getSymbolAtLocation(s);l&&i(l,F0(s))}else s.forEachChild(o)})}function hde(e,t){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return t(e);case 244:return Hn(e.declarationList.declarations,r=>Txe(r.name,t));case 245:{let{expression:r}=e;return Nr(r)&&oc(r)===1?t(e):void 0}}}function OJ(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return bxe(e);case 209:return yi(e.parent.parent)&&bxe(e.parent.parent);default:return!1}}function bxe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&$u(e.initializer,!0)}function _de(e){return Sxe(e)&&Yi(e.parent)||yi(e)&&Yi(e.parent.parent.parent)}function VKe(e){return yi(e)?e.parent.parent.parent:e.parent}function Txe(e,t){switch(e.kind){case 80:return t(ma(e.parent,r=>yi(r)||Ha(r)));case 208:case 207:return Hn(e.elements,r=>Kc(r)?void 0:Txe(r.name,t));default:return C.assertNever(e,`Unexpected name kind ${e.kind}`)}}function Sxe(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function jKe(e,t,r,i,o){var s;let l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){let g=t.getTypeChecker(),_=new Map;for(let v of o.all)gxe(v)&&di(v,32)&&hde(v,E=>{var A;let R=ah(E)?(A=u.get(E.symbol.escapedName))==null?void 0:A.declarations:void 0,N=Hn(R,P=>fc(P)?P:iu(P)?ni(P.parent.parent,fc):void 0);N&&N.moduleSpecifier&&_.set(N,(_.get(N)||new Set).add(E))});for(let[v,E]of Co(_))if(v.exportClause&&Hf(v.exportClause)&&et(v.exportClause.elements)){let A=v.exportClause.elements,R=Un(A,N=>hn(xd(N.symbol,g).declarations,P=>_de(P)&&E.has(P))===void 0);if(et(R)===0){e.deleteNode(i,v),l.add(v);continue}et(R)<et(A)&&e.replaceNode(i,v,L.updateExportDeclaration(v,v.modifiers,v.isTypeOnly,L.updateNamedExports(v.exportClause,L.createNodeArray(R,A.hasTrailingComma)),v.moduleSpecifier,v.attributes))}}let d=ga(i.statements,g=>fc(g)&&!!g.moduleSpecifier&&!l.has(g));d?e.insertNodesBefore(i,d,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function Exe(e,t){if(Ms(t)){let r=t.symbol.declarations;if(r===void 0||et(r)<=1||!jn(r,t))return;let i=r[0],o=r[et(r)-1],s=Ui(r,d=>Wn(d)===e&&ji(d)?d:void 0),l=ho(e.statements,d=>d.end>=o.end),u=ho(e.statements,d=>d.end>=i.end);return{toMove:s,start:u,end:l}}}function gde(e,t,r){let i=new Set;for(let o of e.imports){let s=$N(o);if(vl(s)&&s.importClause&&s.importClause.namedBindings&&t_(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(xd(u,r))}if(tk(s.parent)&&pf(s.parent.name))for(let l of s.parent.name.elements){let u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(xd(u,r))}}for(let o of t)mde(o,r,void 0,s=>{let l=xd(s,r);l.valueDeclaration&&Wn(l.valueDeclaration).path===e.path&&i.add(l)});return i}function gy(e){return e.error!==void 0}function lT(e,t){return t?e.substr(0,t.length)===t:!0}function yde(e,t,r,i){return qr(e)&&!ui(t)&&!r.resolveName(e.name.text,e,111551,!1)&&!eo(e.name)&&!FS(e.name)?e.name.text:ME(ui(t)?"newProperty":"newLocal",i)}function vde(e,t,r,i,o,s){t.forEach(([l,u],d)=>{var g;let _=xd(d,i);i.isUnknownSymbol(_)?s.addVerbatimImport(C.checkDefined(u??Dn((g=d.declarations)==null?void 0:g[0],wte))):_.parent===void 0?(C.assert(u!==void 0,"expected module symbol to have a declaration"),s.addImportForModuleSymbol(d,l,u)):s.addImportFromExportedSymbol(_,l,u)}),dde(r,e.fileName,s,o)}var z7="Inline variable",bde=Ho(f.Inline_variable),Tde={name:z7,description:bde,kind:"refactor.inline.variable"};Rg(z7,{kinds:[Tde.kind],getAvailableActions(e){let{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=Axe(t,o,s==="invoked",r);return l?sx.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:z7,description:bde,actions:[{...Tde,notApplicableReason:l.error}]}]:ae:[{name:z7,description:bde,actions:[Tde]}]:ae},getEditsForAction(e,t){C.assert(t===z7,"Unexpected refactor invoked");let{file:r,program:i,startPosition:o}=e,s=Axe(r,o,!0,i);if(!s||sx.isRefactorErrorInfo(s))return;let{references:l,declaration:u,replacement:d}=s;return{edits:Rr.ChangeTracker.with(e,_=>{for(let v of l){let E=ka(d)&&He(v)&&Fm(v.parent);E&&hD(E)&&!V0(E.parent.parent)?HKe(_,r,E,d):_.replaceNode(r,v,UKe(v,d))}_.delete(r,u)})}}});function Axe(e,t,r,i){var o,s;let l=i.getTypeChecker(),u=np(e,t),d=u.parent;if(He(u)){if(Mk(d)&&jN(d)&&He(d.name)){if(((o=l.getMergedSymbol(d.symbol).declarations)==null?void 0:o.length)!==1)return{error:Ho(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(Ixe(d))return;let g=xxe(d,l,e);return g&&{references:g,declaration:d,replacement:d.initializer}}if(r){let g=l.resolveName(u.text,u,111551,!1);if(g=g&&l.getMergedSymbol(g),((s=g?.declarations)==null?void 0:s.length)!==1)return{error:Ho(f.Variables_with_multiple_declarations_cannot_be_inlined)};let _=g.declarations[0];if(!Mk(_)||!jN(_)||!He(_.name)||Ixe(_))return;let v=xxe(_,l,e);return v&&{references:v,declaration:_,replacement:_.initializer}}return{error:Ho(f.Could_not_find_variable_to_inline)}}}function Ixe(e){let t=ma(e.parent.parent,ac);return vt(t.modifiers,PI)}function xxe(e,t,r){let i=[],o=Ys.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ys.isWriteAccessForReference(s)&&!Ud(s.parent)||iu(s.parent)||ll(s.parent)||N1(s.parent)||vL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function UKe(e,t){t=_s(t);let{parent:r}=e;return St(r)&&(oM(t)<oM(r)||g7(r))||Yo(t)&&(c1(r)||qr(r))||qr(r)&&(ep(t)||Wa(t))?L.createParenthesizedExpression(t):He(e)&&Ud(r)?L.createPropertyAssignment(e,t):t}function HKe(e,t,r,i){let o=r.parent,s=o.templateSpans.indexOf(r),l=s===0?o.head:o.templateSpans[s-1];e.replaceRangeWithText(t,{pos:l.getEnd()-2,end:r.literal.getStart()+1},i.text.replace(/\\/g,"\\\\").replace(/`/g,"\\`"))}var B7="Move to a new file",Sde=Ho(f.Move_to_a_new_file),Ede={name:B7,description:Sde,kind:"refactor.move.newFile"};Rg(B7,{kinds:[Ede.kind],getAvailableActions:function(t){let r=DO(t),i=t.file;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let o=Dn(Fi(i,t.startPosition),ox),s=Dn(Fi(i,t.endPosition),ox);if(o&&!Yi(o)&&s&&!Yi(s))return ae}if(t.preferences.allowTextChangesInNewFiles&&r){let o=t.file,s={start:{line:ca(o,r.all[0].getStart(o)).line,offset:ca(o,r.all[0].getStart(o)).character},end:{line:ca(o,Ba(r.all).end).line,offset:ca(o,Ba(r.all).end).character}};return[{name:B7,description:Sde,actions:[{...Ede,range:s}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:B7,description:Sde,actions:[{...Ede,notApplicableReason:Ho(f.Selection_is_not_a_valid_statement_or_statements)}]}]:ae},getEditsForAction:function(t,r){C.assert(r===B7,"Wrong refactor invoked");let i=C.checkDefined(DO(t));return{edits:Rr.ChangeTracker.with(t,s=>qKe(t.file,t.program,i,s,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function qKe(e,t,r,i,o,s,l){let u=t.getTypeChecker(),d=F7(e,r.all,u),g=pde(e,t,o,r),_=N7(g,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,o),v=lu.createImportAdder(e,s.program,s.preferences,s.host),E=lu.createImportAdder(_,s.program,s.preferences,s.host);sde(e,_,d,i,r,t,o,l,E,v),lde(t,i,e.fileName,g,ay(o))}var JKe={},Ade="Convert overload list to single signature",Rxe=Ho(f.Convert_overload_list_to_single_signature),Dxe={name:Ade,description:Rxe,kind:"refactor.rewrite.function.overloadList"};Rg(Ade,{kinds:[Dxe.kind],getEditsForAction:XKe,getAvailableActions:KKe});function KKe(e){let{file:t,startPosition:r,program:i}=e;return Nxe(t,r,i)?[{name:Ade,description:Rxe,actions:[Dxe]}]:ae}function XKe(e){let{file:t,startPosition:r,program:i}=e,o=Nxe(t,r,i);if(!o)return;let s=i.getTypeChecker(),l=o[o.length-1],u=l;switch(l.kind){case 174:{u=L.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,g(o),l.type);break}case 175:{u=L.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,g(o),l.type,l.body);break}case 180:{u=L.updateCallSignature(l,l.typeParameters,g(o),l.type);break}case 177:{u=L.updateConstructorDeclaration(l,l.modifiers,g(o),l.body);break}case 181:{u=L.updateConstructSignature(l,l.typeParameters,g(o),l.type);break}case 263:{u=L.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,g(o),l.type,l.body);break}default:return C.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],u)})};function g(E){let A=E[E.length-1];return Ms(A)&&A.body&&(E=E.slice(0,E.length-1)),L.createNodeArray([L.createParameterDeclaration(void 0,L.createToken(26),"args",void 0,L.createUnionTypeNode(Vt(E,_)))])}function _(E){let A=Vt(E.parameters,v);return Cr(L.createTupleTypeNode(A),vt(A,R=>!!et(lD(R)))?0:1)}function v(E){C.assert(He(E.name));let A=bt(L.createNamedTupleMember(E.dotDotDotToken,E.name,E.questionToken,E.type||L.createKeywordTypeNode(133)),E),R=E.symbol&&E.symbol.getDocumentationComment(s);if(R){let N=MO(R);N.length&&B0(A,[{text:`*
${N.split(`
`).map(P=>` * ${P}`).join(`
`)}
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return A}}function Cxe(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function Nxe(e,t,r){let i=Fi(e,t),o=Dn(i,Cxe);if(!o||Ms(o)&&o.body&&UD(o.body,t))return;let s=r.getTypeChecker(),l=o.symbol;if(!l)return;let u=l.declarations;if(et(u)<=1||!Vn(u,E=>Wn(E)===e)||!Cxe(u[0]))return;let d=u[0].kind;if(!Vn(u,E=>E.kind===d))return;let g=u;if(vt(g,E=>!!E.typeParameters||vt(E.parameters,A=>!!A.modifiers||!He(A.name))))return;let _=Ui(g,E=>s.getSignatureFromDeclaration(E));if(et(_)!==et(u))return;let v=s.getReturnTypeOfSignature(_[0]);if(Vn(_,E=>s.getReturnTypeOfSignature(E)===v))return g}var Ide="Add or remove braces in an arrow function",Mxe=Ho(f.Add_or_remove_braces_in_an_arrow_function),WJ={name:"Add braces to arrow function",description:Ho(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},G7={name:"Remove braces from arrow function",description:Ho(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};Rg(Ide,{kinds:[G7.kind],getEditsForAction:$Ke,getAvailableActions:YKe});function YKe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=Pxe(t,r,i==="invoked");return o?gy(o)?e.preferences.provideRefactorNotApplicableReason?[{name:Ide,description:Mxe,actions:[{...WJ,notApplicableReason:o.error},{...G7,notApplicableReason:o.error}]}]:ae:[{name:Ide,description:Mxe,actions:[o.addBraces?WJ:G7]}]:ae}function $Ke(e,t){let{file:r,startPosition:i}=e,o=Pxe(r,i);C.assert(o&&!gy(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:u}=o,d;if(t===WJ.name){let _=L.createReturnStatement(s);d=L.createBlock([_],!0),YD(s,_,r,3,!0)}else if(t===G7.name&&l){let _=s||L.createVoidZero();d=g7(_)?L.createParenthesizedExpression(_):_,yO(l,d,r,3,!1),YD(l,d,r,3,!1),MP(l,d,r,3,!1)}else C.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,_=>{_.replaceNode(r,u.body,d)})}}function Pxe(e,t,r=!0,i){let o=Fi(e,t),s=cf(o);if(!s)return{error:Ho(f.Could_not_find_a_containing_arrow_function)};if(!Xs(s))return{error:Ho(f.Containing_function_is_not_an_arrow_function)};if(!(!Zu(s,o)||Zu(s.body,o)&&!r)){if(lT(WJ.kind,i)&&St(s.body))return{func:s,addBraces:!0,expression:s.body};if(lT(G7.kind,i)&&ea(s.body)&&s.body.statements.length===1){let l=$a(s.body.statements);if(ef(l)){let u=l.expression&&Wa(nD(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var QKe={},Lxe="Convert arrow function or function expression",ZKe=Ho(f.Convert_arrow_function_or_function_expression),V7={name:"Convert to anonymous function",description:Ho(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},j7={name:"Convert to named function",description:Ho(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},U7={name:"Convert to arrow function",description:Ho(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};Rg(Lxe,{kinds:[V7.kind,j7.kind,U7.kind],getEditsForAction:tXe,getAvailableActions:eXe});function eXe(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=wxe(t,r,i);if(!s)return ae;let{selectedVariableDeclaration:l,func:u}=s,d=[],g=[];if(lT(j7.kind,o)){let _=l||Xs(u)&&yi(u.parent)?void 0:Ho(f.Could_not_convert_to_named_function);_?g.push({...j7,notApplicableReason:_}):d.push(j7)}if(lT(V7.kind,o)){let _=!l&&Xs(u)?void 0:Ho(f.Could_not_convert_to_anonymous_function);_?g.push({...V7,notApplicableReason:_}):d.push(V7)}if(lT(U7.kind,o)){let _=Us(u)?void 0:Ho(f.Could_not_convert_to_arrow_function);_?g.push({...U7,notApplicableReason:_}):d.push(U7)}return[{name:Lxe,description:ZKe,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?g:d}]}function tXe(e,t){let{file:r,startPosition:i,program:o}=e,s=wxe(r,i,o);if(!s)return;let{func:l}=s,u=[];switch(t){case V7.name:u.push(...oXe(e,l));break;case j7.name:let d=iXe(l);if(!d)return;u.push(...aXe(e,l,d));break;case U7.name:if(!Us(l))return;u.push(...sXe(e,l));break;default:return C.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function kxe(e){let t=!1;return e.forEachChild(function r(i){if(jD(i)){t=!0;return}!ui(i)&&!Ql(i)&&!Us(i)&&Jo(i,r)}),t}function wxe(e,t,r){let i=Fi(e,t),o=r.getTypeChecker(),s=rXe(e,o,i.parent);if(s&&!kxe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=cf(i);if(l&&(Us(l)||Xs(l))&&!Zu(l.body,i)&&!kxe(l.body)&&!o.containsArgumentsReference(l))return Us(l)&&Wxe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function nXe(e){return yi(e)||_d(e)&&e.declarations.length===1}function rXe(e,t,r){if(!nXe(r))return;let o=(yi(r)?r:$a(r.declarations)).initializer;if(o&&(Xs(o)||Us(o)&&!Wxe(e,t,o)))return o}function Oxe(e){if(St(e)){let t=L.createReturnStatement(e),r=e.getSourceFile();return bt(t,e),kp(t),yO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function iXe(e){let t=e.parent;if(!yi(t)||!jN(t))return;let r=t.parent,i=r.parent;if(!(!_d(r)||!ac(i)||!He(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function oXe(e,t){let{file:r}=e,i=Oxe(t.body),o=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return Rr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function aXe(e,t,r){let{file:i}=e,o=Oxe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:d}=r;JV(u);let g=I0(s)&32|Gd(t),_=L.createModifiersFromModifierFlags(g),v=L.createFunctionDeclaration(et(_)?_:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?Rr.ChangeTracker.with(e,E=>E.replaceNode(i,u,v)):Rr.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,u,v)})}function sXe(e,t){let{file:r}=e,o=t.body.statements[0],s;lXe(t.body,o)?(s=o.expression,kp(s),NE(o,s)):s=t.body;let l=L.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,L.createToken(39),s);return Rr.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function lXe(e,t){return e.statements.length===1&&ef(t)&&!!t.expression}function Wxe(e,t,r){return!!r.name&&Ys.Core.isSymbolReferencedInFile(r.name,t,e)}var cXe={},FJ="Convert parameters to destructured object",dXe=1,Fxe=Ho(f.Convert_parameters_to_destructured_object),zxe={name:FJ,description:Fxe,kind:"refactor.rewrite.parameters.toDestructured"};Rg(FJ,{kinds:[zxe.kind],getEditsForAction:pXe,getAvailableActions:uXe});function uXe(e){let{file:t,startPosition:r}=e;return Mu(t)||!Vxe(t,r,e.program.getTypeChecker())?ae:[{name:FJ,description:Fxe,actions:[zxe]}]}function pXe(e,t){C.assert(t===FJ,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=Vxe(r,i,o.getTypeChecker());if(!u||!s)return;let d=mXe(u,o,s);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,_=>fXe(r,o,l,_,u,d))}:{edits:[]}}function fXe(e,t,r,i,o,s){let l=s.signature,u=Vt(qxe(o,t,r),_=>_s(_));if(l){let _=Vt(qxe(l,t,r),v=>_s(v));g(l,_)}g(o,u);let d=dN(s.functionCalls,(_,v)=>js(_.pos,v.pos));for(let _ of d)if(_.arguments&&_.arguments.length){let v=_s(AXe(o,_.arguments),!0);i.replaceNodeRange(Wn(_),$a(_.arguments),Ba(_.arguments),v,{leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include})}function g(_,v){i.replaceNodeRangeWithNodes(e,$a(_.parameters),Ba(_.parameters),v,{joiner:", ",indentation:0,leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include})}}function mXe(e,t,r){let i=xXe(e),o=Ml(e)?IXe(e):[],s=t1([...i,...o],Zv),l=t.getTypeChecker(),u=Ki(s,v=>Ys.getReferenceEntriesForNode(-1,v,t,t.getSourceFiles(),r)),d=g(u);return Vn(d.declarations,v=>jn(s,v))||(d.valid=!1),d;function g(v){let E={accessExpressions:[],typeUsages:[]},A={functionCalls:[],declarations:[],classReferences:E,valid:!0},R=Vt(i,_),N=Vt(o,_),P=Ml(e),k=Vt(i,F=>xde(F,l));for(let F of v){if(F.kind===Ys.EntryKind.Span){A.valid=!1;continue}if(jn(k,_(F.node))){if(yXe(F.node.parent)){A.signature=F.node.parent;continue}let G=Gxe(F);if(G){A.functionCalls.push(G);continue}}let O=xde(F.node,l);if(O&&jn(k,O)){let G=Rde(F);if(G){A.declarations.push(G);continue}}if(jn(R,_(F.node))||SP(F.node)){if(Bxe(F))continue;let j=Rde(F);if(j){A.declarations.push(j);continue}let J=Gxe(F);if(J){A.functionCalls.push(J);continue}}if(P&&jn(N,_(F.node))){if(Bxe(F))continue;let j=Rde(F);if(j){A.declarations.push(j);continue}let J=hXe(F);if(J){E.accessExpressions.push(J);continue}if(Cc(e.parent)){let Z=_Xe(F);if(Z){E.typeUsages.push(Z);continue}}}A.valid=!1}return A}function _(v){let E=l.getSymbolAtLocation(v);return E&&Xq(E,l)}}function xde(e,t){let r=PO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Wl(o)&6))return o}}function Bxe(e){let t=e.node;if(Su(t.parent)||Gm(t.parent)||Bc(t.parent)||Ag(t.parent)||iu(t.parent)||ll(t.parent))return t}function Rde(e){if(rd(e.node.parent))return e.node}function Gxe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 214:case 215:let i=ni(r,Bh);if(i&&i.expression===t)return i;break;case 212:let o=ni(r,qr);if(o&&o.parent&&o.name===t){let l=ni(o.parent,Bh);if(l&&l.expression===o)return l}break;case 213:let s=ni(r,Ws);if(s&&s.parent&&s.argumentExpression===t){let l=ni(s.parent,Bh);if(l&&l.expression===s)return l}break}}}function hXe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 212:let i=ni(r,qr);if(i&&i.expression===t)return i;break;case 213:let o=ni(r,Ws);if(o&&o.expression===t)return o;break}}}function _Xe(e){let t=e.node;if(DE(t)===2||fW(t.parent))return t}function Vxe(e,t,r){let i=HD(e,t),o=Qte(i);if(!gXe(i)&&o&&vXe(o,r)&&Zu(o,i)&&!(o.body&&Zu(o.body,i)))return o}function gXe(e){let t=Dn(e,PR);if(t){let r=Dn(t,i=>!PR(i));return!!r&&Ms(r)}return!1}function yXe(e){return Bm(e)&&(gd(e.parent)||ku(e.parent))}function vXe(e,t){var r;if(!bXe(e.parameters,t))return!1;switch(e.kind){case 263:return jxe(e)&&H7(e,t);case 175:if(Wa(e.parent)){let i=xde(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&H7(e,t)}return H7(e,t);case 177:return Cc(e.parent)?jxe(e.parent)&&H7(e,t):Uxe(e.parent.parent)&&H7(e,t);case 219:case 220:return Uxe(e.parent)}return!1}function H7(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function jxe(e){return e.name?!0:!!JD(e,90)}function bXe(e,t){return SXe(e)>=dXe&&Vn(e,r=>TXe(r,t))}function TXe(e,t){if(D_(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&He(e.name)}function Uxe(e){return yi(e)&&FR(e)&&He(e.name)&&!e.type}function Dde(e){return e.length>0&&jD(e[0].name)}function SXe(e){return Dde(e)?e.length-1:e.length}function Hxe(e){return Dde(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function EXe(e,t){return He(t)&&Wf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function AXe(e,t){let r=Hxe(e.parameters),i=D_(Ba(r)),o=i?t.slice(0,r.length-1):t,s=Vt(o,(u,d)=>{let g=zJ(r[d]),_=EXe(g,u);return kp(_.name),Nc(_)&&kp(_.initializer),NE(u,_),_});if(i&&t.length>=r.length){let u=t.slice(r.length-1),d=L.createPropertyAssignment(zJ(Ba(r)),L.createArrayLiteralExpression(u));s.push(d)}return L.createObjectLiteralExpression(s,!1)}function qxe(e,t,r){let i=t.getTypeChecker(),o=Hxe(e.parameters),s=Vt(o,_),l=L.createObjectBindingPattern(s),u=v(o),d;Vn(o,R)&&(d=L.createObjectLiteralExpression());let g=L.createParameterDeclaration(void 0,void 0,l,void 0,u,d);if(Dde(e.parameters)){let N=e.parameters[0],P=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return kp(P.name),NE(N.name,P.name),N.type&&(kp(P.type),NE(N.type,P.type)),L.createNodeArray([P,g])}return L.createNodeArray([g]);function _(N){let P=L.createBindingElement(void 0,void 0,zJ(N),D_(N)&&R(N)?L.createArrayLiteralExpression():N.initializer);return kp(P),N.initializer&&P.initializer&&NE(N.initializer,P.initializer),P}function v(N){let P=Vt(N,E);return $h(L.createTypeLiteralNode(P),1)}function E(N){let P=N.type;!P&&(N.initializer||D_(N))&&(P=A(N));let k=L.createPropertySignature(void 0,zJ(N),R(N)?L.createToken(58):N.questionToken,P);return kp(k),NE(N.name,k.name),N.type&&k.type&&NE(N.type,k.type),k}function A(N){let P=i.getTypeAtLocation(N);return LP(P,N,t,r)}function R(N){if(D_(N)){let P=i.getTypeAtLocation(N);return!i.isTupleType(P)}return i.isOptionalParameter(N)}}function zJ(e){return Wf(e.name)}function IXe(e){switch(e.parent.kind){case 264:let t=e.parent;return t.name?[t.name]:[C.checkDefined(JD(t,90),"Nameless class declaration should be a default export")];case 232:let i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function xXe(e){switch(e.kind){case 263:return e.name?[e.name]:[C.checkDefined(JD(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:let r=C.checkDefined(Es(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===232?[e.parent.parent.name,r]:[r];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return C.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var RXe={},Cde="Convert to template string",Nde=Ho(f.Convert_to_template_string),Mde={name:Cde,description:Nde,kind:"refactor.rewrite.string"};Rg(Cde,{kinds:[Mde.kind],getEditsForAction:CXe,getAvailableActions:DXe});function DXe(e){let{file:t,startPosition:r}=e,i=Jxe(t,r),o=Pde(i),s=ka(o),l={name:Cde,description:Nde,actions:[]};return s&&e.triggerReason!=="invoked"?ae:M_(o)&&(s||Nr(o)&&Lde(o).isValidConcatenation)?(l.actions.push(Mde),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...Mde,notApplicableReason:Ho(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):ae}function Jxe(e,t){let r=Fi(e,t),i=Pde(r);return!Lde(i).isValidConcatenation&&wu(i.parent)&&Nr(i.parent.parent)?i.parent.parent:r}function CXe(e,t){let{file:r,startPosition:i}=e,o=Jxe(r,i);switch(t){case Nde:return{edits:NXe(e,o)};default:return C.fail("invalid action")}}function NXe(e,t){let r=Pde(t),i=e.file,o=wXe(Lde(r),i),s=ib(i.text,r.end);if(s){let l=s[s.length-1],u={pos:s[0].pos,end:l.end};return Rr.ChangeTracker.with(e,d=>{d.deleteRange(i,u),d.replaceNode(i,r,o)})}else return Rr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function MXe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Pde(e){return Dn(e.parent,r=>{switch(r.kind){case 212:case 213:return!1;case 229:case 227:return!(Nr(r.parent)&&MXe(r.parent));default:return"quit"}})||e}function Lde(e){let t=l=>{if(!Nr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:ka(l)||lE(l)};let{nodes:u,operators:d,hasString:g,validOperators:_}=t(l.left);if(!(g||ka(l.right)||c3(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};let v=l.operatorToken.kind===40,E=_&&v;return u.push(l.right),d.push(l.operatorToken),{nodes:u,operators:d,hasString:!0,validOperators:E}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}var PXe=(e,t)=>(r,i)=>{r<e.length&&MP(e[r],i,t,3,!1)},LXe=(e,t,r)=>(i,o)=>{for(;i.length>0;){let s=i.shift();MP(e[s],o,t,3,!1),r(s,o)}};function kXe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function Kxe(e){let t=MI(e)||nj(e)?-2:-1;return Al(e).slice(1,t)}function Xxe(e,t){let r=[],i="",o="";for(;e<t.length;){let s=t[e];if(cs(s))i+=s.text,o+=kXe(Al(s).slice(1,-1)),r.push(e),e++;else if(c3(s)){i+=s.head.text,o+=Kxe(s.head);break}else break}return[e,i,o,r]}function wXe({nodes:e,operators:t},r){let i=PXe(t,r),o=LXe(e,r,i),[s,l,u,d]=Xxe(0,e);if(s===e.length){let v=L.createNoSubstitutionTemplateLiteral(l,u);return o(d,v),v}let g=[],_=L.createTemplateHead(l,u);o(d,_);for(let v=s;v<e.length;v++){let E=OXe(e[v]);i(v,E);let[A,R,N,P]=Xxe(v+1,e);v=A-1;let k=v===e.length-1;if(c3(E)){let F=Vt(E.templateSpans,(O,G)=>{Yxe(O);let j=G===E.templateSpans.length-1,J=O.literal.text+(j?R:""),Z=Kxe(O.literal)+(j?N:"");return L.createTemplateSpan(O.expression,k&&j?L.createTemplateTail(J,Z):L.createTemplateMiddle(J,Z))});g.push(...F)}else{let F=k?L.createTemplateTail(R,N):L.createTemplateMiddle(R,N);o(P,F),g.push(L.createTemplateSpan(E,F))}}return L.createTemplateExpression(_,g)}function Yxe(e){let t=e.getSourceFile();MP(e,e.expression,t,3,!1),yO(e.expression,e.expression,t,3,!1)}function OXe(e){return wu(e)&&(Yxe(e),e=e.expression),e}var WXe={},BJ="Convert to optional chain expression",kde=Ho(f.Convert_to_optional_chain_expression),wde={name:BJ,description:kde,kind:"refactor.rewrite.expression.optionalChain"};Rg(BJ,{kinds:[wde.kind],getEditsForAction:zXe,getAvailableActions:FXe});function FXe(e){let t=$xe(e,e.triggerReason==="invoked");return t?gy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:BJ,description:kde,actions:[{...wde,notApplicableReason:t.error}]}]:ae:[{name:BJ,description:kde,actions:[wde]}]:ae}function zXe(e,t){let r=$xe(e);return C.assert(r&&!gy(r),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(e,o=>JXe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function GJ(e){return Nr(e)||pE(e)}function BXe(e){return od(e)||ef(e)||ac(e)}function VJ(e){return GJ(e)||BXe(e)}function $xe(e,t=!0){let{file:r,program:i}=e,o=ix(e),s=o.length===0;if(s&&!t)return;let l=Fi(r,o.start),u=AP(r,o.start+o.length),d=ic(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),g=s?HXe(l):UXe(l,d),_=g&&VJ(g)?qXe(g):void 0;if(!_)return{error:Ho(f.Could_not_find_convertible_access_expression)};let v=i.getTypeChecker();return pE(_)?GXe(_,v):VXe(_)}function GXe(e,t){let r=e.condition,i=Wde(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Ho(f.Could_not_find_convertible_access_expression)};if((qr(r)||He(r))&&Ode(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(Nr(r)){let o=Qxe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Ho(f.Could_not_find_matching_access_expressions)}}}function VXe(e){if(e.operatorToken.kind!==56)return{error:Ho(f.Can_only_convert_logical_AND_access_chains)};let t=Wde(e.right);if(!t)return{error:Ho(f.Could_not_find_convertible_access_expression)};let r=Qxe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Ho(f.Could_not_find_matching_access_expressions)}}function Qxe(e,t){let r=[];for(;Nr(t)&&t.operatorToken.kind===56;){let o=Ode(ds(e),ds(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=Ode(e,t);return i&&r.push(i),r.length>0?r:void 0}function Ode(e,t){if(!(!He(t)&&!qr(t)&&!Ws(t)))return jXe(e,t)?t:void 0}function jXe(e,t){for(;(Zo(e)||qr(e)||Ws(e))&&CO(e)!==CO(t);)e=e.expression;for(;qr(e)&&qr(t)||Ws(e)&&Ws(t);){if(CO(e)!==CO(t))return!1;e=e.expression,t=t.expression}return He(e)&&He(t)&&e.getText()===t.getText()}function CO(e){if(He(e)||df(e))return e.getText();if(qr(e))return CO(e.name);if(Ws(e))return CO(e.argumentExpression)}function UXe(e,t){for(;e.parent;){if(VJ(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function HXe(e){for(;e.parent;){if(VJ(e)&&!VJ(e.parent))return e;e=e.parent}}function qXe(e){if(GJ(e))return e;if(ac(e)){let t=uI(e),r=t?.initializer;return r&&GJ(r)?r:void 0}return e.expression&&GJ(e.expression)?e.expression:void 0}function Wde(e){if(e=ds(e),Nr(e))return Wde(e.left);if((qr(e)||Ws(e)||Zo(e))&&!eu(e))return e}function Zxe(e,t,r){if(qr(t)||Ws(t)||Zo(t)){let i=Zxe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),Zo(t))return s?L.createCallChain(i,L.createToken(29),t.typeArguments,t.arguments):L.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(qr(t))return s?L.createPropertyAccessChain(i,L.createToken(29),t.name):L.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Ws(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function JXe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:u}=i,d=l[l.length-1],g=Zxe(t,s,l);g&&(qr(g)||Ws(g)||Zo(g))&&(Nr(u)?r.replaceNodeRange(e,d,s,g):pE(u)&&r.replaceNode(e,u,L.createBinaryExpression(g,L.createToken(61),u.whenFalse)))}var eRe={};x(eRe,{Messages:()=>Md,RangeFacts:()=>rRe,getRangeToExtract:()=>Fde,getRefactorActionsToExtractSymbol:()=>tRe,getRefactorEditsToExtractSymbol:()=>nRe});var WP="Extract Symbol",FP={name:"Extract Constant",description:Ho(f.Extract_constant),kind:"refactor.extract.constant"},zP={name:"Extract Function",description:Ho(f.Extract_function),kind:"refactor.extract.function"};Rg(WP,{kinds:[FP.kind,zP.kind],getEditsForAction:nRe,getAvailableActions:tRe});function tRe(e){let t=e.kind,r=Fde(e.file,ix(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return ae;let N=[];return lT(zP.kind,t)&&N.push({name:WP,description:zP.description,actions:[{...zP,notApplicableReason:R(r.errors)}]}),lT(FP.kind,t)&&N.push({name:WP,description:FP.description,actions:[{...FP,notApplicableReason:R(r.errors)}]}),N}let{affectedTextRange:o,extractions:s}=ZXe(i,e);if(s===void 0)return ae;let l=[],u=new Map,d,g=[],_=new Map,v,E=0;for(let{functionExtraction:N,constantExtraction:P}of s){if(lT(zP.kind,t)){let k=N.description;N.errors.length===0?u.has(k)||(u.set(k,!0),l.push({description:k,name:`function_scope_${E}`,kind:zP.kind,range:{start:{line:ca(e.file,o.pos).line,offset:ca(e.file,o.pos).character},end:{line:ca(e.file,o.end).line,offset:ca(e.file,o.end).character}}})):d||(d={description:k,name:`function_scope_${E}`,notApplicableReason:R(N.errors),kind:zP.kind})}if(lT(FP.kind,t)){let k=P.description;P.errors.length===0?_.has(k)||(_.set(k,!0),g.push({description:k,name:`constant_scope_${E}`,kind:FP.kind,range:{start:{line:ca(e.file,o.pos).line,offset:ca(e.file,o.pos).character},end:{line:ca(e.file,o.end).line,offset:ca(e.file,o.end).character}}})):v||(v={description:k,name:`constant_scope_${E}`,notApplicableReason:R(P.errors),kind:FP.kind})}E++}let A=[];return l.length?A.push({name:WP,description:Ho(f.Extract_function),actions:l}):e.preferences.provideRefactorNotApplicableReason&&d&&A.push({name:WP,description:Ho(f.Extract_function),actions:[d]}),g.length?A.push({name:WP,description:Ho(f.Extract_constant),actions:g}):e.preferences.provideRefactorNotApplicableReason&&v&&A.push({name:WP,description:Ho(f.Extract_constant),actions:[v]}),A.length?A:ae;function R(N){let P=N[0].messageText;return typeof P!="string"&&(P=P.messageText),P}}function nRe(e,t){let i=Fde(e.file,ix(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return C.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),$Xe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return C.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),QXe(i,e,l)}C.fail("Unrecognized action name")}var Md;(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")})(Md||(Md={}));var rRe=(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))(rRe||{});function Fde(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Fc(e,t.start,i,Md.cannotExtractEmpty)]};let o=i===0&&r,s=wle(e,t.start),l=AP(e,Dl(t)),u=s&&l&&r?KXe(s,l,e):t,d=o?vYe(s):hO(s,e,u),g=o?d:hO(l,e,u),_=0,v;if(!d||!g)return{errors:[Fc(e,t.start,i,Md.cannotExtractRange)]};if(d.flags&16777216)return{errors:[Fc(e,t.start,i,Md.cannotExtractJSDoc)]};if(d.parent!==g.parent)return{errors:[Fc(e,t.start,i,Md.cannotExtractRange)]};if(d!==g){if(!ox(d.parent))return{errors:[Fc(e,t.start,i,Md.cannotExtractRange)]};let F=[];for(let O of d.parent.statements){if(O===d||F.length){let G=k(O);if(G)return{errors:G};F.push(O)}if(O===g)break}return F.length?{targetRange:{range:F,facts:_,thisNode:v}}:{errors:[Fc(e,t.start,i,Md.cannotExtractRange)]}}if(ef(d)&&!d.expression)return{errors:[Fc(e,t.start,i,Md.cannotExtractRange)]};let E=R(d),A=N(E)||k(E);if(A)return{errors:A};return{targetRange:{range:XXe(E),facts:_,thisNode:v}};function R(F){if(ef(F)){if(F.expression)return F.expression}else if(ac(F)||_d(F)){let O=ac(F)?F.declarationList.declarations:F.declarations,G=0,j;for(let J of O)J.initializer&&(G++,j=J.initializer);if(G===1)return j}else if(yi(F)&&F.initializer)return F.initializer;return F}function N(F){if(He(od(F)?F.expression:F))return[Ar(F,Md.cannotExtractIdentifier)]}function P(F,O){let G=F;for(;G!==O;){if(G.kind===173){ua(G)&&(_|=32);break}else if(G.kind===170){cf(G).kind===177&&(_|=32);break}else G.kind===175&&ua(G)&&(_|=32);G=G.parent}}function k(F){let O;if((ye=>{ye[ye.None=0]="None",ye[ye.Break=1]="Break",ye[ye.Continue=2]="Continue",ye[ye.Return=4]="Return"})(O||(O={})),C.assert(F.pos<=F.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),C.assert(!dh(F.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!ji(F)&&!(M_(F)&&iRe(F))&&!jde(F))return[Ar(F,Md.statementOrExpressionExpected)];if(F.flags&33554432)return[Ar(F,Md.cannotExtractAmbientBlock)];let G=hd(F);G&&P(F,G);let j,J=4,Z;if(q(F),_&8){let ye=yu(F,!1,!1);(ye.kind===263||ye.kind===175&&ye.parent.kind===211||ye.kind===219)&&(_|=16)}return j;function q(ye){if(j)return!0;if(rd(ye)){let K=ye.kind===261?ye.parent.parent:ye;if(di(K,32))return(j||(j=[])).push(Ar(ye,Md.cannotExtractExportedEntity)),!0}switch(ye.kind){case 273:return(j||(j=[])).push(Ar(ye,Md.cannotExtractImport)),!0;case 278:return(j||(j=[])).push(Ar(ye,Md.cannotExtractExportedEntity)),!0;case 108:if(ye.parent.kind===214){let K=hd(ye);if(K===void 0||K.pos<t.start||K.end>=t.start+t.length)return(j||(j=[])).push(Ar(ye,Md.cannotExtractSuper)),!0}else _|=8,v=ye;break;case 220:Jo(ye,function K(pe){if(jD(pe))_|=8,v=ye;else{if(ui(pe)||Yo(pe)&&!Xs(pe))return!1;Jo(pe,K)}});case 264:case 263:Yi(ye.parent)&&ye.parent.externalModuleIndicator===void 0&&(j||(j=[])).push(Ar(ye,Md.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}let ie=J;switch(ye.kind){case 246:J&=-5;break;case 259:J=0;break;case 242:ye.parent&&ye.parent.kind===259&&ye.parent.finallyBlock===ye&&(J=4);break;case 298:case 297:J|=1;break;default:ub(ye,!1)&&(J|=3);break}switch(ye.kind){case 198:case 110:_|=8,v=ye;break;case 257:{let K=ye.label;(Z||(Z=[])).push(K.escapedText),Jo(ye,q),Z.pop();break}case 253:case 252:{let K=ye.label;K?jn(Z,K.escapedText)||(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):J&(ye.kind===253?1:2)||(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:_|=4;break;case 230:_|=2;break;case 254:J&4?_|=1:(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingConditionalReturnStatement));break;default:Jo(ye,q);break}J=ie}}}function KXe(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function XXe(e){if(ji(e))return[e];if(M_(e))return od(e.parent)?[e.parent]:e;if(jde(e))return e}function zde(e){return Xs(e)?jB(e.body):Ms(e)||Yi(e)||e_(e)||ui(e)}function YXe(e){let t=hv(e.range)?$a(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=hd(t);if(i){let o=Dn(t,Ms);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===170&&(t=Dn(t,i=>Ms(i)).parent),zde(t)&&(r.push(t),t.kind===308))return r}function $Xe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=Bde(e,t);return C.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),oYe(o,i[r],s[r],u,e,t)}function QXe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=Bde(e,t);C.assert(!l[r].length,"The extraction went missing? How?"),C.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let d=St(o)?o:o.statements[0].expression;return aYe(d,i[r],s[r],e.facts,t)}function ZXe(e,t){let{scopes:r,affectedTextRange:i,readsAndWrites:{functionErrorsPerScope:o,constantErrorsPerScope:s}}=Bde(e,t),l=r.map((u,d)=>{let g=eYe(u),_=tYe(u),v=Ms(u)?nYe(u):ui(u)?rYe(u):iYe(u),E,A;return v===1?(E=vg(Ho(f.Extract_to_0_in_1_scope),[g,"global"]),A=vg(Ho(f.Extract_to_0_in_1_scope),[_,"global"])):v===0?(E=vg(Ho(f.Extract_to_0_in_1_scope),[g,"module"]),A=vg(Ho(f.Extract_to_0_in_1_scope),[_,"module"])):(E=vg(Ho(f.Extract_to_0_in_1),[g,v]),A=vg(Ho(f.Extract_to_0_in_1),[_,v])),d===0&&!ui(u)&&(A=vg(Ho(f.Extract_to_0_in_enclosing_scope),[_])),{functionExtraction:{description:E,errors:o[d]},constantExtraction:{description:A,errors:s[d]}}});return{affectedTextRange:i,extractions:l}}function Bde(e,t){let{file:r}=t,i=YXe(e),o=gYe(e,r),s=yYe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,affectedTextRange:o,readsAndWrites:s}}function eYe(e){return Ms(e)?"inner function":ui(e)?"method":"function"}function tYe(e){return ui(e)?"readonly field":"constant"}function nYe(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:Qq;case 220:return"arrow function";case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:C.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function rYe(e){return e.kind===264?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function iYe(e){return e.kind===269?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function oYe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){let d=u.program.getTypeChecker(),g=Ga(u.program.getCompilerOptions()),_=lu.createImportAdder(u.file,u.program,u.preferences,u.host),v=t.getSourceFile(),E=ME(ui(t)?"newMethod":"newFunction",v),A=Ir(t),R=L.createIdentifier(E),N,P=[],k=[],F;r.forEach((re,be)=>{let Ne;if(!A){let lt=d.getTypeOfSymbolAtLocation(re.symbol,re.node);lt=d.getBaseTypeOfLiteralType(lt),Ne=lu.typeToAutoImportableTypeNode(d,_,lt,t,g,1,8)}let Be=L.createParameterDeclaration(void 0,void 0,be,void 0,Ne);P.push(Be),re.usage===2&&(F||(F=[])).push(re),k.push(L.createIdentifier(be))});let O=Co(i.values(),re=>({type:re,declaration:lYe(re,u.startPosition)}));O.sort(cYe);let G=O.length===0?void 0:Ui(O,({declaration:re})=>re),j=G!==void 0?G.map(re=>L.createTypeReferenceNode(re.name,void 0)):void 0;if(St(e)&&!A){let re=d.getContextualType(e);N=d.typeToTypeNode(re,t,1,8)}let{body:J,returnValueProperty:Z}=uYe(e,s,F,o,!!(l.facts&1));kp(J);let q,ye=!!(l.facts&16);if(ui(t)){let re=A?[]:[L.createModifier(123)];l.facts&32&&re.push(L.createModifier(126)),l.facts&4&&re.push(L.createModifier(134)),q=L.createMethodDeclaration(re.length?re:void 0,l.facts&2?L.createToken(42):void 0,R,void 0,G,P,N,J)}else ye&&P.unshift(L.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(l.thisNode),t,1,8),void 0)),q=L.createFunctionDeclaration(l.facts&4?[L.createToken(134)]:void 0,l.facts&2?L.createToken(42):void 0,R,G,P,N,J);let ie=Rr.ChangeTracker.fromContext(u),K=(hv(l.range)?Ba(l.range):l.range).end,pe=mYe(K,t);pe?ie.insertNodeBefore(u.file,pe,q,!0):ie.insertNodeAtEndOfScope(u.file,t,q),_.writeFixes(ie);let de=[],fe=dYe(t,l,E);ye&&k.unshift(L.createIdentifier("this"));let ve=L.createCallExpression(ye?L.createPropertyAccessExpression(fe,"call"):fe,j,k);if(l.facts&2&&(ve=L.createYieldExpression(L.createToken(42),ve)),l.facts&4&&(ve=L.createAwaitExpression(ve)),Vde(e)&&(ve=L.createJsxExpression(void 0,ve)),s.length&&!F)if(C.assert(!Z,"Expected no returnValueProperty"),C.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let re=s[0];de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(re.name),void 0,_s(re.type),ve)],re.parent.flags)))}else{let re=[],be=[],Ne=s[0].parent.flags,Be=!1;for(let ce of s){re.push(L.createBindingElement(void 0,void 0,_s(ce.name)));let De=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(ce)),t,1,8);be.push(L.createPropertySignature(void 0,ce.symbol.name,void 0,De)),Be=Be||ce.type!==void 0,Ne=Ne&ce.parent.flags}let lt=Be?L.createTypeLiteralNode(be):void 0;lt&&Cr(lt,1),de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(re),void 0,lt,ve)],Ne)))}else if(s.length||F){if(s.length)for(let be of s){let Ne=be.parent.flags;Ne&2&&(Ne=Ne&-3|1),de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(be.symbol.name,void 0,Se(be.type))],Ne)))}Z&&de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z,void 0,Se(N))],1)));let re=Gde(s,F);Z&&re.unshift(L.createShorthandPropertyAssignment(Z)),re.length===1?(C.assert(!Z,"Shouldn't have returnValueProperty here"),de.push(L.createExpressionStatement(L.createAssignment(re[0].name,ve))),l.facts&1&&de.push(L.createReturnStatement())):(de.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(re),ve))),Z&&de.push(L.createReturnStatement(L.createIdentifier(Z))))}else l.facts&1?de.push(L.createReturnStatement(ve)):hv(l.range)?de.push(L.createExpressionStatement(ve)):de.push(ve);hv(l.range)?ie.replaceNodeRangeWithNodes(u.file,$a(l.range),Ba(l.range),de):ie.replaceNodeWithNodes(u.file,l.range,de);let xe=ie.getChanges(),Ce=(hv(l.range)?$a(l.range):l.range).getSourceFile().fileName,Xe=gO(xe,Ce,E,!1);return{renameFilename:Ce,renameLocation:Xe,edits:xe};function Se(re){if(re===void 0)return;let be=_s(re),Ne=be;for(;dE(Ne);)Ne=Ne.type;return sv(Ne)&&hn(Ne.types,Be=>Be.kind===157)?be:L.createUnionTypeNode([be,L.createKeywordTypeNode(157)])}}function aYe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),u=yde(e,t,s,l),d=Ir(t),g=d||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1,8),_=pYe(ds(e),r);({variableType:g,initializer:_}=N(g,_)),kp(_);let v=Rr.ChangeTracker.fromContext(o);if(ui(t)){C.assert(!d,"Cannot extract to a JS class");let P=[];P.push(L.createModifier(123)),i&32&&P.push(L.createModifier(126)),P.push(L.createModifier(148));let k=L.createPropertyDeclaration(P,u,void 0,g,_),F=L.createPropertyAccessExpression(i&32?L.createIdentifier(t.name.getText()):L.createThis(),L.createIdentifier(u));Vde(e)&&(F=L.createJsxExpression(void 0,F));let O=e.pos,G=hYe(O,t);v.insertNodeBefore(o.file,G,k,!0),v.replaceNode(o.file,e,F)}else{let P=L.createVariableDeclaration(u,void 0,g,_),k=sYe(e,t);if(k){v.insertNodeBefore(o.file,k,P);let F=L.createIdentifier(u);v.replaceNode(o.file,e,F)}else if(e.parent.kind===245&&t===Dn(e,zde)){let F=L.createVariableStatement(void 0,L.createVariableDeclarationList([P],2));v.replaceNode(o.file,e.parent,F)}else{let F=L.createVariableStatement(void 0,L.createVariableDeclarationList([P],2)),O=_Ye(e,t);if(O.pos===0?v.insertNodeAtTopOfFile(o.file,F,!1):v.insertNodeBefore(o.file,O,F,!1),e.parent.kind===245)v.delete(o.file,e.parent);else{let G=L.createIdentifier(u);Vde(e)&&(G=L.createJsxExpression(void 0,G)),v.replaceNode(o.file,e,G)}}}let E=v.getChanges(),A=e.getSourceFile().fileName,R=gO(E,A,u,!0);return{renameFilename:A,renameLocation:R,edits:E};function N(P,k){if(P===void 0)return{variableType:P,initializer:k};if(!Us(k)&&!Xs(k)||k.typeParameters)return{variableType:P,initializer:k};let F=s.getTypeAtLocation(e),O=ig(s.getSignaturesOfType(F,0));if(!O)return{variableType:P,initializer:k};if(O.getTypeParameters())return{variableType:P,initializer:k};let G=[],j=!1;for(let J of k.parameters)if(J.type)G.push(J);else{let Z=s.getTypeAtLocation(J);Z===s.getAnyType()&&(j=!0),G.push(L.updateParameterDeclaration(J,J.modifiers,J.dotDotDotToken,J.name,J.questionToken,J.type||s.typeToTypeNode(Z,t,1,8),J.initializer))}if(j)return{variableType:P,initializer:k};if(P=void 0,Xs(k))k=L.updateArrowFunction(k,bm(e)?a1(e):void 0,k.typeParameters,G,k.type||s.typeToTypeNode(O.getReturnType(),t,1,8),k.equalsGreaterThanToken,k.body);else{if(O&&O.thisParameter){let J=Ic(G);if(!J||He(J.name)&&J.name.escapedText!=="this"){let Z=s.getTypeOfSymbolAtLocation(O.thisParameter,e);G.splice(0,0,L.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(Z,t,1,8)))}}k=L.updateFunctionExpression(k,bm(e)?a1(e):void 0,k.asteriskToken,k.name,k.typeParameters,G,k.type||s.typeToTypeNode(O.getReturnType(),t,1),k.body)}return{variableType:P,initializer:k}}}function sYe(e,t){let r;for(;e!==void 0&&e!==t;){if(yi(e)&&e.initializer===r&&_d(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function lYe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos<r.pos)&&o.pos<t&&(r=o);return r}function cYe({type:e,declaration:t},{type:r,declaration:i}){return JQ(t,i,"pos",js)||Wd(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||js(e.id,r.id)}function dYe(e,t,r){let i=L.createIdentifier(r);if(ui(e)){let o=t.facts&32?L.createIdentifier(e.name.text):L.createThis();return L.createPropertyAccessExpression(o,i)}else return i}function uYe(e,t,r,i,o){let s=r!==void 0||t.length>0;if(ea(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1,d=L.createNodeArray(ea(e)?e.statements.slice(0):[ji(e)?e:L.createReturnStatement(ds(e))]);if(s||i.size){let _=Xn(d,g,ji).slice();if(s&&!o&&ji(e)){let v=Gde(t,r);v.length===1?_.push(L.createReturnStatement(v[0].name)):_.push(L.createReturnStatement(L.createObjectLiteralExpression(v)))}return{body:L.createBlock(_,!0),returnValueProperty:l}}else return{body:L.createBlock(d,!0),returnValueProperty:void 0};function g(_){if(!u&&ef(_)&&s){let v=Gde(t,r);return _.expression&&(l||(l="__return"),v.unshift(L.createPropertyAssignment(l,st(_.expression,g,St)))),v.length===1?L.createReturnStatement(v[0].name):L.createReturnStatement(L.createObjectLiteralExpression(v))}else{let v=u;u=u||Ms(_)||ui(_);let E=i.get(ss(_).toString()),A=E?_s(E):kn(_,g,void 0);return u=v,A}}}function pYe(e,t){return t.size?r(e):e;function r(i){let o=t.get(ss(i).toString());return o?_s(o):kn(i,r,void 0)}}function fYe(e){if(Ms(e)){let t=e.body;if(ea(t))return t.statements}else{if(e_(e)||Yi(e))return e.statements;if(ui(e))return e.members}return ae}function mYe(e,t){return hn(fYe(t),r=>r.pos>=e&&Ms(r)&&!Ml(r))}function hYe(e,t){let r=t.members;C.assert(r.length>0,"Found no members");let i,o=!0;for(let s of r){if(s.pos>e)return i||r[0];if(o&&!Po(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?C.fail():i}function _Ye(e,t){C.assert(!ui(t));let r;for(let i=e;i!==t;i=i.parent)zde(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(ox(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&gD(i)?(C.assert(GM(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):C.checkDefined(o,"prevStatement failed to get set")}C.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Gde(e,t){let r=Vt(e,o=>L.createShorthandPropertyAssignment(o.symbol.name)),i=Vt(t,o=>L.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function hv(e){return Mo(e)}function gYe(e,t){return hv(e.range)?{pos:$a(e.range).getStart(t),end:Ba(e.range).getEnd()}:e.range}function yYe(e,t,r,i,o,s){let l=new Map,u=[],d=[],g=[],_=[],v=[],E=new Map,A=[],R,N=hv(e.range)?e.range.length===1&&od(e.range[0])?e.range[0].expression:void 0:e.range,P;if(N===void 0){let de=e.range,fe=$a(de).getStart(),ve=Ba(de).end;P=Fc(i,fe,ve-fe,Md.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(P=Ar(N,Md.uselessConstantType));for(let de of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),g.push([]);let fe=[];P&&fe.push(P),ui(de)&&Ir(de)&&fe.push(Ar(de,Md.cannotExtractToJSClass)),Xs(de)&&!ea(de.body)&&fe.push(Ar(de,Md.cannotExtractToExpressionArrowFunction)),_.push(fe)}let k=new Map,F=hv(e.range)?L.createBlock(e.range):e.range,O=hv(e.range)?$a(e.range):e.range,G=j(O);if(Z(F),G&&!hv(e.range)&&!r_(e.range)){let de=o.getContextualType(e.range);J(de)}if(l.size>0){let de=new Map,fe=0;for(let ve=O;ve!==void 0&&fe<t.length;ve=ve.parent)if(ve===t[fe]&&(de.forEach((xe,Y)=>{u[fe].typeParameterUsages.set(Y,xe)}),fe++),dG(ve))for(let xe of ab(ve)){let Y=o.getTypeAtLocation(xe);l.has(Y.id.toString())&&de.set(Y.id.toString(),Y)}C.assert(fe===t.length,"Should have iterated all scopes")}if(v.length){let de=cG(t[0],t[0].parent)?t[0]:sh(t[0]);Jo(de,ie)}for(let de=0;de<t.length;de++){let fe=u[de];if(de>0&&(fe.usages.size>0||fe.typeParameterUsages.size>0)){let Y=hv(e.range)?e.range[0]:e.range;_[de].push(Ar(Y,Md.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ui(t[de])&&g[de].push(Ar(e.thisNode,Md.cannotExtractFunctionsContainingThisToMethod));let ve=!1,xe;if(u[de].usages.forEach(Y=>{Y.usage===2&&(ve=!0,Y.symbol.flags&106500&&Y.symbol.valueDeclaration&&Lp(Y.symbol.valueDeclaration,8)&&(xe=Y.symbol.valueDeclaration))}),C.assert(hv(e.range)||A.length===0,"No variable declarations expected if something was extracted"),ve&&!hv(e.range)){let Y=Ar(e.range,Md.cannotWriteInExpression);g[de].push(Y),_[de].push(Y)}else if(xe&&de>0){let Y=Ar(xe,Md.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[de].push(Y),_[de].push(Y)}else if(R){let Y=Ar(R,Md.cannotExtractExportedEntity);g[de].push(Y),_[de].push(Y)}}return{target:F,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:_,exposedVariableDeclarations:A};function j(de){return!!Dn(de,fe=>dG(fe)&&ab(fe).length!==0)}function J(de){let fe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:ve}=fe.walkType(de);for(let xe of ve)xe.isTypeParameter()&&l.set(xe.id.toString(),xe)}function Z(de,fe=1){if(G){let ve=o.getTypeAtLocation(de);J(ve)}if(rd(de)&&de.symbol&&v.push(de),id(de))Z(de.left,2),Z(de.right);else if(ate(de))Z(de.operand,2);else if(qr(de)||Ws(de))Jo(de,Z);else if(He(de)){if(!de.parent||Lu(de.parent)&&de!==de.parent.left||qr(de.parent)&&de!==de.parent.expression)return;q(de,fe,Uh(de))}else Jo(de,Z)}function q(de,fe,ve){let xe=ye(de,fe,ve);if(xe)for(let Y=0;Y<t.length;Y++){let Ce=d[Y].get(xe);Ce&&u[Y].substitutions.set(ss(de).toString(),Ce)}}function ye(de,fe,ve){let xe=K(de);if(!xe)return;let Y=Ta(xe).toString(),Ce=k.get(Y);if(Ce&&Ce>=fe)return Y;if(k.set(Y,fe),Ce){for(let re of u)re.usages.get(de.text)&&re.usages.set(de.text,{usage:fe,symbol:xe,node:de});return Y}let Xe=xe.getDeclarations(),Se=Xe&&hn(Xe,re=>re.getSourceFile()===i);if(Se&&!lO(r,Se.getStart(),Se.end)){if(e.facts&2&&fe===2){let re=Ar(de,Md.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let be of g)be.push(re);for(let be of _)be.push(re)}for(let re=0;re<t.length;re++){let be=t[re];if(o.resolveName(xe.name,be,xe.flags,!1)!==xe&&!d[re].has(Y)){let Be=pe(xe.exportSymbol||xe,be,ve);if(Be)d[re].set(Y,Be);else if(ve){if(!(xe.flags&262144)){let lt=Ar(de,Md.typeWillNotBeVisibleInTheNewScope);g[re].push(lt),_[re].push(lt)}}else u[re].usages.set(de.text,{usage:fe,symbol:xe,node:de})}}return Y}}function ie(de){if(de===e.range||hv(e.range)&&e.range.includes(de))return;let fe=He(de)?K(de):o.getSymbolAtLocation(de);if(fe){let ve=hn(v,xe=>xe.symbol===fe);if(ve)if(yi(ve)){let xe=ve.symbol.id.toString();E.has(xe)||(A.push(ve),E.set(xe,!0))}else R=R||ve}Jo(de,ie)}function K(de){return de.parent&&Ud(de.parent)&&de.parent.name===de?o.getShorthandAssignmentValueSymbol(de.parent):o.getSymbolAtLocation(de)}function pe(de,fe,ve){if(!de)return;let xe=de.getDeclarations();if(xe&&xe.some(Ce=>Ce.parent===fe))return L.createIdentifier(de.name);let Y=pe(de.parent,fe,ve);if(Y!==void 0)return ve?L.createQualifiedName(Y,L.createIdentifier(de.name)):L.createPropertyAccessExpression(Y,de.name)}}function vYe(e){return Dn(e,t=>t.parent&&iRe(t)&&!Nr(t.parent))}function iRe(e){let{parent:t}=e;switch(t.kind){case 307:return!1}switch(e.kind){case 11:return t.kind!==273&&t.kind!==277;case 231:case 207:case 209:return!1;case 80:return t.kind!==209&&t.kind!==277&&t.kind!==282}return!0}function Vde(e){return jde(e)||(n_(e)||_E(e)||J0(e))&&(n_(e.parent)||J0(e.parent))}function jde(e){return ka(e)&&e.parent&&r_(e.parent)}var bYe={},jJ="Generate 'get' and 'set' accessors",Ude=Ho(f.Generate_get_and_set_accessors),Hde={name:jJ,description:Ude,kind:"refactor.rewrite.property.generateAccessors"};Rg(jJ,{kinds:[Hde.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=lu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);C.assert(i&&!gy(i),"Expected applicable refactor info");let o=lu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;let s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,d=(He(l)?0:-1)+gO(o,s,l.text,to(i.declaration));return{renameFilename:s,renameLocation:d,edits:o}},getAvailableActions(e){if(!e.endPosition)return ae;let t=lu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?gy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:jJ,description:Ude,actions:[{...Hde,notApplicableReason:t.error}]}]:ae:[{name:jJ,description:Ude,actions:[Hde]}]:ae}});var TYe={},UJ="Infer function return type",qde=Ho(f.Infer_function_return_type),HJ={name:UJ,description:qde,kind:"refactor.rewrite.function.returnType"};Rg(UJ,{kinds:[HJ.kind],getEditsForAction:SYe,getAvailableActions:EYe});function SYe(e){let t=oRe(e);if(t&&!gy(t))return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,i=>AYe(e.file,i,t.declaration,t.returnTypeNode))}}function EYe(e){let t=oRe(e);return t?gy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:UJ,description:qde,actions:[{...HJ,notApplicableReason:t.error}]}]:ae:[{name:UJ,description:qde,actions:[HJ]}]:ae}function AYe(e,t,r,i){let o=Es(r,22,e),s=Xs(r)&&o===void 0,l=s?$a(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,L.createToken(21)),t.insertNodeAfter(e,l,L.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function oRe(e){if(Ir(e.file)||!lT(HJ.kind,e.kind))return;let t=np(e.file,e.startPosition),r=Dn(t,l=>ea(l)||l.parent&&Xs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":IYe(l));if(!r||!r.body||r.type)return{error:Ho(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o;if(i.isImplementationOfOverload(r)){let l=i.getTypeAtLocation(r).getCallSignatures();l.length>1&&(o=i.getUnionType(Ui(l,u=>u.getReturnType())))}if(!o){let l=i.getSignatureFromDeclaration(r);if(l){let u=i.getTypePredicateOfSignature(l);if(u&&u.type){let d=i.typePredicateToTypePredicateNode(u,r,1,8);if(d)return{declaration:r,returnTypeNode:d}}else o=i.getReturnTypeOfSignature(l)}}if(!o)return{error:Ho(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1,8);if(s)return{declaration:r,returnTypeNode:s}}function IYe(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}var aRe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(aRe||{}),sRe=(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))(sRe||{}),lRe=(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))(lRe||{});function cRe(e,t,r,i){let o=Jde(e,t,r,i);C.assert(o.spans.length%3===0);let s=o.spans,l=[];for(let u=0;u<s.length;u+=3)l.push({textSpan:Id(s[u],s[u+1]),classificationType:s[u+2]});return l}function Jde(e,t,r,i){return{spans:xYe(e,r,i,t),endOfLineState:0}}function xYe(e,t,r,i){let o=[];return e&&t&&RYe(e,t,r,(l,u,d)=>{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+d)},i),o}function RYe(e,t,r,i,o){let s=e.getTypeChecker(),l=!1;function u(d){switch(d.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 220:o.throwIfCancellationRequested()}if(!d||!bL(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;let g=l;if((n_(d)||_E(d))&&(l=!0),_D(d)&&(l=!1),He(d)&&!l&&!MYe(d)&&!RM(d.escapedText)){let _=s.getSymbolAtLocation(d);if(_){_.flags&2097152&&(_=s.getAliasedSymbol(_));let v=DYe(_,DE(d));if(v!==void 0){let E=0;d.parent&&(Ha(d.parent)||pRe.get(d.parent.kind)===v)&&d.parent.name===d&&(E=1),v===6&&uRe(d)&&(v=9),v=CYe(s,d,v);let A=_.valueDeclaration;if(A){let R=I0(A),N=ty(A);R&256&&(E|=2),R&1024&&(E|=4),v!==0&&v!==2&&(R&8||N&2||_.getFlags()&8)&&(E|=8),(v===7||v===10)&&NYe(A,t)&&(E|=32),e.isSourceFileDefaultLibrary(A.getSourceFile())&&(E|=16)}else _.declarations&&_.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(E|=16);i(d,v,E)}}}Jo(d,u),l=g}u(t)}function DYe(e,t){let 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&&Ha(i)&&(i=dRe(i)),i&&pRe.get(i.kind)}function CYe(e,t,r){if(r===7||r===9||r===6){let i=e.getTypeAtLocation(t);if(i){let 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)||PYe(t))return r===9?11:10}}return r}function NYe(e,t){return Ha(e)&&(e=dRe(e)),yi(e)?(!Yi(e.parent.parent.parent)||O1(e.parent))&&e.getSourceFile()===t:Ql(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function dRe(e){for(;;)if(Ha(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function MYe(e){let t=e.parent;return t&&(Gm(t)||Su(t)||Ag(t))}function PYe(e){for(;uRe(e);)e=e.parent;return Zo(e.parent)&&e.parent.expression===e}function uRe(e){return Lu(e.parent)&&e.parent.right===e||qr(e.parent)&&e.parent.name===e}var pRe=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),fRe="0.8";function mRe(e,t,r,i){let o=a6(e)?new Kde(e,t,r):e===80?new _Re(80,t,r):e===81?new gRe(81,t,r):new hRe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}var Kde=class{constructor(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}assertHasRealPosition(e){C.assert(!dh(this.pos)&&!dh(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Wn(this)}getStart(e,t){return this.assertHasRealPosition(),mb(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=Wn(this)){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"),bj(this,e)??Lie(this,e,LYe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=hn(t,i=>i.kind<310||i.kind>352);return r.kind<167?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=Zs(t);if(r)return r.kind<167?r:r.getLastToken(e)}forEachChild(e,t){return Jo(this,e,t)}};function LYe(e,t){let r=[];if(m6(e))return e.forEachChild(l=>{r.push(l)}),r;yd.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{q7(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{q7(r,i,l.pos,e),r.push(kYe(l,e)),i=l.end};return Je(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),q7(r,i,e.end,e),yd.setText(void 0),r}function q7(e,t,r,i){for(yd.resetTokenState(t);t<r;){let o=yd.scan(),s=yd.getTokenEnd();if(s<=r){if(o===80){if(Mre(i))continue;C.fail(`Did not expect ${C.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(mRe(o,t,s,i))}if(t=s,o===1)break}}function kYe(e,t){let r=mRe(353,e.pos,e.end,t),i=[],o=e.pos;for(let s of e)q7(i,o,s.pos,t),i.push(s),o=s.end;return q7(i,o,e.end,t),r._children=i,r}var Xde=class{constructor(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}getSourceFile(){return Wn(this)}getStart(e,t){return mb(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||ae}getFirstToken(){}getLastToken(){}forEachChild(){}},wYe=class{constructor(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}getFlags(){return this.flags}get name(){return wl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=ae,!this.declarations&&ug(this)&&this.links.target&&ug(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=J7([t],e)}else this.documentationComment=J7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(dg(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=ae,this.contextualGetAccessorDocumentationComment=J7(Un(this.declarations,dg),t)),et(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Gh(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=ae,this.contextualSetAccessorDocumentationComment=J7(Un(this.declarations,Gh),t)),et(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=ae,this.tags=qJ(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(dg(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=ae,this.contextualGetAccessorTags=qJ(Un(this.declarations,dg),t)),et(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Gh(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=ae,this.contextualSetAccessorTags=qJ(Un(this.declarations,Gh),t)),et(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},hRe=class extends Xde{constructor(e,t,r){super(e,t,r)}},_Re=class extends Xde{constructor(e,t,r){super(e,t,r)}get text(){return Kr(this)}},gRe=class extends Xde{constructor(e,t,r){super(e,t,r)}get text(){return Kr(this)}},OYe=class{constructor(e,t){this.flags=t,this.checker=e}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!!(Hr(this)&3)}isClass(){return!!(Hr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Hr(this)&4)return this.checker.getTypeArguments(this)}},WYe=class{constructor(e,t){this.flags=t,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&DM(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=J7(UA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=qJ(UA(this.declaration),this.checker))}};function yRe(e){return R0(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function qJ(e,t){if(!e)return ae;let r=uT.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(yRe))){let i=new Set;for(let o of e){let s=vRe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===178||o.kind===179?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags(t):void 0});s&&(r=[...s,...r])}}return r}function J7(e,t){if(!e)return ae;let r=uT.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(yRe))){let i=new Set;for(let o of e){let s=vRe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===178||o.kind===179?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(XD(),r))}}return r}function vRe(e,t,r){var i;let o=((i=t.parent)==null?void 0:i.kind)===177?t.parent.parent:t.parent;if(!o)return;let s=Wc(t);return Hn(eM(o),l=>{let u=e.getTypeAtLocation(l),d=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(d,t.symbol.name);return g?r(g):void 0})}var FYe=class extends Kde{constructor(e,t,r){super(e,t,r)}update(e,t){return wj(this,e,t)}getLineAndCharacterOfPosition(e){return ca(this,e)}getLineStarts(){return og(this)}getPositionOfLineAndCharacter(e,t,r){return X8(og(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);let o=this.getFullText();return o[i]===`
`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=lm();return this.forEachChild(o),e;function t(s){let 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){let l=Q8(s);return l&&(va(l)&&qr(l.expression)?l.expression.name.text:bc(l)?fO(l):void 0)}function o(s){switch(s.kind){case 263:case 219:case 175:case 174:let l=s,u=i(l);if(u){let _=r(u),v=Zs(_);v&&l.parent===v.parent&&l.symbol===v.symbol?l.body&&!v.body&&(_[_.length-1]=l):_.push(l)}Jo(s,o);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(s),Jo(s,o);break;case 170:if(!di(s,31))break;case 261:case 209:{let _=s;if(Qo(_.name)){Jo(_.name,o);break}_.initializer&&o(_.initializer)}case 307:case 173:case 172:t(s);break;case 279:let d=s;d.exportClause&&(Hf(d.exportClause)?Je(d.exportClause.elements,o):o(d.exportClause.name));break;case 273:let g=s.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===275?t(g.namedBindings):Je(g.namedBindings.elements,o)));break;case 227:oc(s)!==0&&t(s);default:Jo(s,o)}}}},zYe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}getLineAndCharacterOfPosition(e){return ca(this,e)}};function BYe(){return{getNodeConstructor:()=>Kde,getTokenConstructor:()=>hRe,getIdentifierConstructor:()=>_Re,getPrivateIdentifierConstructor:()=>gRe,getSourceFileConstructor:()=>FYe,getSymbolConstructor:()=>wYe,getTypeConstructor:()=>OYe,getSignatureConstructor:()=>WYe,getSourceMapSourceConstructor:()=>zYe}}function NO(e){let t=!0;for(let i in e)if(Rs(e,i)&&!bRe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(Rs(e,i)){let o=bRe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function bRe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function MO(e){return e?Vt(e,t=>t.text).join(""):""}function K7(){return{target:1,jsx:1}}function JJ(){return lu.getSupportedErrorCodes()}var GYe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,d;let g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");let _=Kq(e,this.host),v=this.host.getScriptVersion(e),E;if(this.currentFileName!==e){let A={languageVersion:99,impliedNodeFormat:Jw(ks(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||ay(this.host)),(d=(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:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Lk(this.host.getCompilationSettings()),jsDocParsingMode:0};E=X7(e,g,A,v,!0,_)}else if(this.currentFileVersion!==v){let A=g.getChangeRange(this.currentFileScriptSnapshot);E=KJ(this.currentSourceFile,g,v,A)}return E&&(this.currentFileVersion=v,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=E),this.currentSourceFile}};function TRe(e,t,r){e.version=r,e.scriptSnapshot=t}function X7(e,t,r,i,o,s){let l=HI(e,rx(t),r,o,s);return TRe(l,t,i),l}function KJ(e,t,r,i,o){if(i&&r!==e.version){let l,u=i.span.start!==0?e.text.substr(0,i.span.start):"",d=Dl(i.span)!==e.text.length?e.text.substr(Dl(i.span)):"";if(i.newLength===0)l=u&&d?u+d:u||d;else{let _=t.getText(i.span.start,i.span.start+i.newLength);l=u&&d?u+_+d:u?u+_:_+d}let g=wj(e,l,i,o);return TRe(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}let s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return X7(e.fileName,t,s,r,!0,e.scriptKind)}var VYe={isCancellationRequested:Qg,throwIfCancellationRequested:gs},jYe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xr)==null||e.instant(xr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new yN}},Yde=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Ls();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xr)==null||e.instant(xr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new yN}},SRe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],UYe=[...SRe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function $de(e,t=Tce(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;let s=new GYe(e),l,u,d=0,g=e.getCancellationToken?new jYe(e.getCancellationToken()):VYe,_=e.getCurrentDirectory();ere((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function v(ft){e.log&&e.log(ft)}let E=tE(e),A=Fd(E),R=wce({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>_,getProgram:F,fileExists:ia(e,e.fileExists),readFile:ia(e,e.readFile),getDocumentPositionMapper:ia(e,e.getDocumentPositionMapper),getSourceFileLike:ia(e,e.getSourceFileLike),log:v});function N(ft){let Mt=l.getSourceFile(ft);if(!Mt){let jt=new Error(`Could not find source file: '${ft}'.`);throw jt.ProgramFiles=l.getSourceFiles().map(Qt=>Qt.fileName),jt}return Mt}function P(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():k()}function k(){var ft,Mt,jt;if(C.assert(o!==2),e.getProjectVersion){let Lo=e.getProjectVersion();if(Lo){if(u===Lo&&!((ft=e.hasChangedAutomaticTypeDirectiveNames)!=null&&ft.call(e)))return;u=Lo}}let Qt=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==Qt&&(v("TypeRoots version has changed; provide new program"),l=void 0,d=Qt);let In=e.getScriptFileNames().slice(),yn=e.getCompilationSettings()||K7(),wt=e.hasInvalidatedResolutions||Qg,En=ia(e,e.hasInvalidatedLibResolutions)||Qg,xn=ia(e,e.hasChangedAutomaticTypeDirectiveNames),Ln=(Mt=e.getProjectReferences)==null?void 0:Mt.call(e),ln,Ii={getSourceFile:Zl,getSourceFileByPath:vf,getCancellationToken:()=>g,getCanonicalFileName:A,useCaseSensitiveFileNames:()=>E,getNewLine:()=>tv(yn),getDefaultLibFileName:Lo=>e.getDefaultLibFileName(Lo),writeFile:gs,getCurrentDirectory:()=>_,fileExists:Lo=>e.fileExists(Lo),readFile:Lo=>e.readFile&&e.readFile(Lo),getSymlinkCache:ia(e,e.getSymlinkCache),realpath:ia(e,e.realpath),directoryExists:Lo=>ch(Lo,e),getDirectories:Lo=>e.getDirectories?e.getDirectories(Lo):[],readDirectory:(Lo,fa,is,qa,Zt)=>(C.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Lo,fa,is,qa,Zt)),onReleaseOldSourceFile:Ra,onReleaseParsedCommandLine:Sc,hasInvalidatedResolutions:wt,hasInvalidatedLibResolutions:En,hasChangedAutomaticTypeDirectiveNames:xn,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:co,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:ia(e,e.getGlobalTypingsCacheLocation)},ra=Ii.getSourceFile,{getSourceFileWithCache:sa}=hP(Ii,Lo=>ks(Lo,_,A),(...Lo)=>ra.call(Ii,...Lo));Ii.getSourceFile=sa,(jt=e.setCompilerHost)==null||jt.call(e,Ii);let zo={useCaseSensitiveFileNames:E,fileExists:Lo=>Ii.fileExists(Lo),readFile:Lo=>Ii.readFile(Lo),directoryExists:Lo=>Ii.directoryExists(Lo),getDirectories:Lo=>Ii.getDirectories(Lo),realpath:Ii.realpath,readDirectory:(...Lo)=>Ii.readDirectory(...Lo),trace:Ii.trace,getCurrentDirectory:Ii.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:gs},Bl=t.getKeyForCompilationSettings(yn),xl=new Set;if(uH(l,In,yn,(Lo,fa)=>e.getScriptVersion(fa),Lo=>Ii.fileExists(Lo),wt,En,xn,co,Ln)){Ii=void 0,ln=void 0,xl=void 0;return}l=Kw({rootNames:In,options:yn,host:Ii,oldProgram:l,projectReferences:Ln}),Ii=void 0,ln=void 0,xl=void 0,R.clearCache(),l.getTypeChecker();return;function co(Lo){let fa=ks(Lo,_,A),is=ln?.get(fa);if(is!==void 0)return is||void 0;let qa=e.getParsedCommandLine?e.getParsedCommandLine(Lo):Go(Lo);return(ln||(ln=new Map)).set(fa,qa||!1),qa}function Go(Lo){let fa=Zl(Lo,100);if(fa)return fa.path=ks(Lo,_,A),fa.resolvedPath=fa.path,fa.originalFileName=fa.fileName,Iw(fa,zo,To(ci(Lo),_),void 0,To(Lo,_))}function Sc(Lo,fa,is){var qa;e.getParsedCommandLine?(qa=e.onReleaseParsedCommandLine)==null||qa.call(e,Lo,fa,is):fa&&$s(fa.sourceFile,is)}function $s(Lo,fa){let is=t.getKeyForCompilationSettings(fa);t.releaseDocumentWithKey(Lo.resolvedPath,is,Lo.scriptKind,Lo.impliedNodeFormat)}function Ra(Lo,fa,is,qa){var Zt;$s(Lo,fa),(Zt=e.onReleaseOldSourceFile)==null||Zt.call(e,Lo,fa,is,qa)}function Zl(Lo,fa,is,qa){return vf(Lo,ks(Lo,_,A),fa,is,qa)}function vf(Lo,fa,is,qa,Zt){C.assert(Ii,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let As=e.getScriptSnapshot(Lo);if(!As)return;let Hl=Kq(Lo,e),sc=e.getScriptVersion(Lo);if(!Zt){let vd=l&&l.getSourceFileByPath(fa);if(vd){if(Hl===vd.scriptKind||xl.has(vd.resolvedPath))return t.updateDocumentWithKey(Lo,fa,e,Bl,As,sc,Hl,is);t.releaseDocumentWithKey(vd.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),vd.scriptKind,vd.impliedNodeFormat),xl.add(vd.resolvedPath)}}return t.acquireDocumentWithKey(Lo,fa,e,Bl,As,sc,Hl,is)}}function F(){if(o===2){C.assert(l===void 0);return}return P(),l}function O(){var ft;return(ft=e.getPackageJsonAutoImportProvider)==null?void 0:ft.call(e)}function G(ft,Mt){let jt=l.getTypeChecker(),Qt=In();if(!Qt)return!1;for(let wt of ft)for(let En of wt.references){let xn=yn(En);if(C.assertIsDefined(xn),Mt.has(En)||Ys.isDeclarationOfSymbol(xn,Qt)){Mt.add(En),En.isDefinition=!0;let Ln=h7(En,R,ia(e,e.fileExists));Ln&&Mt.add(Ln)}else En.isDefinition=!1}return!0;function In(){for(let wt of ft)for(let En of wt.references){if(Mt.has(En)){let Ln=yn(En);return C.assertIsDefined(Ln),jt.getSymbolAtLocation(Ln)}let xn=h7(En,R,ia(e,e.fileExists));if(xn&&Mt.has(xn)){let Ln=yn(xn);if(Ln)return jt.getSymbolAtLocation(Ln)}}}function yn(wt){let En=l.getSourceFile(wt.fileName);if(!En)return;let xn=np(En,wt.textSpan.start);return Ys.Core.getAdjustedNode(xn,{use:Ys.FindReferencesUse.References})}}function j(){if(l){let ft=t.getKeyForCompilationSettings(l.getCompilerOptions());Je(l.getSourceFiles(),Mt=>t.releaseDocumentWithKey(Mt.resolvedPath,ft,Mt.scriptKind,Mt.impliedNodeFormat)),l=void 0}}function J(){j(),e=void 0}function Z(ft){return P(),l.getSyntacticDiagnostics(N(ft),g).slice()}function q(ft){P();let Mt=N(ft),jt=l.getSemanticDiagnostics(Mt,g);if(!hp(l.getCompilerOptions()))return jt.slice();let Qt=l.getDeclarationDiagnostics(Mt,g);return[...jt,...Qt]}function ye(ft,Mt){P();let jt=N(ft),Qt=l.getCompilerOptions();if(oD(jt,Qt,l)||!EM(jt,Qt)||l.getCachedSemanticDiagnostics(jt))return;let In=ie(jt,Mt);if(!In)return;let yn=EB(In.map(En=>ic(En.getFullStart(),En.getEnd())));return{diagnostics:l.getSemanticDiagnostics(jt,g,In).slice(),spans:yn}}function ie(ft,Mt){let jt=[],Qt=EB(Mt.map(In=>fv(In)));for(let In of Qt){let yn=K(ft,In);if(!yn)return;jt.push(...yn)}if(jt.length)return jt}function K(ft,Mt){if(SB(Mt,ft))return;let jt=AP(ft,Dl(Mt))||ft,Qt=Dn(jt,yn=>xee(yn,Mt)),In=[];if(pe(Mt,Qt,In),ft.end===Mt.start+Mt.length&&In.push(ft.endOfFileToken),!vt(In,Yi))return In}function pe(ft,Mt,jt){return de(Mt,ft)?SB(ft,Mt)?(fe(Mt,jt),!0):ox(Mt)?ve(ft,Mt,jt):ui(Mt)?xe(ft,Mt,jt):(fe(Mt,jt),!0):!1}function de(ft,Mt){let jt=Mt.start+Mt.length;return ft.pos<jt&&ft.end>Mt.start}function fe(ft,Mt){for(;ft.parent&&!wre(ft);)ft=ft.parent;Mt.push(ft)}function ve(ft,Mt,jt){let Qt=[];return Mt.statements.filter(yn=>pe(ft,yn,Qt)).length===Mt.statements.length?(fe(Mt,jt),!0):(jt.push(...Qt),!1)}function xe(ft,Mt,jt){var Qt,In,yn;let wt=Ln=>Nee(Ln,ft);if((Qt=Mt.modifiers)!=null&&Qt.some(wt)||Mt.name&&wt(Mt.name)||(In=Mt.typeParameters)!=null&&In.some(wt)||(yn=Mt.heritageClauses)!=null&&yn.some(wt))return fe(Mt,jt),!0;let En=[];return Mt.members.filter(Ln=>pe(ft,Ln,En)).length===Mt.members.length?(fe(Mt,jt),!0):(jt.push(...En),!1)}function Y(ft){return P(),bJ(N(ft),l,g)}function Ce(){return P(),[...l.getOptionsDiagnostics(g),...l.getGlobalDiagnostics(g)]}function Xe(ft,Mt,jt=Tm,Qt){let In={...jt,includeCompletionsForModuleExports:jt.includeCompletionsForModuleExports||jt.includeExternalModuleExports,includeCompletionsWithInsertText:jt.includeCompletionsWithInsertText||jt.includeInsertTextCompletions};return P(),fx.getCompletionsAtPosition(e,l,v,N(ft),Mt,In,jt.triggerCharacter,jt.triggerKind,g,Qt&&Mc.getFormatContext(Qt,e),jt.includeSymbol)}function Se(ft,Mt,jt,Qt,In,yn=Tm,wt){return P(),fx.getCompletionEntryDetails(l,v,N(ft),Mt,{name:jt,source:In,data:wt},e,Qt&&Mc.getFormatContext(Qt,e),yn,g)}function re(ft,Mt,jt,Qt,In=Tm){return P(),fx.getCompletionEntrySymbol(l,v,N(ft),Mt,{name:jt,source:Qt},e,In)}function be(ft,Mt,jt,Qt){P();let In=N(ft),yn=np(In,Mt);if(yn===In)return;let wt=l.getTypeChecker(),En=lt(yn),xn=KYe(En,wt);if(!xn||wt.isUnknownSymbol(xn)){let zo=ce(In,En,Mt)?wt.getTypeAtLocation(En):void 0;return zo&&{kind:"",kindModifiers:"",textSpan:Fu(En,In),displayParts:wt.runWithCancellationToken(g,Bl=>_O(Bl,zo,CE(En),void 0,Qt)),documentation:zo.symbol?zo.symbol.getDocumentationComment(wt):void 0,tags:zo.symbol?zo.symbol.getJsDocTags(wt):void 0}}let{symbolKind:Ln,displayParts:ln,documentation:Ii,tags:ra,canIncreaseVerbosityLevel:sa}=wt.runWithCancellationToken(g,zo=>_v.getSymbolDisplayPartsDocumentationAndSymbolKind(zo,xn,In,CE(En),En,void 0,void 0,jt??vte,Qt));return{kind:Ln,kindModifiers:_v.getSymbolModifiers(wt,xn),textSpan:Fu(En,In),displayParts:ln,documentation:Ii,tags:ra,canIncreaseVerbosityLevel:sa}}function Ne(ft,Mt){return P(),oX.preparePasteEdits(N(ft),Mt,l.getTypeChecker())}function Be(ft,Mt){return P(),aX.pasteEditsProvider(N(ft.targetFile),ft.pastedText,ft.pasteLocations,ft.copiedFrom?{file:N(ft.copiedFrom.file),range:ft.copiedFrom.range}:void 0,e,ft.preferences,Mc.getFormatContext(Mt,e),g)}function lt(ft){return L1(ft.parent)&&ft.pos===ft.parent.pos?ft.parent.expression:uD(ft.parent)&&ft.pos===ft.parent.pos||zR(ft.parent)&&ft.parent.name===ft||fh(ft.parent)?ft.parent:ft}function ce(ft,Mt,jt){switch(Mt.kind){case 80:return Mt.flags&16777216&&!Ir(Mt)&&(Mt.parent.kind===172&&Mt.parent.name===Mt||Dn(Mt,Qt=>Qt.kind===170))?!1:!mq(Mt)&&!hq(Mt)&&!wm(Mt.parent);case 212:case 167:return!uv(ft,jt);case 110:case 198:case 108:case 203:return!0;case 237:return zR(Mt);default:return!1}}function De(ft,Mt,jt,Qt){return P(),iC.getDefinitionAtPosition(l,N(ft),Mt,jt,Qt)}function ge(ft,Mt){return P(),iC.getDefinitionAndBoundSpan(l,N(ft),Mt)}function je(ft,Mt){return P(),iC.getTypeDefinitionAtPosition(l.getTypeChecker(),N(ft),Mt)}function Ge(ft,Mt){return P(),Ys.getImplementationsAtPosition(l,g,l.getSourceFiles(),N(ft),Mt)}function We(ft,Mt,jt){let Qt=ya(ft);C.assert(jt.some(wt=>ya(wt)===Qt)),P();let In=Ui(jt,wt=>l.getSourceFile(wt)),yn=N(ft);return L7.getDocumentHighlights(l,g,yn,Mt,In)}function at(ft,Mt,jt,Qt,In){P();let yn=N(ft),wt=r7(np(yn,Mt));if(_5.nodeIsEligibleForRename(wt))if(He(wt)&&(ph(wt.parent)||k1(wt.parent))&&YR(wt.escapedText)){let{openingElement:En,closingElement:xn}=wt.parent.parent;return[En,xn].map(Ln=>{let ln=Fu(Ln.tagName,yn);return{fileName:yn.fileName,textSpan:ln,...Ys.toContextSpan(ln,yn,Ln.parent)}})}else{let En=zp(yn,In??Tm),xn=typeof In=="boolean"?In:In?.providePrefixAndSuffixTextForRename;return cn(wt,Mt,{findInStrings:jt,findInComments:Qt,providePrefixAndSuffixTextForRename:xn,use:Ys.FindReferencesUse.Rename},(Ln,ln,Ii)=>Ys.toRenameLocation(Ln,ln,Ii,xn||!1,En))}}function Wt(ft,Mt){return P(),cn(np(N(ft),Mt),Mt,{use:Ys.FindReferencesUse.References},Ys.toReferenceEntry)}function cn(ft,Mt,jt,Qt){P();let In=jt&&jt.use===Ys.FindReferencesUse.Rename?l.getSourceFiles().filter(yn=>!l.isSourceFileDefaultLibrary(yn)):l.getSourceFiles();return Ys.findReferenceOrRenameEntries(l,g,In,ft,Mt,jt,Qt)}function gn(ft,Mt){return P(),Ys.findReferencedSymbols(l,g,l.getSourceFiles(),N(ft),Mt)}function Kn(ft){return P(),Ys.Core.getReferencesForFileName(ft,l,l.getSourceFiles()).map(Ys.toReferenceEntry)}function _t(ft,Mt,jt,Qt=!1,In=!1){P();let yn=jt?[N(jt)]:l.getSourceFiles();return kIe(yn,l.getTypeChecker(),g,ft,Mt,Qt,In)}function en(ft,Mt,jt){P();let Qt=N(ft),In=e.getCustomTransformers&&e.getCustomTransformers();return mse(l,Qt,!!Mt,g,In,jt)}function ir(ft,Mt,{triggerReason:jt}=Tm){P();let Qt=N(ft);return JO.getSignatureHelpItems(l,Qt,Mt,jt,g)}function Di(ft){return s.getCurrentSourceFile(ft)}function lo(ft,Mt,jt){let Qt=s.getCurrentSourceFile(ft),In=np(Qt,Mt);if(In===Qt)return;switch(In.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let yn=In;for(;;)if(VD(yn)||Mle(yn))yn=yn.parent;else if(gq(yn))if(yn.parent.parent.kind===268&&yn.parent.parent.body===yn.parent)yn=yn.parent.parent.name;else break;else break;return ic(yn.getStart(),In.getEnd())}function zt(ft,Mt){let jt=s.getCurrentSourceFile(ft);return YJ.spanInSourceFileAtLocation(jt,Mt)}function Zr(ft){return FIe(s.getCurrentSourceFile(ft),g)}function Ai(ft){return zIe(s.getCurrentSourceFile(ft),g)}function Ni(ft,Mt,jt){return P(),(jt||"original")==="2020"?cRe(l,g,N(ft),Mt):vce(l.getTypeChecker(),g,N(ft),l.getClassifiableNames(),Mt)}function Pr(ft,Mt,jt){return P(),(jt||"original")==="original"?pJ(l.getTypeChecker(),g,N(ft),l.getClassifiableNames(),Mt):Jde(l,g,N(ft),Mt)}function Ci(ft,Mt){return bce(g,s.getCurrentSourceFile(ft),Mt)}function $e(ft,Mt){return fJ(g,s.getCurrentSourceFile(ft),Mt)}function At(ft){let Mt=s.getCurrentSourceFile(ft);return UK.collectElements(Mt,g)}let mn=new Map(Object.entries({19:20,21:22,23:24,32:30}));mn.forEach((ft,Mt)=>mn.set(ft.toString(),Number(Mt)));function dr(ft,Mt){let jt=s.getCurrentSourceFile(ft),Qt=HD(jt,Mt),In=Qt.getStart(jt)===Mt?mn.get(Qt.kind.toString()):void 0,yn=In&&Es(Qt.parent,In,jt);return yn?[Fu(Qt,jt),Fu(yn,jt)].sort((wt,En)=>wt.start-En.start):ae}function ri(ft,Mt,jt){let Qt=Ls(),In=NO(jt),yn=s.getCurrentSourceFile(ft);v("getIndentationAtPosition: getCurrentSourceFile: "+(Ls()-Qt)),Qt=Ls();let wt=Mc.SmartIndenter.getIndentation(Mt,yn,In);return v("getIndentationAtPosition: computeIndentation : "+(Ls()-Qt)),wt}function ai(ft,Mt,jt,Qt){let In=s.getCurrentSourceFile(ft);return Mc.formatSelection(Mt,jt,In,Mc.getFormatContext(NO(Qt),e))}function qi(ft,Mt){return Mc.formatDocument(s.getCurrentSourceFile(ft),Mc.getFormatContext(NO(Mt),e))}function $o(ft,Mt,jt,Qt){let In=s.getCurrentSourceFile(ft),yn=Mc.getFormatContext(NO(Qt),e);if(!uv(In,Mt))switch(jt){case"{":return Mc.formatOnOpeningCurly(Mt,In,yn);case"}":return Mc.formatOnClosingCurly(Mt,In,yn);case";":return Mc.formatOnSemicolon(Mt,In,yn);case`
`:return Mc.formatOnEnter(Mt,In,yn)}return[]}function Ia(ft,Mt,jt,Qt,In,yn=Tm){P();let wt=N(ft),En=ic(Mt,jt),xn=Mc.getFormatContext(In,e);return Ki(t1(Qt,Zv,js),Ln=>(g.throwIfCancellationRequested(),lu.getFixes({errorCode:Ln,sourceFile:wt,span:En,program:l,host:e,cancellationToken:g,formatContext:xn,preferences:yn})))}function Mn(ft,Mt,jt,Qt=Tm){P(),C.assert(ft.type==="file");let In=N(ft.fileName),yn=Mc.getFormatContext(jt,e);return lu.getAllFixes({fixId:Mt,sourceFile:In,program:l,host:e,cancellationToken:g,formatContext:yn,preferences:Qt})}function Uo(ft,Mt,jt=Tm){P(),C.assert(ft.type==="file");let Qt=N(ft.fileName);if(rI(Qt))return ae;let In=Mc.getFormatContext(Mt,e),yn=ft.mode??(ft.skipDestructiveCodeActions?"SortAndCombine":"All");return pT.organizeImports(Qt,In,e,l,jt,yn)}function ot(ft,Mt,jt,Qt=Tm){return Ece(F(),ft,Mt,e,Mc.getFormatContext(jt,e),Qt,R)}function Ft(ft,Mt){let jt=typeof ft=="string"?Mt:ft;return Mo(jt)?Promise.all(jt.map(Qt=>le(Qt))):le(jt)}function le(ft){let Mt=jt=>ks(jt,_,A);return C.assertEqual(ft.type,"install package"),e.installPackage?e.installPackage({fileName:Mt(ft.file),packageName:ft.packageName}):Promise.reject("Host does not implement `installPackage`")}function ht(ft,Mt,jt,Qt){let In=Qt?Mc.getFormatContext(Qt,e).options:void 0;return uT.getDocCommentTemplateAtPosition(_y(e,In),s.getCurrentSourceFile(ft),Mt,jt)}function ne(ft,Mt,jt){if(jt===60)return!1;let Qt=s.getCurrentSourceFile(ft);if(nx(Qt,Mt))return!1;if(Fle(Qt,Mt))return jt===123;if(Eq(Qt,Mt))return!1;switch(jt){case 39:case 34:case 96:return!uv(Qt,Mt)}return!0}function Fe(ft,Mt){let jt=s.getCurrentSourceFile(ft),Qt=Vc(Mt,jt);if(!Qt)return;let In=Qt.kind===32&&ph(Qt.parent)?Qt.parent.parent:NI(Qt)&&n_(Qt.parent)?Qt.parent:void 0;if(In&&Ot(In))return{newText:`</${In.openingElement.tagName.getText(jt)}>`};let yn=Qt.kind===32&&Vm(Qt.parent)?Qt.parent.parent:NI(Qt)&&J0(Qt.parent)?Qt.parent:void 0;if(yn&&nt(yn))return{newText:"</>"}}function it(ft,Mt){let jt=s.getCurrentSourceFile(ft),Qt=Vc(Mt,jt);if(!Qt||Qt.parent.kind===308)return;let In="[a-zA-Z0-9:\\-\\._$]*";if(J0(Qt.parent.parent)){let yn=Qt.parent.parent.openingFragment,wt=Qt.parent.parent.closingFragment;if(rI(yn)||rI(wt))return;let En=yn.getStart(jt)+1,xn=wt.getStart(jt)+2;return Mt!==En&&Mt!==xn?void 0:{ranges:[{start:En,length:0},{start:xn,length:0}],wordPattern:In}}else{let yn=Dn(Qt.parent,sa=>!!(ph(sa)||k1(sa)));if(!yn)return;C.assert(ph(yn)||k1(yn),"tag should be opening or closing element");let wt=yn.parent.openingElement,En=yn.parent.closingElement,xn=wt.tagName.getStart(jt),Ln=wt.tagName.end,ln=En.tagName.getStart(jt),Ii=En.tagName.end;return xn===wt.getStart(jt)||ln===En.getStart(jt)||Ln===wt.getEnd()||Ii===En.getEnd()||!(xn<=Mt&&Mt<=Ln||ln<=Mt&&Mt<=Ii)||wt.tagName.getText(jt)!==En.tagName.getText(jt)?void 0:{ranges:[{start:xn,length:Ln-xn},{start:ln,length:Ii-ln}],wordPattern:In}}}function dt(ft,Mt){return{lineStarts:ft.getLineStarts(),firstLine:ft.getLineAndCharacterOfPosition(Mt.pos).line,lastLine:ft.getLineAndCharacterOfPosition(Mt.end).line}}function Lt(ft,Mt,jt){let Qt=s.getCurrentSourceFile(ft),In=[],{lineStarts:yn,firstLine:wt,lastLine:En}=dt(Qt,Mt),xn=jt||!1,Ln=Number.MAX_VALUE,ln=new Map,Ii=new RegExp(/\S/),ra=o7(Qt,yn[wt]),sa=ra?"{/*":"//";for(let zo=wt;zo<=En;zo++){let Bl=Qt.text.substring(yn[zo],Qt.getLineEndOfPosition(yn[zo])),xl=Ii.exec(Bl);xl&&(Ln=Math.min(Ln,xl.index),ln.set(zo.toString(),xl.index),Bl.substr(xl.index,sa.length)!==sa&&(xn=jt===void 0||jt))}for(let zo=wt;zo<=En;zo++){if(wt!==En&&yn[zo]===Mt.end)continue;let Bl=ln.get(zo.toString());Bl!==void 0&&(ra?In.push(...Ue(ft,{pos:yn[zo]+Ln,end:Qt.getLineEndOfPosition(yn[zo])},xn,ra)):xn?In.push({newText:sa,span:{length:0,start:yn[zo]+Ln}}):Qt.text.substr(yn[zo]+Bl,sa.length)===sa&&In.push({newText:"",span:{length:sa.length,start:yn[zo]+Bl}}))}return In}function Ue(ft,Mt,jt,Qt){var In;let yn=s.getCurrentSourceFile(ft),wt=[],{text:En}=yn,xn=!1,Ln=jt||!1,ln=[],{pos:Ii}=Mt,ra=Qt!==void 0?Qt:o7(yn,Ii),sa=ra?"{/*":"/*",zo=ra?"*/}":"*/",Bl=ra?"\\{\\/\\*":"\\/\\*",xl=ra?"\\*\\/\\}":"\\*\\/";for(;Ii<=Mt.end;){let Ps=En.substr(Ii,sa.length)===sa?sa.length:0,co=uv(yn,Ii+Ps);if(co)ra&&(co.pos--,co.end++),ln.push(co.pos),co.kind===3&&ln.push(co.end),xn=!0,Ii=co.end+1;else{let Go=En.substring(Ii,Mt.end).search(`(${Bl})|(${xl})`);Ln=jt!==void 0?jt:Ln||!Xle(En,Ii,Go===-1?Mt.end:Ii+Go),Ii=Go===-1?Mt.end+1:Ii+Go+zo.length}}if(Ln||!xn){((In=uv(yn,Mt.pos))==null?void 0:In.kind)!==2&&Kv(ln,Mt.pos,js),Kv(ln,Mt.end,js);let Ps=ln[0];En.substr(Ps,sa.length)!==sa&&wt.push({newText:sa,span:{length:0,start:Ps}});for(let co=1;co<ln.length-1;co++)En.substr(ln[co]-zo.length,zo.length)!==zo&&wt.push({newText:zo,span:{length:0,start:ln[co]}}),En.substr(ln[co],sa.length)!==sa&&wt.push({newText:sa,span:{length:0,start:ln[co]}});wt.length%2!==0&&wt.push({newText:zo,span:{length:0,start:ln[ln.length-1]}})}else for(let Ps of ln){let co=Ps-zo.length>0?Ps-zo.length:0,Go=En.substr(co,zo.length)===zo?zo.length:0;wt.push({newText:"",span:{length:sa.length,start:Ps-Go}})}return wt}function Rt(ft,Mt){let jt=s.getCurrentSourceFile(ft),{firstLine:Qt,lastLine:In}=dt(jt,Mt);return Qt===In&&Mt.pos!==Mt.end?Ue(ft,Mt,!0):Lt(ft,Mt,!0)}function It(ft,Mt){let jt=s.getCurrentSourceFile(ft),Qt=[],{pos:In}=Mt,{end:yn}=Mt;In===yn&&(yn+=o7(jt,In)?2:1);for(let wt=In;wt<=yn;wt++){let En=uv(jt,wt);if(En){switch(En.kind){case 2:Qt.push(...Lt(ft,{end:En.end,pos:En.pos+1},!1));break;case 3:Qt.push(...Ue(ft,{end:En.end,pos:En.pos+1},!1))}wt=En.end+1}}return Qt}function Ot({openingElement:ft,closingElement:Mt,parent:jt}){return!Z0(ft.tagName,Mt.tagName)||n_(jt)&&Z0(ft.tagName,jt.openingElement.tagName)&&Ot(jt)}function nt({closingFragment:ft,parent:Mt}){return!!(ft.flags&262144)||J0(Mt)&&nt(Mt)}function Kt(ft,Mt,jt){let Qt=s.getCurrentSourceFile(ft),In=Mc.getRangeOfEnclosingComment(Qt,Mt);return In&&(!jt||In.kind===3)?fv(In):void 0}function Sr(ft,Mt){P();let jt=N(ft);g.throwIfCancellationRequested();let Qt=jt.text,In=[];if(Mt.length>0&&!xn(jt.fileName)){let Ln=wt(),ln;for(;ln=Ln.exec(Qt);){g.throwIfCancellationRequested();let Ii=3;C.assert(ln.length===Mt.length+Ii);let ra=ln[1],sa=ln.index+ra.length;if(!uv(jt,sa))continue;let zo;for(let xl=0;xl<Mt.length;xl++)ln[xl+Ii]&&(zo=Mt[xl]);if(zo===void 0)return C.fail();if(En(Qt.charCodeAt(sa+zo.text.length)))continue;let Bl=ln[2];In.push({descriptor:zo,message:Bl,position:sa})}}return In;function yn(Ln){return Ln.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function wt(){let Ln=/(?:\/{2,}\s*)/.source,ln=/(?:\/\*+\s*)/.source,ra="("+/(?:^(?:\s|\*)*)/.source+"|"+Ln+"|"+ln+")",sa="(?:"+Vt(Mt,co=>"("+yn(co.text)+")").join("|")+")",zo=/(?:$|\*\/)/.source,Bl=/(?:.*?)/.source,xl="("+sa+Bl+")",Ps=ra+xl+zo;return new RegExp(Ps,"gim")}function En(Ln){return Ln>=97&&Ln<=122||Ln>=65&&Ln<=90||Ln>=48&&Ln<=57}function xn(Ln){return Ln.includes("/node_modules/")}}function Oe(ft,Mt,jt){return P(),_5.getRenameInfo(l,N(ft),Mt,jt||{})}function Nt(ft,Mt,jt,Qt,In,yn){let[wt,En]=typeof Mt=="number"?[Mt,void 0]:[Mt.pos,Mt.end];return{file:ft,startPosition:wt,endPosition:En,program:F(),host:e,formatContext:Mc.getFormatContext(Qt,e),cancellationToken:g,preferences:jt,triggerReason:In,kind:yn}}function _e(ft,Mt,jt){return{file:ft,program:F(),host:e,span:Mt,preferences:jt,cancellationToken:g}}function B(ft,Mt){return JK.getSmartSelectionRange(Mt,s.getCurrentSourceFile(ft))}function Ae(ft,Mt,jt=Tm,Qt,In,yn){P();let wt=N(ft);return sx.getApplicableRefactors(Nt(wt,Mt,jt,Tm,Qt,In),yn)}function te(ft,Mt,jt=Tm){P();let Qt=N(ft),In=C.checkDefined(l.getSourceFiles()),yn=TM(ft),wt=DO(Nt(Qt,Mt,jt,Tm)),En=fde(wt?.all),xn=Ui(In,Ln=>{let ln=TM(Ln.fileName);return!l?.isSourceFileFromExternalLibrary(Qt)&&!(Qt===N(Ln.fileName)||yn===".ts"&&ln===".d.ts"||yn===".d.ts"&&po(xc(Ln.fileName),"lib.")&&ln===".d.ts")&&(yn===ln||(yn===".tsx"&&ln===".ts"||yn===".jsx"&&ln===".js")&&!En)?Ln.fileName:void 0});return{newFileName:pde(Qt,l,e,wt),files:xn}}function xt(ft,Mt,jt,Qt,In,yn=Tm,wt){P();let En=N(ft);return sx.getEditsForRefactor(Nt(En,jt,yn,Mt),Qt,In,wt)}function Xt(ft,Mt){return Mt===0?{line:0,character:0}:R.toLineColumnOffset(ft,Mt)}function Le(ft,Mt){P();let jt=lx.resolveCallHierarchyDeclaration(l,np(N(ft),Mt));return jt&&rJ(jt,Qt=>lx.createCallHierarchyItem(l,Qt))}function gt(ft,Mt){P();let jt=N(ft),Qt=iJ(lx.resolveCallHierarchyDeclaration(l,Mt===0?jt:np(jt,Mt)));return Qt?lx.getIncomingCalls(l,Qt,g):[]}function Bt(ft,Mt){P();let jt=N(ft),Qt=iJ(lx.resolveCallHierarchyDeclaration(l,Mt===0?jt:np(jt,Mt)));return Qt?lx.getOutgoingCalls(l,Qt):[]}function gr(ft,Mt,jt=Tm){P();let Qt=N(ft);return GK.provideInlayHints(_e(Qt,Mt,jt))}function tr(ft,Mt,jt,Qt,In){return VK.mapCode(s.getCurrentSourceFile(ft),Mt,jt,e,Mc.getFormatContext(Qt,e),In)}let Jn={dispose:J,cleanupSemanticCache:j,getSyntacticDiagnostics:Z,getSemanticDiagnostics:q,getRegionSemanticDiagnostics:ye,getSuggestionDiagnostics:Y,getCompilerOptionsDiagnostics:Ce,getSyntacticClassifications:Ci,getSemanticClassifications:Ni,getEncodedSyntacticClassifications:$e,getEncodedSemanticClassifications:Pr,getCompletionsAtPosition:Xe,getCompletionEntryDetails:Se,getCompletionEntrySymbol:re,getSignatureHelpItems:ir,getQuickInfoAtPosition:be,getDefinitionAtPosition:De,getDefinitionAndBoundSpan:ge,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:je,getReferencesAtPosition:Wt,findReferences:gn,getFileReferences:Kn,getDocumentHighlights:We,getNameOrDottedNameSpan:lo,getBreakpointStatementAtPosition:zt,getNavigateToItems:_t,getRenameInfo:Oe,getSmartSelectionRange:B,findRenameLocations:at,getNavigationBarItems:Zr,getNavigationTree:Ai,getOutliningSpans:At,getTodoComments:Sr,getBraceMatchingAtPosition:dr,getIndentationAtPosition:ri,getFormattingEditsForRange:ai,getFormattingEditsForDocument:qi,getFormattingEditsAfterKeystroke:$o,getDocCommentTemplateAtPosition:ht,isValidBraceCompletionAtPosition:ne,getJsxClosingTagAtPosition:Fe,getLinkedEditingRangeAtPosition:it,getSpanOfEnclosingComment:Kt,getCodeFixesAtPosition:Ia,getCombinedCodeFix:Mn,applyCodeActionCommand:Ft,organizeImports:Uo,getEditsForFileRename:ot,getEmitOutput:en,getNonBoundSourceFile:Di,getProgram:F,getCurrentProgram:()=>l,getAutoImportProvider:O,updateIsDefinitionOfReferencedSymbols:G,getApplicableRefactors:Ae,getEditsForRefactor:xt,getMoveToRefactoringFileSuggestions:te,toLineColumnOffset:Xt,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:Le,provideCallHierarchyIncomingCalls:gt,provideCallHierarchyOutgoingCalls:Bt,toggleLineComment:Lt,toggleMultilineComment:Ue,commentSelection:Rt,uncommentSelection:It,provideInlayHints:gr,getSupportedCodeFixes:JJ,preparePasteEditsForFile:Ne,getPasteEdits:Be,mapCode:tr};switch(o){case 0:break;case 1:SRe.forEach(ft=>Jn[ft]=()=>{throw new Error(`LanguageService Operation: ${ft} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:UYe.forEach(ft=>Jn[ft]=()=>{throw new Error(`LanguageService Operation: ${ft} not allowed in LanguageServiceMode.Syntactic`)});break;default:C.assertNever(o)}return Jn}function XJ(e){return e.nameTable||HYe(e),e.nameTable}function HYe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(He(i)&&!hq(i)&&i.escapedText||df(i)&&qYe(i)){let o=rM(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(eo(i)){let o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Jo(i,r),Zp(i))for(let o of i.jsDoc)Jo(o,r)})}function qYe(e){return P_(e)||e.parent.kind===284||XYe(e)||hk(e)}function PO(e){let t=JYe(e);return t&&(Wa(t.parent)||w1(t.parent))?t:void 0}function JYe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===168)return HB(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return HB(e.parent)&&(e.parent.parent.kind===211||e.parent.parent.kind===293)&&e.parent.name===e?e.parent:void 0}}function KYe(e,t){let r=PO(e);if(r){let i=t.getContextualType(r.parent),o=i&&Y7(r,t,i,!1);if(o&&o.length===1)return $a(o)}return t.getSymbolAtLocation(e)}function Y7(e,t,r,i){let o=fO(e.name);if(!o)return ae;if(!r.isUnion()){let u=r.getProperty(o);return u?[u]:ae}let s=Wa(e.parent)||w1(e.parent)?Un(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Ui(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){let u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?Ui(r.types,u=>u.getProperty(o)):t1(l,Zv)}function XYe(e){return e&&e.parent&&e.parent.kind===213&&e.parent.argumentExpression===e}function Qde(e){if(Uc)return Qr(ci(ya(Uc.getExecutingFilePath())),yL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}Qne(BYe());function ERe(e,t,r){let i=[];r=AJ(r,i);let o=Mo(e)?e:[e],s=Bw(void 0,void 0,L,r,o,t,!0);return s.diagnostics=so(s.diagnostics,i),s}var YJ={};x(YJ,{spanInSourceFileAtLocation:()=>YYe});function YYe(e,t){if(e.isDeclarationFile)return;let r=Fi(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){let v=Vc(r.pos,e);if(!v||e.getLineAndCharacterOfPosition(v.getEnd()).line!==i)return;r=v}if(r.flags&33554432)return;return _(r);function o(v,E){let A=F1(v)?ga(v.modifiers,zc):void 0,R=A?La(e.text,A.end):v.getStart(e);return ic(R,(E||v).getEnd())}function s(v,E){return o(v,q1(E,E.parent,e))}function l(v,E){return v&&i===e.getLineAndCharacterOfPosition(v.getStart(e)).line?_(v):_(E)}function u(v,E,A){if(v){let R=v.indexOf(E);if(R>=0){let N=R,P=R+1;for(;N>0&&A(v[N-1]);)N--;for(;P<v.length&&A(v[P]);)P++;return ic(La(e.text,v[N].pos),v[P-1].end)}}return o(E)}function d(v){return _(Vc(v.pos,e))}function g(v){return _(q1(v,v.parent,e))}function _(v){if(v){let{parent:Y}=v;switch(v.kind){case 244:return A(v.declarationList.declarations[0]);case 261:case 173:case 172:return A(v);case 170:return N(v);case 263:case 175:case 174:case 178:case 179:case 177:case 219:case 220:return k(v);case 242:if(m1(v))return F(v);case 269:return O(v);case 300:return O(v.block);case 245:return o(v.expression);case 254:return o(v.getChildAt(0),v.expression);case 248:return s(v,v.expression);case 247:return _(v.statement);case 260:return o(v.getChildAt(0));case 246:return s(v,v.expression);case 257:return _(v.statement);case 253:case 252:return o(v.getChildAt(0),v.label);case 249:return j(v);case 250:return s(v,v.expression);case 251:return G(v);case 256:return s(v,v.expression);case 297:case 298:return _(v.statements[0]);case 259:return O(v.tryBlock);case 258:return o(v,v.expression);case 278:return o(v,v.expression);case 272:return o(v,v.moduleReference);case 273:return o(v,v.moduleSpecifier);case 279:return o(v,v.moduleSpecifier);case 268:if(my(v)!==1)return;case 264:case 267:case 307:case 209:return o(v);case 255:return _(v.statement);case 171:return u(Y.modifiers,v,zc);case 207:case 208:return J(v);case 265:case 266:return;case 27:case 1:return l(Vc(v.pos,e));case 28:return d(v);case 19:return q(v);case 20:return ye(v);case 24:return ie(v);case 21:return K(v);case 22:return pe(v);case 59:return de(v);case 32:case 30:return fe(v);case 117:return ve(v);case 93:case 85:case 98:return g(v);case 165:return xe(v);default:if(pv(v))return Z(v);if((v.kind===80||v.kind===231||v.kind===304||v.kind===305)&&pv(Y))return o(v);if(v.kind===227){let{left:Ce,operatorToken:Xe}=v;if(pv(Ce))return Z(Ce);if(Xe.kind===64&&pv(v.parent))return o(v);if(Xe.kind===28)return _(Ce)}if(M_(v))switch(Y.kind){case 247:return d(v);case 171:return _(v.parent);case 249:case 251:return o(v);case 227:if(v.parent.operatorToken.kind===28)return o(v);break;case 220:if(v.parent.body===v)return o(v);break}switch(v.parent.kind){case 304:if(v.parent.name===v&&!pv(v.parent.parent))return _(v.parent.initializer);break;case 217:if(v.parent.type===v)return g(v.parent.type);break;case 261:case 170:{let{initializer:Ce,type:Xe}=v.parent;if(Ce===v||Xe===v||sy(v.kind))return d(v);break}case 227:{let{left:Ce}=v.parent;if(pv(Ce)&&v!==Ce)return d(v);break}default:if(Yo(v.parent)&&v.parent.type===v)return d(v)}return _(v.parent)}}function E(Y){return _d(Y.parent)&&Y.parent.declarations[0]===Y?o(Vc(Y.pos,e,Y.parent),Y):o(Y)}function A(Y){if(Y.parent.parent.kind===250)return _(Y.parent.parent);let Ce=Y.parent;if(Qo(Y.name))return J(Y.name);if(US(Y)&&Y.initializer||di(Y,32)||Ce.parent.kind===251)return E(Y);if(_d(Y.parent)&&Y.parent.declarations[0]!==Y)return _(Vc(Y.pos,e,Y.parent))}function R(Y){return!!Y.initializer||Y.dotDotDotToken!==void 0||di(Y,3)}function N(Y){if(Qo(Y.name))return J(Y.name);if(R(Y))return o(Y);{let Ce=Y.parent,Xe=Ce.parameters.indexOf(Y);return C.assert(Xe!==-1),Xe!==0?N(Ce.parameters[Xe-1]):_(Ce.body)}}function P(Y){return di(Y,32)||Y.parent.kind===264&&Y.kind!==177}function k(Y){if(Y.body)return P(Y)?o(Y):_(Y.body)}function F(Y){let Ce=Y.statements.length?Y.statements[0]:Y.getLastToken();return P(Y.parent)?l(Y.parent,Ce):_(Ce)}function O(Y){switch(Y.parent.kind){case 268:if(my(Y.parent)!==1)return;case 248:case 246:case 250:return l(Y.parent,Y.statements[0]);case 249:case 251:return l(Vc(Y.pos,e,Y.parent),Y.statements[0])}return _(Y.statements[0])}function G(Y){if(Y.initializer.kind===262){let Ce=Y.initializer;if(Ce.declarations.length>0)return _(Ce.declarations[0])}else return _(Y.initializer)}function j(Y){if(Y.initializer)return G(Y);if(Y.condition)return o(Y.condition);if(Y.incrementor)return o(Y.incrementor)}function J(Y){let Ce=Je(Y.elements,Xe=>Xe.kind!==233?Xe:void 0);return Ce?_(Ce):Y.parent.kind===209?o(Y.parent):E(Y.parent)}function Z(Y){C.assert(Y.kind!==208&&Y.kind!==207);let Ce=Y.kind===210?Y.elements:Y.properties,Xe=Je(Ce,Se=>Se.kind!==233?Se:void 0);return Xe?_(Xe):o(Y.parent.kind===227?Y.parent:Y)}function q(Y){switch(Y.parent.kind){case 267:let Ce=Y.parent;return l(Vc(Y.pos,e,Y.parent),Ce.members.length?Ce.members[0]:Ce.getLastToken(e));case 264:let Xe=Y.parent;return l(Vc(Y.pos,e,Y.parent),Xe.members.length?Xe.members[0]:Xe.getLastToken(e));case 270:return l(Y.parent.parent,Y.parent.clauses[0])}return _(Y.parent)}function ye(Y){switch(Y.parent.kind){case 269:if(my(Y.parent.parent)!==1)return;case 267:case 264:return o(Y);case 242:if(m1(Y.parent))return o(Y);case 300:return _(Zs(Y.parent.statements));case 270:let Ce=Y.parent,Xe=Zs(Ce.clauses);return Xe?_(Zs(Xe.statements)):void 0;case 207:let Se=Y.parent;return _(Zs(Se.elements)||Se);default:if(pv(Y.parent)){let re=Y.parent;return o(Zs(re.properties)||re)}return _(Y.parent)}}function ie(Y){switch(Y.parent.kind){case 208:let Ce=Y.parent;return o(Zs(Ce.elements)||Ce);default:if(pv(Y.parent)){let Xe=Y.parent;return o(Zs(Xe.elements)||Xe)}return _(Y.parent)}}function K(Y){return Y.parent.kind===247||Y.parent.kind===214||Y.parent.kind===215?d(Y):Y.parent.kind===218?g(Y):_(Y.parent)}function pe(Y){switch(Y.parent.kind){case 219:case 263:case 220:case 175:case 174:case 178:case 179:case 177:case 248:case 247:case 249:case 251:case 214:case 215:case 218:return d(Y);default:return _(Y.parent)}}function de(Y){return Yo(Y.parent)||Y.parent.kind===304||Y.parent.kind===170?d(Y):_(Y.parent)}function fe(Y){return Y.parent.kind===217?g(Y):_(Y.parent)}function ve(Y){return Y.parent.kind===247?s(Y,Y.parent.expression):_(Y.parent)}function xe(Y){return Y.parent.kind===251?g(Y):_(Y.parent)}}}var lx={};x(lx,{createCallHierarchyItem:()=>Zde,getIncomingCalls:()=>i$e,getOutgoingCalls:()=>m$e,resolveCallHierarchyDeclaration:()=>MRe});function $Ye(e){return(Us(e)||uc(e))&&nd(e)}function ARe(e){return Po(e)||yi(e)}function LO(e){return(Us(e)||Xs(e)||uc(e))&&ARe(e.parent)&&e===e.parent.initializer&&He(e.parent.name)&&(!!(ty(e.parent)&2)||Po(e.parent))}function IRe(e){return Yi(e)||pc(e)||Ql(e)||Us(e)||Cc(e)||uc(e)||$l(e)||Nl(e)||Bm(e)||jf(e)||_p(e)}function tC(e){return Yi(e)||pc(e)&&He(e.name)||Ql(e)||Cc(e)||$l(e)||Nl(e)||Bm(e)||jf(e)||_p(e)||$Ye(e)||LO(e)}function xRe(e){return Yi(e)?e:nd(e)?e.name:LO(e)?e.parent.name:C.checkDefined(e.modifiers&&hn(e.modifiers,RRe))}function RRe(e){return e.kind===90}function DRe(e,t){let r=xRe(t);return r&&e.getSymbolAtLocation(r)}function QYe(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((Ql(t)||Cc(t))&&!nd(t)){let o=t.modifiers&&hn(t.modifiers,RRe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if($l(t)){let o=t.getSourceFile(),s=La(o.text,Xh(t).pos),l=s+6,u=e.getTypeChecker(),d=u.getSymbolAtLocation(t.parent);return{text:`${d?`${u.symbolToString(d,t.parent)} `:""}static {}`,pos:s,end:l}}let r=LO(t)?t.parent.name:C.checkDefined(Oo(t),"Expected call hierarchy item to have a name"),i=He(r)?Kr(r):df(r)?r.text:va(r)&&df(r.expression)?r.expression.text:void 0;if(i===void 0){let o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){let o=$U();i=kR(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function ZYe(e){var t,r,i,o;if(LO(e))return Po(e.parent)&&ui(e.parent.parent)?uc(e.parent.parent)?(t=Z8(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():e_(e.parent.parent.parent.parent)&&He(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return e.parent.kind===211?(i=Z8(e.parent))==null?void 0:i.getText():(o=Oo(e.parent))==null?void 0:o.getText();case 263:case 264:case 268:if(e_(e.parent)&&He(e.parent.parent.name))return e.parent.parent.name.getText()}}function CRe(e,t){if(t.body)return t;if(Ml(t))return gg(t.parent);if(Ql(t)||Nl(t)){let r=DRe(e,t);return r&&r.valueDeclaration&&Ms(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function NRe(e,t){let r=DRe(e,t),i;if(r&&r.declarations){let o=D8(r.declarations),s=Vt(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));o.sort((d,g)=>Wd(s[d].file,s[g].file)||s[d].pos-s[g].pos);let l=Vt(o,d=>r.declarations[d]),u;for(let d of l)tC(d)&&((!u||u.parent!==d.parent||u.end!==d.pos)&&(i=Bn(i,d)),u=d)}return i}function $J(e,t){return $l(t)?t:Ms(t)?CRe(e,t)??NRe(e,t)??t:NRe(e,t)??t}function MRe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(tC(t))return $J(r,t);if(IRe(t)){let o=Dn(t,tC);return o&&$J(r,o)}if(P_(t)){if(tC(t.parent))return $J(r,t.parent);if(IRe(t.parent)){let o=Dn(t.parent,tC);return o&&$J(r,o)}return ARe(t.parent)&&t.parent.initializer&&LO(t.parent.initializer)?t.parent.initializer:void 0}if(Ml(t))return tC(t.parent)?t.parent:void 0;if(t.kind===126&&$l(t.parent)){t=t.parent;continue}if(yi(t)&&t.initializer&&LO(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 Zde(e,t){let r=t.getSourceFile(),i=QYe(e,t),o=ZYe(t),s=H1(t),l=IP(t),u=ic(La(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=ic(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:d}}function e$e(e){return e!==void 0}function t$e(e){if(e.kind===Ys.EntryKind.Node){let{node:t}=e;if(uq(t,!0,!0)||Dle(t,!0,!0)||Cle(t,!0,!0)||Nle(t,!0,!0)||VD(t)||_q(t)){let r=t.getSourceFile();return{declaration:Dn(t,tC)||r,range:Mq(t,r)}}}}function PRe(e){return ss(e.declaration)}function n$e(e,t){return{from:e,fromSpans:t}}function r$e(e,t){return n$e(Zde(e,t[0].declaration),Vt(t,r=>fv(r.range)))}function i$e(e,t,r){if(Yi(t)||pc(t)||$l(t))return[];let i=xRe(t),o=Un(Ys.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ys.FindReferencesUse.References},t$e),e$e);return o?_R(o,PRe,s=>r$e(e,s)):[]}function o$e(e,t){function r(o){let s=V0(o)?o.tag:nu(o)?o.tagName:Ks(o)||$l(o)?o:o.expression,l=MRe(e,s);if(l){let u=Mq(s,o.getSourceFile());if(Mo(l))for(let d of l)t.push({declaration:d,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(tC(o)){if(ui(o))for(let s of o.members)s.name&&va(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:r(o);return;case 217:case 235:i(o.expression);return;case 261:case 170:i(o.name),i(o.initializer);return;case 214:r(o),i(o.expression),Je(o.arguments,i);return;case 215:r(o),i(o.expression),Je(o.arguments,i);return;case 216:r(o),i(o.tag),i(o.template);return;case 287:case 286:r(o),i(o.tagName),i(o.attributes);return;case 171:r(o),i(o.expression);return;case 212:case 213:r(o),Jo(o,i);break;case 239:i(o.expression);return}Uh(o)||Jo(o,i)}}return i}function a$e(e,t){Je(e.statements,t)}function s$e(e,t){!di(e,128)&&e.body&&e_(e.body)&&Je(e.body.statements,t)}function l$e(e,t,r){let i=CRe(e,t);i&&(Je(i.parameters,r),r(i.body))}function c$e(e,t){t(e.body)}function d$e(e,t){Je(e.modifiers,t);let r=v1(e);r&&t(r.expression);for(let i of e.members)bm(i)&&Je(i.modifiers,t),Po(i)?t(i.initializer):Ml(i)&&i.body?(Je(i.parameters,t),t(i.body)):$l(i)&&t(i)}function u$e(e,t){let r=[],i=o$e(e,r);switch(t.kind){case 308:a$e(t,i);break;case 268:s$e(t,i);break;case 263:case 219:case 220:case 175:case 178:case 179:l$e(e.getTypeChecker(),t,i);break;case 264:case 232:d$e(t,i);break;case 176:c$e(t,i);break;default:C.assertNever(t)}return r}function p$e(e,t){return{to:e,fromSpans:t}}function f$e(e,t){return p$e(Zde(e,t[0].declaration),Vt(t,r=>fv(r.range)))}function m$e(e,t){return t.flags&33554432||Bm(t)?[]:_R(u$e(e,t),PRe,r=>f$e(e,r))}var eue={};x(eue,{v2020:()=>LRe});var LRe={};x(LRe,{TokenEncodingConsts:()=>aRe,TokenModifier:()=>lRe,TokenType:()=>sRe,getEncodedSemanticClassifications:()=>Jde,getSemanticClassifications:()=>cRe});var lu={};x(lu,{PreserveOptionalFlags:()=>JMe,addNewNodeForMemberSymbol:()=>KMe,codeFixAll:()=>Ss,createCodeFixAction:()=>oa,createCodeFixActionMaybeFixAll:()=>rue,createCodeFixActionWithoutFixAll:()=>yh,createCombinedCodeActions:()=>cx,createFileTextChanges:()=>kRe,createImportAdder:()=>Q1,createImportSpecifierResolver:()=>EQe,createMissingMemberNodes:()=>Ape,createSignatureDeclarationFromCallExpression:()=>Ipe,createSignatureDeclarationFromSignature:()=>EK,createStubbedBody:()=>r5,eachDiagnostic:()=>dx,findAncestorMatchingSpan:()=>Ppe,generateAccessorFromProperty:()=>nPe,getAccessorConvertiblePropertyAtPosition:()=>oPe,getAllFixes:()=>y$e,getFixes:()=>g$e,getImportCompletionAction:()=>AQe,getImportKind:()=>lK,getJSDocTypedefNodes:()=>TQe,getNoopSymbolTrackerWithResolver:()=>rC,getPromoteTypeOnlyCompletionAction:()=>IQe,getSupportedErrorCodes:()=>h$e,importFixName:()=>nCe,importSymbols:()=>PE,parameterShouldGetTypeFromJSDoc:()=>uDe,registerCodeFix:()=>Sa,setJsonCompilerOptionValue:()=>Npe,setJsonCompilerOptionValues:()=>Cpe,tryGetAutoImportableReferenceFromTypeNode:()=>Z1,typeNodeToAutoImportableTypeNode:()=>xpe,typePredicateToAutoImportableTypeNode:()=>$Me,typeToAutoImportableTypeNode:()=>AK,typeToMinimizedReferenceType:()=>YMe});var tue=lm(),nue=new Map;function yh(e,t,r){return iue(e,J1(r),t,void 0,void 0)}function oa(e,t,r,i,o,s){return iue(e,J1(r),t,i,J1(o),s)}function rue(e,t,r,i,o,s){return iue(e,J1(r),t,i,o&&J1(o),s)}function iue(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Sa(e){for(let t of e.errorCodes)oue=void 0,tue.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)C.assert(!nue.has(t)),nue.set(t,e)}var oue;function h$e(){return oue??(oue=Co(tue.keys()))}function _$e(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(jn(r,s.code)&&i++,i>1)break;let o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function g$e(e){let t=wRe(e),r=tue.get(String(e.errorCode));return Ki(r,i=>Vt(i.getCodeActions(e),_$e(i,t)))}function y$e(e){return nue.get(ma(e.fixId,Bo)).getAllCodeActions(e)}function cx(e,t){return{changes:e,commands:t}}function kRe(e,t){return{fileName:e,textChanges:t}}function Ss(e,t,r){let i=[],o=Rr.ChangeTracker.with(e,s=>dx(e,t,l=>r(s,l,i)));return cx(o,i.length===0?void 0:i)}function dx(e,t,r){for(let i of wRe(e))jn(t,i.code)&&r(i)}function wRe({program:e,sourceFile:t,cancellationToken:r}){let i=[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...bJ(t,e,r)];return hp(e.getCompilerOptions())&&i.push(...e.getDeclarationDiagnostics(t,r)),i}var aue="addConvertToUnknownForNonOverlappingTypes",ORe=[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];Sa({errorCodes:ORe,getCodeActions:function(t){let r=FRe(t.sourceFile,t.span.start);if(r===void 0)return;let i=Rr.ChangeTracker.with(t,o=>WRe(o,t.sourceFile,r));return[oa(aue,i,f.Add_unknown_conversion_for_non_overlapping_types,aue,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[aue],getAllCodeActions:e=>Ss(e,ORe,(t,r)=>{let i=FRe(r.file,r.start);i&&WRe(t,r.file,i)})});function WRe(e,t,r){let i=fD(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function FRe(e,t){if(!Ir(e))return Dn(Fi(e,t),r=>fD(r)||l3(r))}Sa({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){let{sourceFile:r}=t,i=Rr.ChangeTracker.with(t,o=>{let s=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[yh("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}});var sue="addMissingAsync",zRe=[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];Sa({fixIds:[sue],errorCodes:zRe,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=hn(s.getTypeChecker().getDiagnostics(r,o),b$e(l,i)),d=u&&u.relatedInformation&&hn(u.relatedInformation,v=>v.code===f.Did_you_mean_to_mark_this_function_as_async.code),g=GRe(r,d);return g?[BRe(t,g,v=>Rr.ChangeTracker.with(t,v))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return Ss(e,zRe,(i,o)=>{let s=o.relatedInformation&&hn(o.relatedInformation,d=>d.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=GRe(t,s);return l?BRe(e,l,d=>(d(i),[]),r):void 0})}});function BRe(e,t,r,i){let o=r(s=>v$e(s,e.sourceFile,t,i));return oa(sue,o,f.Add_async_modifier_to_containing_function,sue,f.Add_all_missing_async_modifiers)}function v$e(e,t,r,i){if(i&&i.has(ss(r)))return;i?.add(ss(r));let o=L.replaceModifiers(_s(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(Zy(r)|1024)));e.replaceNode(t,r,o)}function GRe(e,t){if(!t)return;let r=Fi(e,t.start);return Dn(r,o=>o.getStart(e)<t.start||o.getEnd()>Dl(t)?"quit":(Xs(o)||Nl(o)||Us(o)||Ql(o))&&KD(t,Fu(o,e)))}function b$e(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>$v(r)&&$v(i)&&KD({start:r,length:i},e)&&s===t&&!!o&&vt(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var lue="addMissingAwait",VRe=f.Property_0_does_not_exist_on_type_1.code,jRe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],cue=[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,VRe,...jRe];Sa({fixIds:[lue],errorCodes:cue,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=URe(r,i,o,s,l);if(!u)return;let d=t.program.getTypeChecker(),g=_=>Rr.ChangeTracker.with(t,_);return rL([HRe(t,u,i,d,g),qRe(t,u,i,d,g)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Ss(e,cue,(l,u)=>{let d=URe(t,u.code,u,i,r);if(!d)return;let g=_=>(_(l),[]);return HRe(e,d,u.code,o,g,s)||qRe(e,d,u.code,o,g,s)})}});function URe(e,t,r,i,o){let s=nJ(e,r);return s&&T$e(e,t,r,i,o)&&JRe(s)?s:void 0}function HRe(e,t,r,i,o,s){let{sourceFile:l,program:u,cancellationToken:d}=e,g=S$e(t,l,d,u,i);if(g){let _=o(v=>{Je(g.initializers,({expression:E})=>due(v,r,l,i,E,s)),s&&g.needsSecondPassForFixAll&&due(v,r,l,i,t,s)});return yh("addMissingAwaitToInitializer",_,g.initializers.length===1?[f.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function qRe(e,t,r,i,o,s){let l=o(u=>due(u,r,e.sourceFile,i,t,s));return oa(lue,l,f.Add_await,lue,f.Fix_all_expressions_possibly_missing_await)}function T$e(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return vt(l,({start:u,length:d,relatedInformation:g,code:_})=>$v(u)&&$v(d)&&KD({start:u,length:d},r)&&_===t&&!!g&&vt(g,v=>v.code===f.Did_you_forget_to_use_await.code))}function S$e(e,t,r,i,o){let s=E$e(e,o);if(!s)return;let l=s.isCompleteFix,u;for(let d of s.identifiers){let g=o.getSymbolAtLocation(d);if(!g)continue;let _=ni(g.valueDeclaration,yi),v=_&&ni(_.name,He),E=w0(_,244);if(!_||!E||_.type||!_.initializer||E.getSourceFile()!==t||di(E,32)||!v||!JRe(_.initializer)){l=!1;continue}let A=i.getSemanticDiagnostics(t,r);if(Ys.Core.eachSymbolReferenceInFile(v,o,t,N=>d!==N&&!A$e(N,A,t,o))){l=!1;continue}(u||(u=[])).push({expression:_.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function E$e(e,t){if(qr(e.parent)&&He(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(He(e))return{identifiers:[e],isCompleteFix:!0};if(Nr(e)){let r,i=!0;for(let o of[e.left,e.right]){let s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!He(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function A$e(e,t,r,i){let o=qr(e.parent)?e.parent.name:Nr(e.parent)?e.parent:e,s=hn(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&jn(cue,s.code)||i.getTypeAtLocation(o).flags&1}function JRe(e){return e.flags&65536||!!Dn(e,t=>t.parent&&Xs(t.parent)&&t.parent.body===t||ea(t)&&(t.parent.kind===263||t.parent.kind===219||t.parent.kind===220||t.parent.kind===175))}function due(e,t,r,i,o,s){if(aw(o.parent)&&!o.parent.awaitModifier){let l=i.getTypeAtLocation(o),u=i.getAnyAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){let d=o.parent;e.replaceNode(r,d,L.updateForOfStatement(d,L.createToken(135),d.initializer,d.expression,d.statement));return}}if(Nr(o))for(let l of[o.left,o.right]){if(s&&He(l)){let g=i.getSymbolAtLocation(l);if(g&&s.has(Ta(g)))continue}let u=i.getTypeAtLocation(l),d=i.getPromisedTypeOfPromise(u)?L.createAwaitExpression(l):l;e.replaceNode(r,l,d)}else if(t===VRe&&qr(o.parent)){if(s&&He(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o.parent.expression,L.createParenthesizedExpression(L.createAwaitExpression(o.parent.expression))),KRe(e,o.parent.expression,r)}else if(jn(jRe,t)&&Bh(o.parent)){if(s&&He(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o,L.createParenthesizedExpression(L.createAwaitExpression(o))),KRe(e,o,r)}else{if(s&&yi(o.parent)&&He(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!rh(s,Ta(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function KRe(e,t,r){let i=Vc(t.pos,r);i&&b7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var uue="addMissingConst",XRe=[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];Sa({errorCodes:XRe,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>YRe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[oa(uue,r,f.Add_const_to_unresolved_variable,uue,f.Add_const_to_all_unresolved_variables)]},fixIds:[uue],getAllCodeActions:e=>{let t=new Set;return Ss(e,XRe,(r,i)=>YRe(r,i.file,i.start,e.program,t))}});function YRe(e,t,r,i,o){let s=Fi(t,r),l=Dn(s,g=>jS(g.parent)?g.parent.initializer===g:I$e(g)?!1:"quit");if(l)return QJ(e,l,t,o);let u=s.parent;if(Nr(u)&&u.operatorToken.kind===64&&od(u.parent))return QJ(e,s,t,o);if(Cd(u)){let g=i.getTypeChecker();return Vn(u.elements,_=>x$e(_,g))?QJ(e,u,t,o):void 0}let d=Dn(s,g=>od(g.parent)?!0:R$e(g)?!1:"quit");if(d){let g=i.getTypeChecker();return $Re(d,g)?QJ(e,d,t,o):void 0}}function QJ(e,t,r,i){(!i||rh(i,t))&&e.insertModifierBefore(r,87,t)}function I$e(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}function x$e(e,t){let r=He(e)?e:id(e,!0)&&He(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function R$e(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}function $Re(e,t){return Nr(e)?e.operatorToken.kind===28?Vn([e.left,e.right],r=>$Re(r,t)):e.operatorToken.kind===64&&He(e.left)&&!t.getSymbolAtLocation(e.left):!1}var pue="addMissingDeclareProperty",QRe=[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];Sa({errorCodes:QRe,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>ZRe(i,t.sourceFile,t.span.start));if(r.length>0)return[oa(pue,r,f.Prefix_with_declare,pue,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[pue],getAllCodeActions:e=>{let t=new Set;return Ss(e,QRe,(r,i)=>ZRe(r,i.file,i.start,t))}});function ZRe(e,t,r,i){let o=Fi(t,r);if(!He(o))return;let s=o.parent;s.kind===173&&(!i||rh(i,s))&&e.insertModifierBefore(t,138,s)}var fue="addMissingInvocationForDecorator",eDe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];Sa({errorCodes:eDe,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>tDe(i,t.sourceFile,t.span.start));return[oa(fue,r,f.Call_decorator_expression,fue,f.Add_to_all_uncalled_decorators)]},fixIds:[fue],getAllCodeActions:e=>Ss(e,eDe,(t,r)=>tDe(t,r.file,r.start))});function tDe(e,t,r){let i=Fi(t,r),o=Dn(i,zc);C.assert(!!o,"Expected position to be owned by a decorator.");let s=L.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var mue="addMissingResolutionModeImportAttribute",nDe=[f.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,f.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];Sa({errorCodes:nDe,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>rDe(i,t.sourceFile,t.span.start,t.program,t.host,t.preferences));return[oa(mue,r,f.Add_resolution_mode_import_attribute,mue,f.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[mue],getAllCodeActions:e=>Ss(e,nDe,(t,r)=>rDe(t,r.file,r.start,e.program,e.host,e.preferences))});function rDe(e,t,r,i,o,s){var l,u,d;let g=Fi(t,r),_=Dn(g,Ip(vl,Zh));C.assert(!!_,"Expected position to be owned by an ImportDeclaration or ImportType.");let v=zp(t,s)===0,E=sI(_),A=!E||((l=SE(E.text,t.fileName,i.getCompilerOptions(),o,i.getModuleResolutionCache(),void 0,99).resolvedModule)==null?void 0:l.resolvedFileName)===((d=(u=i.getResolvedModuleFromModuleSpecifier(E,t))==null?void 0:u.resolvedModule)==null?void 0:d.resolvedFileName),R=_.attributes?L.updateImportAttributes(_.attributes,L.createNodeArray([..._.attributes.elements,L.createImportAttribute(L.createStringLiteral("resolution-mode",v),L.createStringLiteral(A?"import":"require",v))],_.attributes.elements.hasTrailingComma),_.attributes.multiLine):L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode",v),L.createStringLiteral(A?"import":"require",v))]));_.kind===273?e.replaceNode(t,_,L.updateImportDeclaration(_,_.modifiers,_.importClause,_.moduleSpecifier,R)):e.replaceNode(t,_,L.updateImportTypeNode(_,_.argument,R,_.qualifier,_.typeArguments))}var hue="addNameToNamelessParameter",iDe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];Sa({errorCodes:iDe,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>oDe(i,t.sourceFile,t.span.start));return[oa(hue,r,f.Add_parameter_name,hue,f.Add_names_to_all_parameters_without_names)]},fixIds:[hue],getAllCodeActions:e=>Ss(e,iDe,(t,r)=>oDe(t,r.file,r.start))});function oDe(e,t,r){let i=Fi(t,r),o=i.parent;if(!to(o))return C.fail("Tried to add a parameter name to a non-parameter: "+C.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);C.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),C.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=L.createTypeReferenceNode(o.name,void 0),d=aDe(t,o);for(;d;)u=L.createArrayTypeNode(u),l=d.getEnd(),d=aDe(t,d);let g=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!iw(u)?L.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,Ff(o.getStart(t),l),g)}function aDe(e,t){let r=q1(t.name,t.parent,e);if(r&&r.kind===23&&cv(r.parent)&&to(r.parent.parent))return r.parent.parent}var sDe="addOptionalPropertyUndefined",D$e=[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];Sa({errorCodes:D$e,getCodeActions(e){let t=e.program.getTypeChecker(),r=C$e(e.sourceFile,e.span,t);if(!r.length)return;let i=Rr.ChangeTracker.with(e,o=>M$e(o,r));return[yh(sDe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[sDe]});function C$e(e,t,r){var i,o;let s=lDe(nJ(e,t),r);if(!s)return ae;let{source:l,target:u}=s,d=N$e(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=d.symbol)==null?void 0:i.declarations)!=null&&o.some(g=>Wn(g).fileName.match(/\.d\.ts$/))?ae:r.getExactOptionalProperties(d)}function N$e(e,t,r){return qr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function lDe(e,t){var r;if(e){if(Nr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(yi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Zo(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!YA(i.valueDeclaration.kind)||!St(e))return;let o=e.parent.arguments.indexOf(e);if(o===-1)return;let s=i.valueDeclaration.parameters[o].name;if(He(s))return{source:e,target:s}}else if(Nc(e.parent)&&He(e.parent.name)||Ud(e.parent)){let i=lDe(e.parent.parent,t);if(!i)return;let o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:Nc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function M$e(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(Tu(i)||Po(i))&&i.type){let o=L.createUnionTypeNode([...i.type.kind===193?i.type.types:[i.type],L.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var _ue="annotateWithTypeFromJSDoc",cDe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code];Sa({errorCodes:cDe,getCodeActions(e){let t=dDe(e.sourceFile,e.span.start);if(!t)return;let r=Rr.ChangeTracker.with(e,i=>fDe(i,e.sourceFile,t));return[oa(_ue,r,f.Annotate_with_type_from_JSDoc,_ue,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[_ue],getAllCodeActions:e=>Ss(e,cDe,(t,r)=>{let i=dDe(r.file,r.start);i&&fDe(t,r.file,i)})});function dDe(e,t){let r=Fi(e,t);return ni(to(r.parent)?r.parent.parent:r.parent,uDe)}function uDe(e){return P$e(e)&&pDe(e)}function pDe(e){return Ms(e)?e.parameters.some(pDe)||!e.type&&!!AL(e):!e.type&&!!Ky(e)}function fDe(e,t,r){if(Ms(r)&&(AL(r)||r.parameters.some(i=>!!Ky(i)))){if(!r.typeParameters){let o=dW(r);o.length&&e.insertTypeParameters(t,r,o)}let i=Xs(r)&&!Es(r,21,t);i&&e.insertNodeBefore(t,$a(r.parameters),L.createToken(21));for(let o of r.parameters)if(!o.type){let s=Ky(o);s&&e.tryInsertTypeAnnotation(t,o,st(s,$1,Ri))}if(i&&e.insertNodeAfter(t,Ba(r.parameters),L.createToken(22)),!r.type){let o=AL(r);o&&e.tryInsertTypeAnnotation(t,r,st(o,$1,Ri))}}else{let i=C.checkDefined(Ky(r),"A JSDocType for this declaration should exist");C.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,st(i,$1,Ri))}}function P$e(e){return Ms(e)||e.kind===261||e.kind===172||e.kind===173}function $1(e){switch(e.kind){case 313:case 314:return L.createTypeReferenceNode("any",ae);case 317:return k$e(e);case 316:return $1(e.type);case 315:return w$e(e);case 319:return O$e(e);case 318:return W$e(e);case 184:return z$e(e);case 323:return L$e(e);default:let t=kn(e,$1,void 0);return Cr(t,1),t}}function L$e(e){let t=L.createTypeLiteralNode(Vt(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,He(r.name)?r.name:r.name.right,qk(r)?L.createToken(58):void 0,r.typeExpression&&st(r.typeExpression.type,$1,Ri)||L.createKeywordTypeNode(133))));return Cr(t,1),t}function k$e(e){return L.createUnionTypeNode([st(e.type,$1,Ri),L.createTypeReferenceNode("undefined",ae)])}function w$e(e){return L.createUnionTypeNode([st(e.type,$1,Ri),L.createTypeReferenceNode("null",ae)])}function O$e(e){return L.createArrayTypeNode(st(e.type,$1,Ri))}function W$e(e){return L.createFunctionTypeNode(ae,e.parameters.map(F$e),e.type??L.createKeywordTypeNode(133))}function F$e(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===319&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?L.createToken(26):e.dotDotDotToken;return L.createParameterDeclaration(e.modifiers,o,i,e.questionToken,st(e.type,$1,Ri),e.initializer)}function z$e(e){let t=e.typeName,r=e.typeArguments;if(He(e.typeName)){if(H6(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=L.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=L.createNodeArray([L.createTypeReferenceNode("any",ae)]):r=Xn(e.typeArguments,$1,Ri)}return L.createTypeReferenceNode(t,r)}function B$e(e){let t=L.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,L.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=L.createTypeLiteralNode([L.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Cr(r,1),r}var gue="convertFunctionToEs6Class",mDe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code];Sa({errorCodes:mDe,getCodeActions(e){let t=Rr.ChangeTracker.with(e,r=>hDe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[oa(gue,t,f.Convert_function_to_an_ES2015_class,gue,f.Convert_all_constructor_functions_to_classes)]},fixIds:[gue],getAllCodeActions:e=>Ss(e,mDe,(t,r)=>hDe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function hDe(e,t,r,i,o,s){let l=i.getSymbolAtLocation(Fi(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;let u=l.valueDeclaration;if(Ql(u)||Us(u))e.replaceNode(t,u,_(u));else if(yi(u)){let v=g(u);if(!v)return;let E=u.parent.parent;_d(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,E,v)):e.replaceNode(t,E,v)}function d(v){let E=[];return v.exports&&v.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){let P=N.declarations[0];if(N.declarations.length===1&&qr(P)&&Nr(P.parent)&&P.parent.operatorToken.kind===64&&Wa(P.parent.right)){let k=P.parent.right;R(k.symbol,void 0,E)}}else R(N,[L.createToken(126)],E)}),v.members&&v.members.forEach((N,P)=>{var k,F,O,G;if(P==="constructor"&&N.valueDeclaration){let j=(G=(O=(F=(k=v.exports)==null?void 0:k.get("prototype"))==null?void 0:F.declarations)==null?void 0:O[0])==null?void 0:G.parent;j&&Nr(j)&&Wa(j.right)&&vt(j.right.properties,eK)||e.delete(t,N.valueDeclaration.parent);return}R(N,void 0,E)}),E;function A(N,P){return Ks(N)?qr(N)&&eK(N)?!0:Yo(P):Vn(N.properties,k=>!!(Nl(k)||xL(k)||Nc(k)&&Us(k.initializer)&&k.name||eK(k)))}function R(N,P,k){if(!(N.flags&8192)&&!(N.flags&4096))return;let F=N.valueDeclaration,O=F.parent,G=O.right;if(!A(F,G)||vt(k,ye=>{let ie=Oo(ye);return!!(ie&&He(ie)&&Kr(ie)===wl(N))}))return;let j=O.parent&&O.parent.kind===245?O.parent:O;if(e.delete(t,j),!G){k.push(L.createPropertyDeclaration(P,N.name,void 0,void 0,void 0));return}if(Ks(F)&&(Us(G)||Xs(G))){let ye=zp(t,o),ie=G$e(F,s,ye);ie&&J(k,G,ie);return}else if(Wa(G)){Je(G.properties,ye=>{(Nl(ye)||xL(ye))&&k.push(ye),Nc(ye)&&Us(ye.initializer)&&J(k,ye.initializer,ye.name),eK(ye)});return}else{if(Mu(t)||!qr(F))return;let ye=L.createPropertyDeclaration(P,F.name,void 0,void 0,G);YD(O.parent,ye,t),k.push(ye);return}function J(ye,ie,K){return Us(ie)?Z(ye,ie,K):q(ye,ie,K)}function Z(ye,ie,K){let pe=so(P,ZJ(ie,134)),de=L.createMethodDeclaration(pe,void 0,K,void 0,void 0,ie.parameters,void 0,ie.body);YD(O,de,t),ye.push(de)}function q(ye,ie,K){let pe=ie.body,de;pe.kind===242?de=pe:de=L.createBlock([L.createReturnStatement(pe)]);let fe=so(P,ZJ(ie,134)),ve=L.createMethodDeclaration(fe,void 0,K,void 0,void 0,ie.parameters,void 0,de);YD(O,ve,t),ye.push(ve)}}}function g(v){let E=v.initializer;if(!E||!Us(E)||!He(v.name))return;let A=d(v.symbol);E.body&&A.unshift(L.createConstructorDeclaration(void 0,E.parameters,E.body));let R=ZJ(v.parent.parent,95);return L.createClassDeclaration(R,v.name,void 0,void 0,A)}function _(v){let E=d(l);v.body&&E.unshift(L.createConstructorDeclaration(void 0,v.parameters,v.body));let A=ZJ(v,95);return L.createClassDeclaration(A,v.name,void 0,void 0,E)}}function ZJ(e,t){return bm(e)?Un(e.modifiers,r=>r.kind===t):void 0}function eK(e){return e.name?!!(He(e.name)&&e.name.text==="constructor"):!1}function G$e(e,t,r){if(qr(e))return e.name;let i=e.argumentExpression;if(ep(i))return i;if(cs(i))return pp(i.text,Ga(t))?L.createIdentifier(i.text):lE(i)?L.createStringLiteral(i.text,r===0):i}var yue="convertToAsyncFunction",_De=[f.This_may_be_converted_to_an_async_function.code],tK=!0;Sa({errorCodes:_De,getCodeActions(e){tK=!0;let t=Rr.ChangeTracker.with(e,r=>gDe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return tK?[oa(yue,t,f.Convert_to_async_function,yue,f.Convert_all_to_async_functions)]:[]},fixIds:[yue],getAllCodeActions:e=>Ss(e,_De,(t,r)=>gDe(t,r.file,r.start,e.program.getTypeChecker()))});function gDe(e,t,r,i){let o=Fi(t,r),s;if(He(o)&&yi(o.parent)&&o.parent.initializer&&Ms(o.parent.initializer)?s=o.parent.initializer:s=ni(cf(Fi(t,r)),EJ),!s)return;let l=new Map,u=Ir(s),d=j$e(s,i),g=U$e(s,i,l);if(!TJ(g,i))return;let _=g.body&&ea(g.body)?V$e(g.body,i):ae,v={checker:i,synthNamesMap:l,setOfExpressionsToReturn:d,isInJSFile:u};if(!_.length)return;let E=La(t.text,Xh(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(let A of _)if(Jo(A,function R(N){if(Zo(N)){let P=nC(N,N,v,!1);if(ux())return!0;e.replaceNodeWithNodes(t,A,P)}else if(!Yo(N)&&(Jo(N,R),ux()))return!0}),ux())return}function V$e(e,t){let r=[];return _b(e,i=>{k7(i,t)&&r.push(i)}),r}function j$e(e,t){if(!e.body)return new Set;let r=new Set;return Jo(e.body,function i(o){kO(o,t,"then")?(r.add(ss(o)),Je(o.arguments,i)):kO(o,t,"catch")||kO(o,t,"finally")?(r.add(ss(o)),Jo(o,i)):vDe(o,t)?r.add(ss(o)):Jo(o,i)}),r}function kO(e,t,r){if(!Zo(e))return!1;let o=oO(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function yDe(e,t){return(Hr(e)&4)!==0&&e.target===t}function nK(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(yDe(i,r.getPromiseType())||yDe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Xv(e.arguments,0))return Xv(e.typeArguments,0);if(t===Xv(e.arguments,1))return Xv(e.typeArguments,1)}else return Xv(e.typeArguments,0)}function vDe(e,t){return St(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function U$e(e,t,r){let i=new Map,o=lm();return Jo(e,function s(l){if(!He(l)){Jo(l,s);return}let u=t.getSymbolAtLocation(l);if(u){let d=t.getTypeAtLocation(l),g=IDe(d,t),_=Ta(u).toString();if(g&&!to(l.parent)&&!Ms(l.parent)&&!r.has(_)){let v=Ic(g.parameters),E=v?.valueDeclaration&&to(v.valueDeclaration)&&ni(v.valueDeclaration.name,He)||L.createUniqueName("result",16),A=bDe(E,o);r.set(_,A),o.add(E.text,u)}else if(l.parent&&(to(l.parent)||yi(l.parent)||Ha(l.parent))){let v=l.text,E=o.get(v);if(E&&E.some(A=>A!==u)){let A=bDe(l,o);i.set(_,A.identifier),r.set(_,A),o.add(v,u)}else{let A=_s(l);r.set(_,BP(A)),o.add(v,u)}}}}),Xk(e,!0,s=>{if(Ha(s)&&He(s.name)&&pf(s.parent)){let l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Ta(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return L.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(He(s)){let l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ta(l)));if(u)return L.createIdentifier(u.text)}})}function bDe(e,t){let r=(t.get(e.text)||ae).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return BP(i)}function ux(){return!tK}function cT(){return tK=!1,ae}function nC(e,t,r,i,o){if(kO(t,r.checker,"then"))return J$e(t,Xv(t.arguments,0),Xv(t.arguments,1),r,i,o);if(kO(t,r.checker,"catch"))return EDe(t,Xv(t.arguments,0),r,i,o);if(kO(t,r.checker,"finally"))return q$e(t,Xv(t.arguments,0),r,i,o);if(qr(t))return nC(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(C.assertNode(yl(t).parent,qr),K$e(e,t,r,i,o)):cT()}function rK({checker:e},t){if(t.kind===106)return!0;if(He(t)&&!pl(t)&&Kr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function H$e(e){let t=L.createUniqueName(e.identifier.text,16);return BP(t)}function TDe(e,t,r){let i;return r&&!OO(e,t)&&(wO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=H$e(r);t.synthNamesMap.set(s,l)}})):i=BP(L.createUniqueName("result",16),r.types),Sue(i)),i}function SDe(e,t,r,i,o){let s=[],l;if(i&&!OO(e,t)){l=_s(Sue(i));let u=i.types,d=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),_=[L.createVariableDeclaration(l,void 0,g)],v=L.createVariableStatement(void 0,L.createVariableDeclarationList(_,1));s.push(v)}return s.push(r),o&&l&&$$e(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(CDe(o)),void 0,void 0,l)],2))),s}function q$e(e,t,r,i,o){if(!t||rK(r,t))return nC(e,e.expression.expression,r,i,o);let s=TDe(e,r,o),l=nC(e,e.expression.expression,r,!0,s);if(ux())return cT();let u=bue(t,i,void 0,void 0,e,r);if(ux())return cT();let d=L.createBlock(l),g=L.createBlock(u),_=L.createTryStatement(d,void 0,g);return SDe(e,r,_,s,o)}function EDe(e,t,r,i,o){if(!t||rK(r,t))return nC(e,e.expression.expression,r,i,o);let s=RDe(t,r),l=TDe(e,r,o),u=nC(e,e.expression.expression,r,!0,l);if(ux())return cT();let d=bue(t,i,l,s,e,r);if(ux())return cT();let g=L.createBlock(u),_=L.createCatchClause(s&&_s($7(s)),L.createBlock(d)),v=L.createTryStatement(g,_,void 0);return SDe(e,r,v,l,o)}function J$e(e,t,r,i,o,s){if(!t||rK(i,t))return EDe(e,r,i,o,s);if(r&&!rK(i,r))return cT();let l=RDe(t,i),u=nC(e.expression.expression,e.expression.expression,i,!0,l);if(ux())return cT();let d=bue(t,o,s,l,e,i);return ux()?cT():so(u,d)}function K$e(e,t,r,i,o){if(OO(e,r)){let s=_s(t);return i&&(s=L.createAwaitExpression(s)),[L.createReturnStatement(s)]}return iK(o,L.createAwaitExpression(t),void 0)}function iK(e,t,r){return!e||DDe(e)?[L.createExpressionStatement(t)]:wO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(_s(Tue(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s($7(e)),void 0,r,t)],2))]}function vue(e,t){if(t&&e){let r=L.createUniqueName("result",16);return[...iK(BP(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function bue(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 212:case 80:if(!i)break;let u=L.createCallExpression(_s(e),void 0,wO(i)?[Tue(i)]:[]);if(OO(o,s))return vue(u,nK(o,e,s.checker));let d=s.checker.getTypeAtLocation(e),g=s.checker.getSignaturesOfType(d,0);if(!g.length)return cT();let _=g[0].getReturnType(),v=iK(r,L.createAwaitExpression(u),nK(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(_)||_),v;case 219:case 220:{let E=e.body,A=(l=IDe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(ea(E)){let R=[],N=!1;for(let P of E.statements)if(ef(P))if(N=!0,k7(P,s.checker))R=R.concat(xDe(s,P,t,r));else{let k=A&&P.expression?ADe(s.checker,A,P.expression):P.expression;R.push(...vue(k,nK(o,e,s.checker)))}else{if(t&&_b(P,n1))return cT();R.push(P)}return OO(o,s)?R.map(P=>_s(P)):X$e(R,r,s,N)}else{let R=SJ(E,s.checker)?xDe(s,L.createReturnStatement(E),t,r):ae;if(R.length>0)return R;if(A){let N=ADe(s.checker,A,E);if(OO(o,s))return vue(N,nK(o,e,s.checker));{let P=iK(r,N,void 0);return r&&r.types.push(s.checker.getAwaitedType(A)||A),P}}else return cT()}}default:return cT()}return ae}function ADe(e,t,r){let i=_s(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function IDe(e,t){let r=t.getSignaturesOfType(e,0);return Zs(r)}function X$e(e,t,r,i){let o=[];for(let s of e)if(ef(s)){if(s.expression){let l=vDe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):wO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(Tue(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration($7(t),void 0,void 0,l)],2)))}}else o.push(_s(s));return!i&&t!==void 0&&o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration($7(t),void 0,void 0,L.createIdentifier("undefined"))],2))),o}function xDe(e,t,r,i){let o=[];return Jo(t,function s(l){if(Zo(l)){let u=nC(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else Yo(l)||Jo(l,s)}),o}function RDe(e,t){let r=[],i;if(Ms(e)){if(e.parameters.length>0){let d=e.parameters[0].name;i=o(d)}}else He(e)?i=s(e):qr(e)&&He(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(d){if(He(d))return s(d);let g=Ki(d.elements,_=>Kc(_)?[]:[o(_.name)]);return Y$e(d,g)}function s(d){let g=u(d),_=l(g);return _&&t.synthNamesMap.get(Ta(_).toString())||BP(d,r)}function l(d){var g;return((g=ni(d,ah))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(d)}function u(d){return d.original?d.original:d}}function DDe(e){return e?wO(e)?!e.identifier.text:Vn(e.elements,DDe):!0}function BP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function Y$e(e,t=ae,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Tue(e){return e.hasBeenReferenced=!0,e.identifier}function $7(e){return wO(e)?Sue(e):CDe(e)}function CDe(e){for(let t of e.elements)$7(t);return e.bindingPattern}function Sue(e){return e.hasBeenDeclared=!0,e.identifier}function wO(e){return e.kind===0}function $$e(e){return e.kind===1}function OO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ss(e.original))}Sa({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:i}=e,o=Rr.ChangeTracker.with(e,s=>{if(Z$e(t,r.getTypeChecker(),s,Ga(r.getCompilerOptions()),zp(t,i)))for(let u of r.getSourceFiles())Q$e(u,t,r,s,zp(u,i))});return[yh("convertToEsModule",o,f.Convert_to_ES_module)]}});function Q$e(e,t,r,i,o){var s;for(let l of e.imports){let u=(s=r.getResolvedModuleFromModuleSpecifier(l,e))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;let d=$N(l);switch(d.kind){case 272:i.replaceNode(e,d,zb(d.name,void 0,l,o));break;case 214:$u(d,!1)&&i.replaceNode(e,d,L.createPropertyAccessExpression(_s(d),"default"));break}}}function Z$e(e,t,r,i,o){let s={original:pQe(e),additional:new Set},l=eQe(e,t,s);tQe(e,l,r);let u=!1,d;for(let g of Un(e.statements,ac)){let _=MDe(e,g,r,t,s,i,o);_&&v6(_,d??(d=new Map))}for(let g of Un(e.statements,_=>!ac(_))){let _=nQe(e,g,t,r,s,i,l,d,o);u=u||_}return d?.forEach((g,_)=>{r.replaceNode(e,_,g)}),u}function eQe(e,t,r){let i=new Map;return NDe(e,o=>{let{text:s}=o.name;!i.has(s)&&(LG(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,oK(`_${s}`,r))}),i}function tQe(e,t,r){NDe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function NDe(e,t){e.forEachChild(function r(i){if(qr(i)&&z1(e,i.expression)&&He(i.name)){let{parent:o}=i;t(i,Nr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function nQe(e,t,r,i,o,s,l,u,d){switch(t.kind){case 244:return MDe(e,t,i,r,o,s,d),!1;case 245:{let{expression:g}=t;switch(g.kind){case 214:return $u(g,!0)&&i.replaceNode(e,t,zb(void 0,void 0,g.arguments[0],d)),!1;case 227:{let{operatorToken:_}=g;return _.kind===64&&iQe(e,r,g,i,l,u)}}}default:return!1}}function MDe(e,t,r,i,o,s,l){let{declarationList:u}=t,d=!1,g=Vt(u.declarations,_=>{let{name:v,initializer:E}=_;if(E){if(z1(e,E))return d=!0,GP([]);if($u(E,!0))return d=!0,dQe(v,E.arguments[0],i,o,s,l);if(qr(E)&&$u(E.expression,!0))return d=!0,rQe(v,E.name.text,E.expression.arguments[0],o,l)}return GP([L.createVariableStatement(void 0,L.createVariableDeclarationList([_],u.flags))])});if(d){r.replaceNodeWithNodes(e,t,Ki(g,v=>v.newImports));let _;return Je(g,v=>{v.useSitesToUnqualify&&v6(v.useSitesToUnqualify,_??(_=new Map))}),_}}function rQe(e,t,r,i,o){switch(e.kind){case 207:case 208:{let s=oK(t,i);return GP([wDe(s,t,r,o),aK(void 0,e,L.createIdentifier(s))])}case 80:return GP([wDe(e.text,t,r,o)]);default:return C.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function iQe(e,t,r,i,o,s){let{left:l,right:u}=r;if(!qr(l))return!1;if(z1(e,l))if(z1(e,u))i.delete(e,r.parent);else{let d=Wa(u)?oQe(u,s):$u(u,!0)?sQe(u.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,Ff(l.getStart(e),u.pos),"export default"),!0)}else z1(e,l.expression)&&aQe(e,r,i,o);return!1}function oQe(e,t){let r=T0(e.properties,i=>{switch(i.kind){case 178:case 179:case 305:case 306:return;case 304:return He(i.name)?cQe(i.name.text,i.initializer,t):void 0;case 175:return He(i.name)?kDe(i.name.text,[L.createToken(95)],i,t):void 0;default:C.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function aQe(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[aK(void 0,s,t.right),Iue([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else lQe(t,e,r)}function sQe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:yt;return o.has("export=")?[[Eue(r)],!0]:o.has("default")?o.size>1?[[PDe(r),Eue(r)],!0]:[[Eue(r)],!0]:[[PDe(r)],!1]}function PDe(e){return Iue(void 0,e)}function Eue(e){return Iue([L.createExportSpecifier(!1,void 0,"default")],e)}function lQe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((Us(t)||Xs(t)||uc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},L.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);let l=Es(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Es(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function cQe(e,t,r){let i=[L.createToken(95)];switch(t.kind){case 219:{let{name:s}=t;if(s&&s.text!==e)return o()}case 220:return kDe(e,i,t,r);case 232:return mQe(e,i,t,r);default:return o()}function o(){return aK(i,L.createIdentifier(e),Aue(t,r))}}function Aue(e,t){if(!t||!vt(Co(t.keys()),i=>Zu(e,i)))return e;return Mo(e)?qV(e,!0,r):Xk(e,!0,r);function r(i){if(i.kind===212){let o=t.get(i);return t.delete(i),o}}}function dQe(e,t,r,i,o,s){switch(e.kind){case 207:{let l=T0(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!He(u.propertyName)||!He(u.name)?void 0:ODe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return GP([zb(void 0,l,t,s)])}case 208:{let l=oK(SO(t.text,o),i);return GP([zb(L.createIdentifier(l),void 0,t,s),aK(void 0,_s(e),L.createIdentifier(l))])}case 80:return uQe(e,t,r,i,s);default:return C.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function uQe(e,t,r,i,o){let s=r.getSymbolAtLocation(e),l=new Map,u=!1,d;for(let _ of i.original.get(e.text)){if(r.getSymbolAtLocation(_)!==s||_===e)continue;let{parent:v}=_;if(qr(v)){let{name:{text:E}}=v;if(E==="default"){u=!0;let A=_.getText();(d??(d=new Map)).set(v,L.createIdentifier(A))}else{C.assert(v.expression===_,"Didn't expect expression === use");let A=l.get(E);A===void 0&&(A=oK(E,i),l.set(E,A)),(d??(d=new Map)).set(v,L.createIdentifier(A))}}else u=!0}let g=l.size===0?void 0:Co(za(l.entries(),([_,v])=>L.createImportSpecifier(!1,_===v?void 0:L.createIdentifier(_),L.createIdentifier(v))));return g||(u=!0),GP([zb(u?_s(e):void 0,g,t,o)],d)}function oK(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function pQe(e){let t=lm();return LDe(e,r=>t.add(r.text,r)),t}function LDe(e,t){He(e)&&fQe(e)&&t(e),e.forEachChild(r=>LDe(r,t))}function fQe(e){let{parent:t}=e;switch(t.kind){case 212:return t.name!==e;case 209:return t.propertyName!==e;case 277:return t.propertyName!==e;default:return!0}}function kDe(e,t,r,i){return L.createFunctionDeclaration(so(t,C1(r.modifiers)),_s(r.asteriskToken),e,C1(r.typeParameters),C1(r.parameters),_s(r.type),L.converters.convertToFunctionBlock(Aue(r.body,i)))}function mQe(e,t,r,i){return L.createClassDeclaration(so(t,C1(r.modifiers)),e,C1(r.typeParameters),C1(r.heritageClauses),Aue(r.members,i))}function wDe(e,t,r,i){return t==="default"?zb(L.createIdentifier(e),void 0,r,i):zb(void 0,[ODe(t,e)],r,i)}function ODe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function aK(e,t,r){return L.createVariableStatement(e,L.createVariableDeclarationList([L.createVariableDeclaration(t,void 0,void 0,r)],2))}function Iue(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function GP(e,t){return{newImports:e,useSitesToUnqualify:t}}var xue="correctQualifiedNameToIndexedAccessType",WDe=[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];Sa({errorCodes:WDe,getCodeActions(e){let t=FDe(e.sourceFile,e.span.start);if(!t)return;let r=Rr.ChangeTracker.with(e,o=>zDe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[oa(xue,r,[f.Rewrite_as_the_indexed_access_type_0,i],xue,f.Rewrite_all_as_indexed_access_types)]},fixIds:[xue],getAllCodeActions:e=>Ss(e,WDe,(t,r)=>{let i=FDe(r.file,r.start);i&&zDe(t,r.file,i)})});function FDe(e,t){let r=Dn(Fi(e,t),Lu);return C.assert(!!r,"Expected position to be owned by a qualified name."),He(r.left)?r:void 0}function zDe(e,t,r){let i=r.right.text,o=L.createIndexedAccessTypeNode(L.createTypeReferenceNode(r.left,void 0),L.createLiteralTypeNode(L.createStringLiteral(i)));e.replaceNode(t,r,o)}var Rue=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],Due="convertToTypeOnlyExport";Sa({errorCodes:Rue,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>GDe(i,BDe(t.span,t.sourceFile),t));if(r.length)return[oa(Due,r,f.Convert_to_type_only_export,Due,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Due],getAllCodeActions:function(t){let r=new Set;return Ss(t,Rue,(i,o)=>{let s=BDe(o,t.sourceFile);s&&_m(r,ss(s.parent.parent))&&GDe(i,s,t)})}});function BDe(e,t){return ni(Fi(t,e.start).parent,iu)}function GDe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=hQe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{let l=L.updateExportDeclaration(o,o.modifiers,!1,L.updateNamedExports(i,Un(i.elements,d=>!jn(s,d))),o.moduleSpecifier,void 0),u=L.createExportDeclaration(void 0,!0,L.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function hQe(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=fce(Fu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Un(r.elements,o=>{var s;return o===e||((s=pce(o,i))==null?void 0:s.code)===Rue[0]})}var VDe=[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],sK="convertToTypeOnlyImport";Sa({errorCodes:VDe,getCodeActions:function(t){var r;let i=jDe(t.sourceFile,t.span.start);if(i){let o=Rr.ChangeTracker.with(t,u=>Q7(u,t.sourceFile,i)),s=i.kind===277&&vl(i.parent.parent.parent)&&UDe(i,t.sourceFile,t.program)?Rr.ChangeTracker.with(t,u=>Q7(u,t.sourceFile,i.parent.parent.parent)):void 0,l=oa(sK,o,i.kind===277?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,sK,f.Fix_all_with_type_only_imports);return vt(s)?[yh(sK,s,f.Use_import_type),l]:[l]}},fixIds:[sK],getAllCodeActions:function(t){let r=new Set;return Ss(t,VDe,(i,o)=>{let s=jDe(o.file,o.start);s?.kind===273&&!r.has(s)?(Q7(i,o.file,s),r.add(s)):s?.kind===277&&vl(s.parent.parent.parent)&&!r.has(s.parent.parent.parent)&&UDe(s,o.file,t.program)?(Q7(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===277&&Q7(i,o.file,s)})}});function jDe(e,t){let{parent:r}=Fi(e,t);return Su(r)||vl(r)&&r.importClause?r:void 0}function UDe(e,t,r){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;let o=r.getTypeChecker();for(let s of i)if(Ys.Core.eachSymbolReferenceInFile(s.name,o,t,u=>{let d=o.getSymbolAtLocation(u);return!!d&&o.symbolIsValue(d)||!F0(u)}))return!1;return!0}function Q7(e,t,r){var i;if(Su(r))e.replaceNode(t,r,L.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[L.createImportDeclaration(C1(r.modifiers,!0),L.createImportClause(156,_s(o.name,!0),void 0),_s(r.moduleSpecifier,!0),_s(r.attributes,!0)),L.createImportDeclaration(C1(r.modifiers,!0),L.createImportClause(156,void 0,_s(o.namedBindings,!0)),_s(r.moduleSpecifier,!0),_s(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===276?L.updateNamedImports(o.namedBindings,Zi(o.namedBindings.elements,u=>L.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=L.updateImportDeclaration(r,r.modifiers,L.updateImportClause(o,156,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var Cue="convertTypedefToType",HDe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];Sa({fixIds:[Cue],errorCodes:HDe,getCodeActions(e){let t=_y(e.host,e.formatContext.options),r=Fi(e.sourceFile,e.span.start);if(!r)return;let i=Rr.ChangeTracker.with(e,o=>qDe(o,r,e.sourceFile,t));if(i.length>0)return[oa(Cue,i,f.Convert_typedef_to_TypeScript_type,Cue,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ss(e,HDe,(t,r)=>{let i=_y(e.host,e.formatContext.options),o=Fi(r.file,r.start);o&&qDe(t,o,r.file,i,!0)})});function qDe(e,t,r,i,o=!1){if(!yE(t))return;let s=gQe(t);if(!s)return;let l=t.parent,{leftSibling:u,rightSibling:d}=_Qe(t),g=l.getStart(),_="";!u&&l.comment&&(g=JDe(l,l.getStart(),t.getStart()),_=`${i} */${i}`),u&&(o&&yE(u)?(g=t.getStart(),_=""):(g=JDe(l,u.getStart(),t.getStart()),_=`${i} */${i}`));let v=l.getEnd(),E="";d&&(o&&yE(d)?(v=d.getStart(),E=`${i}${i}`):(v=d.getStart(),E=`${i}/**${i} * `)),e.replaceRange(r,{pos:g,end:v},s,{prefix:_,suffix:E})}function _Qe(e){let 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 JDe(e,t,r){let i=e.getText().substring(t-e.getStart(),r-e.getStart());for(let o=i.length;o>0;o--)if(!/[*/\s]/.test(i.substring(o-1,o)))return t+o;return r}function gQe(e){var t;let{typeExpression:r}=e;if(!r)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===323)return yQe(i,r);if(r.kind===310)return vQe(i,r)}}function yQe(e,t){let r=KDe(t);if(vt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function vQe(e,t){let r=_s(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function KDe(e){let t=e.jsDocPropertyTags;return vt(t)?Ui(t,i=>{var o;let s=bQe(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed,d;if(l&&gE(l)){let g=KDe(l);d=L.createTypeLiteralNode(g)}else l&&(d=_s(l));if(d&&s){let g=u?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,g,d)}}):void 0}function bQe(e){return e.name.kind===80?e.name.text:e.name.right.text}function TQe(e){return Zp(e)?Ki(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>yE(i))}):[]}var Nue="convertLiteralTypeToMappedType",XDe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];Sa({errorCodes:XDe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=YDe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,u=Rr.ChangeTracker.with(t,d=>$De(d,r,o));return[oa(Nue,u,[f.Convert_0_to_1_in_0,l,s],Nue,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[Nue],getAllCodeActions:e=>Ss(e,XDe,(t,r)=>{let i=YDe(r.file,r.start);i&&$De(t,r.file,i)})});function YDe(e,t){let r=Fi(e,t);if(He(r)){let i=ma(r.parent.parent,Tu),o=r.getText(e);return{container:ma(i.parent,ku),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function $De(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,L.createMappedTypeNode(void 0,L.createTypeParameterDeclaration(void 0,s,L.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var QDe=[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],Mue="fixClassIncorrectlyImplementsInterface";Sa({errorCodes:QDe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=ZDe(t,r.start);return Ui(JR(i),o=>{let s=Rr.ChangeTracker.with(e,l=>tCe(e,o,t,i,l,e.preferences));return s.length===0?void 0:oa(Mue,s,[f.Implement_interface_0,o.getText(t)],Mue,f.Implement_all_unimplemented_interfaces)})},fixIds:[Mue],getAllCodeActions(e){let t=new Set;return Ss(e,QDe,(r,i)=>{let o=ZDe(i.file,i.start);if(_m(t,ss(o)))for(let s of JR(o))tCe(e,s,i.file,o,r,e.preferences)})}});function ZDe(e,t){return C.checkDefined(hd(Fi(e,t)),"There should be a containing class")}function eCe(e){return!e.valueDeclaration||!(Gd(e.valueDeclaration)&2)}function tCe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),u=SQe(i,l),d=l.getTypeAtLocation(t),_=l.getPropertiesOfType(d).filter(P8(eCe,P=>!u.has(P.escapedName))),v=l.getTypeAtLocation(i),E=hn(i.members,P=>Ml(P));v.getNumberIndexType()||R(d,1),v.getStringIndexType()||R(d,0);let A=Q1(r,e.program,s,e.host);Ape(i,_,r,e,s,A,P=>N(r,i,P)),A.writeFixes(o);function R(P,k){let F=l.getIndexInfoOfType(P,k);F&&N(r,i,l.indexInfoToIndexSignatureDeclaration(F,i,void 0,void 0,rC(e)))}function N(P,k,F){E?o.insertNodeAfter(P,E,F):o.insertMemberAtStart(P,k,F)}}function SQe(e,t){let r=lh(e);if(!r)return da();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return da(o.filter(eCe))}var nCe="import",rCe="fixMissingImport",iCe=[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,f.Cannot_extend_an_interface_0_Did_you_mean_implements.code,f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];Sa({errorCodes:iCe,getCodeActions(e){let{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=dCe(e,t,o.start,!0);if(l)return l.map(({fix:u,symbolName:d,errorIdentifierText:g})=>kue(e,i,d,u,d!==g,s,r))},fixIds:[rCe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=oCe(t,r,!0,i,o,s);return dx(e,iCe,u=>l.addImportFromDiagnostic(u,e)),cx(Rr.ChangeTracker.with(e,l.writeFixes))}});function Q1(e,t,r,i,o){return oCe(e,t,!1,r,i,o)}function oCe(e,t,r,i,o,s){let l=t.getCompilerOptions(),u=[],d=[],g=new Map,_=new Set,v=new Set,E=new Map;return{addImportFromDiagnostic:N,addImportFromExportedSymbol:P,addImportForModuleSymbol:k,writeFixes:j,hasFixes:Z,addImportForUnresolvedIdentifier:R,addImportForNonExistentExport:F,removeExistingImport:O,addVerbatimImport:A};function A(q){v.add(q)}function R(q,ye,ie){let K=LQe(q,ye,ie);!K||!K.length||G($a(K))}function N(q,ye){let ie=dCe(ye,q.code,q.start,r);!ie||!ie.length||G($a(ie))}function P(q,ye,ie){var K,pe;let de=C.checkDefined(q.parent,"Expected exported symbol to have module symbol as parent"),fe=I7(q,Ga(l)),ve=t.getTypeChecker(),xe=ve.getMergedSymbol(xd(q,ve)),Y=sCe(e,xe,fe,de,!1,t,o,i,s);if(!Y){C.assert((K=i.autoImportFileExcludePatterns)==null?void 0:K.length);return}let Ce=WO(e,t),Xe=Pue(e,Y,t,void 0,!!ye,Ce,o,i);if(Xe){let Se=((pe=ni(ie?.name,He))==null?void 0:pe.text)??fe,re,be;ie&&CR(ie)&&(Xe.kind===3||Xe.kind===2)&&Xe.addAsTypeOnly===1&&(re=2),q.name!==Se&&(be=q.name),Xe={...Xe,...re===void 0?{}:{addAsTypeOnly:re},...be===void 0?{}:{propertyName:be}},G({fix:Xe,symbolName:Se??fe})}}function k(q,ye,ie){var K,pe,de;let fe=t.getTypeChecker(),ve=fe.getAliasedSymbol(q);C.assert(ve.flags&1536,"Expected symbol to be a module");let xe=oT(t,o),Y=hy.getModuleSpecifiersWithCacheInfo(ve,fe,l,e,xe,i,void 0,!0),Ce=WO(e,t),Xe=e5(ye,!0,void 0,q.flags,t.getTypeChecker(),l);Xe=Xe===1&&CR(ie)?2:1;let Se=vl(ie)?QS(ie)?1:2:Su(ie)?0:Gm(ie)&&ie.name?1:2,re=[{symbol:q,moduleSymbol:ve,moduleFileName:(de=(pe=(K=ve.declarations)==null?void 0:K[0])==null?void 0:pe.getSourceFile())==null?void 0:de.fileName,exportKind:4,targetFlags:q.flags,isFromPackageJson:!1}],be=Pue(e,re,t,void 0,!!ye,Ce,o,i),Ne;be&&Se!==2&&be.kind!==0&&be.kind!==1?Ne={...be,addAsTypeOnly:Xe,importKind:Se}:Ne={kind:3,moduleSpecifierKind:be!==void 0?be.moduleSpecifierKind:Y.kind,moduleSpecifier:be!==void 0?be.moduleSpecifier:$a(Y.moduleSpecifiers),importKind:Se,addAsTypeOnly:Xe,useRequire:Ce},G({fix:Ne,symbolName:q.name})}function F(q,ye,ie,K,pe){let de=t.getSourceFile(ye),fe=WO(e,t);if(de&&de.symbol){let{fixes:ve}=Z7([{exportKind:ie,isFromPackageJson:!1,moduleFileName:ye,moduleSymbol:de.symbol,targetFlags:K}],void 0,pe,fe,t,e,o,i);ve.length&&G({fix:ve[0],symbolName:q})}else{let ve=N7(ye,99,t,o),xe=hy.getLocalModuleSpecifierBetweenFileNames(e,ye,l,oT(t,o),i),Y=lK(ve,ie,t),Ce=e5(pe,!0,void 0,K,t.getTypeChecker(),l);G({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:xe,importKind:Y,addAsTypeOnly:Ce,useRequire:fe},symbolName:q})}}function O(q){q.kind===274&&C.assertIsDefined(q.name,"ImportClause should have a name if it's being removed"),_.add(q)}function G(q){var ye,ie,K;let{fix:pe,symbolName:de}=q;switch(pe.kind){case 0:u.push(pe);break;case 1:d.push(pe);break;case 2:{let{importClauseOrBindingPattern:Y,importKind:Ce,addAsTypeOnly:Xe,propertyName:Se}=pe,re=g.get(Y);if(re||g.set(Y,re={importClauseOrBindingPattern:Y,defaultImport:void 0,namedImports:new Map}),Ce===0){let be=(ye=re?.namedImports.get(de))==null?void 0:ye.addAsTypeOnly;re.namedImports.set(de,{addAsTypeOnly:fe(be,Xe),propertyName:Se})}else C.assert(re.defaultImport===void 0||re.defaultImport.name===de,"(Add to Existing) Default import should be missing or match symbolName"),re.defaultImport={name:de,addAsTypeOnly:fe((ie=re.defaultImport)==null?void 0:ie.addAsTypeOnly,Xe)};break}case 3:{let{moduleSpecifier:Y,importKind:Ce,useRequire:Xe,addAsTypeOnly:Se,propertyName:re}=pe,be=ve(Y,Ce,Xe,Se);switch(C.assert(be.useRequire===Xe,"(Add new) Tried to add an `import` and a `require` for the same module"),Ce){case 1:C.assert(be.defaultImport===void 0||be.defaultImport.name===de,"(Add new) Default import should be missing or match symbolName"),be.defaultImport={name:de,addAsTypeOnly:fe((K=be.defaultImport)==null?void 0:K.addAsTypeOnly,Se)};break;case 0:let Ne=(be.namedImports||(be.namedImports=new Map)).get(de);be.namedImports.set(de,[fe(Ne,Se),re]);break;case 3:if(l.verbatimModuleSyntax){let Be=(be.namedImports||(be.namedImports=new Map)).get(de);be.namedImports.set(de,[fe(Be,Se),re])}else C.assert(be.namespaceLikeImport===void 0||be.namespaceLikeImport.name===de,"Namespacelike import shoudl be missing or match symbolName"),be.namespaceLikeImport={importKind:Ce,name:de,addAsTypeOnly:Se};break;case 2:C.assert(be.namespaceLikeImport===void 0||be.namespaceLikeImport.name===de,"Namespacelike import shoudl be missing or match symbolName"),be.namespaceLikeImport={importKind:Ce,name:de,addAsTypeOnly:Se};break}break}case 4:break;default:C.assertNever(pe,`fix wasn't never - got kind ${pe.kind}`)}function fe(Y,Ce){return Math.max(Y??0,Ce)}function ve(Y,Ce,Xe,Se){let re=xe(Y,!0),be=xe(Y,!1),Ne=E.get(re),Be=E.get(be),lt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Xe};return Ce===1&&Se===2?Ne||(E.set(re,lt),lt):Se===1&&(Ne||Be)?Ne||Be:Be||(E.set(be,lt),lt)}function xe(Y,Ce){return`${Ce?1:0}|${Y}`}}function j(q,ye){var ie,K;let pe;e.imports!==void 0&&e.imports.length===0&&ye!==void 0?pe=ye:pe=zp(e,i);for(let ve of u)wue(q,e,ve);for(let ve of d)vCe(q,e,ve,pe);let de;if(_.size){C.assert(hg(e),"Cannot remove imports from a future source file");let ve=new Set(Ui([..._],Se=>Dn(Se,vl))),xe=new Set(Ui([..._],Se=>Dn(Se,tk))),Y=[...ve].filter(Se=>{var re,be,Ne;return!g.has(Se.importClause)&&(!((re=Se.importClause)!=null&&re.name)||_.has(Se.importClause))&&(!ni((be=Se.importClause)==null?void 0:be.namedBindings,Ag)||_.has(Se.importClause.namedBindings))&&(!ni((Ne=Se.importClause)==null?void 0:Ne.namedBindings,t_)||Vn(Se.importClause.namedBindings.elements,Be=>_.has(Be)))}),Ce=[...xe].filter(Se=>(Se.name.kind!==207||!g.has(Se.name))&&(Se.name.kind!==207||Vn(Se.name.elements,re=>_.has(re)))),Xe=[...ve].filter(Se=>{var re,be;return((re=Se.importClause)==null?void 0:re.namedBindings)&&Y.indexOf(Se)===-1&&!((be=g.get(Se.importClause))!=null&&be.namedImports)&&(Se.importClause.namedBindings.kind===275||Vn(Se.importClause.namedBindings.elements,Ne=>_.has(Ne)))});for(let Se of[...Y,...Ce])q.delete(e,Se);for(let Se of Xe)q.replaceNode(e,Se.importClause,L.updateImportClause(Se.importClause,Se.importClause.phaseModifier,Se.importClause.name,void 0));for(let Se of _){let re=Dn(Se,vl);re&&Y.indexOf(re)===-1&&Xe.indexOf(re)===-1?Se.kind===274?q.delete(e,Se.name):(C.assert(Se.kind===277,"NamespaceImport should have been handled earlier"),(ie=g.get(re.importClause))!=null&&ie.namedImports?(de??(de=new Set)).add(Se):q.delete(e,Se)):Se.kind===209?(K=g.get(Se.parent))!=null&&K.namedImports?(de??(de=new Set)).add(Se):q.delete(e,Se):Se.kind===272&&q.delete(e,Se)}}g.forEach(({importClauseOrBindingPattern:ve,defaultImport:xe,namedImports:Y})=>{yCe(q,e,ve,xe,Co(Y.entries(),([Ce,{addAsTypeOnly:Xe,propertyName:Se}])=>({addAsTypeOnly:Xe,propertyName:Se,name:Ce})),de,i)});let fe;E.forEach(({useRequire:ve,defaultImport:xe,namedImports:Y,namespaceLikeImport:Ce},Xe)=>{let Se=Xe.slice(2),be=(ve?SCe:TCe)(Se,pe,xe,Y&&Co(Y.entries(),([Ne,[Be,lt]])=>({addAsTypeOnly:Be,propertyName:lt,name:Ne})),Ce,l,i);fe=zA(fe,be)}),fe=zA(fe,J()),fe&&zq(q,e,fe,!0,i)}function J(){if(!v.size)return;let q=new Set(Ui([...v],ie=>Dn(ie,vl))),ye=new Set(Ui([...v],ie=>Dn(ie,nk)));return[...Ui([...v],ie=>ie.kind===272?_s(ie,!0):void 0),...[...q].map(ie=>{var K;return v.has(ie)?_s(ie,!0):_s(L.updateImportDeclaration(ie,ie.modifiers,ie.importClause&&L.updateImportClause(ie.importClause,ie.importClause.phaseModifier,v.has(ie.importClause)?ie.importClause.name:void 0,v.has(ie.importClause.namedBindings)?ie.importClause.namedBindings:(K=ni(ie.importClause.namedBindings,t_))!=null&&K.elements.some(pe=>v.has(pe))?L.updateNamedImports(ie.importClause.namedBindings,ie.importClause.namedBindings.elements.filter(pe=>v.has(pe))):void 0),ie.moduleSpecifier,ie.attributes),!0)}),...[...ye].map(ie=>v.has(ie)?_s(ie,!0):_s(L.updateVariableStatement(ie,ie.modifiers,L.updateVariableDeclarationList(ie.declarationList,Ui(ie.declarationList.declarations,K=>v.has(K)?K:L.updateVariableDeclaration(K,K.name.kind===207?L.updateObjectBindingPattern(K.name,K.name.elements.filter(pe=>v.has(pe))):K.name,K.exclamationToken,K.type,K.initializer)))),!0))]}function Z(){return u.length>0||d.length>0||g.size>0||E.size>0||v.size>0||_.size>0}}function EQe(e,t,r,i){let o=$D(e,i,r),s=lCe(e,t);return{getModuleSpecifierForBestExportInfo:l};function l(u,d,g,_){let{fixes:v,computedWithoutCacheCount:E}=Z7(u,d,g,!1,t,e,r,i,s,_),A=pCe(v,e,t,o,r,i);return A&&{...A,computedWithoutCacheCount:E}}}function AQe(e,t,r,i,o,s,l,u,d,g,_,v){let E;r?(E=AO(i,l,u,_,v).get(i.path,r),C.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=fB(hm(t.name))?[xQe(e,o,t,u,l)]:sCe(i,e,o,t,s,u,l,_,v),C.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));let A=WO(i,u),R=F0(Fi(i,g)),N=C.checkDefined(Pue(i,E,u,g,R,A,l,_));return{moduleSpecifier:N.moduleSpecifier,codeAction:aCe(kue({host:l,formatContext:d,preferences:_},i,o,N,!1,u,_))}}function IQe(e,t,r,i,o,s){let l=r.getCompilerOptions(),u=Rz(Lue(e,r.getTypeChecker(),t,l)),d=_Ce(e,t,u,r),g=u!==t.text;return d&&aCe(kue({host:i,formatContext:o,preferences:s},e,u,d,g,r,s))}function Pue(e,t,r,i,o,s,l,u){let d=$D(e,u,l);return pCe(Z7(t,i,o,s,r,e,l,u).fixes,e,r,d,l,u)}function aCe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function sCe(e,t,r,i,o,s,l,u,d){let g=cCe(s,l),_=u.autoImportFileExcludePatterns&&yce(l,u),v=s.getTypeChecker().getMergedSymbol(i),E=_&&v.declarations&&al(v,308),A=E&&_(E);return AO(e,l,s,u,d).search(e.path,o,R=>R===r,R=>{let N=g(R[0].isFromPackageJson);if(N.getMergedSymbol(xd(R[0].symbol,N))===t&&(A||R.some(P=>N.getMergedSymbol(P.moduleSymbol)===i||P.symbol.parent===i)))return R})}function xQe(e,t,r,i,o){var s,l;let u=g(i.getTypeChecker(),!1);if(u)return u;let d=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return C.checkDefined(d&&g(d,!0),"Could not find symbol in specified module for code actions");function g(_,v){let E=M7(r,_);if(E&&xd(E.symbol,_)===e)return{symbol:E.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:E.exportKind,targetFlags:xd(e,_).flags,isFromPackageJson:v};let A=_.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&xd(A,_)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:xd(e,_).flags,isFromPackageJson:v}}}function Z7(e,t,r,i,o,s,l,u,d=hg(s)?lCe(s,o):void 0,g){let _=o.getTypeChecker(),v=d?Ki(e,d.getImportsForExportInfo):ae,E=t!==void 0&&RQe(v,t),A=CQe(v,r,_,o.getCompilerOptions());if(A)return{computedWithoutCacheCount:0,fixes:[...E?[E]:ae,A]};let{fixes:R,computedWithoutCacheCount:N=0}=MQe(e,v,o,s,t,r,i,l,u,g);return{computedWithoutCacheCount:N,fixes:[...E?[E]:ae,...R]}}function RQe(e,t){return Hn(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=DQe(r),l=s&&((o=sI(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:l}})}function DQe(e){var t,r,i;switch(e.kind){case 261:return(t=ni(e.name,He))==null?void 0:t.text;case 272:return e.name.text;case 352:case 273:return(i=ni((r=e.importClause)==null?void 0:r.namedBindings,Ag))==null?void 0:i.name.text;default:return C.assertNever(e)}}function e5(e,t,r,i,o,s){return e?r&&s.verbatimModuleSyntax&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function CQe(e,t,r,i){let o;for(let l of e){let u=s(l);if(!u)continue;let d=CR(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&d||u.addAsTypeOnly===4&&!d)return u;o??(o=u)}return o;function s({declaration:l,importKind:u,symbol:d,targetFlags:g}){if(u===3||u===2||l.kind===272)return;if(l.kind===261)return(u===0||u===1)&&l.name.kind===207?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifierKind:void 0,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:_}=l;if(!_||!cs(l.moduleSpecifier))return;let{name:v,namedBindings:E}=_;if(_.isTypeOnly&&!(u===0&&E))return;let A=e5(t,!1,d,g,r,i);if(!(u===1&&(v||A===2&&E))&&!(u===0&&E?.kind===275))return{kind:2,importClauseOrBindingPattern:_,importKind:u,moduleSpecifierKind:void 0,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:A}}}function lCe(e,t){let r=t.getTypeChecker(),i;for(let o of e.imports){let s=$N(o);if(tk(s.parent)){let l=r.resolveExternalModuleName(o);l&&(i||(i=lm())).add(Ta(l),s.parent)}else if(s.kind===273||s.kind===272||s.kind===352){let l=r.getSymbolAtLocation(o);l&&(i||(i=lm())).add(Ta(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{let d=i?.get(Ta(o));if(!d||Mu(e)&&!(l&111551)&&!Vn(d,i_))return ae;let g=lK(e,s,t);return d.map(_=>({declaration:_,importKind:g,symbol:u,targetFlags:l}))}}}function WO(e,t){if(!bg(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return vu(r)<5;if(Wue(e,t)===1)return!0;if(Wue(e,t)===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!Mu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function cCe(e,t){return Wh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function NQe(e,t,r,i,o,s,l,u,d){let g=bg(t.fileName),_=e.getCompilerOptions(),v=oT(e,l),E=cCe(e,l),A=ru(_),R=u7(A),N=d?F=>hy.tryGetModuleSpecifiersFromCache(F.moduleSymbol,t,v,u):(F,O)=>hy.getModuleSpecifiersWithCacheInfo(F.moduleSymbol,O,_,t,v,u,void 0,!0),P=0,k=Ki(s,(F,O)=>{let G=E(F.isFromPackageJson),{computedWithoutCache:j,moduleSpecifiers:J,kind:Z}=N(F,G)??{},q=!!(F.targetFlags&111551),ye=e5(i,!0,F.symbol,F.targetFlags,G,_);return P+=j?1:0,Ui(J,ie=>{if(R&&kb(ie))return;if(!q&&g&&r!==void 0)return{kind:1,moduleSpecifierKind:Z,moduleSpecifier:ie,usagePosition:r,exportInfo:F,isReExport:O>0};let K=lK(t,F.exportKind,e),pe;if(r!==void 0&&K===3&&F.exportKind===0){let de=G.resolveExternalModuleSymbol(F.moduleSymbol),fe;de!==F.moduleSymbol&&(fe=P7(de,G,Ga(_),Vs)),fe||(fe=TO(F.moduleSymbol,Ga(_),!1)),pe={namespacePrefix:fe,usagePosition:r}}return{kind:3,moduleSpecifierKind:Z,moduleSpecifier:ie,importKind:K,useRequire:o,addAsTypeOnly:ye,exportInfo:F,isReExport:O>0,qualification:pe}})});return{computedWithoutCacheCount:P,fixes:k}}function MQe(e,t,r,i,o,s,l,u,d,g){let _=Hn(t,v=>PQe(v,s,l,r.getTypeChecker(),r.getCompilerOptions()));return _?{fixes:[_]}:NQe(r,i,o,s,l,e,u,d,g)}function PQe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var d;let g=(d=sI(e))==null?void 0:d.text;if(g){let _=s?4:e5(o,!0,r,i,l,u);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:g,importKind:t,addAsTypeOnly:_,useRequire:s}}}function dCe(e,t,r,i){let o=Fi(e.sourceFile,r),s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=WQe(e,o);else if(He(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let u=Rz(Lue(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),d=_Ce(e.sourceFile,o,u,e.program);return d&&[{fix:d,symbolName:u,errorIdentifierText:o.text}]}else s=hCe(e,o,i);else return;let l=$D(e.sourceFile,e.preferences,e.host);return s&&uCe(s,e.sourceFile,e.program,l,e.host,e.preferences)}function uCe(e,t,r,i,o,s){let l=u=>ks(u,o.getCurrentDirectory(),ay(o));return Ap(e,(u,d)=>E0(!!u.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||js(u.fix.kind,d.fix.kind)||fCe(u.fix,d.fix,t,r,s,i.allowsImportingSpecifier,l))}function LQe(e,t,r){let i=hCe(e,t,r),o=$D(e.sourceFile,e.preferences,e.host);return i&&uCe(i,e.sourceFile,e.program,o,e.host,e.preferences)}function pCe(e,t,r,i,o,s){if(vt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((l,u)=>fCe(u,l,t,r,s,i.allowsImportingSpecifier,d=>ks(d,o.getCurrentDirectory(),ay(o)))===-1?u:l)}function fCe(e,t,r,i,o,s,l){return e.kind!==0&&t.kind!==0?E0(t.moduleSpecifierKind!=="node_modules"||s(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||s(e.moduleSpecifier))||kQe(e,t,o)||OQe(e.moduleSpecifier,t.moduleSpecifier,r,i)||E0(mCe(e,r.path,l),mCe(t,r.path,l))||Gk(e.moduleSpecifier,t.moduleSpecifier):0}function kQe(e,t,r){return r.importModuleSpecifierPreference==="non-relative"||r.importModuleSpecifierPreference==="project-relative"?E0(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function mCe(e,t,r){var i;if(e.isReExport&&((i=e.exportInfo)!=null&&i.moduleFileName)&&wQe(e.exportInfo.moduleFileName)){let o=r(ci(e.exportInfo.moduleFileName));return po(t,o)}return!1}function wQe(e){return xc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function OQe(e,t,r,i){return po(e,"node:")&&!po(t,"node:")?R7(r,i)?-1:1:po(t,"node:")&&!po(e,"node:")?R7(r,i)?1:-1:0}function WQe({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=FQe(o,s);if(!l)return;let u=s.getAliasedSymbol(l),d=l.name,g=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],_=WO(e,t);return Z7(g,void 0,!1,_,t,e,r,i).fixes.map(E=>{var A;return{fix:E,symbolName:d,errorIdentifierText:(A=ni(o,He))==null?void 0:A.text}})}function FQe(e,t){let r=He(e)?t.getSymbolAtLocation(e):void 0;if(vW(r))return r;let{parent:i}=e;if(nu(i)&&i.tagName===e||Vm(i)){let o=t.resolveName(t.getJsxNamespace(i),nu(i)?e:i,111551,!1);if(vW(o))return o}}function lK(e,t,r,i){if(r.getCompilerOptions().verbatimModuleSyntax&&HQe(e,r)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return VQe(e,r.getCompilerOptions(),!!i);case 3:return zQe(e,r,!!i);case 4:return 2;default:return C.assertNever(t)}}function zQe(e,t,r){if(SI(t.getCompilerOptions()))return 1;let i=vu(t.getCompilerOptions());switch(i){case 2:case 1:case 3:return bg(e.fileName)&&(e.externalModuleIndicator||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return Wue(e,t)===99?2:3;default:return C.assertNever(i,`Unexpected moduleKind ${i}`)}}function hCe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let u=t.getTypeChecker(),d=t.getCompilerOptions();return Ki(Lue(e,u,s,d),g=>{if(g==="default")return;let _=F0(s),v=WO(e,t),E=GQe(g,VR(s),DE(s),r,e,t,l,i,o);return Co(sf(E.values(),A=>Z7(A,s.getStart(e),_,v,t,e,i,o).fixes),A=>({fix:A,symbolName:g,errorIdentifierText:s.text,isJsxNamespaceFix:g!==s.text}))})}function _Ce(e,t,r,i){let o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;let l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Wn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Lue(e,t,r,i){let o=r.parent;if((nu(o)||k1(o))&&o.tagName===r&&sJ(i.jsx)){let s=t.getJsxNamespace(e);if(BQe(s,r,t))return!YR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function BQe(e,t,r){if(YR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||vt(i.declarations,Xy)&&!(i.flags&111551)}function GQe(e,t,r,i,o,s,l,u,d){var g;let _=lm(),v=$D(o,d,u),E=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),A=Wh(N=>oT(N?u.getPackageJsonAutoImportProvider():s,u));function R(N,P,k,F,O,G){let j=A(G);if(dJ(O,o,P,N,d,v,j,E)){let J=O.getTypeChecker();_.add(ice(k,J).toString(),{symbol:k,moduleSymbol:N,moduleFileName:P?.fileName,exportKind:F,targetFlags:xd(k,J).flags,isFromPackageJson:G})}}return uJ(s,u,d,l,(N,P,k,F)=>{let O=k.getTypeChecker();i.throwIfCancellationRequested();let G=k.getCompilerOptions(),j=M7(N,O);j&&ACe(O.getSymbolFlags(j.symbol),r)&&P7(j.symbol,O,Ga(G),(Z,q)=>(t?q??Z:Z)===e)&&R(N,P,j.symbol,j.exportKind,k,F);let J=O.tryGetMemberInModuleExportsAndProperties(e,N);J&&ACe(O.getSymbolFlags(J),r)&&R(N,P,J,0,k,F)}),_}function VQe(e,t,r){let i=SI(t),o=bg(e.fileName);if(!o&&vu(t)>=5)return i?1:2;if(o)return e.externalModuleIndicator||r?i?1:2:3;for(let s of e.statements??ae)if(Bc(s)&&!Ol(s.moduleReference))return 3;return i?1:3}function kue(e,t,r,i,o,s,l){let u,d=Rr.ChangeTracker.with(e,g=>{u=jQe(g,t,r,i,o,s,l)});return oa(nCe,d,u,rCe,f.Add_all_missing_imports)}function jQe(e,t,r,i,o,s,l){let u=zp(t,l);switch(i.kind){case 0:return wue(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return vCe(e,t,i,u),[f.Change_0_to_1,r,bCe(i.moduleSpecifier,u)+r];case 2:{let{importClauseOrBindingPattern:d,importKind:g,addAsTypeOnly:_,moduleSpecifier:v}=i;yCe(e,t,d,g===1?{name:r,addAsTypeOnly:_}:void 0,g===0?[{name:r,addAsTypeOnly:_}]:ae,void 0,l);let E=hm(v);return o?[f.Import_0_from_1,r,E]:[f.Update_import_from_0,E]}case 3:{let{importKind:d,moduleSpecifier:g,addAsTypeOnly:_,useRequire:v,qualification:E}=i,A=v?SCe:TCe,R=d===1?{name:r,addAsTypeOnly:_}:void 0,N=d===0?[{name:r,addAsTypeOnly:_}]:void 0,P=d===2||d===3?{importKind:d,name:E?.namespacePrefix||r,addAsTypeOnly:_}:void 0;return zq(e,t,A(g,u,R,N,P,s.getCompilerOptions(),l),!0,l),E&&wue(e,t,E),o?[f.Import_0_from_1,r,g]:[f.Add_import_from_0,g]}case 4:{let{typeOnlyAliasDeclaration:d}=i,g=UQe(e,d,s,t,l);return g.kind===277?[f.Remove_type_from_import_of_0_from_1,r,gCe(g.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,gCe(g)]}default:return C.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function gCe(e){var t,r;return e.kind===272?((r=ni((t=ni(e.moduleReference,uy))==null?void 0:t.expression,cs))==null?void 0:r.text)||e.moduleReference.getText():ma(e.parent.moduleSpecifier,ka).text}function UQe(e,t,r,i,o){let s=r.getCompilerOptions(),l=s.verbatimModuleSyntax;switch(t.kind){case 277:if(t.isTypeOnly){if(t.parent.elements.length>1){let d=L.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:g}=pT.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,o,i),_=pT.getImportSpecifierInsertionIndex(t.parent.elements,d,g);if(_!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,d,t.parent,_),t}return e.deleteRange(i,{pos:mb(t.getFirstToken()),end:mb(t.propertyName??t.name)}),t}else return C.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 274:return u(t),t;case 275:return u(t.parent),t.parent;case 272:return e.deleteRange(i,t.getChildAt(1)),t;default:C.failBadSyntaxKind(t)}function u(d){var g;if(e.delete(i,Bq(d,i)),!s.allowImportingTsExtensions){let _=sI(d.parent),v=_&&((g=r.getResolvedModuleFromModuleSpecifier(_,i))==null?void 0:g.resolvedModule);if(v?.resolvedUsingTsExtension){let E=pL(_.text,Vw(_.text,s));e.replaceNode(i,_,L.createStringLiteral(E))}}if(l){let _=ni(d.namedBindings,t_);if(_&&_.elements.length>1){pT.getNamedImportSpecifierComparerWithDetection(d.parent,o,i).isSorted!==!1&&t.kind===277&&_.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,_,0));for(let E of _.elements)E!==t&&!E.isTypeOnly&&e.insertModifierBefore(i,156,E)}}}}function yCe(e,t,r,i,o,s,l){var u;if(r.kind===207){if(s&&r.elements.some(v=>s.has(v))){e.replaceNode(t,r,L.createObjectBindingPattern([...r.elements.filter(v=>!s.has(v)),...i?[L.createBindingElement(void 0,"default",i.name)]:ae,...o.map(v=>L.createBindingElement(void 0,v.propertyName,v.name))]));return}i&&_(r,i.name,"default");for(let v of o)_(r,v.name,v.propertyName);return}let d=r.isTypeOnly&&vt([i,...o],v=>v?.addAsTypeOnly===4),g=r.namedBindings&&((u=ni(r.namedBindings,t_))==null?void 0:u.elements);if(i&&(C.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),L.createIdentifier(i.name),{suffix:", "})),o.length){let{specifierComparer:v,isSorted:E}=pT.getNamedImportSpecifierComparerWithDetection(r.parent,l,t),A=Ap(o.map(R=>L.createImportSpecifier((!r.isTypeOnly||d)&&cK(R,l),R.propertyName===void 0?void 0:L.createIdentifier(R.propertyName),L.createIdentifier(R.name))),v);if(s)e.replaceNode(t,r.namedBindings,L.updateNamedImports(r.namedBindings,Ap([...g.filter(R=>!s.has(R)),...A],v)));else if(g?.length&&E!==!1){let R=d&&g?L.updateNamedImports(r.namedBindings,Zi(g,N=>L.updateImportSpecifier(N,!0,N.propertyName,N.name))).elements:g;for(let N of A){let P=pT.getImportSpecifierInsertionIndex(R,N,v);e.insertImportSpecifierAtIndex(t,N,r.namedBindings,P)}}else if(g?.length)for(let R of A)e.insertNodeInListAfter(t,Ba(g),R,g);else if(A.length){let R=L.createNamedImports(A);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,C.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(d&&(e.delete(t,Bq(r,t)),g))for(let v of g)e.insertModifierBefore(t,156,v);function _(v,E,A){let R=L.createBindingElement(void 0,A,E);v.elements.length?e.insertNodeInListAfter(t,Ba(v.elements),R):e.replaceNode(t,v,L.createObjectBindingPattern([R]))}}function wue(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function vCe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,bCe(r,o))}function bCe(e,t){let r=Wq(t);return`import(${r}${e}${r}).`}function Oue({addAsTypeOnly:e}){return e===2}function cK(e,t){return Oue(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function TCe(e,t,r,i,o,s,l){let u=RP(e,t),d;if(r!==void 0||i?.length){let g=(!r||Oue(r))&&Vn(i,Oue)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!vt(i,_=>_.addAsTypeOnly===4);d=zA(d,zb(r&&L.createIdentifier(r.name),i?.map(_=>L.createImportSpecifier(!g&&cK(_,l),_.propertyName===void 0?void 0:L.createIdentifier(_.propertyName),L.createIdentifier(_.name))),e,t,g))}if(o){let g=o.importKind===3?L.createImportEqualsDeclaration(void 0,cK(o,l),L.createIdentifier(o.name),L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(cK(o,l)?156:void 0,void 0,L.createNamespaceImport(L.createIdentifier(o.name))),u,void 0);d=zA(d,g)}return C.checkDefined(d)}function SCe(e,t,r,i,o){let s=RP(e,t),l;if(r||i?.length){let u=i?.map(({name:g,propertyName:_})=>L.createBindingElement(void 0,_,g))||[];r&&u.unshift(L.createBindingElement(void 0,"default",r.name));let d=ECe(L.createObjectBindingPattern(u),s);l=zA(l,d)}if(o){let u=ECe(o.name,s);l=zA(l,u)}return C.checkDefined(l)}function ECe(e,t){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(typeof e=="string"?L.createIdentifier(e):e,void 0,void 0,L.createCallExpression(L.createIdentifier("require"),void 0,[t]))],2))}function ACe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function Wue(e,t){return hg(e)?t.getImpliedNodeFormatForEmit(e):RE(e,t.getCompilerOptions())}function HQe(e,t){return hg(e)?t.getEmitModuleFormatOfFile(e):yP(e,t.getCompilerOptions())}var Fue="addMissingConstraint",ICe=[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];Sa({errorCodes:ICe,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=xCe(i,t,r);if(l===void 0)return;let u=Rr.ChangeTracker.with(e,d=>RCe(d,i,o,s,t,l));return[oa(Fue,u,f.Add_extends_constraint,Fue,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Fue],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Set;return cx(Rr.ChangeTracker.with(e,s=>{dx(e,ICe,l=>{let u=xCe(t,l.file,Id(l.start,l.length));if(u&&_m(o,ss(u.declaration)))return RCe(s,t,r,i,l.file,u)})}))}});function xCe(e,t,r){let i=hn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=hn(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=Ppe(o.file,Id(o.start,o.length));if(s!==void 0&&(He(s)&&sl(s.parent)&&(s=s.parent),sl(s))){if(uE(s.parent))return;let l=Fi(t,r.start),u=e.getTypeChecker();return{constraint:JQe(u,l)||qQe(o.messageText),declaration:s,token:l}}}function RCe(e,t,r,i,o,s){let{declaration:l,constraint:u}=s,d=t.getTypeChecker();if(Bo(u))e.insertText(o,l.name.end,` extends ${u}`);else{let g=Ga(t.getCompilerOptions()),_=rC({program:t,host:i}),v=Q1(o,t,r,i),E=AK(d,v,u,void 0,g,void 0,void 0,_);E&&(e.replaceNode(o,l,L.updateTypeParameterDeclaration(l,void 0,l.name,E,l.default)),v.writeFixes(e))}}function qQe(e){let[,t]=o_(e,`
`,0).match(/`extends (.*)`/)||[];return t}function JQe(e,t){return Ri(t.parent)?e.getTypeArgumentConstraint(t.parent):(St(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var DCe="fixOverrideModifier",FO="fixAddOverrideModifier",t5="fixRemoveOverrideModifier",CCe=[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],NCe={[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:FO,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:FO,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:t5,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:t5,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:FO,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:FO,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:FO,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:t5,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:t5,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}};Sa({errorCodes:CCe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=NCe[r];if(!o)return ae;let{descriptions:s,fixId:l,fixAllDescriptions:u}=o,d=Rr.ChangeTracker.with(t,g=>MCe(g,t,r,i.start));return[rue(DCe,d,s,l,u)]},fixIds:[DCe,FO,t5],getAllCodeActions:e=>Ss(e,CCe,(t,r)=>{let{code:i,start:o}=r,s=NCe[i];!s||s.fixId!==e.fixId||MCe(t,e,i,o)})});function MCe(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 KQe(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 XQe(e,t.sourceFile,i);default:C.fail("Unexpected error code: "+r)}}function KQe(e,t,r){let i=LCe(t,r);if(Mu(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}let o=i.modifiers||ae,s=hn(o,LI),l=hn(o,mie),u=hn(o,v=>Rq(v.kind)),d=ga(o,zc),g=l?l.end:s?s.end:u?u.end:d?La(t.text,d.end):i.getStart(t),_=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,_)}function XQe(e,t,r){let i=LCe(t,r);if(Mu(t)){e.filterJSDocTags(t,i,L8(m3));return}let o=hn(i.modifiers,hie);C.assertIsDefined(o),e.deleteModifier(t,o)}function PCe(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return Dp(e,e.parent);default:return!1}}function LCe(e,t){let r=Fi(e,t),i=Dn(r,o=>ui(o)?"quit":PCe(o));return C.assert(i&&PCe(i)),i}var zue="fixNoPropertyAccessFromIndexSignature",kCe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];Sa({errorCodes:kCe,fixIds:[zue],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=OCe(t,r.start),s=Rr.ChangeTracker.with(e,l=>wCe(l,e.sourceFile,o,i));return[oa(zue,s,[f.Use_element_access_for_0,o.name.text],zue,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ss(e,kCe,(t,r)=>wCe(t,r.file,OCe(r.file,r.start),e.preferences))});function wCe(e,t,r,i){let o=zp(t,i),s=L.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,r6(r)?L.createElementAccessChain(r.expression,r.questionDotToken,s):L.createElementAccessExpression(r.expression,s))}function OCe(e,t){return ma(Fi(e,t).parent,qr)}var Bue="fixImplicitThis",WCe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];Sa({errorCodes:WCe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=Rr.ChangeTracker.with(t,u=>{s=FCe(u,r,o.start,i.getTypeChecker())});return s?[oa(Bue,l,s,Bue,f.Fix_all_implicit_this_errors)]:ae},fixIds:[Bue],getAllCodeActions:e=>Ss(e,WCe,(t,r)=>{FCe(t,r.file,r.start,e.program.getTypeChecker())})});function FCe(e,t,r,i){let o=Fi(t,r);if(!jD(o))return;let s=yu(o,!1,!1);if(!(!Ql(s)&&!Us(s))&&!Yi(yu(s,!1,!1))){let l=C.checkDefined(Es(s,100,t)),{name:u}=s,d=C.checkDefined(s.body);return Us(s)?u&&Ys.Core.isSymbolReferencedInFile(u,i,t,d)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,d.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,u?u.text:Qq]):(e.replaceNode(t,l,L.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,d.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var Gue="fixImportNonExportedMember",zCe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code];Sa({errorCodes:zCe,fixIds:[Gue],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=BCe(t,r.start,i);if(o===void 0)return;let s=Rr.ChangeTracker.with(e,l=>YQe(l,i,o));return[oa(Gue,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],Gue,f.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return cx(Rr.ChangeTracker.with(e,r=>{let i=new Map;dx(e,zCe,o=>{let s=BCe(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:u,moduleSourceFile:d}=s;if(dK(d,l.isTypeOnly)===void 0&&Hk(u))r.insertExportModifier(d,u);else{let g=i.get(d)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?g.typeOnlyExports.push(l):g.exports.push(l),i.set(d,g)}}),i.forEach((o,s)=>{let l=dK(s,!0);l&&l.isTypeOnly?(Vue(r,t,s,o.typeOnlyExports,l),Vue(r,t,s,o.exports,dK(s,!1))):Vue(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}});function BCe(e,t,r){var i,o;let s=Fi(e,t);if(He(s)){let l=Dn(s,vl);if(l===void 0)return;let u=ka(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;let d=(i=r.getResolvedModuleFromModuleSpecifier(u,e))==null?void 0:i.resolvedModule;if(d===void 0)return;let g=r.getSourceFile(d.resolvedFileName);if(g===void 0||QD(r,g))return;let _=g.symbol,v=(o=ni(_.valueDeclaration,R_))==null?void 0:o.locals;if(v===void 0)return;let E=v.get(s.escapedText);if(E===void 0)return;let A=$Qe(E);return A===void 0?void 0:{exportName:{node:s,isTypeOnly:AI(A)},node:A,moduleSourceFile:g,moduleSpecifier:u.text}}}function YQe(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=dK(o,r.isTypeOnly);s?GCe(e,t,o,s,[r]):Hk(i)?e.insertExportModifier(o,i):VCe(e,t,o,[r])}function Vue(e,t,r,i,o){et(i)&&(o?GCe(e,t,r,o,i):VCe(e,t,r,i))}function dK(e,t){let r=i=>fc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return ga(e.statements,r)}function GCe(e,t,r,i,o){let s=i.exportClause&&Hf(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(gm(t.getCompilerOptions())||hn(s,u=>u.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...jCe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function VCe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(jCe(i,gm(t.getCompilerOptions()))),void 0,void 0))}function jCe(e,t){return L.createNodeArray(Vt(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function $Qe(e){if(e.valueDeclaration===void 0)return Ic(e.declarations);let t=e.valueDeclaration,r=yi(t)?ni(t.parent.parent,ac):void 0;return r&&et(r.declarationList.declarations)===1?r:t}var jue="fixIncorrectNamedTupleSyntax",QQe=[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];Sa({errorCodes:QQe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=ZQe(r,i.start),s=Rr.ChangeTracker.with(t,l=>eZe(l,r,o));return[oa(jue,s,f.Move_labeled_tuple_element_modifiers_to_labels,jue,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[jue]});function ZQe(e,t){let r=Fi(e,t);return Dn(r,i=>i.kind===203)}function eZe(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===191||i.kind===192||i.kind===197;)i.kind===191?o=!0:i.kind===192&&(s=!0),i=i.type;let l=L.updateNamedTupleMember(r,r.dotDotDotToken||(s?L.createToken(26):void 0),r.name,r.questionToken||(o?L.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var UCe="fixSpelling",HCe=[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];Sa({errorCodes:HCe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=qCe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=Ga(e.host.getCompilationSettings()),u=Rr.ChangeTracker.with(e,d=>JCe(d,t,o,s,l));return[oa("spelling",u,[f.Change_spelling_to_0,wl(s)],UCe,f.Fix_all_detected_spelling_errors)]},fixIds:[UCe],getAllCodeActions:e=>Ss(e,HCe,(t,r)=>{let i=qCe(r.file,r.start,e,r.code),o=Ga(e.host.getCompilationSettings());i&&JCe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})});function qCe(e,t,r,i){let o=Fi(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)&&!r_(s))return;let l=r.program.getTypeChecker(),u;if(qr(s)&&s.name===o){C.assert(cg(o),"Expected an identifier for spelling (property access)");let d=l.getTypeAtLocation(s.expression);s.flags&64&&(d=l.getNonNullableType(d)),u=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Nr(s)&&s.operatorToken.kind===103&&s.left===o&&eo(o)){let d=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Lu(s)&&s.right===o){let d=l.getSymbolAtLocation(s.left);d&&d.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,d))}else if(Su(s)&&s.name===o){C.assertNode(o,He,"Expected an identifier for spelling (import)");let d=Dn(o,vl),g=nZe(r,d,e);g&&g.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,g.symbol))}else if(r_(s)&&s.name===o){C.assertNode(o,He,"Expected an identifier for JSX attribute");let d=Dn(o,nu),g=l.getContextualTypeForArgumentAtIndex(d,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,g)}else if(uW(s)&&Tc(s)&&s.name===o){let d=Dn(o,ui),g=d?lh(d):void 0,_=g?l.getTypeAtLocation(g):void 0;_&&(u=l.getSuggestedSymbolForNonexistentClassMember(Al(o),_))}else{let d=DE(o),g=Al(o);C.assert(g!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,g,tZe(d))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function JCe(e,t,r,i,o){let s=wl(i);if(!pp(s,o)&&qr(r.parent)){let l=i.valueDeclaration;l&&nd(l)&&eo(l.name)?e.replaceNode(t,r,L.createIdentifier(s)):e.replaceNode(t,r.parent,L.createElementAccessExpression(r.parent.expression,L.createStringLiteral(s)))}else e.replaceNode(t,r,L.createIdentifier(s))}function tZe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function nZe(e,t,r){var i;if(!t||!cs(t.moduleSpecifier))return;let o=(i=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,r))==null?void 0:i.resolvedModule;if(o)return e.program.getSourceFile(o.resolvedFileName)}var Uue="returnValueCorrect",Hue="fixAddReturnStatement",que="fixRemoveBracesFromArrowFunctionBody",Jue="fixWrapTheBlockWithParen",KCe=[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];Sa({errorCodes:KCe,fixIds:[Hue,que,Jue],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=YCe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Bn([iZe(t,l.expression,l.statement)],Xs(l.declaration)?oZe(t,l.declaration,l.expression,l.commentSource):void 0):[aZe(t,l.declaration,l.expression)]},getAllCodeActions:e=>Ss(e,KCe,(t,r)=>{let i=YCe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case Hue:$Ce(t,r.file,i.expression,i.statement);break;case que:if(!Xs(i.declaration))return;QCe(t,r.file,i.declaration,i.expression,i.commentSource);break;case Jue:if(!Xs(i.declaration))return;ZCe(t,r.file,i.declaration,i.expression);break;default:C.fail(JSON.stringify(e.fixId))}})});function XCe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=da([i]);return e.createAnonymousType(void 0,o,[],[],[])}function Kue(e,t,r,i){if(!t.body||!ea(t.body)||et(t.body.statements)!==1)return;let o=$a(t.body.statements);if(od(o)&&Xue(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(Nb(o)&&od(o.statement)){let s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=XCe(e,o.label,o.statement.expression);if(Xue(e,t,l,r,i))return Xs(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(ea(o)&&et(o.statements)===1){let s=$a(o.statements);if(Nb(s)&&od(s.statement)){let l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),u=XCe(e,s.label,s.statement.expression);if(Xue(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function Xue(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){di(t,1024)&&(r=e.createPromiseType(r));let l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,da(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function YCe(e,t,r,i){let o=Fi(t,r);if(!o.parent)return;let s=Dn(o.parent,Ms);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||!Zu(s.type,o)?void 0:Kue(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!Zo(s.parent)||!s.body)return;let l=s.parent.arguments.indexOf(s);if(l===-1)return;let u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?Kue(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!P_(o)||!VN(o.parent)&&!r_(o.parent))return;let d=rZe(o.parent);return!d||!Ms(d)||!d.body?void 0:Kue(e,d,e.getTypeAtLocation(o.parent),!0)}}function rZe(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(_D(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}function $Ce(e,t,r,i){kp(r);let o=vO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function QCe(e,t,r,i,o,s){let l=g7(i)?L.createParenthesizedExpression(i):i;kp(o),NE(o,l),e.replaceNode(t,r.body,l)}function ZCe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function iZe(e,t,r){let i=Rr.ChangeTracker.with(e,o=>$Ce(o,e.sourceFile,t,r));return oa(Uue,i,f.Add_a_return_statement,Hue,f.Add_all_missing_return_statement)}function oZe(e,t,r,i){let o=Rr.ChangeTracker.with(e,s=>QCe(s,e.sourceFile,t,r,i));return oa(Uue,o,f.Remove_braces_from_arrow_function_body,que,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function aZe(e,t,r){let i=Rr.ChangeTracker.with(e,o=>ZCe(o,e.sourceFile,t,r));return oa(Uue,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Jue,f.Wrap_all_object_literal_with_parentheses)}var dT="fixMissingMember",uK="fixMissingProperties",pK="fixMissingAttributes",fK="fixMissingFunctionDeclaration",eNe=[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,f.Type_0_does_not_satisfy_the_expected_type_1.code];Sa({errorCodes:eNe,getCodeActions(e){let t=e.program.getTypeChecker(),r=tNe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=Rr.ChangeTracker.with(e,o=>uNe(o,e,r));return[oa(uK,i,f.Add_missing_properties,uK,f.Add_all_missing_properties)]}if(r.kind===4){let i=Rr.ChangeTracker.with(e,o=>dNe(o,e,r));return[oa(pK,i,f.Add_missing_attributes,pK,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=Rr.ChangeTracker.with(e,o=>cNe(o,e,r));return[oa(fK,i,[f.Add_missing_function_declaration_0,r.token.text],fK,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=Rr.ChangeTracker.with(e,o=>lNe(o,e.program.getTypeChecker(),r));return[oa(dT,i,[f.Add_missing_enum_member_0,r.token.text],dT,f.Add_all_missing_members)]}return so(uZe(e,r),sZe(e,r))}},fixIds:[dT,fK,uK,pK],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Set,s=new Map;return cx(Rr.ChangeTracker.with(e,l=>{dx(e,eNe,u=>{let d=tNe(u.file,u.start,u.code,i,e.program);if(d===void 0)return;let g=ss(d.parentDeclaration)+"#"+(d.kind===3?d.identifier||ss(d.token):d.token.text);if(_m(o,g)){if(r===fK&&(d.kind===2||d.kind===5))cNe(l,e,d);else if(r===uK&&d.kind===3)uNe(l,e,d);else if(r===pK&&d.kind===4)dNe(l,e,d);else if(d.kind===1&&lNe(l,i,d),d.kind===0){let{parentDeclaration:_,token:v}=d,E=FA(s,_,()=>[]);E.some(A=>A.token.text===v.text)||E.push(d)}}}),s.forEach((u,d)=>{let g=ku(d)?void 0:_Ze(d,i);for(let _ of u){if(g?.some(k=>{let F=s.get(k);return!!F&&F.some(({token:O})=>O.text===_.token.text)}))continue;let{parentDeclaration:v,declSourceFile:E,modifierFlags:A,token:R,call:N,isJSFile:P}=_;if(N&&!eo(R))sNe(e,l,N,R,A&256,v,E);else if(P&&!gd(v)&&!ku(v))nNe(l,E,v,R,!!(A&256));else{let k=iNe(i,v,R);oNe(l,E,v,R.text,k,A&256)}}})}))}});function tNe(e,t,r,i,o){var s,l;let u=Fi(e,t),d=u.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(u.kind===19&&Wa(d)&&Zo(d.parent)))return;let R=ho(d.parent.arguments,F=>F===d);if(R<0)return;let N=i.getResolvedSignature(d.parent);if(!(N&&N.declaration&&N.parameters[R]))return;let P=N.parameters[R].valueDeclaration;if(!(P&&to(P)&&He(P.name)))return;let k=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d),i.getParameterType(N,R).getNonNullableType(),!1,!1));return et(k)?{kind:3,token:P.name,identifier:P.name.text,properties:k,parentDeclaration:d}:void 0}if(u.kind===19||mD(d)||ef(d)){let R=(mD(d)||ef(d))&&d.expression?d.expression:d;if(Wa(R)){let N=mD(d)?i.getTypeFromTypeNode(d.type):i.getContextualType(R)||i.getTypeAtLocation(R),P=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d),N.getNonNullableType(),!1,!1));return et(P)?{kind:3,token:d,identifier:void 0,properties:P,parentDeclaration:R,indentation:ef(R.parent)||ow(R.parent)?0:void 0}:void 0}}if(!cg(u))return;if(He(u)&&Yy(d)&&d.initializer&&Wa(d.initializer)){let R=(s=i.getContextualType(u)||i.getTypeAtLocation(u))==null?void 0:s.getNonNullableType(),N=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d.initializer),R,!1,!1));return et(N)?{kind:3,token:u,identifier:u.text,properties:N,parentDeclaration:d.initializer}:void 0}if(He(u)&&nu(u.parent)){let R=Ga(o.getCompilerOptions()),N=fZe(i,R,u.parent);return et(N)?{kind:4,token:u,attributes:N,parentDeclaration:u.parent}:void 0}if(He(u)){let R=(l=i.getContextualType(u))==null?void 0:l.getNonNullableType();if(R&&Hr(R)&16){let N=Ic(i.getSignaturesOfType(R,0));return N===void 0?void 0:{kind:5,token:u,signature:N,sourceFile:e,parentDeclaration:pNe(u)}}if(Zo(d)&&d.expression===u)return{kind:2,token:u,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:pNe(u)}}if(!qr(d))return;let g=Lq(i.getTypeAtLocation(d.expression)),_=g.symbol;if(!_||!_.declarations)return;if(He(u)&&Zo(d.parent)){let R=hn(_.declarations,pc),N=R?.getSourceFile();if(R&&N&&!QD(o,N))return{kind:2,token:u,call:d.parent,sourceFile:N,modifierFlags:32,parentDeclaration:R};let P=hn(_.declarations,Yi);if(e.commonJsModuleIndicator)return;if(P&&!QD(o,P))return{kind:2,token:u,call:d.parent,sourceFile:P,modifierFlags:32,parentDeclaration:P}}let v=hn(_.declarations,ui);if(!v&&eo(u))return;let E=v||hn(_.declarations,R=>gd(R)||ku(R));if(E&&!QD(o,E.getSourceFile())){let R=!ku(E)&&(g.target||g)!==i.getDeclaredTypeOfSymbol(_);if(R&&(eo(u)||gd(E)))return;let N=E.getSourceFile(),P=ku(E)?0:(R?256:0)|(aJ(u.text)?2:0),k=Mu(N),F=ni(d.parent,Zo);return{kind:0,token:u,call:F,modifierFlags:P,parentDeclaration:E,declSourceFile:N,isJSFile:k}}let A=hn(_.declarations,q0);if(A&&!(g.flags&1056)&&!eo(u)&&!QD(o,A.getSourceFile()))return{kind:1,token:u,parentDeclaration:A}}function sZe(e,t){return t.isJSFile?UA(lZe(e,t)):cZe(e,t)}function lZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(gd(t)||ku(t))return;let s=Rr.ChangeTracker.with(e,u=>nNe(u,r,t,o,!!(i&256)));if(s.length===0)return;let l=i&256?f.Initialize_static_property_0:eo(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return oa(dT,s,[l,o.text],dT,f.Add_all_missing_members)}function nNe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===232)return;let l=r.name.getText(),u=rNe(L.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(eo(i)){let l=L.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=aNe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{let l=gg(r);if(!l)return;let u=rNe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function rNe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),px()))}function cZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,u=iNe(e.program.getTypeChecker(),t,o),d=_=>Rr.ChangeTracker.with(e,v=>oNe(v,r,t,s,u,_)),g=[oa(dT,d(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],dT,f.Add_all_missing_members)];return l||eo(o)||(i&2&&g.unshift(yh(dT,d(2),[f.Declare_private_property_0,s])),g.push(dZe(e,r,t,o.text,u))),g}function iNe(e,t,r){let i;if(r.parent.parent.kind===227){let 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,8)}else{let o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1,8):void 0}return i||L.createKeywordTypeNode(133)}function oNe(e,t,r,i,o,s){let l=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,u=ui(r)?L.createPropertyDeclaration(l,i,void 0,o,void 0):L.createPropertySignature(void 0,i,void 0,o),d=aNe(r);d?e.insertNodeAfter(t,d,u):e.insertMemberAtStart(t,r,u)}function aNe(e){let t;for(let r of e.members){if(!Po(r))break;t=r}return t}function dZe(e,t,r,i,o){let s=L.createKeywordTypeNode(154),l=L.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=L.createIndexSignature(void 0,[l],o),d=Rr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,r,u));return yh(dT,d,[f.Add_index_signature_for_property_0,i])}function uZe(e,t){let{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;let u=s.text,d=_=>Rr.ChangeTracker.with(e,v=>sNe(e,v,l,s,_,r,i)),g=[oa(dT,d(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],dT,f.Add_all_missing_members)];return o&2&&g.unshift(yh(dT,d(2),[f.Declare_private_method_0,u])),g}function sNe(e,t,r,i,o,s,l){let u=Q1(l,e.program,e.preferences,e.host),d=ui(s)?175:174,g=Ipe(d,e,u,r,i,o,s),_=mZe(s,r);_?t.insertNodeAfter(l,_,g):t.insertMemberAtStart(l,s,g),u.writeFixes(t)}function lNe(e,t,{token:r,parentDeclaration:i}){let o=vt(i.members,d=>{let g=t.getTypeAtLocation(d);return!!(g&&g.flags&402653316)}),s=i.getSourceFile(),l=L.createEnumMember(r,o?L.createStringLiteral(r.text):void 0),u=Zs(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function cNe(e,t,r){let i=zp(t.sourceFile,t.preferences),o=Q1(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Ipe(263,t,o,r.call,Kr(r.token),r.modifierFlags,r.parentDeclaration):EK(263,t,i,r.signature,r5(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&C.fail("fixMissingFunctionDeclaration codefix got unexpected error."),ef(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function dNe(e,t,r){let i=Q1(t.sourceFile,t.program,t.preferences,t.host),o=zp(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=vt(l.properties,GI),d=Vt(r.attributes,v=>{let E=mK(t,s,i,o,s.getTypeOfSymbol(v),r.parentDeclaration),A=L.createIdentifier(v.name),R=L.createJsxAttribute(A,L.createJsxExpression(void 0,E));return us(A,R),R}),g=L.createJsxAttributes(u?[...d,...l.properties]:[...l.properties,...d]),_={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,g,_),i.writeFixes(e)}function uNe(e,t,r){let i=Q1(t.sourceFile,t.program,t.preferences,t.host),o=zp(t.sourceFile,t.preferences),s=Ga(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Vt(r.properties,g=>{let _=mK(t,l,i,o,l.getTypeOfSymbol(g),r.parentDeclaration);return L.createPropertyAssignment(hZe(g,s,o,l),_)}),d={leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,L.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),d),i.writeFixes(e)}function mK(e,t,r,i,o,s){if(o.flags&3)return px();if(o.flags&134217732)return L.createStringLiteral("",i===0);if(o.flags&8)return L.createNumericLiteral(0);if(o.flags&64)return L.createBigIntLiteral("0n");if(o.flags&16)return L.createFalse();if(o.flags&1056){let l=o.symbol.exports?C8(o.symbol.exports.values()):o.symbol,u=o.symbol.parent&&o.symbol.parent.flags&256?o.symbol.parent:o.symbol,d=t.symbolToExpression(u,111551,void 0,64);return l===void 0||d===void 0?L.createNumericLiteral(0):L.createPropertyAccessExpression(d,t.symbolToString(l))}if(o.flags&256)return L.createNumericLiteral(o.value);if(o.flags&2048)return L.createBigIntLiteral(o.value);if(o.flags&128)return L.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?L.createFalse():L.createTrue();if(o.flags&65536)return L.createNull();if(o.flags&1048576)return Hn(o.types,u=>mK(e,t,r,i,u,s))??px();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(pZe(o)){let l=Vt(t.getPropertiesOfType(o),u=>{let d=mK(e,t,r,i,t.getTypeOfSymbol(u),s);return L.createPropertyAssignment(u.name,d)});return L.createObjectLiteralExpression(l,!0)}if(Hr(o)&16){if(hn(o.symbol.declarations||ae,Ip(k_,Bm,Nl))===void 0)return px();let u=t.getSignaturesOfType(o,0);return u===void 0?px():EK(219,e,i,u[0],r5(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??px()}if(Hr(o)&1){let l=cy(o.symbol);if(l===void 0||A1(l))return px();let u=gg(l);return u&&et(u.parameters)?px():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return px()}function px(){return L.createIdentifier("undefined")}function pZe(e){return e.flags&524288&&(Hr(e)&128||e.symbol&&ni(ig(e.symbol.declarations),ku))}function fZe(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return ae;let o=i.getProperties();if(!et(o))return ae;let s=new Set;for(let l of r.attributes.properties)if(r_(l)&&s.add(CM(l.name)),GI(l)){let u=e.getTypeAtLocation(l.expression);for(let d of u.getProperties())s.add(d.escapedName)}return Un(o,l=>pp(l.name,t,1)&&!(l.flags&16777216||Wl(l)&48||s.has(l.escapedName)))}function mZe(e,t){if(ku(e))return;let r=Dn(t,i=>Nl(i)||Ml(i));return r&&r.parent===e?r:void 0}function hZe(e,t,r,i){if(ug(e)){let o=i.symbolToNode(e,111551,void 0,void 0,1);if(o&&va(o))return o}return Uk(e.name,t,r===0,!1,!1)}function pNe(e){if(Dn(e,_D)){let t=Dn(e.parent,ef);if(t)return t}return Wn(e)}function _Ze(e,t){let r=[];for(;e;){let i=v1(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&hn(s.declarations,ui);if(!l)break;r.push(l),e=l}return r}var Yue="addMissingNewOperator",fNe=[f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];Sa({errorCodes:fNe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=Rr.ChangeTracker.with(e,o=>mNe(o,t,r));return[oa(Yue,i,f.Add_missing_new_operator_to_call,Yue,f.Add_missing_new_operator_to_all_calls)]},fixIds:[Yue],getAllCodeActions:e=>Ss(e,fNe,(t,r)=>mNe(t,e.sourceFile,r))});function mNe(e,t,r){let i=ma(gZe(t,r),Zo),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function gZe(e,t){let r=Fi(e,t.start),i=Dl(t);for(;r.end<i;)r=r.parent;return r}var hK="addMissingParam",_K="addOptionalParam",hNe=[f.Expected_0_arguments_but_got_1.code];Sa({errorCodes:hNe,fixIds:[hK,_K],getCodeActions(e){let t=_Ne(e.sourceFile,e.program,e.span.start);if(t===void 0)return;let{name:r,declarations:i,newParameters:o,newOptionalParameters:s}=t,l=[];return et(o)&&Bn(l,oa(hK,Rr.ChangeTracker.with(e,u=>gK(u,e.program,e.preferences,e.host,i,o)),[et(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],hK,f.Add_all_missing_parameters)),et(s)&&Bn(l,oa(_K,Rr.ChangeTracker.with(e,u=>gK(u,e.program,e.preferences,e.host,i,s)),[et(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],_K,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>Ss(e,hNe,(t,r)=>{let i=_Ne(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===hK&&gK(t,e.program,e.preferences,e.host,o,s),e.fixId===_K&&gK(t,e.program,e.preferences,e.host,o,l)}})});function _Ne(e,t,r){let i=Fi(e,r),o=Dn(i,Zo);if(o===void 0||et(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=Un(l.symbol.declarations,gNe);if(u===void 0)return;let d=Zs(u);if(d===void 0||d.body===void 0||QD(t,d.getSourceFile()))return;let g=yZe(d);if(g===void 0)return;let _=[],v=[],E=et(d.parameters),A=et(o.arguments);if(E>A)return;let R=[d,...bZe(d,u)];for(let N=0,P=0,k=0;N<A;N++){let F=o.arguments[N],O=Ks(F)?fV(F):F,G=s.getWidenedType(s.getBaseTypeOfLiteralType(s.getTypeAtLocation(F))),j=P<E?d.parameters[P]:void 0;if(j&&s.isTypeAssignableTo(G,s.getTypeAtLocation(j))){P++;continue}let J=O&&He(O)?O.text:`p${k++}`,Z=vZe(s,G,d);Bn(_,{pos:N,declaration:vNe(J,Z,void 0)}),!SZe(R,P)&&Bn(v,{pos:N,declaration:vNe(J,Z,L.createToken(58))})}return{newParameters:_,newOptionalParameters:v,name:ws(g),declarations:R}}function yZe(e){let t=Oo(e);if(t)return t;if(yi(e.parent)&&He(e.parent.name)||Po(e.parent)||to(e.parent))return e.parent.name}function vZe(e,t,r){return e.typeToTypeNode(e.getWidenedType(t),r,1,8)??L.createKeywordTypeNode(159)}function gK(e,t,r,i,o,s){let l=Ga(t.getCompilerOptions());Je(o,u=>{let d=Wn(u),g=Q1(d,t,r,i);et(u.parameters)?e.replaceNodeRangeWithNodes(d,$a(u.parameters),Ba(u.parameters),yNe(g,l,u,s),{joiner:", ",indentation:0,leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include}):Je(yNe(g,l,u,s),(_,v)=>{et(u.parameters)===0&&v===0?e.insertNodeAt(d,u.parameters.end,_):e.insertNodeAtEndOfList(d,u.parameters,_)}),g.writeFixes(e)})}function gNe(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function yNe(e,t,r,i){let o=Vt(r.parameters,s=>L.createParameterDeclaration(s.modifiers,s.dotDotDotToken,s.name,s.questionToken,s.type,s.initializer));for(let{pos:s,declaration:l}of i){let u=s>0?o[s-1]:void 0;o.splice(s,0,L.updateParameterDeclaration(l,l.modifiers,l.dotDotDotToken,l.name,u&&u.questionToken?L.createToken(58):l.questionToken,EZe(e,l.type,t),l.initializer))}return o}function bZe(e,t){let r=[];for(let i of t)if(TZe(i)){if(et(i.parameters)===et(e.parameters)){r.push(i);continue}if(et(i.parameters)>et(e.parameters))return[]}return r}function TZe(e){return gNe(e)&&e.body===void 0}function vNe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function SZe(e,t){return et(e)&&vt(e,r=>t<et(r.parameters)&&!!r.parameters[t]&&r.parameters[t].questionToken===void 0)}function EZe(e,t,r){let i=Z1(t,r);return i?(PE(e,i.symbols),i.typeNode):t}var AZe="fixCannotFindModule",$ue="installTypesPackage",bNe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,TNe=f.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,SNe=[bNe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,TNe];Sa({errorCodes:SNe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=s===TNe?Fk(t.program.getCompilerOptions(),i):ANe(i,o);if(l===void 0)return;let u=INe(l,r,s);return u===void 0?[]:[oa(AZe,[],[f.Install_0,u],$ue,f.Install_all_missing_types_packages,ENe(i.fileName,u))]},fixIds:[$ue],getAllCodeActions:e=>Ss(e,SNe,(t,r,i)=>{let o=ANe(r.file,r.start);if(o!==void 0)switch(e.fixId){case $ue:{let s=INe(o,e.host,r.code);s&&i.push(ENe(r.file.fileName,s));break}default:C.fail(`Bad fixId: ${e.fixId}`)}})});function ENe(e,t){return{type:"install package",file:e,packageName:t}}function ANe(e,t){let r=ni(Fi(e,t),ka);if(!r)return;let i=r.text,{packageName:o}=K3(i);return td(o)?void 0:o}function INe(e,t,r){var i;return r===bNe?sD.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?Y3(e):void 0}var xNe=[f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Que="fixClassDoesntImplementInheritedAbstractMember";Sa({errorCodes:xNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=Rr.ChangeTracker.with(t,s=>DNe(RNe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[oa(Que,o,f.Implement_inherited_abstract_class,Que,f.Implement_all_inherited_abstract_classes)]},fixIds:[Que],getAllCodeActions:function(t){let r=new Set;return Ss(t,xNe,(i,o)=>{let s=RNe(o.file,o.start);_m(r,ss(s))&&DNe(s,t.sourceFile,t,i,t.preferences)})}});function RNe(e,t){let r=Fi(e,t);return ma(r.parent,ui)}function DNe(e,t,r,i,o){let s=lh(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),d=l.getPropertiesOfType(u).filter(IZe),g=Q1(t,r.program,o,r.host);Ape(e,d,t,r,o,g,_=>i.insertMemberAtStart(t,e,_)),g.writeFixes(i)}function IZe(e){let t=Zy($a(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Zue="classSuperMustPrecedeThisAccess",CNe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];Sa({errorCodes:CNe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=MNe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=Rr.ChangeTracker.with(e,u=>NNe(u,t,o,s));return[oa(Zue,l,f.Make_super_call_the_first_statement_in_the_constructor,Zue,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Zue],getAllCodeActions(e){let{sourceFile:t}=e,r=new Set;return Ss(e,CNe,(i,o)=>{let s=MNe(o.file,o.start);if(!s)return;let{constructor:l,superCall:u}=s;_m(r,ss(l.parent))&&NNe(i,t,l,u)})}});function NNe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function MNe(e,t){let r=Fi(e,t);if(r.kind!==110)return;let i=cf(r),o=PNe(i.body);return o&&!o.expression.arguments.some(s=>qr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function PNe(e){return od(e)&&JS(e.expression)?e:Yo(e)?void 0:Jo(e,PNe)}var epe="constructorForDerivedNeedSuperCall",LNe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code];Sa({errorCodes:LNe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=kNe(t,r.start),o=Rr.ChangeTracker.with(e,s=>wNe(s,t,i));return[oa(epe,o,f.Add_missing_super_call,epe,f.Add_all_missing_super_calls)]},fixIds:[epe],getAllCodeActions:e=>Ss(e,LNe,(t,r)=>wNe(t,e.sourceFile,kNe(r.file,r.start)))});function kNe(e,t){let r=Fi(e,t);return C.assert(Ml(r.parent),"token should be at the constructor declaration"),r.parent}function wNe(e,t,r){let i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,ae));e.insertNodeAtConstructorStart(t,r,i)}var ONe="fixEnableJsxFlag",WNe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];Sa({errorCodes:WNe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=Rr.ChangeTracker.with(t,o=>FNe(o,r));return[yh(ONe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[ONe],getAllCodeActions:e=>Ss(e,WNe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&FNe(t,r)})});function FNe(e,t){Npe(e,t,"jsx",L.createStringLiteral("react"))}var tpe="fixNaNEquality",zNe=[f.This_condition_will_always_return_0.code];Sa({errorCodes:zNe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=BNe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:u}=o,d=Rr.ChangeTracker.with(e,g=>GNe(g,t,u,l));return[oa(tpe,d,[f.Use_0,s],tpe,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[tpe],getAllCodeActions:e=>Ss(e,zNe,(t,r)=>{let i=BNe(e.program,r.file,Id(r.start,r.length));i&&GNe(t,r.file,i.arg,i.expression)})});function BNe(e,t,r){let i=hn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=hn(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;let s=Ppe(o.file,Id(o.start,o.length));if(s!==void 0&&St(s)&&Nr(s.parent))return{suggestion:xZe(o.messageText),expression:s.parent,arg:s}}function GNe(e,t,r,i){let o=L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("Number"),L.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?L.createPrefixUnaryExpression(54,o):o)}function xZe(e){let[,t]=o_(e,`
`,0).match(/'(.*)'/)||[];return t}Sa({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_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_node18_node20_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_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;let o=[],s=vu(r);if(s>=5&&s<99){let g=Rr.ChangeTracker.with(t,_=>{Npe(_,i,"module",L.createStringLiteral("esnext"))});o.push(yh("fixModuleOption",g,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let u=Ga(r);if(u<4||u>99){let g=Rr.ChangeTracker.with(t,_=>{if(!UN(i))return;let E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),Cpe(_,i,E)});o.push(yh("fixTargetOption",g,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}});var npe="fixPropertyAssignment",VNe=[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];Sa({errorCodes:VNe,fixIds:[npe],getCodeActions(e){let{sourceFile:t,span:r}=e,i=UNe(t,r.start),o=Rr.ChangeTracker.with(e,s=>jNe(s,e.sourceFile,i));return[oa(npe,o,[f.Change_0_to_1,"=",":"],npe,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ss(e,VNe,(t,r)=>jNe(t,r.file,UNe(r.file,r.start)))});function jNe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function UNe(e,t){return ma(Fi(e,t).parent,Ud)}var rpe="extendsInterfaceBecomesImplements",HNe=[f.Cannot_extend_an_interface_0_Did_you_mean_implements.code];Sa({errorCodes:HNe,getCodeActions(e){let{sourceFile:t}=e,r=qNe(t,e.span.start);if(!r)return;let{extendsToken:i,heritageClauses:o}=r,s=Rr.ChangeTracker.with(e,l=>JNe(l,t,i,o));return[oa(rpe,s,f.Change_extends_to_implements,rpe,f.Change_all_extended_interfaces_to_implements)]},fixIds:[rpe],getAllCodeActions:e=>Ss(e,HNe,(t,r)=>{let i=qNe(r.file,r.start);i&&JNe(t,r.file,i.extendsToken,i.heritageClauses)})});function qNe(e,t){let r=Fi(e,t),i=hd(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function JNe(e,t,r,i){if(e.replaceNode(t,r,L.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},L.createToken(28));let l=t.text,u=o.end;for(;u<l.length&&zh(l.charCodeAt(u));)u++;e.deleteRange(t,{pos:o.getStart(),end:u})}}var ipe="forgottenThisPropertyAccess",KNe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,XNe=[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,KNe];Sa({errorCodes:XNe,getCodeActions(e){let{sourceFile:t}=e,r=YNe(t,e.span.start,e.errorCode);if(!r)return;let i=Rr.ChangeTracker.with(e,o=>$Ne(o,t,r));return[oa(ipe,i,[f.Add_0_to_unresolved_variable,r.className||"this"],ipe,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[ipe],getAllCodeActions:e=>Ss(e,XNe,(t,r)=>{let i=YNe(r.file,r.start,r.code);i&&$Ne(t,e.sourceFile,i)})});function YNe(e,t,r){let i=Fi(e,t);if(He(i)||eo(i))return{node:i,className:r===KNe?hd(i).name.text:void 0}}function $Ne(e,t,{node:r,className:i}){kp(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var ope="fixInvalidJsxCharacters_expression",yK="fixInvalidJsxCharacters_htmlEntity",QNe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code];Sa({errorCodes:QNe,fixIds:[ope,yK],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=Rr.ChangeTracker.with(e,l=>ape(l,r,t,i.start,!1)),s=Rr.ChangeTracker.with(e,l=>ape(l,r,t,i.start,!0));return[oa(ope,o,f.Wrap_invalid_character_in_an_expression_container,ope,f.Wrap_all_invalid_characters_in_an_expression_container),oa(yK,s,f.Convert_invalid_character_to_its_html_entity_code,yK,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ss(e,QNe,(t,r)=>ape(t,e.preferences,r.file,r.start,e.fixId===yK))}});var ZNe={">":"&gt;","}":"&rbrace;"};function RZe(e){return Rs(ZNe,e)}function ape(e,t,r,i,o){let s=r.getText()[i];if(!RZe(s))return;let l=o?ZNe[s]:`{${PP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var vK="deleteUnmatchedParameter",eMe="renameUnmatchedParameter",tMe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];Sa({fixIds:[vK,eMe],errorCodes:tMe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=nMe(r,i.start);if(s)return Bn(o,DZe(t,s)),Bn(o,CZe(t,s)),o},getAllCodeActions:function(t){let r=new Map;return cx(Rr.ChangeTracker.with(t,i=>{dx(t,tMe,({file:o,start:s})=>{let l=nMe(o,s);l&&r.set(l.signature,Bn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===vK){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}});function DZe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=Rr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return oa(vK,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],vK,f.Delete_all_unused_param_tags)}function CZe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!et(i.parameters))return;let s=e.sourceFile,l=R0(i),u=new Set;for(let v of l)ff(v)&&He(v.name)&&u.add(v.name.escapedText);let d=Hn(i.parameters,v=>He(v.name)&&!u.has(v.name.escapedText)?v.name.getText(s):void 0);if(d===void 0)return;let g=L.updateJSDocParameterTag(o,o.tagName,L.createIdentifier(d),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),_=Rr.ChangeTracker.with(e,v=>v.replaceJSDocComment(s,r,Vt(l,E=>E===o?g:E)));return yh(eMe,_,[f.Rename_param_tag_name_0_to_1,t.getText(s),d])}function nMe(e,t){let r=Fi(e,t);if(r.parent&&ff(r.parent)&&He(r.parent.name)){let i=r.parent,o=g1(i),s=L0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var spe="fixUnreferenceableDecoratorMetadata",NZe=[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];Sa({errorCodes:NZe,getCodeActions:e=>{let t=MZe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=Rr.ChangeTracker.with(e,s=>t.kind===277&&LZe(s,e.sourceFile,t,e.program)),i=Rr.ChangeTracker.with(e,s=>PZe(s,e.sourceFile,t,e.program)),o;return r.length&&(o=Bn(o,yh(spe,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Bn(o,yh(spe,i,f.Use_import_type))),o},fixIds:[spe]});function MZe(e,t,r){let i=ni(Fi(e,r),He);if(!i||i.parent.kind!==184)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return hn(s?.declarations||ae,Ip(Gm,Su,Bc))}function PZe(e,t,r,i){if(r.kind===272){e.insertModifierBefore(t,156,r.name);return}let o=r.kind===274?r:r.parent.parent;if(o.name&&o.namedBindings)return;let s=i.getTypeChecker();dne(o,u=>{if(xd(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function LZe(e,t,r,i){sx.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var n5="unusedIdentifier",lpe="unusedIdentifier_prefix",cpe="unusedIdentifier_delete",bK="unusedIdentifier_deleteImports",dpe="unusedIdentifier_infer",rMe=[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];Sa({errorCodes:rMe,getCodeActions(e){let{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=Fi(r,e.span.start);if(vm(u))return[VP(Rr.ChangeTracker.with(e,v=>v.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){let v=Rr.ChangeTracker.with(e,E=>oMe(E,r,u));return[VP(v,f.Remove_type_parameters)]}let d=aMe(u);if(d){let v=Rr.ChangeTracker.with(e,E=>E.delete(r,d));return[oa(n5,v,[f.Remove_import_from_0,Xne(d)],bK,f.Delete_all_unused_imports)]}else if(upe(u)){let v=Rr.ChangeTracker.with(e,E=>TK(r,u,E,s,l,i,o,!1));if(v.length)return[oa(n5,v,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],bK,f.Delete_all_unused_imports)]}if(pf(u.parent)||cv(u.parent)){if(to(u.parent.parent)){let v=u.parent.elements,E=[v.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Vt(v,A=>A.getText(r)).join(", ")];return[VP(Rr.ChangeTracker.with(e,A=>kZe(A,r,u.parent)),E)]}return[VP(Rr.ChangeTracker.with(e,v=>wZe(e,v,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(sMe(r,u))return[VP(Rr.ChangeTracker.with(e,v=>lMe(v,r,u.parent)),f.Remove_variable_statement)];if(He(u)&&Ql(u.parent))return[VP(Rr.ChangeTracker.with(e,v=>pMe(v,r,u.parent)),[f.Remove_unused_declaration_for_Colon_0,u.getText(r)])];let g=[];if(u.kind===140){let v=Rr.ChangeTracker.with(e,A=>iMe(A,r,u)),E=ma(u.parent,cE).typeParameter.name.text;g.push(oa(n5,v,[f.Replace_infer_0_with_unknown,E],dpe,f.Replace_all_unused_infer_with_unknown))}else{let v=Rr.ChangeTracker.with(e,E=>TK(r,u,E,s,l,i,o,!1));if(v.length){let E=va(u.parent)?u.parent:u;g.push(VP(v,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}let _=Rr.ChangeTracker.with(e,v=>cMe(v,t,r,u));return _.length&&g.push(oa(n5,_,[f.Prefix_0_with_an_underscore,u.getText(r)],lpe,f.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[lpe,cpe,bK,dpe],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Ss(e,rMe,(l,u)=>{let d=Fi(t,u.start);switch(e.fixId){case lpe:cMe(l,u.code,t,d);break;case bK:{let g=aMe(d);g?l.delete(t,g):upe(d)&&TK(t,d,l,o,s,r,i,!0);break}case cpe:{if(d.kind===140||upe(d))break;if(vm(d))l.delete(t,d);else if(d.kind===30)oMe(l,t,d);else if(pf(d.parent)){if(d.parent.parent.initializer)break;(!to(d.parent.parent)||dMe(d.parent.parent,o,s))&&l.delete(t,d.parent.parent)}else{if(cv(d.parent.parent)&&d.parent.parent.parent.initializer)break;sMe(t,d)?lMe(l,t,d.parent):He(d)&&Ql(d.parent)?pMe(l,t,d.parent):TK(t,d,l,o,s,r,i,!0)}break}case dpe:d.kind===140&&iMe(l,t,d);break;default:C.fail(JSON.stringify(e.fixId))}})}});function iMe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function VP(e,t){return oa(n5,e,t,cpe,f.Delete_all_unused_declarations)}function oMe(e,t,r){e.delete(t,C.checkDefined(ma(r.parent,uG).typeParameters,"The type parameter to delete should exist"))}function upe(e){return e.kind===102||e.kind===80&&(e.parent.kind===277||e.parent.kind===274)}function aMe(e){return e.kind===102?ni(e.parent,vl):void 0}function sMe(e,t){return _d(t.parent)&&$a(t.parent.getChildren(e))===t}function lMe(e,t,r){e.delete(t,r.parent.kind===244?r.parent:r)}function kZe(e,t,r){Je(r.elements,i=>e.delete(t,i))}function wZe(e,t,r,{parent:i}){if(yi(i)&&i.initializer&&c1(i.initializer))if(_d(i.parent)&&et(i.parent.declarations)>1){let o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:_y(e.host,e.formatContext.options)+r.text.slice(_7(r.text,s-1),s),suffix:vO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function cMe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=ma(i.parent,cE).typeParameter.name),He(i)&&OZe(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),to(i.parent)&&RR(i.parent).forEach(o=>{He(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function OZe(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}function TK(e,t,r,i,o,s,l,u){WZe(t,r,e,i,o,s,l,u),He(t)&&Ys.Core.eachSymbolReferenceInFile(t,i,e,d=>{qr(d.parent)&&d.parent.name===d&&(d=d.parent),!u&&GZe(d)&&r.delete(e,d.parent.parent)})}function WZe(e,t,r,i,o,s,l,u){let{parent:d}=e;if(to(d))FZe(t,r,d,i,o,s,l,u);else if(!(u&&He(e)&&Ys.Core.isSymbolReferencedInFile(e,i,r))){let g=Gm(d)?e:va(d)?d.parent:d;C.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function FZe(e,t,r,i,o,s,l,u=!1){if(zZe(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!He(r.name)||Ys.Core.isSymbolReferencedInFile(r.name,i,t)))for(let d of r.modifiers)Aa(d)&&e.deleteModifier(t,d);else!r.initializer&&dMe(r,i,o)&&e.delete(t,r)}function dMe(e,t,r){let i=e.parent.parameters.indexOf(e);return!Ys.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function zZe(e,t,r,i,o,s,l){let{parent:u}=r;switch(u.kind){case 175:case 177:let d=u.parameters.indexOf(r),g=Nl(u)?u.name:u,_=Ys.Core.getReferencedSymbolsForNode(u.pos,g,o,i,s);if(_){for(let v of _)for(let E of v.references)if(E.kind===Ys.EntryKind.Node){let A=OM(E.node)&&Zo(E.node.parent)&&E.node.parent.arguments.length>d,R=qr(E.node.parent)&&OM(E.node.parent.expression)&&Zo(E.node.parent.parent)&&E.node.parent.parent.arguments.length>d,N=(Nl(E.node.parent)||Bm(E.node.parent))&&E.node.parent!==r.parent&&E.node.parent.parameters.length>d;if(A||R||N)return!1}}return!0;case 263:return u.name&&BZe(e,t,u.name)?uMe(u,r,l):!0;case 219:case 220:return uMe(u,r,l);case 179:return!1;case 178:return!0;default:return C.failBadSyntaxKind(u)}}function BZe(e,t,r){return!!Ys.Core.eachSymbolReferenceInFile(r,e,t,i=>He(i)&&Zo(i.parent)&&i.parent.arguments.includes(i))}function uMe(e,t,r){let i=e.parameters,o=i.indexOf(t);return C.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>He(s.name)&&!s.symbol.isReferenced):o===i.length-1}function GZe(e){return(Nr(e.parent)&&e.parent.left===e||(lj(e.parent)||j0(e.parent))&&e.parent.operand===e)&&od(e.parent.parent)}function pMe(e,t,r){let i=r.symbol.declarations;if(i)for(let o of i)e.delete(t,o)}var ppe="fixUnreachableCode",fMe=[f.Unreachable_code_detected.code];Sa({errorCodes:fMe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;let r=Rr.ChangeTracker.with(e,i=>mMe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[oa(ppe,r,f.Remove_unreachable_code,ppe,f.Remove_all_unreachable_code)]},fixIds:[ppe],getAllCodeActions:e=>Ss(e,fMe,(t,r)=>mMe(t,r.file,r.start,r.length,r.code))});function mMe(e,t,r,i,o){let s=Fi(t,r),l=Dn(s,ji);if(l.getStart(t)!==s.getStart(t)){let d=JSON.stringify({statementKind:C.formatSyntaxKind(l.kind),tokenKind:C.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});C.fail("Token and statement should start at the same point. "+d)}let u=(ea(l.parent)?l.parent:l).parent;if(!ea(l.parent)||l===$a(l.parent.statements))switch(u.kind){case 246:if(u.elseStatement){if(ea(l.parent))break;e.replaceNode(t,l,L.createBlock(ae));return}case 248:case 249:e.delete(t,u);return}if(ea(l.parent)){let d=r+i,g=C.checkDefined(VZe(DV(l.parent.statements,l),_=>_.pos<d),"Some statement should be last");e.deleteNodeRange(t,l,g)}else e.delete(t,l)}function VZe(e,t){let r;for(let i of e){if(!t(i))break;r=i}return r}var fpe="fixUnusedLabel",hMe=[f.Unused_label.code];Sa({errorCodes:hMe,getCodeActions(e){let t=Rr.ChangeTracker.with(e,r=>_Me(r,e.sourceFile,e.span.start));return[oa(fpe,t,f.Remove_unused_label,fpe,f.Remove_all_unused_labels)]},fixIds:[fpe],getAllCodeActions:e=>Ss(e,hMe,(t,r)=>_Me(t,r.file,r.start))});function _Me(e,t,r){let i=Fi(t,r),o=ma(i.parent,Nb),s=i.getStart(t),l=o.statement.getStart(t),u=zf(s,l,t)?l:La(t.text,Es(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var gMe="fixJSDocTypes_plain",mpe="fixJSDocTypes_nullable",yMe=[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];Sa({errorCodes:yMe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=bMe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),u=[d(s,gMe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===315&&u.push(d(s,mpe,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function d(g,_,v){let E=Rr.ChangeTracker.with(e,A=>vMe(A,t,o,g,r));return oa("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(g)],_,v)}},fixIds:[gMe,mpe],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Ss(e,yMe,(s,l)=>{let u=bMe(l.file,l.start,o);if(!u)return;let{typeNode:d,type:g}=u,_=d.kind===315&&t===mpe?o.getNullableType(g,32768):g;vMe(s,i,d,_,o)})}});function vMe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function bMe(e,t,r){let i=Dn(Fi(e,t),jZe),o=i&&i.type;return o&&{typeNode:o,type:UZe(r,o)}}function jZe(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function UZe(e,t){if(yD(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Bn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var hpe="fixMissingCallParentheses",TMe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];Sa({errorCodes:TMe,fixIds:[hpe],getCodeActions(e){let{sourceFile:t,span:r}=e,i=EMe(t,r.start);if(!i)return;let o=Rr.ChangeTracker.with(e,s=>SMe(s,e.sourceFile,i));return[oa(hpe,o,f.Add_missing_call_parentheses,hpe,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ss(e,TMe,(t,r)=>{let i=EMe(r.file,r.start);i&&SMe(t,r.file,i)})});function SMe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function EMe(e,t){let r=Fi(e,t);if(qr(r.parent)){let i=r.parent;for(;qr(i.parent);)i=i.parent;return i.name}if(He(r))return r}var AMe="fixMissingTypeAnnotationOnExports",_pe="add-annotation",gpe="add-type-assertion",HZe="extract-expression",IMe=[f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,f.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,f.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,f.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,f.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,f.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,f.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,f.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,f.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,f.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,f.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,f.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,f.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],qZe=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),xMe=531469,RMe=1;Sa({errorCodes:IMe,fixIds:[AMe],getCodeActions(e){let t=[];return jP(_pe,t,e,0,r=>r.addTypeAnnotation(e.span)),jP(_pe,t,e,1,r=>r.addTypeAnnotation(e.span)),jP(_pe,t,e,2,r=>r.addTypeAnnotation(e.span)),jP(gpe,t,e,0,r=>r.addInlineAssertion(e.span)),jP(gpe,t,e,1,r=>r.addInlineAssertion(e.span)),jP(gpe,t,e,2,r=>r.addInlineAssertion(e.span)),jP(HZe,t,e,0,r=>r.extractAsVariable(e.span)),t},getAllCodeActions:e=>{let t=DMe(e,0,r=>{dx(e,IMe,i=>{r.addTypeAnnotation(i)})});return cx(t.textChanges)}});function jP(e,t,r,i,o){let s=DMe(r,i,o);s.result&&s.textChanges.length&&t.push(oa(e,s.textChanges,s.result,AMe,f.Add_all_missing_type_annotations))}function DMe(e,t,r){let i={typeNode:void 0,mutatedTarget:!1},o=Rr.ChangeTracker.fromContext(e),s=e.sourceFile,l=e.program,u=l.getTypeChecker(),d=Ga(l.getCompilerOptions()),g=Q1(e.sourceFile,e.program,e.preferences,e.host),_=new Set,v=new Set,E=Ob({preserveSourceNewlines:!1}),A=r({addTypeAnnotation:R,addInlineAssertion:O,extractAsVariable:G});return g.writeFixes(o),{result:A,textChanges:o.getChanges()};function R(De){e.cancellationToken.throwIfCancellationRequested();let ge=Fi(s,De.start),je=j(ge);if(je)return Ql(je)?N(je):J(je);let Ge=lt(ge);if(Ge)return J(Ge)}function N(De){var ge;if(v?.has(De))return;v?.add(De);let je=u.getTypeAtLocation(De),Ge=u.getPropertiesOfType(je);if(!De.name||Ge.length===0)return;let We=[];for(let cn of Ge)pp(cn.name,Ga(l.getCompilerOptions()))&&(cn.valueDeclaration&&yi(cn.valueDeclaration)||We.push(L.createVariableStatement([L.createModifier(95)],L.createVariableDeclarationList([L.createVariableDeclaration(cn.name,void 0,re(u.getTypeOfSymbol(cn),De),void 0)]))));if(We.length===0)return;let at=[];(ge=De.modifiers)!=null&&ge.some(cn=>cn.kind===95)&&at.push(L.createModifier(95)),at.push(L.createModifier(138));let Wt=L.createModuleDeclaration(at,De.name,L.createModuleBlock(We),101441696);return o.insertNodeAfter(s,De,Wt),[f.Annotate_types_of_properties_expando_function_in_a_namespace]}function P(De){return!Ds(De)&&!Zo(De)&&!Wa(De)&&!Cd(De)}function k(De,ge){return P(De)&&(De=L.createParenthesizedExpression(De)),L.createAsExpression(De,ge)}function F(De,ge){return P(De)&&(De=L.createParenthesizedExpression(De)),L.createAsExpression(L.createSatisfiesExpression(De,_s(ge)),ge)}function O(De){e.cancellationToken.throwIfCancellationRequested();let ge=Fi(s,De.start);if(j(ge))return;let Ge=ce(ge,De);if(!Ge||ZS(Ge)||ZS(Ge.parent))return;let We=St(Ge),at=Ud(Ge);if(!at&&rd(Ge)||Dn(Ge,Qo)||Dn(Ge,py)||We&&(Dn(Ge,Op)||Dn(Ge,Ri))||Uf(Ge))return;let Wt=Dn(Ge,yi),cn=Wt&&u.getTypeAtLocation(Wt);if(cn&&cn.flags&8192||!(We||at))return;let{typeNode:gn,mutatedTarget:Kn}=fe(Ge,cn);if(!(!gn||Kn))return at?o.insertNodeAt(s,Ge.end,k(_s(Ge.name),gn),{prefix:": "}):We?o.replaceNode(s,Ge,F(_s(Ge),gn)):C.assertNever(Ge),[f.Add_satisfies_and_an_inline_type_assertion_with_0,Be(gn)]}function G(De){e.cancellationToken.throwIfCancellationRequested();let ge=Fi(s,De.start),je=ce(ge,De);if(!je||ZS(je)||ZS(je.parent)||!St(je))return;if(Cd(je))return o.replaceNode(s,je,k(je,L.createTypeReferenceNode("const"))),[f.Mark_array_literal_as_const];let We=Dn(je,Nc);if(We){if(We===je.parent&&Ds(je))return;let at=L.createUniqueName(yde(je,s,u,s),16),Wt=je,cn=je;if(Uf(Wt)&&(Wt=Fm(Wt.parent),Xe(Wt.parent)?cn=Wt=Wt.parent:cn=k(Wt,L.createTypeReferenceNode("const"))),Ds(Wt))return;let gn=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(at,void 0,void 0,cn)],2)),Kn=Dn(je,ji);return o.insertNodeBefore(s,Kn,gn),o.replaceNode(s,Wt,L.createAsExpression(L.cloneNode(at),L.createTypeQueryNode(L.cloneNode(at)))),[f.Extract_to_variable_and_replace_with_0_as_typeof_0,Be(at)]}}function j(De){let ge=Dn(De,je=>ji(je)?"quit":RI(je));if(ge&&RI(ge)){let je=ge;if(Nr(je)&&(je=je.left,!RI(je)))return;let Ge=u.getTypeAtLocation(je.expression);if(!Ge)return;let We=u.getPropertiesOfType(Ge);if(vt(We,at=>at.valueDeclaration===ge||at.valueDeclaration===ge.parent)){let at=Ge.symbol.valueDeclaration;if(at){if(Ab(at)&&yi(at.parent))return at.parent;if(Ql(at))return at}}}}function J(De){if(!_?.has(De))switch(_?.add(De),De.kind){case 170:case 173:case 261:return Ne(De);case 220:case 219:case 263:case 175:case 178:return Z(De,s);case 278:return q(De);case 264:return ye(De);case 207:case 208:return ie(De);default:throw new Error(`Cannot find a fix for the given node ${De.kind}`)}}function Z(De,ge){if(De.type)return;let{typeNode:je}=fe(De);if(je)return o.tryInsertTypeAnnotation(ge,De,je),[f.Add_return_type_0,Be(je)]}function q(De){if(De.isExportEquals)return;let{typeNode:ge}=fe(De.expression);if(!ge)return;let je=L.createUniqueName("_default");return o.replaceNodeWithNodes(s,De,[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(je,void 0,ge,De.expression)],2)),L.updateExportAssignment(De,De?.modifiers,je)]),[f.Extract_default_export_to_variable]}function ye(De){var ge,je;let Ge=(ge=De.heritageClauses)==null?void 0:ge.find(_t=>_t.token===96),We=Ge?.types[0];if(!We)return;let{typeNode:at}=fe(We.expression);if(!at)return;let Wt=L.createUniqueName(De.name?De.name.text+"Base":"Anonymous",16),cn=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Wt,void 0,at,We.expression)],2));o.insertNodeBefore(s,De,cn);let gn=ib(s.text,We.end),Kn=((je=gn?.[gn.length-1])==null?void 0:je.end)??We.end;return o.replaceRange(s,{pos:We.getFullStart(),end:Kn},Wt,{prefix:" "}),[f.Extract_base_class_to_variable]}function ie(De){var ge;let je=De.parent,Ge=De.parent.parent.parent;if(!je.initializer)return;let We,at=[];if(He(je.initializer))We={expression:{kind:3,identifier:je.initializer}};else{let gn=L.createUniqueName("dest",16);We={expression:{kind:3,identifier:gn}},at.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(gn,void 0,void 0,je.initializer)],2)))}let Wt=[];cv(De)?K(De,Wt,We):pe(De,Wt,We);let cn=new Map;for(let gn of Wt){if(gn.element.propertyName&&va(gn.element.propertyName)){let _t=gn.element.propertyName.expression,en=L.getGeneratedNameForNode(_t),ir=L.createVariableDeclaration(en,void 0,void 0,_t),Di=L.createVariableDeclarationList([ir],2),lo=L.createVariableStatement(void 0,Di);at.push(lo),cn.set(_t,en)}let Kn=gn.element.name;if(cv(Kn))K(Kn,Wt,gn);else if(pf(Kn))pe(Kn,Wt,gn);else{let{typeNode:_t}=fe(Kn),en=de(gn,cn);if(gn.element.initializer){let Di=(ge=gn.element)==null?void 0:ge.propertyName,lo=L.createUniqueName(Di&&He(Di)?Di.text:"temp",16);at.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(lo,void 0,void 0,en)],2))),en=L.createConditionalExpression(L.createBinaryExpression(lo,L.createToken(37),L.createIdentifier("undefined")),L.createToken(58),gn.element.initializer,L.createToken(59),en)}let ir=di(Ge,32)?[L.createToken(95)]:void 0;at.push(L.createVariableStatement(ir,L.createVariableDeclarationList([L.createVariableDeclaration(Kn,void 0,_t,en)],2)))}}return Ge.declarationList.declarations.length>1&&at.push(L.updateVariableStatement(Ge,Ge.modifiers,L.updateVariableDeclarationList(Ge.declarationList,Ge.declarationList.declarations.filter(gn=>gn!==De.parent)))),o.replaceNodeWithNodes(s,Ge,at),[f.Extract_binding_expressions_to_variable]}function K(De,ge,je){for(let Ge=0;Ge<De.elements.length;++Ge){let We=De.elements[Ge];Kc(We)||ge.push({element:We,parent:je,expression:{kind:2,arrayIndex:Ge}})}}function pe(De,ge,je){for(let Ge of De.elements){let We;if(Ge.propertyName)if(va(Ge.propertyName)){ge.push({element:Ge,parent:je,expression:{kind:1,computed:Ge.propertyName.expression}});continue}else We=Ge.propertyName.text;else We=Ge.name.text;ge.push({element:Ge,parent:je,expression:{kind:0,text:We}})}}function de(De,ge){let je=[De];for(;De.parent;)De=De.parent,je.push(De);let Ge=je[je.length-1].expression.identifier;for(let We=je.length-2;We>=0;--We){let at=je[We].expression;at.kind===0?Ge=L.createPropertyAccessChain(Ge,void 0,L.createIdentifier(at.text)):at.kind===1?Ge=L.createElementAccessExpression(Ge,ge.get(at.computed)):at.kind===2&&(Ge=L.createElementAccessExpression(Ge,at.arrayIndex))}return Ge}function fe(De,ge){if(t===1)return Se(De);let je;if(ZS(De)){let at=u.getSignatureFromDeclaration(De);if(at){let Wt=u.getTypePredicateOfSignature(at);if(Wt)return Wt.type?{typeNode:be(Wt,Dn(De,rd)??s,We(Wt.type)),mutatedTarget:!1}:i;je=u.getReturnTypeOfSignature(at)}}else je=u.getTypeAtLocation(De);if(!je)return i;if(t===2){ge&&(je=ge);let at=u.getWidenedLiteralType(je);if(u.isTypeAssignableTo(at,je))return i;je=at}let Ge=Dn(De,rd)??s;return to(De)&&u.requiresAddingImplicitUndefined(De,Ge)&&(je=u.getUnionType([u.getUndefinedType(),je],0)),{typeNode:re(je,Ge,We(je)),mutatedTarget:!1};function We(at){return(yi(De)||Po(De)&&di(De,264))&&at.flags&8192?1048576:0}}function ve(De){return L.createTypeQueryNode(_s(De))}function xe(De,ge="temp"){let je=!!Dn(De,Xe);return je?Ce(De,ge,je,Ge=>Ge.elements,Uf,L.createSpreadElement,Ge=>L.createArrayLiteralExpression(Ge,!0),Ge=>L.createTupleTypeNode(Ge.map(L.createRestTypeNode))):i}function Y(De,ge="temp"){let je=!!Dn(De,Xe);return Ce(De,ge,je,Ge=>Ge.properties,Ig,L.createSpreadAssignment,Ge=>L.createObjectLiteralExpression(Ge,!0),L.createIntersectionTypeNode)}function Ce(De,ge,je,Ge,We,at,Wt,cn){let gn=[],Kn=[],_t,en=Dn(De,ji);for(let lo of Ge(De))We(lo)?(Di(),Ds(lo.expression)?(gn.push(ve(lo.expression)),Kn.push(lo)):ir(lo.expression)):(_t??(_t=[])).push(lo);if(Kn.length===0)return i;return Di(),o.replaceNode(s,De,Wt(Kn)),{typeNode:cn(gn),mutatedTarget:!0};function ir(lo){let zt=L.createUniqueName(ge+"_Part"+(Kn.length+1),16),Zr=je?L.createAsExpression(lo,L.createTypeReferenceNode("const")):lo,Ai=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(zt,void 0,void 0,Zr)],2));o.insertNodeBefore(s,en,Ai),gn.push(ve(zt)),Kn.push(at(zt))}function Di(){_t&&(ir(Wt(_t)),_t=void 0)}}function Xe(De){return d1(De)&&wm(De.type)}function Se(De){if(to(De))return i;if(Ud(De))return{typeNode:ve(De.name),mutatedTarget:!1};if(Ds(De))return{typeNode:ve(De),mutatedTarget:!1};if(Xe(De))return Se(De.expression);if(Cd(De)){let ge=Dn(De,yi),je=ge&&He(ge.name)?ge.name.text:void 0;return xe(De,je)}if(Wa(De)){let ge=Dn(De,yi),je=ge&&He(ge.name)?ge.name.text:void 0;return Y(De,je)}if(yi(De)&&De.initializer)return Se(De.initializer);if(pE(De)){let{typeNode:ge,mutatedTarget:je}=Se(De.whenTrue);if(!ge)return i;let{typeNode:Ge,mutatedTarget:We}=Se(De.whenFalse);return Ge?{typeNode:L.createUnionTypeNode([ge,Ge]),mutatedTarget:je||We}:i}return i}function re(De,ge,je=0){let Ge=!1,We=YMe(u,De,ge,xMe|je,RMe,{moduleResolverHost:l,trackSymbol(){return!0},reportTruncationError(){Ge=!0}});if(!We)return;let at=xpe(We,g,d);return Ge?L.createKeywordTypeNode(133):at}function be(De,ge,je=0){let Ge=!1,We=$Me(u,g,De,ge,d,xMe|je,RMe,{moduleResolverHost:l,trackSymbol(){return!0},reportTruncationError(){Ge=!0}});return Ge?L.createKeywordTypeNode(133):We}function Ne(De){let{typeNode:ge}=fe(De);if(ge)return De.type?o.replaceNode(Wn(De),De.type,ge):o.tryInsertTypeAnnotation(Wn(De),De,ge),[f.Add_annotation_of_type_0,Be(ge)]}function Be(De){Cr(De,1);let ge=E.printNode(4,De,s);return ge.length>FN?ge.substring(0,FN-3)+"...":(Cr(De,0),ge)}function lt(De){return Dn(De,ge=>qZe.has(ge.kind)&&(!pf(ge)&&!cv(ge)||yi(ge.parent)))}function ce(De,ge){for(;De&&De.end<ge.start+ge.length;)De=De.parent;for(;De.parent.pos===De.pos&&De.parent.end===De.end;)De=De.parent;return He(De)&&Yy(De.parent)&&De.parent.initializer?De.parent.initializer:De}}var ype="fixAwaitInSyncFunction",CMe=[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];Sa({errorCodes:CMe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=NMe(t,r.start);if(!i)return;let o=Rr.ChangeTracker.with(e,s=>MMe(s,t,i));return[oa(ype,o,f.Add_async_modifier_to_containing_function,ype,f.Add_all_missing_async_modifiers)]},fixIds:[ype],getAllCodeActions:function(t){let r=new Set;return Ss(t,CMe,(i,o)=>{let s=NMe(o.file,o.start);!s||!_m(r,ss(s.insertBefore))||MMe(i,t.sourceFile,s)})}});function JZe(e){if(e.type)return e.type;if(yi(e.parent)&&e.parent.type&&k_(e.parent.type))return e.parent.type.type}function NMe(e,t){let r=Fi(e,t),i=cf(r);if(!i)return;let o;switch(i.kind){case 175:o=i.name;break;case 263:case 219:o=Es(i,100,e);break;case 220:let s=i.typeParameters?30:21;o=Es(i,s,e)||$a(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:JZe(i)}}function MMe(e,t,{insertBefore:r,returnType:i}){if(i){let o=QL(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var PMe=[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],vpe="fixPropertyOverrideAccessor";Sa({errorCodes:PMe,getCodeActions(e){let t=LMe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[oa(vpe,t,f.Generate_get_and_set_accessors,vpe,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[vpe],getAllCodeActions:e=>Ss(e,PMe,(t,r)=>{let i=LMe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})});function LMe(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){let u=o.program.getTypeChecker(),d=Fi(e,t).parent;if(va(d))return;C.assert(db(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");let g=d.parent;C.assert(ui(g),"erroneous accessors should only be inside classes");let _=lh(g);if(!_)return;let v=ds(_.expression),E=uc(v)?v.symbol:u.getSymbolAtLocation(v);if(!E)return;let A=u.getDeclaredTypeOfSymbol(E),R=u.getPropertyOfType(A,Vi(oI(d.name)));if(!R||!R.valueDeclaration)return;s=R.valueDeclaration.pos,l=R.valueDeclaration.end,e=Wn(R.valueDeclaration)}else C.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return nPe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var bpe="inferFromUsage",kMe=[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];Sa({errorCodes:kMe,getCodeActions(e){let{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,d=Fi(t,i),g,_=Rr.ChangeTracker.with(e,E=>{g=wMe(E,t,d,o,r,s,n1,l,u)}),v=g&&Oo(g);return!v||_.length===0?void 0:[oa(bpe,_,[KZe(o,d),Al(v)],bpe,f.Infer_all_types_from_usage)]},fixIds:[bpe],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=qD();return Ss(e,kMe,(u,d)=>{wMe(u,t,Fi(d.file,d.start),d.code,r,i,l,o,s)})}});function KZe(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 _p(cf(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 XZe(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 wMe(e,t,r,i,o,s,l,u,d){if(!kN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:g}=r,_=Q1(t,o,d,u);switch(i=XZe(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(yi(g)&&l(g)||Po(g)||Tu(g))return OMe(e,_,t,g,o,u,s),_.writeFixes(e),g;if(qr(g)){let A=zO(g.name,o,s),R=LP(A,g,o,u);if(R){let N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,ma(g.parent.parent,od),[N])}return _.writeFixes(e),g}return;case f.Variable_0_implicitly_has_an_1_type.code:{let A=o.getTypeChecker().getSymbolAtLocation(r);return A&&A.valueDeclaration&&yi(A.valueDeclaration)&&l(A.valueDeclaration)?(OMe(e,_,Wn(A.valueDeclaration),A.valueDeclaration,o,u,s),_.writeFixes(e),A.valueDeclaration):void 0}}let v=cf(r);if(v===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(_p(v)){WMe(e,_,t,v,o,u,s),E=v;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(v)){let A=ma(g,to);YZe(e,_,t,A,v,o,u,s),E=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:jf(v)&&He(v.name)&&(SK(e,_,t,v,zO(v.name,o,s),o,u),E=v);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:_p(v)&&(WMe(e,_,t,v,o,u,s),E=v);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Rr.isThisTypeAnnotatable(v)&&l(v)&&($Ze(e,t,v,o,u,s),E=v);break;default:return C.fail(String(i))}return _.writeFixes(e),E}function OMe(e,t,r,i,o,s,l){He(i.name)&&SK(e,t,r,i,zO(i.name,o,l),o,s)}function YZe(e,t,r,i,o,s,l,u){if(!He(i.name))return;let d=eet(o,r,s,u);if(C.assert(o.parameters.length===d.length,"Parameter count and inference count should match"),Ir(o))FMe(e,r,d,s,l);else{let g=Xs(o)&&!Es(o,21,r);g&&e.insertNodeBefore(r,$a(o.parameters),L.createToken(21));for(let{declaration:_,type:v}of d)_&&!_.type&&!_.initializer&&SK(e,t,r,_,v,s,l);g&&e.insertNodeAfter(r,Ba(o.parameters),L.createToken(22))}}function $Ze(e,t,r,i,o,s){let l=zMe(r,t,i,s);if(!l||!l.length)return;let u=Spe(i,l,s).thisParameter(),d=LP(u,r,i,o);d&&(Ir(r)?QZe(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function QZe(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function WMe(e,t,r,i,o,s,l){let u=Ic(i.parameters);if(u&&He(i.name)&&He(u.name)){let d=zO(i.name,o,l);d===o.getTypeChecker().getAnyType()&&(d=zO(u.name,o,l)),Ir(i)?FMe(e,r,[{declaration:u,type:d}],o,s):SK(e,t,r,u,d,o,s)}}function SK(e,t,r,i,o,s,l){let u=LP(o,i,s,l);if(u)if(Ir(r)&&i.kind!==172){let d=yi(i)?ni(i.parent.parent,ac):i;if(!d)return;let g=L.createJSDocTypeExpression(u),_=jf(i)?L.createJSDocReturnTag(void 0,g,void 0):L.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,d,[_])}else ZZe(u,i,r,e,t,Ga(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function ZZe(e,t,r,i,o,s){let l=Z1(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Je(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function FMe(e,t,r,i,o){let s=r.length&&r[0].declaration.parent;if(!s)return;let l=Ui(r,u=>{let d=u.declaration;if(d.initializer||Ky(d)||!He(d.name))return;let g=u.type&&LP(u.type,d,i,o);if(g){let _=L.cloneNode(d.name);return Cr(_,7168),{name:L.cloneNode(d.name),param:d,isOptional:!!u.isOptional,typeNode:g}}});if(l.length)if(Xs(s)||Us(s)){let u=Xs(s)&&!Es(s,21,t);u&&e.insertNodeBefore(t,$a(s.parameters),L.createToken(21)),Je(l,({typeNode:d,param:g})=>{let _=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(d)),v=L.createJSDocComment(void 0,[_]);e.insertNodeAt(t,g.getStart(t),v,{suffix:" "})}),u&&e.insertNodeAfter(t,Ba(s.parameters),L.createToken(22))}else{let u=Vt(l,({name:d,typeNode:g,isOptional:_})=>L.createJSDocParameterTag(void 0,d,!!_,L.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,s,u)}}function Tpe(e,t,r){return Ui(Ys.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ys.EntryKind.Span?ni(i.node,He):void 0)}function zO(e,t,r){let i=Tpe(e,t,r);return Spe(t,i,r).single()}function eet(e,t,r,i){let o=zMe(e,t,r,i);return o&&Spe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:He(s.name)?zO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function zMe(e,t,r,i){let o;switch(e.kind){case 177:o=Es(e,137,t);break;case 220:case 219:let s=e.parent;o=(yi(s)||Po(s))&&He(s.name)?s.name:e.name;break;case 263:case 175:case 174:o=e.name;break}if(o)return Tpe(o,r,i)}function Spe(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:be=>i.createArrayType(be),Promise:be=>i.createPromiseType(be)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:g,thisParameter:_};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(be){let Ne=new Map;for(let lt of be)lt.properties&&lt.properties.forEach((ce,De)=>{Ne.has(De)||Ne.set(De,[]),Ne.get(De).push(ce)});let Be=new Map;return Ne.forEach((lt,ce)=>{Be.set(ce,u(lt))}),{isNumber:be.some(lt=>lt.isNumber),isString:be.some(lt=>lt.isString),isNumberOrString:be.some(lt=>lt.isNumberOrString),candidateTypes:Ki(be,lt=>lt.candidateTypes),properties:Be,calls:Ki(be,lt=>lt.calls),constructs:Ki(be,lt=>lt.constructs),numberIndex:Je(be,lt=>lt.numberIndex),stringIndex:Je(be,lt=>lt.stringIndex),candidateThisTypes:Ki(be,lt=>lt.candidateThisTypes),inferredTypes:void 0}}function d(){return ye(v(t))}function g(be){if(t.length===0||!be.parameters)return;let Ne=l();for(let lt of t)r.throwIfCancellationRequested(),E(lt,Ne);let Be=[...Ne.constructs||[],...Ne.calls||[]];return be.parameters.map((lt,ce)=>{let De=[],ge=D_(lt),je=!1;for(let We of Be)if(We.argumentTypes.length<=ce)je=Ir(be),De.push(i.getUndefinedType());else if(ge)for(let at=ce;at<We.argumentTypes.length;at++)De.push(i.getBaseTypeOfLiteralType(We.argumentTypes[at]));else De.push(i.getBaseTypeOfLiteralType(We.argumentTypes[ce]));if(He(lt.name)){let We=v(Tpe(lt.name,e,r));De.push(...ge?Ui(We,i.getElementTypeOfArrayType):We)}let Ge=ye(De);return{type:ge?i.createArrayType(Ge):Ge,isOptional:je&&!ge,declaration:lt}})}function _(){let be=l();for(let Ne of t)r.throwIfCancellationRequested(),E(Ne,be);return ye(be.candidateThisTypes||ae)}function v(be){let Ne=l();for(let Be of be)r.throwIfCancellationRequested(),E(Be,Ne);return K(Ne)}function E(be,Ne){for(;dM(be);)be=be.parent;switch(be.parent.kind){case 245:R(be,Ne);break;case 226:Ne.isNumber=!0;break;case 225:N(be.parent,Ne);break;case 227:P(be,be.parent,Ne);break;case 297:case 298:k(be.parent,Ne);break;case 214:case 215:be.parent.expression===be?F(be.parent,Ne):A(be,Ne);break;case 212:O(be.parent,Ne);break;case 213:G(be.parent,be,Ne);break;case 304:case 305:j(be.parent,Ne);break;case 173:J(be.parent,Ne);break;case 261:{let{name:Be,initializer:lt}=be.parent;if(be===Be){lt&&Se(Ne,i.getTypeAtLocation(lt));break}}default:return A(be,Ne)}}function A(be,Ne){M_(be)&&Se(Ne,i.getContextualType(be))}function R(be,Ne){Se(Ne,Zo(be)?i.getVoidType():i.getAnyType())}function N(be,Ne){switch(be.operator){case 46:case 47:case 41:case 55:Ne.isNumber=!0;break;case 40:Ne.isNumberOrString=!0;break}}function P(be,Ne,Be){switch(Ne.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:let lt=i.getTypeAtLocation(Ne.left===be?Ne.right:Ne.left);lt.flags&1056?Se(Be,lt):Be.isNumber=!0;break;case 65:case 40:let ce=i.getTypeAtLocation(Ne.left===be?Ne.right:Ne.left);ce.flags&1056?Se(Be,ce):ce.flags&296?Be.isNumber=!0:ce.flags&402653316?Be.isString=!0:ce.flags&1||(Be.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:Se(Be,i.getTypeAtLocation(Ne.left===be?Ne.right:Ne.left));break;case 103:be===Ne.left&&(Be.isString=!0);break;case 57:case 61:be===Ne.left&&(be.parent.parent.kind===261||id(be.parent.parent,!0))&&Se(Be,i.getTypeAtLocation(Ne.right));break}}function k(be,Ne){Se(Ne,i.getTypeAtLocation(be.parent.parent.expression))}function F(be,Ne){let Be={argumentTypes:[],return_:l()};if(be.arguments)for(let lt of be.arguments)Be.argumentTypes.push(i.getTypeAtLocation(lt));E(be,Be.return_),be.kind===214?(Ne.calls||(Ne.calls=[])).push(Be):(Ne.constructs||(Ne.constructs=[])).push(Be)}function O(be,Ne){let Be=Cl(be.name.text);Ne.properties||(Ne.properties=new Map);let lt=Ne.properties.get(Be)||l();E(be,lt),Ne.properties.set(Be,lt)}function G(be,Ne,Be){if(Ne===be.argumentExpression){Be.isNumberOrString=!0;return}else{let lt=i.getTypeAtLocation(be.argumentExpression),ce=l();E(be,ce),lt.flags&296?Be.numberIndex=ce:Be.stringIndex=ce}}function j(be,Ne){let Be=yi(be.parent.parent)?be.parent.parent:be.parent;re(Ne,i.getTypeAtLocation(Be))}function J(be,Ne){re(Ne,i.getTypeAtLocation(be.parent))}function Z(be,Ne){let Be=[];for(let lt of be)for(let{high:ce,low:De}of Ne)ce(lt)&&(C.assert(!De(lt),"Priority can't have both low and high"),Be.push(De));return be.filter(lt=>Be.every(ce=>!ce(lt)))}function q(be){return ye(K(be))}function ye(be){if(!be.length)return i.getAnyType();let Ne=i.getUnionType([i.getStringType(),i.getNumberType()]),lt=Z(be,[{high:De=>De===i.getStringType()||De===i.getNumberType(),low:De=>De===Ne},{high:De=>!(De.flags&16385),low:De=>!!(De.flags&16385)},{high:De=>!(De.flags&114689)&&!(Hr(De)&16),low:De=>!!(Hr(De)&16)}]),ce=lt.filter(De=>Hr(De)&16);return ce.length&&(lt=lt.filter(De=>!(Hr(De)&16)),lt.push(ie(ce))),i.getWidenedType(i.getUnionType(lt.map(i.getBaseTypeOfLiteralType),2))}function ie(be){if(be.length===1)return be[0];let Ne=[],Be=[],lt=[],ce=[],De=!1,ge=!1,je=lm();for(let at of be){for(let gn of i.getPropertiesOfType(at))je.add(gn.escapedName,gn.valueDeclaration?i.getTypeOfSymbolAtLocation(gn,gn.valueDeclaration):i.getAnyType());Ne.push(...i.getSignaturesOfType(at,0)),Be.push(...i.getSignaturesOfType(at,1));let Wt=i.getIndexInfoOfType(at,0);Wt&&(lt.push(Wt.type),De=De||Wt.isReadonly);let cn=i.getIndexInfoOfType(at,1);cn&&(ce.push(cn.type),ge=ge||cn.isReadonly)}let Ge=OQ(je,(at,Wt)=>{let cn=Wt.length<be.length?16777216:0,gn=i.createSymbol(4|cn,at);return gn.links.type=i.getUnionType(Wt),[at,gn]}),We=[];return lt.length&&We.push(i.createIndexInfo(i.getStringType(),i.getUnionType(lt),De)),ce.length&&We.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(ce),ge)),i.createAnonymousType(be[0].symbol,Ge,Ne,Be,We)}function K(be){var Ne,Be,lt;let ce=[];be.isNumber&&ce.push(i.getNumberType()),be.isString&&ce.push(i.getStringType()),be.isNumberOrString&&ce.push(i.getUnionType([i.getStringType(),i.getNumberType()])),be.numberIndex&&ce.push(i.createArrayType(q(be.numberIndex))),((Ne=be.properties)!=null&&Ne.size||(Be=be.constructs)!=null&&Be.length||be.stringIndex)&&ce.push(pe(be));let De=(be.candidateTypes||[]).map(je=>i.getBaseTypeOfLiteralType(je)),ge=(lt=be.calls)!=null&&lt.length?pe(be):void 0;return ge&&De?ce.push(i.getUnionType([ge,...De],2)):(ge&&ce.push(ge),et(De)&&ce.push(...De)),ce.push(...de(be)),ce}function pe(be){let Ne=new Map;be.properties&&be.properties.forEach((De,ge)=>{let je=i.createSymbol(4,ge);je.links.type=q(De),Ne.set(ge,je)});let Be=be.calls?[Xe(be.calls)]:[],lt=be.constructs?[Xe(be.constructs)]:[],ce=be.stringIndex?[i.createIndexInfo(i.getStringType(),q(be.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Ne,Be,lt,ce)}function de(be){if(!be.properties||!be.properties.size)return[];let Ne=s.filter(Be=>fe(Be,be));return 0<Ne.length&&Ne.length<3?Ne.map(Be=>ve(Be,be)):[]}function fe(be,Ne){return Ne.properties?!qc(Ne.properties,(Be,lt)=>{let ce=i.getTypeOfPropertyOfType(be,lt);return ce?Be.calls?!i.getSignaturesOfType(ce,0).length||!i.isTypeAssignableTo(ce,Ce(Be.calls)):!i.isTypeAssignableTo(ce,q(Be)):!0}):!1}function ve(be,Ne){if(!(Hr(be)&4)||!Ne.properties)return be;let Be=be.target,lt=ig(Be.typeParameters);if(!lt)return be;let ce=[];return Ne.properties.forEach((De,ge)=>{let je=i.getTypeOfPropertyOfType(Be,ge);C.assert(!!je,"generic should have all the properties of its reference."),ce.push(...xe(je,q(De),lt))}),o[be.symbol.escapedName](ye(ce))}function xe(be,Ne,Be){if(be===Be)return[Ne];if(be.flags&3145728)return Ki(be.types,De=>xe(De,Ne,Be));if(Hr(be)&4&&Hr(Ne)&4){let De=i.getTypeArguments(be),ge=i.getTypeArguments(Ne),je=[];if(De&&ge)for(let Ge=0;Ge<De.length;Ge++)ge[Ge]&&je.push(...xe(De[Ge],ge[Ge],Be));return je}let lt=i.getSignaturesOfType(be,0),ce=i.getSignaturesOfType(Ne,0);return lt.length===1&&ce.length===1?Y(lt[0],ce[0],Be):[]}function Y(be,Ne,Be){var lt;let ce=[];for(let je=0;je<be.parameters.length;je++){let Ge=be.parameters[je],We=Ne.parameters[je],at=be.declaration&&D_(be.declaration.parameters[je]);if(!We)break;let Wt=Ge.valueDeclaration?i.getTypeOfSymbolAtLocation(Ge,Ge.valueDeclaration):i.getAnyType(),cn=at&&i.getElementTypeOfArrayType(Wt);cn&&(Wt=cn);let gn=((lt=ni(We,ug))==null?void 0:lt.links.type)||(We.valueDeclaration?i.getTypeOfSymbolAtLocation(We,We.valueDeclaration):i.getAnyType());ce.push(...xe(Wt,gn,Be))}let De=i.getReturnTypeOfSignature(be),ge=i.getReturnTypeOfSignature(Ne);return ce.push(...xe(De,ge,Be)),ce}function Ce(be){return i.createAnonymousType(void 0,da(),[Xe(be)],ae,ae)}function Xe(be){let Ne=[],Be=Math.max(...be.map(ce=>ce.argumentTypes.length));for(let ce=0;ce<Be;ce++){let De=i.createSymbol(1,Cl(`arg${ce}`));De.links.type=ye(be.map(ge=>ge.argumentTypes[ce]||i.getUndefinedType())),be.some(ge=>ge.argumentTypes[ce]===void 0)&&(De.flags|=16777216),Ne.push(De)}let lt=q(u(be.map(ce=>ce.return_)));return i.createSignature(void 0,void 0,void 0,Ne,lt,void 0,Be,0)}function Se(be,Ne){Ne&&!(Ne.flags&1)&&!(Ne.flags&131072)&&(be.candidateTypes||(be.candidateTypes=[])).push(Ne)}function re(be,Ne){Ne&&!(Ne.flags&1)&&!(Ne.flags&131072)&&(be.candidateThisTypes||(be.candidateThisTypes=[])).push(Ne)}}var Epe="fixReturnTypeInAsyncFunction",BMe=[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];Sa({errorCodes:BMe,fixIds:[Epe],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=GMe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:u,returnType:d,promisedTypeNode:g,promisedType:_}=l,v=Rr.ChangeTracker.with(t,E=>VMe(E,r,u,g));return[oa(Epe,v,[f.Replace_0_with_Promise_1,s.typeToString(d),s.typeToString(_)],Epe,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ss(e,BMe,(t,r)=>{let i=GMe(r.file,e.program.getTypeChecker(),r.start);i&&VMe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})});function GMe(e,t,r){if(Ir(e))return;let i=Fi(e,r),o=Dn(i,Ms),s=o?.type;if(!s)return;let l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),d=t.typeToTypeNode(u,s,void 0);if(d)return{returnTypeNode:s,returnType:l,promisedTypeNode:d,promisedType:u}}function VMe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var jMe="disableJsDiagnostics",UMe="disableJsDiagnostics",HMe=Ui(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0});Sa({errorCodes:HMe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!Ir(r)||!SM(r,i.getCompilerOptions()))return;let u=r.checkJsDirective?"":_y(s,l.options),d=[yh(jMe,[kRe(r.fileName,[uO(r.checkJsDirective?ic(r.checkJsDirective.pos,r.checkJsDirective.end):Id(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return Rr.isValidLocationToAddComment(r,o.start)&&d.unshift(oa(jMe,Rr.ChangeTracker.with(t,g=>qMe(g,r,o.start)),f.Ignore_this_error_message,UMe,f.Add_ts_ignore_to_all_error_messages)),d},fixIds:[UMe],getAllCodeActions:e=>{let t=new Set;return Ss(e,HMe,(r,i)=>{Rr.isValidLocationToAddComment(i.file,i.start)&&qMe(r,i.file,i.start,t)})}});function qMe(e,t,r,i){let{line:o}=ca(t,r);(!i||rh(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}function Ape(e,t,r,i,o,s,l){let u=e.symbol.members;for(let d of t)u.has(d.escapedName)||KMe(d,e,r,i,o,s,l,void 0)}function rC(e){return{trackSymbol:()=>!1,moduleResolverHost:wq(e.program,e.host)}}var JMe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(JMe||{});function KMe(e,t,r,i,o,s,l,u,d=3,g=!1){let _=e.getDeclarations(),v=Ic(_),E=i.program.getTypeChecker(),A=Ga(i.program.getCompilerOptions()),R=v?.kind??172,N=fe(e,v),P=v?Gd(v):0,k=P&256;k|=P&1?1:P&4?4:0,v&&Ku(v)&&(k|=512);let F=ye(),O=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),G=!!(e.flags&16777216),j=!!(t.flags&33554432)||g,J=zp(r,o),Z=1|(J===0?268435456:0);switch(R){case 172:case 173:let ve=E.typeToTypeNode(O,t,Z,8,rC(i));if(s){let Y=Z1(ve,A);Y&&(ve=Y.typeNode,PE(s,Y.symbols))}l(L.createPropertyDeclaration(F,v?K(N):e.getName(),G&&d&2?L.createToken(58):void 0,ve,void 0));break;case 178:case 179:{C.assertIsDefined(_);let Y=E.typeToTypeNode(O,t,Z,void 0,rC(i)),Ce=E1(_,v),Xe=Ce.secondAccessor?[Ce.firstAccessor,Ce.secondAccessor]:[Ce.firstAccessor];if(s){let Se=Z1(Y,A);Se&&(Y=Se.typeNode,PE(s,Se.symbols))}for(let Se of Xe)if(jf(Se))l(L.createGetAccessorDeclaration(F,K(N),ae,de(Y),pe(u,J,j)));else{C.assertNode(Se,_p,"The counterpart to a getter should be a setter");let re=lM(Se),be=re&&He(re.name)?Kr(re.name):void 0;l(L.createSetAccessorDeclaration(F,K(N),Rpe(1,[be],[de(Y)],1,!1),pe(u,J,j)))}break}case 174:case 175:C.assertIsDefined(_);let xe=O.isUnion()?Ki(O.types,Y=>Y.getCallSignatures()):O.getCallSignatures();if(!vt(xe))break;if(_.length===1){C.assert(xe.length===1,"One declaration implies one signature");let Y=xe[0];q(J,Y,F,K(N),pe(u,J,j));break}for(let Y of xe)Y.declaration&&Y.declaration.flags&33554432||q(J,Y,F,K(N));if(!j)if(_.length>xe.length){let Y=E.getSignatureFromDeclaration(_[_.length-1]);q(J,Y,F,K(N),pe(u,J))}else C.assert(_.length===xe.length,"Declarations and signatures should match count"),l(oet(E,i,t,xe,K(N),G&&!!(d&1),F,J,u));break}function q(ve,xe,Y,Ce,Xe){let Se=EK(175,i,ve,xe,Xe,Ce,Y,G&&!!(d&1),t,s);Se&&l(Se)}function ye(){let ve;return k&&(ve=zA(ve,L.createModifiersFromModifierFlags(k))),ie()&&(ve=Bn(ve,L.createToken(164))),ve&&L.createNodeArray(ve)}function ie(){return!!(i.program.getCompilerOptions().noImplicitOverride&&v&&A1(v))}function K(ve){return He(ve)&&ve.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(Kr(ve),J===0)):_s(ve,!1)}function pe(ve,xe,Y){return Y?void 0:_s(ve,!1)||Dpe(xe)}function de(ve){return _s(ve,!1)}function fe(ve,xe){if(Wl(ve)&262144){let Y=ve.links.nameType;if(Y&&Gf(Y))return L.createIdentifier(Vi(Vf(Y)))}return _s(Oo(xe),!1)}}function EK(e,t,r,i,o,s,l,u,d,g){let _=t.program,v=_.getTypeChecker(),E=Ga(_.getCompilerOptions()),A=Ir(d),R=524545|(r===0?268435456:0),N=v.signatureToSignatureDeclaration(i,e,d,R,8,rC(t));if(!N)return;let P=A?void 0:N.typeParameters,k=N.parameters,F=A?void 0:_s(N.type);if(g){if(P){let J=Zi(P,Z=>{let q=Z.constraint,ye=Z.default;if(q){let ie=Z1(q,E);ie&&(q=ie.typeNode,PE(g,ie.symbols))}if(ye){let ie=Z1(ye,E);ie&&(ye=ie.typeNode,PE(g,ie.symbols))}return L.updateTypeParameterDeclaration(Z,Z.modifiers,Z.name,q,ye)});P!==J&&(P=bt(L.createNodeArray(J,P.hasTrailingComma),P))}let j=Zi(k,J=>{let Z=A?void 0:J.type;if(Z){let q=Z1(Z,E);q&&(Z=q.typeNode,PE(g,q.symbols))}return L.updateParameterDeclaration(J,J.modifiers,J.dotDotDotToken,J.name,A?void 0:J.questionToken,Z,J.initializer)});if(k!==j&&(k=bt(L.createNodeArray(j,k.hasTrailingComma),k)),F){let J=Z1(F,E);J&&(F=J.typeNode,PE(g,J.symbols))}}let O=u?L.createToken(58):void 0,G=N.asteriskToken;if(Us(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ni(s,He),P,k,F,o??N.body);if(Xs(N))return L.updateArrowFunction(N,l,P,k,F,N.equalsGreaterThanToken,o??N.body);if(Nl(N))return L.updateMethodDeclaration(N,l,G,s??L.createIdentifier(""),O,P,k,F,o);if(Ql(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ni(s,He),P,k,F,o??N.body)}function Ipe(e,t,r,i,o,s,l){let u=zp(t.sourceFile,t.preferences),d=Ga(t.program.getCompilerOptions()),g=rC(t),_=t.program.getTypeChecker(),v=Ir(l),{typeArguments:E,arguments:A,parent:R}=i,N=v?void 0:_.getContextualType(i),P=Vt(A,ye=>He(ye)?ye.text:qr(ye)&&He(ye.name)?ye.name.text:void 0),k=v?[]:Vt(A,ye=>_.getTypeAtLocation(ye)),{argumentTypeNodes:F,argumentTypeParameters:O}=ret(_,r,k,l,d,1,8,g),G=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,j=ow(R)?L.createToken(42):void 0,J=v?void 0:tet(_,O,E),Z=Rpe(A.length,P,F,void 0,v),q=v||N===void 0?void 0:_.typeToTypeNode(N,l,void 0,void 0,g);switch(e){case 175:return L.createMethodDeclaration(G,j,o,void 0,J,Z,q,Dpe(u));case 174:return L.createMethodSignature(G,o,void 0,J,Z,q===void 0?L.createKeywordTypeNode(159):q);case 263:return C.assert(typeof o=="string"||He(o),"Unexpected name"),L.createFunctionDeclaration(G,j,o,J,Z,q,r5(f.Function_not_implemented.message,u));default:C.fail("Unexpected kind")}}function tet(e,t,r){let i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){let s=r.filter(u=>!t.some(d=>{var g;return e.getTypeAtLocation(u)===((g=d[1])==null?void 0:g.argumentType)})),l=i.size+s.length;for(let u=0;i.size<l;u+=1)i.add(XMe(u))}return Co(i.values(),s=>{var l;return L.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function XMe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function AK(e,t,r,i,o,s,l,u){let d=e.typeToTypeNode(r,i,s,l,u);if(d)return xpe(d,t,o)}function xpe(e,t,r){let i=Z1(e,r);return i&&(PE(t,i.symbols),e=i.typeNode),_s(e)}function net(e,t){var r;C.assert(t.typeArguments);let i=t.typeArguments,o=t.target;for(let s=0;s<i.length;s++){if(((r=o.localTypeParameters)==null?void 0:r[s].constraint)===void 0)continue;let l=i.slice(0,s);if(e.fillMissingTypeArguments(l,o.typeParameters,s,!1).every((d,g)=>d===i[g]))return s}return i.length}function YMe(e,t,r,i,o,s){let l=e.typeToTypeNode(t,r,i,o,s);if(l){if(wp(l)){let u=t;if(u.typeArguments&&l.typeArguments){let d=net(e,u);if(d<l.typeArguments.length){let g=L.createNodeArray(l.typeArguments.slice(0,d));l=L.updateTypeReferenceNode(l,l.typeName,g)}}}return l}}function $Me(e,t,r,i,o,s,l,u){let d=e.typePredicateToTypePredicateNode(r,i,s,l,u);if(d?.type&&Zh(d.type)){let g=Z1(d.type,o);g&&(PE(t,g.symbols),d=L.updateTypePredicateNode(d,d.assertsModifier,d.parameterName,g.typeNode))}return _s(d)}function QMe(e){return e.isUnionOrIntersection()?e.types.some(QMe):e.flags&262144}function ret(e,t,r,i,o,s,l,u){let d=[],g=new Map;for(let _=0;_<r.length;_+=1){let v=r[_];if(v.isUnionOrIntersection()&&v.types.some(QMe)){let P=XMe(_);d.push(L.createTypeReferenceNode(P)),g.set(P,void 0);continue}let E=e.getBaseTypeOfLiteralType(v),A=AK(e,t,E,i,o,s,l,u);if(!A)continue;d.push(A);let R=ZMe(v),N=v.isTypeParameter()&&v.constraint&&!iet(v.constraint)?AK(e,t,v.constraint,i,o,s,l,u):void 0;R&&g.set(R,{argumentType:v,constraint:N})}return{argumentTypeNodes:d,argumentTypeParameters:Co(g.entries())}}function iet(e){return e.flags&524288&&e.objectFlags===16}function ZMe(e){var t;if(e.flags&3145728)for(let r of e.types){let i=ZMe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function Rpe(e,t,r,i,o){let s=[],l=new Map;for(let u=0;u<e;u++){let d=t?.[u]||`arg${u}`,g=l.get(d);l.set(d,(g||0)+1);let _=L.createParameterDeclaration(void 0,void 0,d+(g||""),i!==void 0&&u>=i?L.createToken(58):void 0,o?void 0:r?.[u]||L.createKeywordTypeNode(159),void 0);s.push(_)}return s}function oet(e,t,r,i,o,s,l,u,d){let g=i[0],_=i[0].minArgumentCount,v=!1;for(let N of i)_=Math.min(N.minArgumentCount,_),au(N)&&(v=!0),N.parameters.length>=g.parameters.length&&(!au(N)||au(g))&&(g=N);let E=g.parameters.length-(au(g)?1:0),A=g.parameters.map(N=>N.name),R=Rpe(E,A,void 0,_,!1);if(v){let N=L.createParameterDeclaration(void 0,L.createToken(26),A[E]||"rest",E>=_?L.createToken(58):void 0,L.createArrayTypeNode(L.createKeywordTypeNode(159)),void 0);R.push(N)}return set(l,o,s,void 0,R,aet(i,e,t,r),u,d)}function aet(e,t,r,i){if(et(e)){let o=t.getUnionType(Vt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,8,rC(r))}}function set(e,t,r,i,o,s,l,u){return L.createMethodDeclaration(e,void 0,t,r?L.createToken(58):void 0,i,o,s,u||Dpe(l))}function Dpe(e){return r5(f.Method_not_implemented.message,e)}function r5(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function Cpe(e,t,r){let i=UN(t);if(!i)return;let o=ePe(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,Mpe("compilerOptions",L.createObjectLiteralExpression(r.map(([l,u])=>Mpe(l,u)),!0)));return}let s=o.initializer;if(Wa(s))for(let[l,u]of r){let d=ePe(s,l);d===void 0?e.insertNodeAtObjectStart(t,s,Mpe(l,u)):e.replaceNode(t,d.initializer,u)}}function Npe(e,t,r,i){Cpe(e,t,[[r,i]])}function Mpe(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function ePe(e,t){return hn(e.properties,r=>Nc(r)&&!!r.name&&ka(r.name)&&r.name.text===t)}function Z1(e,t){let r,i=st(e,o,Ri);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(ry(s)&&s.qualifier){let l=Pu(s.qualifier);if(!l.symbol)return kn(s,o,void 0);let u=I7(l.symbol,t),d=u!==l.text?tPe(s.qualifier,L.createIdentifier(u)):s.qualifier;r=Bn(r,l.symbol);let g=Xn(s.typeArguments,o,Ri);return L.createTypeReferenceNode(d,g)}return kn(s,o,void 0)}}function tPe(e,t){return e.kind===80?t:L.createQualifiedName(tPe(e.left,t),e.right)}function PE(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Ppe(e,t){let r=Dl(t),i=Fi(e,t.start);for(;i.end<r;)i=i.parent;return i}function nPe(e,t,r,i,o,s){let l=oPe(e,t,r,i);if(!l||sx.isRefactorErrorInfo(l))return;let u=Rr.ChangeTracker.fromContext(o),{isStatic:d,isReadonly:g,fieldName:_,accessorName:v,originalName:E,type:A,container:R,declaration:N}=l;kp(_),kp(v),kp(N),kp(R);let P,k;if(ui(R)){let O=Gd(N);if(Mu(e)){let G=L.createModifiersFromModifierFlags(O);P=G,k=G}else P=L.createModifiersFromModifierFlags(uet(O)),k=L.createModifiersFromModifierFlags(pet(O));F1(N)&&(k=so(ob(N),k))}get(u,e,N,A,_,k);let F=fet(_,v,A,P,d,R);if(kp(F),aPe(u,e,F,N,R),g){let O=gg(R);O&&yet(u,e,O,_.text,E)}else{let O=met(_,v,A,P,d,R);kp(O),aPe(u,e,O,N,R)}return u.getChanges()}function cet(e){return He(e)||ka(e)}function det(e){return Dp(e,e.parent)||Po(e)||Nc(e)}function rPe(e,t){return He(t)?L.createIdentifier(e):L.createStringLiteral(e)}function iPe(e,t,r){let i=t?r.name:L.createThis();return He(e)?L.createPropertyAccessExpression(i,e):L.createElementAccessExpression(i,L.createStringLiteralFromNode(e))}function uet(e){return e&=-9,e&=-3,e&4||(e|=1),e}function pet(e){return e&=-2,e&=-5,e|=2,e}function oPe(e,t,r,i,o=!0){let s=Fi(e,r),l=r===i&&o,u=Dn(s.parent,det),d=271;if(!u||!(ZF(u.name,e,r,i)||l))return{error:Ho(f.Could_not_find_property_for_which_to_generate_accessor)};if(!cet(u.name))return{error:Ho(f.Name_is_not_valid)};if((Gd(u)&98303|d)!==d)return{error:Ho(f.Can_only_convert_property_with_modifier)};let g=u.name.text,_=aJ(g),v=rPe(_?g:ME(`_${g}`,e),u.name),E=rPe(_?ME(g.substring(1),e):g,u.name);return{isStatic:Wc(u),isReadonly:nE(u),type:vet(u,t),container:u.kind===170?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:v,accessorName:E,renameAccessor:_}}function fet(e,t,r,i,o,s){return L.createGetAccessorDeclaration(i,t,[],r,L.createBlock([L.createReturnStatement(iPe(e,o,s))],!0))}function met(e,t,r,i,o,s){return L.createSetAccessorDeclaration(i,t,[L.createParameterDeclaration(void 0,void 0,L.createIdentifier("value"),void 0,r)],L.createBlock([L.createExpressionStatement(L.createAssignment(iPe(e,o,s),L.createIdentifier("value")))],!0))}function het(e,t,r,i,o,s){let l=L.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function _et(e,t,r,i){let o=L.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=L.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function get(e,t,r,i,o,s){Po(r)?het(e,t,r,i,o,s):Nc(r)?_et(e,t,r,o):e.replaceNode(t,r,L.updateParameterDeclaration(r,s,r.dotDotDotToken,ma(o,He),r.questionToken,r.type,r.initializer))}function aPe(e,t,r,i,o){Dp(i,i.parent)?e.insertMemberAtStart(t,o,r):Nc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function yet(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Ws(l)&&l.expression.kind===110&&ka(l.argumentExpression)&&l.argumentExpression.text===o&&gI(l)&&e.replaceNode(t,l.argumentExpression,L.createStringLiteral(i)),qr(l)&&l.expression.kind===110&&l.name.text===o&&gI(l)&&e.replaceNode(t,l.name,L.createIdentifier(i)),!Yo(l)&&!ui(l)&&l.forEachChild(s)})}function vet(e,t){let r=Dne(e);if(Po(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=sv(r)?r.types:[r];return L.createUnionTypeNode([...s,L.createKeywordTypeNode(157)])}}return r}var sPe="invalidImportSyntax";function bet(e,t){let r=Wn(t),i=UR(t),o=e.program.getCompilerOptions(),s=[];return s.push(lPe(e,r,t,zb(i.name,void 0,t.moduleSpecifier,zp(r,e.preferences)))),vu(o)===1&&s.push(lPe(e,r,t,L.createImportEqualsDeclaration(void 0,!1,i.name,L.createExternalModuleReference(t.moduleSpecifier)))),s}function lPe(e,t,r,i){let o=Rr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return yh(sPe,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}Sa({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:Tet});function Tet(e){let t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?214:215,i=Dn(Fi(t,e.span.start),s=>s.kind===r);if(!i)return[];let o=i.expression;return cPe(e,o)}Sa({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:Eet});function Eet(e){let t=e.sourceFile,r=Dn(Fi(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?cPe(e,r):[]}function cPe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&ug(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Yu(o)||Xr(i,bet(e,o)),St(t)&&!(nd(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=Rr.ChangeTracker.with(e,u=>u.replaceNode(s,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(yh(sPe,l,f.Use_synthetic_default_member))}return i}var Lpe="strictClassInitialization",kpe="addMissingPropertyDefiniteAssignmentAssertions",wpe="addMissingPropertyUndefinedType",Ope="addMissingPropertyInitializer",dPe=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];Sa({errorCodes:dPe,getCodeActions:function(t){let r=uPe(t.sourceFile,t.span.start);if(!r)return;let i=[];return Bn(i,Iet(t,r)),Bn(i,Aet(t,r)),Bn(i,xet(t,r)),i},fixIds:[kpe,wpe,Ope],getAllCodeActions:e=>Ss(e,dPe,(t,r)=>{let i=uPe(r.file,r.start);if(i)switch(e.fixId){case kpe:pPe(t,r.file,i.prop);break;case wpe:fPe(t,r.file,i);break;case Ope:let o=e.program.getTypeChecker(),s=hPe(o,i.prop);if(!s)return;mPe(t,r.file,i.prop,s);break;default:C.fail(JSON.stringify(e.fixId))}})});function uPe(e,t){let r=Fi(e,t);if(He(r)&&Po(r.parent)){let i=Rc(r.parent);if(i)return{type:i,prop:r.parent,isJs:Ir(r.parent)}}}function Aet(e,t){if(t.isJs)return;let r=Rr.ChangeTracker.with(e,i=>pPe(i,e.sourceFile,t.prop));return oa(Lpe,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],kpe,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function pPe(e,t,r){kp(r);let i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function Iet(e,t){let r=Rr.ChangeTracker.with(e,i=>fPe(i,e.sourceFile,t));return oa(Lpe,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],wpe,f.Add_undefined_type_to_all_uninitialized_properties)}function fPe(e,t,r){let i=L.createKeywordTypeNode(157),o=sv(r.type)?r.type.types.concat(i):[r.type,i],s=L.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function xet(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=hPe(r,t.prop);if(!i)return;let o=Rr.ChangeTracker.with(e,s=>mPe(s,e.sourceFile,t.prop,i));return oa(Lpe,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],Ope,f.Add_initializers_to_all_uninitialized_properties)}function mPe(e,t,r,i){kp(r);let o=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function hPe(e,t){return _Pe(e,e.getTypeFromTypeNode(t.type))}function _Pe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?L.createFalse():L.createTrue();if(t.isStringLiteral())return L.createStringLiteral(t.value);if(t.isNumberLiteral())return L.createNumericLiteral(t.value);if(t.flags&2048)return L.createBigIntLiteral(t.value);if(t.isUnion())return Hn(t.types,r=>_Pe(e,r));if(t.isClass()){let r=cy(t.symbol);if(!r||di(r,64))return;let i=gg(r);return i&&i.parameters.length?void 0:L.createNewExpression(L.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return L.createArrayLiteralExpression()}var Wpe="requireInTs",gPe=[f.require_call_may_be_converted_to_an_import.code];Sa({errorCodes:gPe,getCodeActions(e){let t=vPe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;let r=Rr.ChangeTracker.with(e,i=>yPe(i,e.sourceFile,t));return[oa(Wpe,r,f.Convert_require_to_import,Wpe,f.Convert_all_require_to_import)]},fixIds:[Wpe],getAllCodeActions:e=>Ss(e,gPe,(t,r)=>{let i=vPe(r.file,e.program,r.start,e.preferences);i&&yPe(t,e.sourceFile,i)})});function yPe(e,t,r){let{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,moduleSpecifier:u}=r;e.replaceNode(t,l,o&&!i?L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(void 0,o,s),u,void 0))}function vPe(e,t,r,i){let{parent:o}=Fi(e,r);$u(o,!0)||C.failBadSyntaxKind(o);let s=ma(o.parent,yi),l=zp(e,i),u=ni(s.name,He),d=pf(s.name)?Ret(s.name):void 0;if(u||d){let g=$a(o.arguments);return{allowSyntheticDefaults:SI(t.getCompilerOptions()),defaultImportName:u,namedImports:d,statement:ma(s.parent.parent,ac),moduleSpecifier:lE(g)?L.createStringLiteral(g.text,l===0):g}}}function Ret(e){let t=[];for(let r of e.elements){if(!He(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,ni(r.propertyName,He),r.name))}if(t.length)return L.createNamedImports(t)}var Fpe="useDefaultImport",bPe=[f.Import_may_be_converted_to_a_default_import.code];Sa({errorCodes:bPe,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=TPe(t,r);if(!i)return;let o=Rr.ChangeTracker.with(e,s=>SPe(s,t,i,e.preferences));return[oa(Fpe,o,f.Convert_to_default_import,Fpe,f.Convert_all_to_default_imports)]},fixIds:[Fpe],getAllCodeActions:e=>Ss(e,bPe,(t,r)=>{let i=TPe(r.file,r.start);i&&SPe(t,r.file,i,e.preferences)})});function TPe(e,t){let r=Fi(e,t);if(!He(r))return;let{parent:i}=r;if(Bc(i)&&uy(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Ag(i)&&vl(i.parent.parent)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function SPe(e,t,r,i){e.replaceNode(t,r.importNode,zb(r.name,void 0,r.moduleSpecifier,zp(t,i)))}var zpe="useBigintLiteral",EPe=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];Sa({errorCodes:EPe,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>APe(i,t.sourceFile,t.span));if(r.length>0)return[oa(zpe,r,f.Convert_to_a_bigint_numeric_literal,zpe,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[zpe],getAllCodeActions:e=>Ss(e,EPe,(t,r)=>APe(t,r.file,r))});function APe(e,t,r){let i=ni(Fi(t,r.start),ep);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var Det="fixAddModuleReferTypeMissingTypeof",Bpe=Det,IPe=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];Sa({errorCodes:IPe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=xPe(r,i.start),s=Rr.ChangeTracker.with(t,l=>RPe(l,r,o));return[oa(Bpe,s,f.Add_missing_typeof,Bpe,f.Add_missing_typeof)]},fixIds:[Bpe],getAllCodeActions:e=>Ss(e,IPe,(t,r)=>RPe(t,e.sourceFile,xPe(r.file,r.start)))});function xPe(e,t){let r=Fi(e,t);return C.assert(r.kind===102,"This token should be an ImportKeyword"),C.assert(r.parent.kind===206,"Token parent should be an ImportType"),r.parent}function RPe(e,t,r){let i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var Gpe="wrapJsxInFragment",DPe=[f.JSX_expressions_must_have_one_parent_element.code];Sa({errorCodes:DPe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=CPe(r,i.start);if(!o)return;let s=Rr.ChangeTracker.with(t,l=>NPe(l,r,o));return[oa(Gpe,s,f.Wrap_in_JSX_fragment,Gpe,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Gpe],getAllCodeActions:e=>Ss(e,DPe,(t,r)=>{let i=CPe(e.sourceFile,r.start);i&&NPe(t,e.sourceFile,i)})});function CPe(e,t){let o=Fi(e,t).parent.parent;if(!(!Nr(o)&&(o=o.parent,!Nr(o)))&&Ol(o.operatorToken))return o}function NPe(e,t,r){let i=Cet(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function Cet(e){let t=[],r=e;for(;;)if(Nr(r)&&Ol(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),OL(r.right))return t.push(r.right),t;if(Nr(r.right)){r=r.right;continue}else return}else return}var Vpe="wrapDecoratorInParentheses",MPe=[f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];Sa({errorCodes:MPe,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>PPe(i,t.sourceFile,t.span.start));return[oa(Vpe,r,f.Wrap_in_parentheses,Vpe,f.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Vpe],getAllCodeActions:e=>Ss(e,MPe,(t,r)=>PPe(t,r.file,r.start))});function PPe(e,t,r){let i=Fi(t,r),o=Dn(i,zc);C.assert(!!o,"Expected position to be owned by a decorator.");let s=L.createParenthesizedExpression(o.expression);e.replaceNode(t,o.expression,s)}var jpe="fixConvertToMappedObjectType",LPe=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];Sa({errorCodes:LPe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=kPe(r,i.start);if(!o)return;let s=Rr.ChangeTracker.with(t,u=>wPe(u,r,o)),l=Kr(o.container.name);return[oa(jpe,s,[f.Convert_0_to_mapped_object_type,l],jpe,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[jpe],getAllCodeActions:e=>Ss(e,LPe,(t,r)=>{let i=kPe(r.file,r.start);i&&wPe(t,r.file,i)})});function kPe(e,t){let r=Fi(e,t),i=ni(r.parent.parent,Db);if(!i)return;let o=gd(i.parent)?i.parent:ni(i.parent.parent,ym);if(o)return{indexSignature:i,container:o}}function Net(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function wPe(e,t,{indexSignature:r,container:i}){let s=(gd(i)?i.members:i.type.members).filter(_=>!Db(_)),l=$a(r.parameters),u=L.createTypeParameterDeclaration(void 0,ma(l.name,He),l.type),d=L.createMappedTypeNode(nE(r)?L.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),g=L.createIntersectionTypeNode([...eM(i),d,...s.length?[L.createTypeLiteralNode(s)]:ae]);e.replaceNode(t,i,Net(i,g))}var OPe="removeAccidentalCallParentheses",Met=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];Sa({errorCodes:Met,getCodeActions(e){let t=Dn(Fi(e.sourceFile,e.span.start),Zo);if(!t)return;let r=Rr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[yh(OPe,r,f.Remove_parentheses)]},fixIds:[OPe]});var Upe="removeUnnecessaryAwait",WPe=[f.await_has_no_effect_on_the_type_of_this_expression.code];Sa({errorCodes:WPe,getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>FPe(i,t.sourceFile,t.span));if(r.length>0)return[oa(Upe,r,f.Remove_unnecessary_await,Upe,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[Upe],getAllCodeActions:e=>Ss(e,WPe,(t,r)=>FPe(t,r.file,r))});function FPe(e,t,r){let i=ni(Fi(t,r.start),u=>u.kind===135),o=i&&ni(i.parent,Cb);if(!o)return;let s=o;if(wu(o.parent)){let u=nD(o.expression,!1);if(He(u)){let d=Vc(o.parent.pos,t);d&&d.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var zPe=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Hpe="splitTypeOnlyImport";Sa({errorCodes:zPe,fixIds:[Hpe],getCodeActions:function(t){let r=Rr.ChangeTracker.with(t,i=>GPe(i,BPe(t.sourceFile,t.span),t));if(r.length)return[oa(Hpe,r,f.Split_into_two_separate_import_declarations,Hpe,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ss(e,zPe,(t,r)=>{GPe(t,BPe(e.sourceFile,r),e)})});function BPe(e,t){return Dn(Fi(e,t.start),vl)}function GPe(e,t,r){if(!t)return;let i=C.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,L.updateImportDeclaration(t,t.modifiers,L.updateImportClause(i,i.phaseModifier,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,L.createImportDeclaration(void 0,L.updateImportClause(i,i.phaseModifier,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var qpe="fixConvertConstToLet",VPe=[f.Cannot_assign_to_0_because_it_is_a_constant.code];Sa({errorCodes:VPe,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=jPe(r,i.start,o);if(s===void 0)return;let l=Rr.ChangeTracker.with(t,u=>UPe(u,r,s.token));return[rue(qpe,l,f.Convert_const_to_let,qpe,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Set;return cx(Rr.ChangeTracker.with(e,i=>{dx(e,VPe,o=>{let s=jPe(o.file,o.start,t);if(s&&_m(r,Ta(s.symbol)))return UPe(i,o.file,s.token)})}))},fixIds:[qpe]});function jPe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(Fi(e,t));if(s===void 0)return;let l=ni((i=s?.valueDeclaration)==null?void 0:i.parent,_d);if(l===void 0)return;let u=Es(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function UPe(e,t,r){e.replaceNode(t,r,L.createToken(121))}var Jpe="fixExpectedComma",Pet=f._0_expected.code,HPe=[Pet];Sa({errorCodes:HPe,getCodeActions(e){let{sourceFile:t}=e,r=qPe(t,e.span.start,e.errorCode);if(!r)return;let i=Rr.ChangeTracker.with(e,o=>JPe(o,t,r));return[oa(Jpe,i,[f.Change_0_to_1,";",","],Jpe,[f.Change_0_to_1,";",","])]},fixIds:[Jpe],getAllCodeActions:e=>Ss(e,HPe,(t,r)=>{let i=qPe(r.file,r.start,r.code);i&&JPe(t,e.sourceFile,i)})});function qPe(e,t,r){let i=Fi(e,t);return i.kind===27&&i.parent&&(Wa(i.parent)||Cd(i.parent))?{node:i}:void 0}function JPe(e,t,{node:r}){let i=L.createToken(28);e.replaceNode(t,r,i)}var Let="addVoidToPromise",KPe="addVoidToPromise",XPe=[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];Sa({errorCodes:XPe,fixIds:[KPe],getCodeActions(e){let t=Rr.ChangeTracker.with(e,r=>YPe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[oa(Let,t,f.Add_void_to_Promise_resolved_without_a_value,KPe,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ss(e,XPe,(t,r)=>YPe(t,r.file,r,e.program,new Set))}});function YPe(e,t,r,i,o){let s=Fi(t,r.start);if(!He(s)||!Zo(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;let l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),d=u?.valueDeclaration;if(!d||!to(d)||!L1(d.parent.parent)||o?.has(d))return;o?.add(d);let g=ket(d.parent.parent);if(vt(g)){let _=g[0],v=!sv(_)&&!dE(_)&&dE(L.createUnionTypeNode([_,L.createKeywordTypeNode(116)]).types[0]);v&&e.insertText(t,_.pos,"("),e.insertText(t,_.end,v?") | void":" | void")}else{let _=l.getResolvedSignature(s.parent),v=_?.parameters[0],E=v&&l.getTypeOfSymbolAtLocation(v,d.parent.parent);Ir(d)?(!E||E.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,La(t.text,d.parent.parent.pos),"/** @type {Promise<void>} */(")):(!E||E.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"<void>")}}function ket(e){var t;if(Ir(e)){if(wu(e.parent)){let r=(t=x0(e.parent))==null?void 0:t.typeExpression.type;if(r&&wp(r)&&He(r.typeName)&&Kr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var fx={};x(fx,{CompletionKind:()=>f2e,CompletionSource:()=>QPe,SortText:()=>Hd,StringCompletions:()=>OK,SymbolOriginInfoKind:()=>ZPe,createCompletionDetails:()=>a5,createCompletionDetailsForSymbol:()=>nfe,getCompletionEntriesFromSymbols:()=>efe,getCompletionEntryDetails:()=>utt,getCompletionEntrySymbol:()=>ftt,getCompletionsAtPosition:()=>Vet,getDefaultCommitCharacters:()=>LE,getPropertiesForObjectExpression:()=>LK,moduleSpecifierResolutionCacheAttemptLimit:()=>$Pe,moduleSpecifierResolutionLimit:()=>Kpe});var Kpe=100,$Pe=1e3,Hd={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"}},s_=[".",",",";"],IK=[".",";"],QPe=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(QPe||{}),ZPe=(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))(ZPe||{});function wet(e){return!!(e.kind&1)}function Oet(e){return!!(e.kind&2)}function i5(e){return!!(e&&e.kind&4)}function UP(e){return!!(e&&e.kind===32)}function Wet(e){return i5(e)||UP(e)||Xpe(e)}function Fet(e){return(i5(e)||UP(e))&&!!e.isFromPackageJson}function zet(e){return!!(e.kind&8)}function Bet(e){return!!(e.kind&16)}function e2e(e){return!!(e&&e.kind&64)}function t2e(e){return!!(e&&e.kind&128)}function Get(e){return!!(e&&e.kind&256)}function Xpe(e){return!!(e&&e.kind&512)}function n2e(e,t,r,i,o,s,l,u,d){var g,_,v,E;let A=Ls(),R=l||kk(i.getCompilerOptions())||((g=s.autoImportSpecifierExcludeRegexes)==null?void 0:g.length),N=!1,P=0,k=0,F=0,O=0,G=d({tryResolve:J,skippedAny:()=>N,resolvedAny:()=>k>0,resolvedBeyondLimit:()=>k>Kpe}),j=O?` (${(F/O*100).toFixed(1)}% hit rate)`:"";return(_=t.log)==null||_.call(t,`${e}: resolved ${k} module specifiers, plus ${P} ambient and ${F} from cache${j}`),(v=t.log)==null||v.call(t,`${e}: response is ${N?"incomplete":"complete"}`),(E=t.log)==null||E.call(t,`${e}: ${Ls()-A}`),G;function J(Z,q){if(q){let pe=r.getModuleSpecifierForBestExportInfo(Z,o,u);return pe&&P++,pe||"failed"}let ye=R||s.allowIncompleteCompletions&&k<Kpe,ie=!ye&&s.allowIncompleteCompletions&&O<$Pe,K=ye||ie?r.getModuleSpecifierForBestExportInfo(Z,o,u,ie):void 0;return(!ye&&!ie||ie&&!K)&&(N=!0),k+=K?.computedWithoutCacheCount||0,F+=Z.length-(K?.computedWithoutCacheCount||0),ie&&O++,K||(R?"failed":"skipped")}}function LE(e){return e?[]:s_}function Vet(e,t,r,i,o,s,l,u,d,g,_=!1){var v;let{previousToken:E}=CK(o,i);if(l&&!nx(i,o,E)&&!Att(i,l,E,o))return;if(l===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:LE(!0)}:void 0;let A=t.getCompilerOptions(),R=t.getTypeChecker(),N=s.allowIncompleteCompletions?(v=e.getIncompleteCompletionsCache)==null?void 0:v.call(e):void 0;if(N&&u===3&&E&&He(E)){let F=jet(N,i,E,t,e,s,d,o);if(F)return F}else N?.clear();let P=OK.getStringLiteralCompletions(i,o,E,A,e,t,r,s,_);if(P)return P;if(E&&MN(E.parent)&&(E.kind===83||E.kind===88||E.kind===80))return ctt(E.parent);let k=m2e(t,r,i,A,o,s,void 0,e,g,d);if(k)switch(k.kind){case 0:let F=Ket(i,e,t,A,r,k,s,g,o,_);return F?.isIncomplete&&N?.set(F),F;case 1:return Ype([...uT.getJSDocTagNameCompletions(),...i2e(i,o,R,A,s,!0)]);case 2:return Ype([...uT.getJSDocTagCompletions(),...i2e(i,o,R,A,s,!1)]);case 3:return Ype(uT.getJSDocParameterNameCompletions(k.tag));case 4:return qet(k.keywordCompletions,k.isNewIdentifierLocation);default:return C.assertNever(k)}}function o5(e,t){var r,i;let o=lL(e.sortText,t.sortText);return o===0&&(o=lL(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=Gk(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function r2e(e){return!!e?.moduleSpecifier}function jet(e,t,r,i,o,s,l,u){let d=e.get();if(!d)return;let g=np(t,u),_=r.text.toLowerCase(),v=AO(t,o,i,s,l),E=n2e("continuePreviousIncompleteResponse",o,lu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,F0(r),A=>{let R=Ui(d.entries,N=>{var P;if(!N.hasAction||!N.source||!N.data||r2e(N.data))return N;if(!C2e(N.name,_))return;let{origin:k}=C.checkDefined(h2e(N.name,N.data,i,o)),F=v.get(t.path,N.data.exportMapKey),O=F&&A.tryResolve(F,!td(hm(k.moduleSymbol.name)));if(O==="skipped")return N;if(!O||O==="failed"){(P=o.log)==null||P.call(o,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}let G={...k,kind:32,moduleSpecifier:O.moduleSpecifier};return N.data=u2e(G),N.source=Zpe(G),N.sourceDisplay=[gf(G.moduleSpecifier)],N});return A.skippedAny()||(d.isIncomplete=void 0),R});return d.entries=E,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=s2e(g),d}function Ype(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:LE(!1)}}function i2e(e,t,r,i,o,s){let l=Fi(e,t);if(!LR(l)&&!mh(l))return[];let u=mh(l)?l:l.parent;if(!mh(u))return[];let d=u.parent;if(!Yo(d))return[];let g=Mu(e),_=o.includeCompletionsWithSnippetText||void 0,v=Io(u.tags,E=>ff(E)&&E.getEnd()<=t);return Ui(d.parameters,E=>{if(!RR(E).length){if(He(E.name)){let A={tabstop:1},R=E.name.text,N=BO(R,E.initializer,E.dotDotDotToken,g,!1,!1,r,i,o),P=_?BO(R,E.initializer,E.dotDotDotToken,g,!1,!0,r,i,o,A):void 0;return s&&(N=N.slice(1),P&&(P=P.slice(1))),{name:N,kind:"parameter",sortText:Hd.LocationPriority,insertText:_?P:void 0,isSnippet:_}}else if(E.parent.parameters.indexOf(E)===v){let A=`param${v}`,R=o2e(A,E.name,E.initializer,E.dotDotDotToken,g,!1,r,i,o),N=_?o2e(A,E.name,E.initializer,E.dotDotDotToken,g,!0,r,i,o):void 0,P=R.join(tv(i)+"* "),k=N?.join(tv(i)+"* ");return s&&(P=P.slice(1),k&&(k=k.slice(1))),{name:P,kind:"parameter",sortText:Hd.LocationPriority,insertText:_?k:void 0,isSnippet:_}}}})}function o2e(e,t,r,i,o,s,l,u,d){if(!o)return[BO(e,r,i,o,!1,s,l,u,d,{tabstop:1})];return g(e,t,r,i,{tabstop:1});function g(v,E,A,R,N){if(pf(E)&&!R){let k={tabstop:N.tabstop},F=BO(v,A,R,o,!0,s,l,u,d,k),O=[];for(let G of E.elements){let j=_(v,G,k);if(j)O.push(...j);else{O=void 0;break}}if(O)return N.tabstop=k.tabstop,[F,...O]}return[BO(v,A,R,o,!1,s,l,u,d,N)]}function _(v,E,A){if(!E.propertyName&&He(E.name)||He(E.name)){let R=E.propertyName?GN(E.propertyName):E.name.text;if(!R)return;let N=`${v}.${R}`;return[BO(N,E.initializer,E.dotDotDotToken,o,!1,s,l,u,d,A)]}else if(E.propertyName){let R=GN(E.propertyName);return R&&g(`${v}.${R}`,E.name,E.initializer,E.dotDotDotToken,A)}}}function BO(e,t,r,i,o,s,l,u,d,g){if(s&&C.assertIsDefined(g),t&&(e=Uet(e,t)),s&&(e=D1(e)),i){let _="*";if(o)C.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),_="Object";else{if(t){let A=l.getTypeAtLocation(t.parent);if(!(A.flags&16385)){let R=t.getSourceFile(),P=zp(R,d)===0?268435456:0,k=l.typeToTypeNode(A,Dn(t,Yo),P);if(k){let F=s?DK({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target}):Ob({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target});Cr(k,1),_=F.printNode(4,k,R)}}}s&&_==="*"&&(_=`\${${g.tabstop++}:${_}}`)}let v=!o&&r?"...":"",E=s?`\${${g.tabstop++}}`:"";return`@param {${v}${_}} ${e} ${E}`}else{let _=s?`\${${g.tabstop++}}`:"";return`@param ${e} ${_}`}}function Uet(e,t){let r=t.getText().trim();return r.includes(`
`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function Het(e){return{name:_a(e),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords}}function qet(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:LE(t)}}function a2e(e,t,r){return{kind:4,keywordCompletions:g2e(e,t),isNewIdentifierLocation:r}}function Jet(e){switch(e){case 156:return 8;default:C.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function s2e(e){return e?.kind===80?Fu(e):void 0}function Ket(e,t,r,i,o,s,l,u,d,g){let{symbols:_,contextToken:v,completionKind:E,isInSnippetScope:A,isNewIdentifierLocation:R,location:N,propertyAccessToConvert:P,keywordFilters:k,symbolToOriginInfoMap:F,recommendedCompletion:O,isJsxInitializer:G,isTypeOnlyLocation:j,isJsxIdentifierExpected:J,isRightOfOpenTag:Z,isRightOfDotOrQuestionDot:q,importStatementCompletion:ye,insideJsDocTagTypeExpression:ie,symbolToSortTextMap:K,hasUnresolvedAutoImports:pe,defaultCommitCharacters:de}=s,fe=s.literals,ve=r.getTypeChecker();if(Pk(e.scriptKind)===1){let re=Yet(N,e);if(re)return re}let xe=Dn(v,gD);if(xe&&(_ie(v)||y1(v,xe.expression))){let re=C7(ve,xe.parent.clauses);fe=fe.filter(be=>!re.hasValue(be)),_.forEach((be,Ne)=>{if(be.valueDeclaration&&py(be.valueDeclaration)){let Be=ve.getConstantValue(be.valueDeclaration);Be!==void 0&&re.hasValue(Be)&&(F[Ne]={kind:256})}})}let Y=Ez(),Ce=l2e(e,i);if(Ce&&!R&&(!_||_.length===0)&&k===0)return;let Xe=efe(_,Y,void 0,v,N,d,e,t,r,Ga(i),o,E,l,i,u,j,P,J,G,ye,O,F,K,J,Z,g);if(k!==0)for(let re of g2e(k,!ie&&Mu(e)))(j&&xP(OS(re.name))||!j&&Ltt(re.name)||!Xe.has(re.name))&&(Xe.add(re.name),Kv(Y,re,o5,void 0,!0));for(let re of vtt(v,d))Xe.has(re.name)||(Xe.add(re.name),Kv(Y,re,o5,void 0,!0));for(let re of fe){let be=Qet(e,l,re);Xe.add(be.name),Kv(Y,be,o5,void 0,!0)}Ce||$et(e,N.pos,Xe,Ga(i),Y);let Se;if(l.includeCompletionsWithInsertText&&v&&!Z&&!q&&(Se=Dn(v,VM))){let re=c2e(Se,e,l,i,t,r,u);re&&Y.push(re.entry)}return{flags:s.flags,isGlobalCompletion:A,isIncomplete:l.allowIncompleteCompletions&&pe?!0:void 0,isMemberCompletion:Xet(E),isNewIdentifierLocation:R,optionalReplacementSpan:s2e(N),entries:Y,defaultCommitCharacters:de??LE(R)}}function l2e(e,t){return!Mu(e)||!!SM(e,t)}function c2e(e,t,r,i,o,s,l){let u=e.clauses,d=s.getTypeChecker(),g=d.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Vn(g.types,_=>_.isLiteral())){let _=C7(d,u),v=Ga(i),E=zp(t,r),A=lu.createImportAdder(t,s,r,o),R=[];for(let j of g.types)if(j.flags&1024){C.assert(j.symbol,"An enum member type should have a symbol"),C.assert(j.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let J=j.symbol.valueDeclaration&&d.getConstantValue(j.symbol.valueDeclaration);if(J!==void 0){if(_.hasValue(J))continue;_.addValue(J)}let Z=lu.typeToAutoImportableTypeNode(d,A,j,e,v);if(!Z)return;let q=xK(Z,v,E);if(!q)return;R.push(q)}else if(!_.hasValue(j.value))switch(typeof j.value){case"object":R.push(j.value.negative?L.createPrefixUnaryExpression(41,L.createBigIntLiteral({negative:!1,base10Value:j.value.base10Value})):L.createBigIntLiteral(j.value));break;case"number":R.push(j.value<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-j.value)):L.createNumericLiteral(j.value));break;case"string":R.push(L.createStringLiteral(j.value,E===0));break}if(R.length===0)return;let N=Vt(R,j=>L.createCaseClause(j,[])),P=_y(o,l?.options),k=DK({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,newLine:EO(P)}),F=l?j=>k.printAndFormatNode(4,j,t,l):j=>k.printNode(4,j,t),O=Vt(N,(j,J)=>r.includeCompletionsWithSnippetText?`${F(j)}$${J+1}`:`${F(j)}`).join(P);return{entry:{name:`${k.printNode(4,N[0],t)} ...`,kind:"",sortText:Hd.GlobalsOrKeywords,insertText:O,hasAction:A.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:A}}}function xK(e,t,r){switch(e.kind){case 184:let i=e.typeName;return RK(i,t,r);case 200:let o=xK(e.objectType,t,r),s=xK(e.indexType,t,r);return o&&s&&L.createElementAccessExpression(o,s);case 202:let l=e.literal;switch(l.kind){case 11:return L.createStringLiteral(l.text,r===0);case 9:return L.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 197:let u=xK(e.type,t,r);return u&&(He(u)?u:L.createParenthesizedExpression(u));case 187:return RK(e.exprName,t,r);case 206:C.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function RK(e,t,r){if(He(e))return e;let i=Vi(e.right.escapedText);return kV(i,t)?L.createPropertyAccessExpression(RK(e.left,t,r),i):L.createElementAccessExpression(RK(e.left,t,r),L.createStringLiteral(i,r===0))}function Xet(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Yet(e,t){let r=Dn(e,i=>{switch(i.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return"quit"}});if(r){let i=!!Es(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Fu(r.tagName),d={name:l,kind:"class",kindModifiers:void 0,sortText:Hd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[d],defaultCommitCharacters:LE(!1)}}}function $et(e,t,r,i,o){XJ(e).forEach((s,l)=>{if(s===t)return;let u=Vi(l);!r.has(u)&&pp(u,i)&&(r.add(u),Kv(o,{name:u,kind:"warning",kindModifiers:"",sortText:Hd.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},o5))})}function $pe(e,t,r){return typeof r=="object"?R1(r)+"n":Bo(r)?PP(e,t,r):JSON.stringify(r)}function Qet(e,t,r){return{name:$pe(e,t,r),kind:"string",kindModifiers:"",sortText:Hd.LocationPriority,commitCharacters:[]}}function Zet(e,t,r,i,o,s,l,u,d,g,_,v,E,A,R,N,P,k,F,O,G,j,J,Z){var q,ye;let ie,K,pe=Cq(r,s),de,fe,ve=Zpe(v),xe,Y,Ce,Xe=d.getTypeChecker(),Se=v&&Bet(v),re=v&&Oet(v)||_;if(v&&wet(v))ie=_?`this${Se?"?.":""}[${Qpe(l,F,g)}]`:`this${Se?"?.":"."}${g}`;else if((re||Se)&&A){ie=re?_?`[${Qpe(l,F,g)}]`:`[${g}]`:g,(Se||A.questionDotToken)&&(ie=`?.${ie}`);let lt=Es(A,25,l)||Es(A,29,l);if(!lt)return;let ce=po(g,A.name.text)?A.name.end:lt.end;pe=ic(lt.getStart(l),ce)}if(R&&(ie===void 0&&(ie=g),ie=`{${ie}}`,typeof R!="boolean"&&(pe=Fu(R,l))),v&&zet(v)&&A){ie===void 0&&(ie=g);let lt=Vc(A.pos,l),ce="";lt&&b7(lt.end,lt.parent,l)&&(ce=";"),ce+=`(await ${A.expression.getText()})`,ie=_?`${ce}${ie}`:`${ce}${Se?"?.":"."}${ie}`;let ge=ni(A.parent,Cb)?A.parent:A.expression;pe=ic(ge.getStart(l),A.end)}if(UP(v)&&(xe=[gf(v.moduleSpecifier)],N&&({insertText:ie,replacementSpan:pe}=stt(g,N,v,P,l,d,F),fe=F.includeCompletionsWithSnippetText?!0:void 0)),v?.kind===64&&(Y=!0),O===0&&i&&((q=Vc(i.pos,l,i))==null?void 0:q.kind)!==28&&(Nl(i.parent.parent)||jf(i.parent.parent)||_p(i.parent.parent)||Ig(i.parent)||((ye=Dn(i.parent,Nc))==null?void 0:ye.getLastToken(l))===i||Ud(i.parent)&&ca(l,i.getEnd()).line!==ca(l,s).line)&&(ve="ObjectLiteralMemberWithComma/",Y=!0),F.includeCompletionsWithClassMemberSnippets&&F.includeCompletionsWithInsertText&&O===3&&ttt(e,o,l)){let lt,ce=d2e(u,d,k,F,g,e,o,s,i,G);if(ce)({insertText:ie,filterText:K,isSnippet:fe,importAdder:lt}=ce),(lt?.hasFixes()||ce.eraseRange)&&(Y=!0,ve="ClassMemberSnippet/");else return}if(v&&t2e(v)&&({insertText:ie,isSnippet:fe,labelDetails:Ce}=v,F.useLabelDetailsInCompletionEntries||(g=g+Ce.detail,Ce=void 0),ve="ObjectLiteralMethodSnippet/",t=Hd.SortBelow(t)),j&&!J&&F.includeCompletionsWithSnippetText&&F.jsxAttributeCompletionStyle&&F.jsxAttributeCompletionStyle!=="none"&&!(r_(o.parent)&&o.parent.initializer)){let lt=F.jsxAttributeCompletionStyle==="braces",ce=Xe.getTypeOfSymbolAtLocation(e,o);F.jsxAttributeCompletionStyle==="auto"&&!(ce.flags&528)&&!(ce.flags&1048576&&hn(ce.types,De=>!!(De.flags&528)))&&(ce.flags&402653316||ce.flags&1048576&&Vn(ce.types,De=>!!(De.flags&402686084||jle(De)))?(ie=`${D1(g)}=${PP(l,F,"$1")}`,fe=!0):lt=!0),lt&&(ie=`${D1(g)}={$1}`,fe=!0)}if(ie!==void 0&&!F.includeCompletionsWithInsertText)return;(i5(v)||UP(v))&&(de=u2e(v),Y=!N);let be=Dn(o,bW);if(be){let lt=Ga(u.getCompilationSettings());if(!pp(g,lt))ie=Qpe(l,F,g),be.kind===276&&(yd.setText(l.text),yd.resetTokenState(s),yd.scan()===130&&yd.scan()===80||(ie+=" as "+ett(g,lt)));else if(be.kind===276){let ce=OS(g);ce&&(ce===135||PG(ce))&&(ie=`${g} as ${g}_`)}}let Ne=_v.getSymbolKind(Xe,e,o),Be=Ne==="warning"||Ne==="string"?[]:void 0;return{name:g,kind:Ne,kindModifiers:_v.getSymbolModifiers(Xe,e),sortText:t,source:ve,hasAction:Y?!0:void 0,isRecommended:ltt(e,E,Xe)||void 0,insertText:ie,filterText:K,replacementSpan:pe,sourceDisplay:xe,labelDetails:Ce,isSnippet:fe,isPackageJsonImport:Fet(v)||void 0,isImportStatementCompletion:!!N||void 0,data:de,commitCharacters:Be,...Z?{symbol:e}:void 0}}function ett(e,t){let r=!1,i="",o;for(let s=0;s<e.length;s+=o!==void 0&&o>=65536?2:1)o=e.codePointAt(s),o!==void 0&&(s===0?x_(o,t):ey(o,t))?(r&&(i+="_"),i+=String.fromCodePoint(o),r=!1):r=!0;return r&&(i+="_"),i||"_"}function ttt(e,t,r){return Ir(t)?!1:!!(e.flags&106500)&&(ui(t)||t.parent&&t.parent.parent&&Tc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ui(t.parent.parent)||t.parent&&TD(t)&&ui(t.parent))}function d2e(e,t,r,i,o,s,l,u,d,g){let _=Dn(l,ui);if(!_)return;let v,E=o,A=o,R=t.getTypeChecker(),N=l.getSourceFile(),P=DK({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,omitTrailingSemicolon:!1,newLine:EO(_y(e,g?.options))}),k=lu.createImportAdder(N,t,i,e),F;if(i.includeCompletionsWithSnippetText){v=!0;let ye=L.createEmptyStatement();F=L.createBlock([ye],!0),ZV(ye,{kind:0,order:0})}else F=L.createBlock([],!0);let O=0,{modifiers:G,range:j,decorators:J}=ntt(d,N,u),Z=G&64&&_.modifierFlagsCache&64,q=[];if(lu.addNewNodeForMemberSymbol(s,_,N,{program:t,host:e},i,k,ye=>{let ie=0;Z&&(ie|=64),Tc(ye)&&R.getMemberOverrideModifierStatus(_,ye,s)===1&&(ie|=16),q.length||(O=ye.modifierFlagsCache|ie),ye=L.replaceModifiers(ye,O),q.push(ye)},F,lu.PreserveOptionalFlags.Property,!!Z),q.length){let ye=s.flags&8192,ie=O|16|1;ye?ie|=1024:ie|=136;let K=G&ie;if(G&~ie)return;if(O&4&&K&1&&(O&=-5),K!==0&&!(K&1)&&(O&=-2),O|=K,q=q.map(de=>L.replaceModifiers(de,O)),J?.length){let de=q[q.length-1];F1(de)&&(q[q.length-1]=L.replaceDecoratorsAndModifiers(de,J.concat(a1(de)||[])))}let pe=131073;g?E=P.printAndFormatSnippetList(pe,L.createNodeArray(q),N,g):E=P.printSnippetList(pe,L.createNodeArray(q),N)}return{insertText:E,filterText:A,isSnippet:v,importAdder:k,eraseRange:j}}function ntt(e,t,r){if(!e||ca(t,r).line>ca(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(Po(e.parent)&&(s=rtt(e))){e.parent.modifiers&&(i|=Kh(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(zc)||[],l.pos=Math.min(...e.parent.modifiers.map(d=>d.getStart(t))));let u=hI(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.getStart(t))),e.parent.name!==e&&(l.end=e.parent.name.getStart(t))}return{modifiers:i,decorators:o,range:l.pos<l.end?l:void 0}}function rtt(e){if(Aa(e))return e.kind;if(He(e)){let t=FS(e);if(t&&cb(t))return t}}function itt(e,t,r,i,o,s,l,u){let d=l.includeCompletionsWithSnippetText||void 0,g=t,_=r.getSourceFile(),v=ott(e,r,_,i,o,l);if(!v)return;let E=DK({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target,omitTrailingSemicolon:!1,newLine:EO(_y(o,u?.options))});u?g=E.printAndFormatSnippetList(80,L.createNodeArray([v],!0),_,u):g=E.printSnippetList(80,L.createNodeArray([v],!0),_);let A=Ob({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target,omitTrailingSemicolon:!0}),R=L.createMethodSignature(void 0,"",v.questionToken,v.typeParameters,v.parameters,v.type),N={detail:A.printNode(4,R,_)};return{isSnippet:d,insertText:g,labelDetails:N}}function ott(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let u=i.getTypeChecker(),d=l[0],g=_s(Oo(d),!1),_=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),E=33554432|(zp(r,s)===0?268435456:0);switch(d.kind){case 172:case 173:case 174:case 175:{let A=_.flags&1048576&&_.types.length<10?u.getUnionType(_.types,2):_;if(A.flags&1048576){let F=Un(A.types,O=>u.getSignaturesOfType(O,0).length>0);if(F.length===1)A=F[0];else return}if(u.getSignaturesOfType(A,0).length!==1)return;let N=u.typeToTypeNode(A,t,E,void 0,lu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!k_(N))return;let P;if(s.includeCompletionsWithSnippetText){let F=L.createEmptyStatement();P=L.createBlock([F],!0),ZV(F,{kind:0,order:0})}else P=L.createBlock([],!0);let k=N.parameters.map(F=>L.createParameterDeclaration(void 0,F.dotDotDotToken,F.name,void 0,void 0,F.initializer));return L.createMethodDeclaration(void 0,void 0,g,void 0,void 0,k,void 0,P)}default:return}}function DK(e){let t,r=Rr.createWriter(tv(e)),i=Ob(e,r),o={...r,write:E=>s(E,()=>r.write(E)),nonEscapingWrite:r.write,writeLiteral:E=>s(E,()=>r.writeLiteral(E)),writeStringLiteral:E=>s(E,()=>r.writeStringLiteral(E)),writeSymbol:(E,A)=>s(E,()=>r.writeSymbol(E,A)),writeParameter:E=>s(E,()=>r.writeParameter(E)),writeComment:E=>s(E,()=>r.writeComment(E)),writeProperty:E=>s(E,()=>r.writeProperty(E))};return{printSnippetList:l,printAndFormatSnippetList:d,printNode:g,printAndFormatNode:v};function s(E,A){let R=D1(E);if(R!==E){let N=r.getTextPos();A();let P=r.getTextPos();t=Bn(t||(t=[]),{newText:R,span:{start:N,length:P-N}})}else A()}function l(E,A,R){let N=u(E,A,R);return t?Rr.applyChanges(N,t):N}function u(E,A,R){return t=void 0,o.clear(),i.writeList(E,A,R,o),o.getText()}function d(E,A,R,N){let P={text:u(E,A,R),getLineAndCharacterOfPosition(G){return ca(this,G)}},k=D7(N,R),F=Ki(A,G=>{let j=Rr.assignPositionsToNode(G);return Mc.formatNodeGivenIndentation(j,P,R.languageVariant,0,0,{...N,options:k})}),O=t?Ap(so(F,t),(G,j)=>N8(G.span,j.span)):F;return Rr.applyChanges(P.text,O)}function g(E,A,R){let N=_(E,A,R);return t?Rr.applyChanges(N,t):N}function _(E,A,R){return t=void 0,o.clear(),i.writeNode(E,A,R,o),o.getText()}function v(E,A,R,N){let P={text:_(E,A,R),getLineAndCharacterOfPosition(j){return ca(this,j)}},k=D7(N,R),F=Rr.assignPositionsToNode(A),O=Mc.formatNodeGivenIndentation(F,P,R.languageVariant,0,0,{...N,options:k}),G=t?Ap(so(O,t),(j,J)=>N8(j.span,J.span)):O;return Rr.applyChanges(P.text,G)}}function u2e(e){let t=e.fileName?void 0:hm(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return UP(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:hm(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function att(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return r2e(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 stt(e,t,r,i,o,s,l){let u=t.replacementSpan,d=D1(PP(o,l,r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,_=l.includeCompletionsWithSnippetText?"$1":"",v=lu.getImportKind(o,g,s,!0),E=t.couldBeTypeOnlyImportSpecifier,A=t.isTopLevelTypeOnly?` ${_a(156)} `:" ",R=E?`${_a(156)} `:"",N=i?";":"";switch(v){case 3:return{replacementSpan:u,insertText:`import${A}${D1(e)}${_} = require(${d})${N}`};case 1:return{replacementSpan:u,insertText:`import${A}${D1(e)}${_} from ${d}${N}`};case 2:return{replacementSpan:u,insertText:`import${A}* as ${D1(e)} from ${d}${N}`};case 0:return{replacementSpan:u,insertText:`import${A}{ ${R}${D1(e)}${_} } from ${d}${N}`}}}function Qpe(e,t,r){return/^\d+$/.test(r)?r:PP(e,t,r)}function ltt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Zpe(e){if(i5(e))return hm(e.moduleSymbol.name);if(UP(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function efe(e,t,r,i,o,s,l,u,d,g,_,v,E,A,R,N,P,k,F,O,G,j,J,Z,q,ye=!1){let ie=Ls(),K=Ctt(i,o),pe=vO(l),de=d.getTypeChecker(),fe=new Map;for(let Y=0;Y<e.length;Y++){let Ce=e[Y],Xe=j?.[Y],Se=NK(Ce,g,Xe,v,!!k);if(!Se||fe.get(Se.name)&&(!Xe||!t2e(Xe))||v===1&&J&&!ve(Ce,J)||!N&&Ir(l)&&xe(Ce))continue;let{name:re,needsConvertPropertyAccess:be}=Se,Ne=J?.[Ta(Ce)]??Hd.LocationPriority,Be=Mtt(Ce,de)?Hd.Deprecated(Ne):Ne,lt=Zet(Ce,Be,r,i,o,s,l,u,d,re,be,Xe,G,P,F,O,pe,A,E,v,R,Z,q,ye);if(!lt)continue;let ce=(!Xe||e2e(Xe))&&!(Ce.parent===void 0&&!vt(Ce.declarations,De=>De.getSourceFile()===o.getSourceFile()));fe.set(re,ce),Kv(t,lt,o5,void 0,!0)}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ls()-ie)),{has:Y=>fe.has(Y),add:Y=>fe.set(Y,!0)};function ve(Y,Ce){var Xe;let Se=Y.flags;if(o.parent&&ll(o.parent))return!0;if(K&&ni(K,yi)&&(Y.valueDeclaration===K||Qo(K.name)&&K.name.elements.some(Ne=>Ne===Y.valueDeclaration)))return!1;let re=Y.valueDeclaration??((Xe=Y.declarations)==null?void 0:Xe[0]);if(K&&re){if(to(K)&&to(re)){let Ne=K.parent.parameters;if(re.pos>=K.pos&&re.pos<Ne.end)return!1}else if(sl(K)&&sl(re)){if(K===re&&i?.kind===96)return!1;if(Ntt(i)&&!cE(K.parent)){let Ne=K.parent.typeParameters;if(Ne&&re.pos>=K.pos&&re.pos<Ne.end)return!1}}}let be=xd(Y,de);return l.externalModuleIndicator&&!A.allowUmdGlobalAccess&&Ce[Ta(Y)]===Hd.GlobalsOrKeywords&&(Ce[Ta(be)]===Hd.AutoImportSuggestions||Ce[Ta(be)]===Hd.LocationPriority)?!1:(Se|=eD(be),XF(o)?!!(Se&1920):N?ofe(Y,de):!!(Se&111551))}function xe(Y){var Ce;let Xe=eD(xd(Y,de));return!(Xe&111551)&&(!Ir((Ce=Y.declarations)==null?void 0:Ce[0])||!!(Xe&788968))}}function ctt(e){let t=dtt(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:LE(!1)}}function dtt(e){let t=[],r=new Map,i=e;for(;i&&!Yo(i);){if(Nb(i)){let o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:Hd.LocationPriority}))}i=i.parent}return t}function p2e(e,t,r,i,o,s,l){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){let O=h2e(o.name,o.data,e,s);if(O){let{contextToken:G,previousToken:j}=CK(i,r);return{type:"symbol",symbol:O.symbol,location:np(r,i),previousToken:j,contextToken:G,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:O.origin}}}let u=e.getCompilerOptions(),d=m2e(e,t,r,u,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!d)return{type:"none"};if(d.kind!==0)return{type:"request",request:d};let{symbols:g,literals:_,location:v,completionKind:E,symbolToOriginInfoMap:A,contextToken:R,previousToken:N,isJsxInitializer:P,isTypeOnlyLocation:k}=d,F=hn(_,O=>$pe(r,l,O)===o.name);return F!==void 0?{type:"literal",literal:F}:Hn(g,(O,G)=>{let j=A[G],J=NK(O,Ga(u),j,E,d.isJsxIdentifierExpected);return J&&J.name===o.name&&(o.source==="ClassMemberSnippet/"&&O.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&O.flags&8196||Zpe(j)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:O,location:v,origin:j,contextToken:R,previousToken:N,isJsxInitializer:P,isTypeOnlyLocation:k}:void 0})||{type:"none"}}function utt(e,t,r,i,o,s,l,u,d){let g=e.getTypeChecker(),_=e.getCompilerOptions(),{name:v,source:E,data:A}=o,{previousToken:R,contextToken:N}=CK(i,r);if(nx(r,i,R))return OK.getStringLiteralCompletionDetails(v,r,i,R,e,s,d,u);let P=p2e(e,t,r,i,o,s,u);switch(P.type){case"request":{let{request:k}=P;switch(k.kind){case 1:return uT.getJSDocTagNameCompletionDetails(v);case 2:return uT.getJSDocTagCompletionDetails(v);case 3:return uT.getJSDocParameterNameCompletionDetails(v);case 4:return vt(k.keywordCompletions,F=>F.name===v)?tfe(v,"keyword",5):void 0;default:return C.assertNever(k)}}case"symbol":{let{symbol:k,location:F,contextToken:O,origin:G,previousToken:j}=P,{codeActions:J,sourceDisplay:Z}=ptt(v,F,O,G,k,e,s,_,r,i,j,l,u,A,E,d),q=Xpe(G)?G.symbolName:k.name;return nfe(k,q,g,r,F,d,J,Z)}case"literal":{let{literal:k}=P;return tfe($pe(r,u,k),"string",typeof k=="string"?8:7)}case"cases":{let k=c2e(N.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(k?.importAdder.hasFixes()){let{entry:F,importAdder:O}=k,G=Rr.ChangeTracker.with({host:s,formatContext:l,preferences:u},O.writeFixes);return{name:F.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:G,description:J1([f.Includes_imports_of_types_referenced_by_0,v])}]}}return{name:v,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return _2e().some(k=>k.name===v)?tfe(v,"keyword",5):void 0;default:C.assertNever(P)}}function tfe(e,t,r){return a5(e,"",t,[gp(e,r)])}function nfe(e,t,r,i,o,s,l,u){let{displayParts:d,documentation:g,symbolKind:_,tags:v}=r.runWithCancellationToken(s,E=>_v.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return a5(t,_v.getSymbolModifiers(r,e),_,d,g,v,l,u)}function a5(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 ptt(e,t,r,i,o,s,l,u,d,g,_,v,E,A,R,N){if(A?.moduleSpecifier&&_&&A2e(r||_,d).replacementSpan)return{codeActions:void 0,sourceDisplay:[gf(A.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){let{importAdder:J,eraseRange:Z}=d2e(l,s,u,E,e,o,t,g,r,v);if(J?.hasFixes()||Z)return{sourceDisplay:void 0,codeActions:[{changes:Rr.ChangeTracker.with({host:l,formatContext:v,preferences:E},ye=>{J&&J.writeFixes(ye),Z&&ye.deleteRange(d,Z)}),description:J?.hasFixes()?J1([f.Includes_imports_of_types_referenced_by_0,e]):J1([f.Update_modifiers_of_0,e])}]}}if(e2e(i)){let J=lu.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,s,l,v,E);return C.assertIsDefined(J,"Expected to have a code action for promoting type-only alias"),{codeActions:[J],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){let J=Rr.ChangeTracker.with({host:l,formatContext:v,preferences:E},Z=>Z.insertText(d,r.end,","));if(J)return{sourceDisplay:void 0,codeActions:[{changes:J,description:J1([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(i5(i)||UP(i)))return{codeActions:void 0,sourceDisplay:void 0};let P=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:k}=i,F=P.getMergedSymbol(xd(o.exportSymbol||o,P)),O=r?.kind===30&&nu(r.parent),{moduleSpecifier:G,codeAction:j}=lu.getImportCompletionAction(F,k,A?.exportMapKey,d,e,O,l,s,v,_&&He(_)?_.getStart(d):g,E,N);return C.assert(!A?.moduleSpecifier||G===A.moduleSpecifier),{sourceDisplay:[gf(G)],codeActions:[j]}}function ftt(e,t,r,i,o,s,l){let u=p2e(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}var f2e=(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))(f2e||{});function mtt(e,t,r){return Hn(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!Kne(o)?rfe(o,e,r):void 0})}function htt(e,t,r,i){let{parent:o}=e;switch(e.kind){case 80:return y7(e,i);case 64:switch(o.kind){case 261:return i.getContextualType(o.initializer);case 227:return i.getTypeAtLocation(o.left);case 292:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:let s=ni(o,gD);return s?$q(s,i):void 0;case 19:return _D(o)&&!n_(o.parent)&&!J0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=JO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):v7(e.kind)&&Nr(o)&&v7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function rfe(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?$a(i):e.parent&&(_tt(e.parent)?e:rfe(e.parent,t,r))}function _tt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function m2e(e,t,r,i,o,s,l,u,d,g){let _=e.getTypeChecker(),v=l2e(r,i),E=Ls(),A=Fi(r,o);t("getCompletionData: Get current token: "+(Ls()-E)),E=Ls();let R=uv(r,o,A);t("getCompletionData: Is inside comment: "+(Ls()-E));let N=!1,P=!1,k=!1;if(R){if(Ble(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let gt=Sm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(gt,o)))return{kind:2}}}let Le=btt(A,o);if(Le){if(Le.tagName.pos<=o&&o<=Le.tagName.end)return{kind:1};if(i_(Le))P=!0;else{let gt=gn(Le);if(gt&&(A=Fi(r,o),(!A||!P_(A)&&(A.parent.kind!==349||A.parent.name!==A))&&(N=Xt(gt))),!N&&ff(Le)&&(Ol(Le.name)||Le.name.pos<=o&&o<=Le.name.end))return{kind:3,tag:Le}}}if(!N&&!P){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}E=Ls();let F=!N&&!P&&Mu(r),O=CK(o,r),G=O.previousToken,j=O.contextToken;t("getCompletionData: Get previous token: "+(Ls()-E));let J=A,Z,q=!1,ye=!1,ie=!1,K=!1,pe=!1,de=!1,fe,ve=np(r,o),xe=0,Y=!1,Ce=0,Xe;if(j){let Le=A2e(j,r);if(Le.keywordCompletion){if(Le.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Het(Le.keywordCompletion)],isNewIdentifierLocation:Le.isNewIdentifierLocation};xe=Jet(Le.keywordCompletion)}if(Le.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(Ce|=2,fe=Le,Y=Le.isNewIdentifierLocation),!Le.replacementSpan&&$o(j))return t("Returning an empty list because completion was requested in an invalid position."),xe?a2e(xe,F,Mn().isNewIdentifierLocation):void 0;let gt=j.parent;if(j.kind===25||j.kind===29)switch(q=j.kind===25,ye=j.kind===29,gt.kind){case 212:Z=gt,J=Z.expression;let Bt=tD(Z);if(Ol(Bt)||(Zo(J)||Yo(J))&&J.end===j.pos&&J.getChildCount(r)&&Ba(J.getChildren(r)).kind!==22)return;break;case 167:J=gt.left;break;case 268:J=gt.name;break;case 206:J=gt;break;case 237:J=gt.getFirstToken(r),C.assert(J.kind===102||J.kind===105);break;default:return}else if(!fe){if(gt&&gt.kind===212&&(j=gt,gt=gt.parent),A.parent===ve)switch(A.kind){case 32:(A.parent.kind===285||A.parent.kind===287)&&(ve=A);break;case 44:A.parent.kind===286&&(ve=A);break}switch(gt.kind){case 288:j.kind===44&&(K=!0,ve=j);break;case 227:if(!E2e(gt))break;case 286:case 285:case 287:de=!0,j.kind===30&&(ie=!0,ve=j);break;case 295:case 294:(G.kind===20||G.kind===80&&G.parent.kind===292)&&(de=!0);break;case 292:if(gt.initializer===G&&G.end<o){de=!0;break}switch(G.kind){case 64:pe=!0;break;case 80:de=!0,gt!==G.parent&&!gt.initializer&&Es(gt,64,r)&&(pe=G)}break}}}let Se=Ls(),re=5,be=!1,Ne=[],Be,lt=[],ce=[],De=new Set,ge=Ci(),je=Wh(Le=>oT(Le?u.getPackageJsonAutoImportProvider():e,u));if(q||ye)Kn();else if(ie)Ne=_.getJsxIntrinsicTagNamesAt(ve),C.assertEachIsDefined(Ne,"getJsxIntrinsicTagNames() should all be defined"),Di(),re=1,xe=0;else if(K){let Le=j.parent.parent.openingElement.tagName,gt=_.getSymbolAtLocation(Le);gt&&(Ne=[gt]),re=1,xe=0}else if(!Di())return xe?a2e(xe,F,Y):void 0;t("getCompletionData: Semantic work: "+(Ls()-Se));let Ge=G&&htt(G,o,r,_),at=!ni(G,cs)&&!de?Ui(Ge&&(Ge.isUnion()?Ge.types:[Ge]),Le=>Le.isLiteral()&&!(Le.flags&1024)?Le.value:void 0):[],Wt=G&&Ge&&mtt(G,Ge,_);return{kind:0,symbols:Ne,completionKind:re,isInSnippetScope:k,propertyAccessToConvert:Z,isNewIdentifierLocation:Y,location:ve,keywordFilters:xe,literals:at,symbolToOriginInfoMap:lt,recommendedCompletion:Wt,previousToken:G,contextToken:j,isJsxInitializer:pe,insideJsDocTagTypeExpression:N,symbolToSortTextMap:ce,isTypeOnlyLocation:ge,isJsxIdentifierExpected:de,isRightOfOpenTag:ie,isRightOfDotOrQuestionDot:q||ye,importStatementCompletion:fe,hasUnresolvedAutoImports:be,flags:Ce,defaultCommitCharacters:Xe};function cn(Le){switch(Le.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!Le.constraint;default:return!1}}function gn(Le){if(cn(Le)){let gt=vm(Le)?Le.constraint:Le.typeExpression;return gt&&gt.kind===310?gt:void 0}if(VI(Le)||_3(Le))return Le.class}function Kn(){re=2;let Le=ry(J),gt=Le&&!J.isTypeOf||Uh(J.parent)||cO(j,r,_),Bt=XF(J);if(Nu(J)||Le||qr(J)){let gr=pc(J.parent);gr&&(Y=!0,Xe=[]);let tr=_.getSymbolAtLocation(J);if(tr&&(tr=xd(tr,_),tr.flags&1920)){let Jn=_.getExportsOfModule(tr);C.assertEachIsDefined(Jn,"getExportsOfModule() should all be defined");let ft=Qt=>_.isValidPropertyAccess(Le?J:J.parent,Qt.name),Mt=Qt=>ofe(Qt,_),jt=gr?Qt=>{var In;return!!(Qt.flags&1920)&&!((In=Qt.declarations)!=null&&In.every(yn=>yn.parent===J.parent))}:Bt?Qt=>Mt(Qt)||ft(Qt):gt||N?Mt:ft;for(let Qt of Jn)jt(Qt)&&Ne.push(Qt);if(!gt&&!N&&tr.declarations&&tr.declarations.some(Qt=>Qt.kind!==308&&Qt.kind!==268&&Qt.kind!==267)){let Qt=_.getTypeOfSymbolAtLocation(tr,J).getNonOptionalType(),In=!1;if(Qt.isNullableType()){let yn=q&&!ye&&s.includeAutomaticOptionalChainCompletions!==!1;(yn||ye)&&(Qt=Qt.getNonNullableType(),yn&&(In=!0))}_t(Qt,!!(J.flags&65536),In)}return}}if(!gt||fI(J)){_.tryGetThisTypeAt(J,!1);let gr=_.getTypeAtLocation(J).getNonOptionalType();if(gt)_t(gr.getNonNullableType(),!1,!1);else{let tr=!1;if(gr.isNullableType()){let Jn=q&&!ye&&s.includeAutomaticOptionalChainCompletions!==!1;(Jn||ye)&&(gr=gr.getNonNullableType(),Jn&&(tr=!0))}_t(gr,!!(J.flags&65536),tr)}}}function _t(Le,gt,Bt){Le.getStringIndexType()&&(Y=!0,Xe=[]),ye&&vt(Le.getCallSignatures())&&(Y=!0,Xe??(Xe=s_));let gr=J.kind===206?J:J.parent;if(v)for(let tr of Le.getApparentProperties())_.isValidPropertyAccessForCompletions(gr,Le,tr)&&en(tr,!1,Bt);else Ne.push(...Un(kK(Le,_),tr=>_.isValidPropertyAccessForCompletions(gr,Le,tr)));if(gt&&s.includeCompletionsWithInsertText){let tr=_.getPromisedTypeOfPromise(Le);if(tr)for(let Jn of tr.getApparentProperties())_.isValidPropertyAccessForCompletions(gr,tr,Jn)&&en(Jn,!0,Bt)}}function en(Le,gt,Bt){var gr;let tr=Hn(Le.declarations,jt=>ni(Oo(jt),va));if(tr){let jt=ir(tr.expression),Qt=jt&&_.getSymbolAtLocation(jt),In=Qt&&rfe(Qt,j,_),yn=In&&Ta(In);if(yn&&_m(De,yn)){let wt=Ne.length;Ne.push(In),ce[Ta(In)]=Hd.GlobalsOrKeywords;let En=In.parent;if(!En||!eI(En)||_.tryGetMemberInModuleExportsAndProperties(In.name,En)!==In)lt[wt]={kind:Mt(2)};else{let xn=td(hm(En.name))?(gr=FL(En))==null?void 0:gr.fileName:void 0,{moduleSpecifier:Ln}=(Be||(Be=lu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:xn,isFromPackageJson:!1,moduleSymbol:En,symbol:In,targetFlags:xd(In,_).flags}],o,F0(ve))||{};if(Ln){let ln={kind:Mt(6),moduleSymbol:En,isDefaultExport:!1,symbolName:In.name,exportName:In.name,fileName:xn,moduleSpecifier:Ln};lt[wt]=ln}}}else if(s.includeCompletionsWithInsertText){if(yn&&De.has(yn))return;ft(Le),Jn(Le),Ne.push(Le)}}else ft(Le),Jn(Le),Ne.push(Le);function Jn(jt){xtt(jt)&&(ce[Ta(jt)]=Hd.LocalDeclarationPriority)}function ft(jt){s.includeCompletionsWithInsertText&&(gt&&_m(De,Ta(jt))?lt[Ne.length]={kind:Mt(8)}:Bt&&(lt[Ne.length]={kind:16}))}function Mt(jt){return Bt?jt|16:jt}}function ir(Le){return He(Le)?Le:qr(Le)?ir(Le.expression):void 0}function Di(){return(ot()||Ft()||Zr()||le()||ht()||ne()||lo()||Fe()||zt()||(Ai(),1))===1}function lo(){return dt(j)?(re=5,Y=!0,xe=4,1):0}function zt(){let Le=Ue(j),gt=Le&&_.getContextualType(Le.attributes);if(!gt)return 0;let Bt=Le&&_.getContextualType(Le.attributes,4);return Ne=so(Ne,xt(LK(gt,Bt,Le.attributes,_),Le.attributes.properties)),_e(),re=3,Y=!1,1}function Zr(){return fe?(Y=!0,mn(),1):0}function Ai(){xe=Lt(j)?5:1,re=1,{isNewIdentifierLocation:Y,defaultCommitCharacters:Xe}=Mn(),G!==j&&C.assert(!!G,"Expected 'contextToken' to be defined when different from 'previousToken'.");let Le=G!==j?G.getStart():o,gt=qi(j,Le,r)||r;k=Pr(gt);let Bt=(ge?0:111551)|788968|1920|2097152,gr=G&&!F0(G);Ne=so(Ne,_.getSymbolsInScope(gt,Bt)),C.assertEachIsDefined(Ne,"getSymbolsInScope() should all be defined");for(let tr=0;tr<Ne.length;tr++){let Jn=Ne[tr];if(!_.isArgumentsSymbol(Jn)&&!vt(Jn.declarations,ft=>ft.getSourceFile()===r)&&(ce[Ta(Jn)]=Hd.GlobalsOrKeywords),gr&&!(Jn.flags&111551)){let ft=Jn.declarations&&hn(Jn.declarations,CR);if(ft){let Mt={kind:64,declaration:ft};lt[tr]=Mt}}}if(s.includeCompletionsWithInsertText&&gt.kind!==308){let tr=_.tryGetThisTypeAt(gt,!1,ui(gt.parent)?gt:void 0);if(tr&&!Itt(tr,r,_))for(let Jn of kK(tr,_))lt[Ne.length]={kind:1},Ne.push(Jn),ce[Ta(Jn)]=Hd.SuggestedClassMembers}mn(),ge&&(xe=j&&d1(j.parent)?6:7)}function Ni(){var Le;return fe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||kq(e.getCompilerOptions())?!0:((Le=e.getSymlinkCache)==null?void 0:Le.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||qle(e):!1}function Pr(Le){switch(Le.kind){case 308:case 229:case 295:case 242:return!0;default:return ji(Le)}}function Ci(){return N||P||!!fe&&Xy(ve.parent)||!$e(j)&&(cO(j,r,_)||Uh(ve)||At(j))}function $e(Le){return Le&&(Le.kind===114&&(Le.parent.kind===187||pD(Le.parent))||Le.kind===131&&Le.parent.kind===183)}function At(Le){if(Le){let gt=Le.parent.kind;switch(Le.kind){case 59:return gt===173||gt===172||gt===170||gt===261||YA(gt);case 64:return gt===266||gt===169;case 130:return gt===235;case 30:return gt===184||gt===217;case 96:return gt===169;case 152:return gt===239}}return!1}function mn(){var Le,gt;if(!Ni()||(C.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;Ce|=1;let gr=G===j&&fe?"":G&&He(G)?G.text.toLowerCase():"",tr=(Le=u.getModuleSpecifierCache)==null?void 0:Le.call(u),Jn=AO(r,u,e,s,g),ft=(gt=u.getPackageJsonAutoImportProvider)==null?void 0:gt.call(u),Mt=l?void 0:$D(r,s,u);n2e("collectAutoImports",u,Be||(Be=lu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!fe,F0(ve),Qt=>{Jn.search(r.path,ie,(In,yn)=>{if(!pp(In,Ga(u.getCompilationSettings()))||!l&&pI(In)||!ge&&!fe&&!(yn&111551)||ge&&!(yn&790504))return!1;let wt=In.charCodeAt(0);return ie&&(wt<65||wt>90)?!1:l?!0:C2e(In,gr)},(In,yn,wt,En)=>{if(l&&!vt(In,sa=>l.source===hm(sa.moduleSymbol.name))||(In=Un(In,jt),!In.length))return;let xn=Qt.tryResolve(In,wt)||{};if(xn==="failed")return;let Ln=In[0],ln;xn!=="skipped"&&({exportInfo:Ln=In[0],moduleSpecifier:ln}=xn);let Ii=Ln.exportKind===1,ra=Ii&&uM(C.checkDefined(Ln.symbol))||C.checkDefined(Ln.symbol);dr(ra,{kind:ln?32:4,moduleSpecifier:ln,symbolName:yn,exportMapKey:En,exportName:Ln.exportKind===2?"export=":C.checkDefined(Ln.symbol).name,fileName:Ln.moduleFileName,isDefaultExport:Ii,moduleSymbol:Ln.moduleSymbol,isFromPackageJson:Ln.isFromPackageJson})}),be=Qt.skippedAny(),Ce|=Qt.resolvedAny()?8:0,Ce|=Qt.resolvedBeyondLimit()?16:0});function jt(Qt){return dJ(Qt.isFromPackageJson?ft:e,r,ni(Qt.moduleSymbol.valueDeclaration,Yi),Qt.moduleSymbol,s,Mt,je(Qt.isFromPackageJson),tr)}}function dr(Le,gt){let Bt=Ta(Le);ce[Bt]!==Hd.GlobalsOrKeywords&&(lt[Ne.length]=gt,ce[Bt]=fe?Hd.LocationPriority:Hd.AutoImportSuggestions,Ne.push(Le))}function ri(Le,gt){Ir(ve)||Le.forEach(Bt=>{if(!ai(Bt))return;let gr=NK(Bt,Ga(i),void 0,0,!1);if(!gr)return;let{name:tr}=gr,Jn=itt(Bt,tr,gt,e,u,i,s,d);if(!Jn)return;let ft={kind:128,...Jn};Ce|=32,lt[Ne.length]=ft,Ne.push(Bt)})}function ai(Le){return!!(Le.flags&8196)}function qi(Le,gt,Bt){let gr=Le;for(;gr&&!vq(gr,gt,Bt);)gr=gr.parent;return gr}function $o(Le){let gt=Ls(),Bt=Uo(Le)||It(Le)||Kt(Le)||Ia(Le)||cD(Le);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Ls()-gt)),Bt}function Ia(Le){if(Le.kind===12)return!0;if(Le.kind===32&&Le.parent){if(ve===Le.parent&&(ve.kind===287||ve.kind===286))return!1;if(Le.parent.kind===287)return ve.parent.kind!==287;if(Le.parent.kind===288||Le.parent.kind===286)return!!Le.parent.parent&&Le.parent.parent.kind===285}return!1}function Mn(){if(j){let Le=j.parent.kind,gt=PK(j);switch(gt){case 28:switch(Le){case 214:case 215:{let Bt=j.parent.expression;return ca(r,Bt.end).line!==ca(r,o).line?{defaultCommitCharacters:IK,isNewIdentifierLocation:!0}:{defaultCommitCharacters:s_,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:IK,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!1}}case 21:switch(Le){case 214:case 215:{let Bt=j.parent.expression;return ca(r,Bt.end).line!==ca(r,o).line?{defaultCommitCharacters:IK,isNewIdentifierLocation:!0}:{defaultCommitCharacters:s_,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:IK,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!1}}case 23:switch(Le){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:switch(Le){case 268:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!1}}case 19:switch(Le){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!1}}case 64:switch(Le){case 261:case 227:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:s_,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:s_,isNewIdentifierLocation:Le===229};case 17:return{defaultCommitCharacters:s_,isNewIdentifierLocation:Le===240};case 134:return Le===175||Le===305?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:s_,isNewIdentifierLocation:!1};case 42:return Le===175?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:s_,isNewIdentifierLocation:!1}}if(s5(gt))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:s_,isNewIdentifierLocation:!1}}function Uo(Le){return(tj(Le)||OB(Le))&&(sO(Le,o)||o===Le.end&&(!!Le.isUnterminated||tj(Le)))}function ot(){let Le=Ett(j);if(!Le)return 0;let Bt=(WI(Le.parent)?Le.parent:void 0)||Le,gr=S2e(Bt,_);if(!gr)return 0;let tr=_.getTypeFromTypeNode(Bt),Jn=kK(gr,_),ft=kK(tr,_),Mt=new Set;return ft.forEach(jt=>Mt.add(jt.escapedName)),Ne=so(Ne,Un(Jn,jt=>!Mt.has(jt.escapedName))),re=0,Y=!0,1}function Ft(){if(j?.kind===26)return 0;let Le=Ne.length,gt=gtt(j,o,r);if(!gt)return 0;re=0;let Bt,gr;if(gt.kind===211){let tr=Rtt(gt,_);if(tr===void 0)return gt.flags&67108864?2:0;let Jn=_.getContextualType(gt,4),ft=(Jn||tr).getStringIndexType(),Mt=(Jn||tr).getNumberIndexType();if(Y=!!ft||!!Mt,Bt=LK(tr,Jn,gt,_),gr=gt.properties,Bt.length===0&&!Mt)return 0}else{C.assert(gt.kind===207),Y=!1;let tr=qh(gt.parent);if(!VN(tr))return C.fail("Root declaration is not variable-like.");let Jn=Yy(tr)||!!Rc(tr)||tr.parent.parent.kind===251;if(!Jn&&tr.kind===170&&(St(tr.parent)?Jn=!!_.getContextualType(tr.parent):(tr.parent.kind===175||tr.parent.kind===179)&&(Jn=St(tr.parent.parent)&&!!_.getContextualType(tr.parent.parent))),Jn){let ft=_.getTypeAtLocation(gt);if(!ft)return 2;Bt=_.getPropertiesOfType(ft).filter(Mt=>_.isPropertyAccessible(gt,!1,!1,ft,Mt)),gr=gt.elements}}if(Bt&&Bt.length>0){let tr=Oe(Bt,C.checkDefined(gr));Ne=so(Ne,tr),_e(),gt.kind===211&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Ae(Le),ri(tr,gt))}return 1}function le(){if(!j)return 0;let Le=j.kind===19||j.kind===28?ni(j.parent,bW):d7(j)?ni(j.parent.parent,bW):void 0;if(!Le)return 0;d7(j)||(xe=8);let{moduleSpecifier:gt}=Le.kind===276?Le.parent.parent:Le.parent;if(!gt)return Y=!0,Le.kind===276?2:0;let Bt=_.getSymbolAtLocation(gt);if(!Bt)return Y=!0,2;re=3,Y=!1;let gr=_.getExportsAndPropertiesOfModule(Bt),tr=new Set(Le.elements.filter(ft=>!Xt(ft)).map(ft=>p1(ft.propertyName||ft.name))),Jn=gr.filter(ft=>ft.escapedName!=="default"&&!tr.has(ft.escapedName));return Ne=so(Ne,Jn),Jn.length||(xe=0),1}function ht(){if(j===void 0)return 0;let Le=j.kind===19||j.kind===28?ni(j.parent,hE):j.kind===59?ni(j.parent.parent,hE):void 0;if(Le===void 0)return 0;let gt=new Set(Le.elements.map(HW));return Ne=Un(_.getTypeAtLocation(Le).getApparentProperties(),Bt=>!gt.has(Bt.escapedName)),1}function ne(){var Le;let gt=j&&(j.kind===19||j.kind===28)?ni(j.parent,Hf):void 0;if(!gt)return 0;let Bt=Dn(gt,Ip(Yi,pc));return re=5,Y=!1,(Le=Bt.locals)==null||Le.forEach((gr,tr)=>{var Jn,ft;Ne.push(gr),(ft=(Jn=Bt.symbol)==null?void 0:Jn.exports)!=null&&ft.has(tr)&&(ce[Ta(gr)]=Hd.OptionalMember)}),1}function Fe(){let Le=Stt(r,j,ve,o);if(!Le)return 0;if(re=3,Y=!0,xe=j.kind===42?0:ui(Le)?2:3,!ui(Le))return 1;let gt=j.kind===27?j.parent.parent:j.parent,Bt=Tc(gt)?Gd(gt):0;if(j.kind===80&&!Xt(j))switch(j.getText()){case"private":Bt=Bt|2;break;case"static":Bt=Bt|256;break;case"override":Bt=Bt|16;break}if($l(gt)&&(Bt|=256),!(Bt&2)){let gr=ui(Le)&&Bt&16?UA(lh(Le)):eM(Le),tr=Ki(gr,Jn=>{let ft=_.getTypeAtLocation(Jn);return Bt&256?ft?.symbol&&_.getPropertiesOfType(_.getTypeOfSymbolAtLocation(ft.symbol,Le)):ft&&_.getPropertiesOfType(ft)});Ne=so(Ne,te(tr,Le.members,Bt)),Je(Ne,(Jn,ft)=>{let Mt=Jn?.valueDeclaration;if(Mt&&Tc(Mt)&&Mt.name&&va(Mt.name)){let jt={kind:512,symbolName:_.symbolToString(Jn)};lt[ft]=jt}})}return 1}function it(Le){return!!Le.parent&&to(Le.parent)&&Ml(Le.parent.parent)&&(kN(Le.kind)||P_(Le))}function dt(Le){if(Le){let gt=Le.parent;switch(Le.kind){case 21:case 28:return Ml(Le.parent)?Le.parent:void 0;default:if(it(Le))return gt.parent}}}function Lt(Le){if(Le){let gt,Bt=Dn(Le.parent,gr=>ui(gr)?"quit":Ms(gr)&&gt===gr.body?!0:(gt=gr,!1));return Bt&&Bt}}function Ue(Le){if(Le){let gt=Le.parent;switch(Le.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(gt&&(gt.kind===286||gt.kind===287)){if(Le.kind===32){let Bt=Vc(Le.pos,r,void 0);if(!gt.typeArguments||Bt&&Bt.kind===44)break}return gt}else if(gt.kind===292)return gt.parent.parent;break;case 11:if(gt&&(gt.kind===292||gt.kind===294))return gt.parent.parent;break;case 20:if(gt&&gt.kind===295&&gt.parent&&gt.parent.kind===292)return gt.parent.parent.parent;if(gt&&gt.kind===294)return gt.parent.parent;break}}}function Rt(Le,gt){return r.getLineEndOfPosition(Le.getEnd())<gt}function It(Le){let gt=Le.parent,Bt=gt.kind;switch(Le.kind){case 28:return Bt===261||Sr(Le)||Bt===244||Bt===267||nt(Bt)||Bt===265||Bt===208||Bt===266||ui(gt)&&!!gt.typeParameters&&gt.typeParameters.end>=Le.pos;case 25:return Bt===208;case 59:return Bt===209;case 23:return Bt===208;case 21:return Bt===300||nt(Bt);case 19:return Bt===267;case 30:return Bt===264||Bt===232||Bt===265||Bt===266||YA(Bt);case 126:return Bt===173&&!ui(gt.parent);case 26:return Bt===170||!!gt.parent&&gt.parent.kind===208;case 125:case 123:case 124:return Bt===170&&!Ml(gt.parent);case 130:return Bt===277||Bt===282||Bt===275;case 139:case 153:return!wK(Le);case 80:{if((Bt===277||Bt===282)&&Le===gt.name&&Le.text==="type"||Dn(Le.parent,yi)&&Rt(Le,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 Bt!==277;case 42:return Yo(Le.parent)&&!Nl(Le.parent)}if(s5(PK(Le))&&wK(Le)||it(Le)&&(!He(Le)||kN(PK(Le))||Xt(Le)))return!1;switch(PK(Le)){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 Po(Le.parent)}if(Dn(Le.parent,ui)&&Le===G&&Ot(Le,o))return!1;let tr=w0(Le.parent,173);if(tr&&Le!==G&&ui(G.parent.parent)&&o<=G.end){if(Ot(Le,G.end))return!1;if(Le.kind!==64&&(kw(tr)||h6(tr)))return!0}return P_(Le)&&!Ud(Le.parent)&&!r_(Le.parent)&&!((ui(Le.parent)||gd(Le.parent)||sl(Le.parent))&&(Le!==G||o>G.end))}function Ot(Le,gt){return Le.kind!==64&&(Le.kind===27||!zf(Le.end,gt,r))}function nt(Le){return YA(Le)&&Le!==177}function Kt(Le){if(Le.kind===9){let gt=Le.getFullText();return gt.charAt(gt.length-1)==="."}return!1}function Sr(Le){return Le.parent.kind===262&&!cO(Le,r,_)}function Oe(Le,gt){if(gt.length===0)return Le;let Bt=new Set,gr=new Set;for(let Jn of gt){if(Jn.kind!==304&&Jn.kind!==305&&Jn.kind!==209&&Jn.kind!==175&&Jn.kind!==178&&Jn.kind!==179&&Jn.kind!==306||Xt(Jn))continue;let ft;if(Ig(Jn))Nt(Jn,Bt);else if(Ha(Jn)&&Jn.propertyName)Jn.propertyName.kind===80&&(ft=Jn.propertyName.escapedText);else{let Mt=Oo(Jn);ft=Mt&&Hh(Mt)?rM(Mt):void 0}ft!==void 0&&gr.add(ft)}let tr=Le.filter(Jn=>!gr.has(Jn.escapedName));return B(Bt,tr),tr}function Nt(Le,gt){let Bt=Le.expression,gr=_.getSymbolAtLocation(Bt),tr=gr&&_.getTypeOfSymbolAtLocation(gr,Bt),Jn=tr&&tr.properties;Jn&&Jn.forEach(ft=>{gt.add(ft.name)})}function _e(){Ne.forEach(Le=>{if(Le.flags&16777216){let gt=Ta(Le);ce[gt]=ce[gt]??Hd.OptionalMember}})}function B(Le,gt){if(Le.size!==0)for(let Bt of gt)Le.has(Bt.name)&&(ce[Ta(Bt)]=Hd.MemberDeclaredBySpreadAssignment)}function Ae(Le){for(let gt=Le;gt<Ne.length;gt++){let Bt=Ne[gt],gr=Ta(Bt),tr=lt?.[gt],Jn=Ga(i),ft=NK(Bt,Jn,tr,0,!1);if(ft){let Mt=ce[gr]??Hd.LocationPriority,{name:jt}=ft;ce[gr]=Hd.ObjectLiteralProperty(Mt,jt)}}}function te(Le,gt,Bt){let gr=new Set;for(let tr of gt){if(tr.kind!==173&&tr.kind!==175&&tr.kind!==178&&tr.kind!==179||Xt(tr)||Lp(tr,2)||ua(tr)!==!!(Bt&256))continue;let Jn=eE(tr.name);Jn&&gr.add(Jn)}return Le.filter(tr=>!gr.has(tr.escapedName)&&!!tr.declarations&&!(Bf(tr)&2)&&!(tr.valueDeclaration&&tu(tr.valueDeclaration)))}function xt(Le,gt){let Bt=new Set,gr=new Set;for(let Jn of gt)Xt(Jn)||(Jn.kind===292?Bt.add(CM(Jn.name)):GI(Jn)&&Nt(Jn,gr));let tr=Le.filter(Jn=>!Bt.has(Jn.escapedName));return B(gr,tr),tr}function Xt(Le){return Le.getStart(r)<=o&&o<=Le.getEnd()}}function gtt(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(Wa(o)||pf(o))return o;break;case 42:return Nl(o)?ni(o.parent,Wa):void 0;case 134:return ni(o.parent,Wa);case 80:if(e.text==="async"&&Ud(e.parent))return e.parent.parent;{if(Wa(e.parent.parent)&&(Ig(e.parent)||Ud(e.parent)&&ca(r,e.getEnd()).line!==ca(r,t).line))return e.parent.parent;let l=Dn(o,Nc);if(l?.getLastToken(r)===e&&Wa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Nl(o.parent)||jf(o.parent)||_p(o.parent))&&Wa(o.parent.parent))return o.parent.parent;if(Ig(o)&&Wa(o.parent))return o.parent;let s=Dn(o,Nc);if(e.kind!==59&&s?.getLastToken(r)===e&&Wa(s.parent))return s.parent}}}function CK(e,t){let r=Vc(e,t);return r&&e<=r.end&&(cg(r)||Qu(r.kind))?{contextToken:Vc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function h2e(e,t,r,i){let o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(C.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"&&uM(u)||u,{symbol:u,origin:att(t,e,l)}):void 0}function NK(e,t,r,i,o){if(Get(r))return;let s=Wet(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&rk(s.charCodeAt(0))||iM(e))return;let l={name:s,needsConvertPropertyAccess:!1};if(pp(s,t,o?1:0)||e.valueDeclaration&&tu(e.valueDeclaration))return l;if(e.flags&2097152)return{name:s,needsConvertPropertyAccess:!0};switch(i){case 3:return Xpe(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:C.assertNever(i)}}var MK=[],_2e=Cu(()=>{let e=[];for(let t=83;t<=166;t++)e.push({name:_a(t),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords});return e});function g2e(e,t){if(!t)return y2e(e);let r=e+8+1;return MK[r]||(MK[r]=y2e(e).filter(i=>!ytt(OS(i.name))))}function y2e(e){return MK[e]||(MK[e]=_2e().filter(t=>{let r=OS(t.name);switch(e){case 0:return!1;case 1:return b2e(r)||r===138||r===144||r===156||r===145||r===128||xP(r)&&r!==157;case 5:return b2e(r);case 2:return s5(r);case 3:return v2e(r);case 4:return kN(r);case 6:return xP(r)||r===87;case 7:return xP(r);case 8:return r===156;default:return C.assertNever(e)}}))}function ytt(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 v2e(e){return e===148}function s5(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return WB(e)}}function b2e(e){return e===134||e===135||e===160||e===130||e===152||e===156||!Q6(e)&&!s5(e)}function PK(e){return He(e)?FS(e)??0:e.kind}function vtt(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(vl(o)||fc(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:_a(132),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords})}return r}function btt(e,t){return Dn(e,r=>LR(r)&&UD(r,t)?!0:mh(r)?"quit":!1)}function LK(e,t,r,i){let o=t&&t!==e,s=i.getUnionType(Un(e.flags&1048576?e.types:[e],g=>!i.getPromisedTypeOfPromise(g))),l=o&&!(t.flags&3)?i.getUnionType([s,t]):s,u=Ttt(l,r,i);return l.isClass()&&T2e(u)?[]:o?Un(u,d):u;function d(g){return et(g.declarations)?vt(g.declarations,_=>_.parent!==r):!0}}function Ttt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Un(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&T2e(i.getApparentProperties())))):e.getApparentProperties()}function T2e(e){return vt(e,t=>!!(Bf(t)&6))}function kK(e,t){return e.isUnion()?C.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):C.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Stt(e,t,r,i){switch(r.kind){case 353:return ni(r.parent,yI);case 1:let o=ni(Zs(ma(r.parent,Yi).statements),yI);if(o&&!Es(o,20,e))return o;break;case 81:if(ni(r.parent,Po))return Dn(r,ui);break;case 80:{if(FS(r)||Po(r.parent)&&r.parent.initializer===r)return;if(wK(r))return Dn(r,yI)}}if(t){if(r.kind===137||He(t)&&Po(t.parent)&&ui(r))return Dn(t,ui);switch(t.kind){case 64:return;case 27:case 20:return wK(r)&&r.parent.name===r?r.parent.parent:ni(r,yI);case 19:case 28:return ni(t.parent,yI);default:if(yI(r)){if(ca(e,t.getEnd()).line!==ca(e,i).line)return r;let o=ui(t.parent.parent)?s5:v2e;return o(t.kind)||t.kind===42||He(t)&&o(FS(t)??0)?t.parent.parent:void 0}return}}}function Ett(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(ku(t))return t;break;case 27:case 28:case 80:if(t.kind===172&&ku(t.parent))return t.parent;break}}function S2e(e,t){if(!e)return;if(Ri(e)&&_6(e.parent))return t.getTypeArgumentConstraint(e);let r=S2e(e.parent,t);if(r)switch(e.kind){case 172:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 194:case 188:case 193:return r}}function wK(e){return e.parent&&l6(e.parent)&&yI(e.parent.parent)}function Att(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&sce(r)&&i===r.getStart(e)+1;case"#":return!!r&&eo(r)&&!!hd(r);case"<":return!!r&&r.kind===30&&(!Nr(r.parent)||E2e(r.parent));case"/":return!!r&&(cs(r)?!!ck(r):r.kind===44&&k1(r.parent));case" ":return!!r&&WM(r)&&r.parent.kind===308;default:return C.assertNever(t)}}function E2e({left:e}){return Ol(e)}function Itt(e,t,r){let i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;let o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;let s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function xtt(e){return!!(e.valueDeclaration&&Gd(e.valueDeclaration)&256&&ui(e.valueDeclaration.parent))}function Rtt(e,t){let r=t.getContextualType(e);if(r)return r;let i=Fm(e.parent);if(Nr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(St(i))return t.getContextualType(i)}function A2e(e,t){var r,i,o;let s,l=!1,u=d();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ni(u,vl))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ni(u,Bc))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&x2e(u,e),replacementSpan:Dtt(u)};function d(){let g=e.parent;if(Bc(g)){let _=g.getLastToken(t);if(He(e)&&_!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,ife(g.moduleReference)?g:void 0}if(x2e(g,e)&&R2e(g.parent))return g;if(t_(g)||Ag(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),R2e(g))if(e.kind===20||e.kind===80)l=!0,s=161;else return g.parent.parent;return}if(fc(g)&&e.kind===42||Hf(g)&&e.kind===20){l=!0,s=161;return}if(WM(e)&&Yi(g))return s=156,e;if(WM(e)&&vl(g))return s=156,ife(g.moduleSpecifier)?g:void 0}}function Dtt(e){var t;if(!e)return;let r=Dn(e,Ip(vl,Bc,i_))??e,i=r.getSourceFile();if(rE(r,i))return Fu(r,i);C.assert(r.kind!==102&&r.kind!==277);let o=r.kind===273||r.kind===352?I2e((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(rE(s,i))return fv(s)}function I2e(e){var t;return hn((t=ni(e,t_))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&pI(r.name.text)&&((i=Vc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function x2e(e,t){return Su(e)&&(e.isTypeOnly||t===e.name&&d7(t))}function R2e(e){if(!ife(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(t_(e)){let t=I2e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function ife(e){var t;return Ol(e)?!0:!((t=ni(uy(e)?e.expression:e,cs))!=null&&t.text)}function Ctt(e,t){if(!e)return;let r=Dn(e,i=>m1(i)||D2e(i)||Qo(i)?"quit":(to(i)||sl(i))&&!Db(i.parent));return r||(r=Dn(t,i=>m1(i)||D2e(i)||Qo(i)?"quit":yi(i))),r}function Ntt(e){if(!e)return!1;let t=e,r=e.parent;for(;r;){if(sl(r))return r.default===t||t.kind===64;t=r,r=r.parent}return!1}function D2e(e){return e.parent&&Xs(e.parent)&&(e.parent.body===e||e.kind===39)}function ofe(e,t,r=new Set){return i(e)||i(xd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&_m(r,o)&&t.getExportsOfModule(o).some(s=>ofe(s,t,r))}}function Mtt(e,t){let r=xd(e,t).declarations;return!!et(r)&&Vn(r,x7)}function C2e(e,t){if(t.length===0)return!0;let r=!1,i,o=0,s=e.length;for(let l=0;l<s;l++){let u=e.charCodeAt(l),d=t.charCodeAt(o);if((u===d||u===Ptt(d))&&(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 Ptt(e){return 97<=e&&e<=122?e-32:e}function Ltt(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"||e==="satisfies"||e==="as"}var OK={};x(OK,{getStringLiteralCompletionDetails:()=>Ott,getStringLiteralCompletions:()=>ktt});var N2e={directory:0,script:1,"external module name":2};function afe(){let e=new Map;function t(r){let i=e.get(r.name);(!i||N2e[i.kind]<N2e[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function ktt(e,t,r,i,o,s,l,u,d){if(Ule(e,t)){let g=Ytt(e,t,s,o,oT(s,o));return g&&M2e(g)}if(nx(e,t,r)){if(!r||!cs(r))return;let g=L2e(e,r,t,s,o,u);return wtt(g,r,e,o,s,l,i,u,t,d)}}function wtt(e,t,r,i,o,s,l,u,d,g){if(e===void 0)return;let _=Nq(t,d);switch(e.kind){case 0:return M2e(e.paths);case 1:{let v=Ez();return efe(e.symbols,v,t,t,r,d,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,g),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:_,entries:v,defaultCommitCharacters:LE(e.hasIndexSignature)}}case 2:{let v=t.kind===15?96:po(Al(t),"'")?39:34,E=e.types.map(A=>({name:L_(A.value,v),kindModifiers:"",kind:"string",sortText:Hd.LocationPriority,replacementSpan:Cq(t,d),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:E,defaultCommitCharacters:LE(e.isNewIdentifier)}}default:return C.assertNever(e)}}function Ott(e,t,r,i,o,s,l,u){if(!i||!cs(i))return;let d=L2e(t,i,r,o,s,u);return d&&Wtt(e,i,d,t,o.getTypeChecker(),l)}function Wtt(e,t,r,i,o,s){switch(r.kind){case 0:{let l=hn(r.paths,u=>u.name===e);return l&&a5(e,P2e(l.extension),l.kind,[gf(e)])}case 1:{let l=hn(r.symbols,u=>u.name===e);return l&&nfe(l,l.name,o,i,t,s)}case 2:return hn(r.types,l=>l.value===e)?a5(e,"","string",[gf(e)]):void 0;default:return C.assertNever(r)}}function M2e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:P2e(u),sortText:Hd.LocationPriority,replacementSpan:l})),defaultCommitCharacters:LE(!0)}}function P2e(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 C.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return C.assertNever(e)}}function L2e(e,t,r,i,o,s){let l=i.getTypeChecker(),u=sfe(t.parent);switch(u.kind){case 202:{let G=sfe(u.parent);return G.kind===206?{kind:0,paths:O2e(e,t,i,o,s)}:d(G)}case 304:return Wa(u.parent)&&u.name===t?Btt(l,u.parent):g()||g(0);case 213:{let{expression:G,argumentExpression:j}=u;return t===ds(j)?k2e(l.getTypeAtLocation(G)):void 0}case 214:case 215:case 292:if(!nnt(t)&&!Yu(u)){let G=JO.getArgumentInfoForCompletions(u.kind===292?u.parent:t,r,e,l);return G&&ztt(G.invocation,t,G,l)||g(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:O2e(e,t,i,o,s)};case 297:let _=C7(l,u.parent.clauses),v=g();return v?{kind:2,types:v.types.filter(G=>!_.hasValue(G.value)),isNewIdentifier:!1}:void 0;case 277:case 282:let A=u;if(A.propertyName&&t!==A.propertyName)return;let R=A.parent,{moduleSpecifier:N}=R.kind===276?R.parent.parent:R.parent;if(!N)return;let P=l.getSymbolAtLocation(N);if(!P)return;let k=l.getExportsAndPropertiesOfModule(P),F=new Set(R.elements.map(G=>p1(G.propertyName||G.name)));return{kind:1,symbols:k.filter(G=>G.escapedName!=="default"&&!F.has(G.escapedName)),hasIndexSignature:!1};case 227:if(u.operatorToken.kind===103){let G=l.getTypeAtLocation(u.right);return{kind:1,symbols:(G.isUnion()?l.getAllPossiblePropertiesOfTypes(G.types):G.getApparentProperties()).filter(J=>!J.valueDeclaration||!tu(J.valueDeclaration)),hasIndexSignature:!1}}return g(0);default:return g()||g(0)}function d(_){switch(_.kind){case 234:case 184:{let A=Dn(u,R=>R.parent===_);return A?{kind:2,types:WK(l.getTypeArgumentConstraint(A)),isNewIdentifier:!1}:void 0}case 200:let{indexType:v,objectType:E}=_;return UD(v,r)?k2e(l.getTypeFromTypeNode(E)):void 0;case 193:{let A=d(sfe(_.parent));if(!A)return;let R=Ftt(_,u);return A.kind===1?{kind:1,symbols:A.symbols.filter(N=>!jn(R,N.name)),hasIndexSignature:A.hasIndexSignature}:{kind:2,types:A.types.filter(N=>!jn(R,N.value)),isNewIdentifier:!1}}default:return}}function g(_=4){let v=WK(y7(t,l,_));if(v.length)return{kind:2,types:v,isNewIdentifier:!1}}}function sfe(e){switch(e.kind){case 197:return mk(e);case 218:return Fm(e);default:return e}}function Ftt(e,t){return Ui(e.types,r=>r!==t&&lv(r)&&ka(r.literal)?r.literal.text:void 0)}function ztt(e,t,r,i){let o=!1,s=new Set,l=nu(e)?C.checkDefined(Dn(t.parent,r_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),d=Ki(u,g=>{if(!au(g)&&r.argumentCount>g.parameters.length)return;let _=g.getTypeParameterAtPosition(r.argumentIndex);if(nu(e)){let v=i.getTypeOfPropertyOfType(_,Jk(l.name));v&&(_=v)}return o=o||!!(_.flags&4),WK(_,s)});return et(d)?{kind:2,types:d,isNewIdentifier:o}:void 0}function k2e(e){return e&&{kind:1,symbols:Un(e.getApparentProperties(),t=>!(t.valueDeclaration&&tu(t.valueDeclaration))),hasIndexSignature:Yq(e)}}function Btt(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:LK(r,i,t,e),hasIndexSignature:Yq(r)}}function WK(e,t=new Set){return e?(e=Lq(e),e.isUnion()?Ki(e.types,r=>WK(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&_m(t,e.value)?[e]:ae):ae}function HP(e,t,r){return{name:e,kind:t,extension:r}}function lfe(e){return HP(e,"directory",void 0)}function w2e(e,t,r){let i=Qtt(e,t),o=e.length===0?void 0:Id(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(Js)||s.includes(V8)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function O2e(e,t,r,i,o){return w2e(t.text,t.getStart(e)+1,Gtt(e,t,r,i,o))}function Gtt(e,t,r,i,o){let s=Bd(t.text),l=cs(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,d=ci(u),g=r.getCompilerOptions(),_=r.getTypeChecker(),v=oT(r,i),E=cfe(g,1,e,_,o,l);return Ztt(s)||!g.baseUrl&&!g.paths&&(Rp(s)||fee(s))?Vtt(s,d,r,i,v,u,E):qtt(s,d,l,r,i,v,E)}function cfe(e,t,r,i,o,s){return{extensionsToSearch:la(jtt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function Vtt(e,t,r,i,o,s,l){let u=r.getCompilerOptions();return u.rootDirs?Htt(u.rootDirs,e,t,l,r,i,o,s):Co(GO(e,t,l,r,i,o,!0,s).values())}function jtt(e,t){let r=t?Ui(t.getAmbientModules(),s=>{let l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...vM(e),r],o=ru(e);return u7(o)?Bk(e,i):i}function Utt(e,t,r,i){e=e.map(s=>Hc(ya(Rp(s)?s:Qr(t,s))));let o=Hn(e,s=>dm(s,r,t,i)?r.substr(s.length):void 0);return t1([...e.map(s=>Qr(s,o)),r].map(s=>Jy(s)),i1,Wd)}function Htt(e,t,r,i,o,s,l,u){let g=o.getCompilerOptions().project||s.getCurrentDirectory(),_=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),v=Utt(e,g,r,_);return t1(Ki(v,E=>Co(GO(t,E,i,o,s,l,!0,u).values())),(E,A)=>E.name===A.name&&E.kind===A.kind&&E.extension===A.extension)}function GO(e,t,r,i,o,s,l,u,d=afe()){var g;e===void 0&&(e=""),e=Bd(e),nb(e)||(e=ci(e)),e===""&&(e="."+Js),e=Hc(e);let _=rb(t,e),v=nb(_)?_:ci(_);if(!l){let N=uce(v,o);if(N){let k=ZR(N,o).typesVersions;if(typeof k=="object"){let F=(g=j3(k))==null?void 0:g.paths;if(F){let O=ci(N),G=_.slice(Hc(O).length);if(F2e(d,G,O,r,i,o,s,F))return d}}}}let E=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames());if(!S7(o,v))return d;let A=Zq(o,v,r.extensionsToSearch,void 0,["./*"]);if(A)for(let N of A){if(N=ya(N),u&&Zg(N,u,t,E)===0)continue;let{name:P,extension:k}=W2e(xc(N),i,r,!1);d.add(HP(P,"script",k))}let R=T7(o,v);if(R)for(let N of R){let P=xc(ya(N));P!=="@types"&&d.add(lfe(P))}return d}function W2e(e,t,r,i){let o=hy.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Tg(o)};if(r.referenceKind===0)return{name:e,extension:Tg(e)};let s=hy.getModuleSpecifierPreferences({importModuleSpecifierEnding:r.endingPreference},t,t.getCompilerOptions(),r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Yl(e,zk))return{name:e,extension:Tg(e)};let u=hy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return u?{name:rv(e,u),extension:u}:{name:e,extension:Tg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Yl(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:bu(e),extension:Tg(e)};let l=hy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return l?{name:rv(e,l),extension:l}:{name:e,extension:Tg(e)}}function F2e(e,t,r,i,o,s,l,u){let d=_=>u[_],g=(_,v)=>{let E=EI(_),A=EI(v),R=typeof E=="object"?E.prefix.length:_.length,N=typeof A=="object"?A.prefix.length:v.length;return js(N,R)};return z2e(e,!1,!1,t,r,i,o,s,l,Oh(u),d,g)}function z2e(e,t,r,i,o,s,l,u,d,g,_,v){let E=[],A;for(let R of g){if(R===".")continue;let N=R.replace(/^\.\//,"")+((t||r)&&el(R,"/")?"*":""),P=_(R);if(P){let k=EI(N);if(!k)continue;let F=typeof k=="object"&&M8(k,i);F&&(A===void 0||v(N,A)===-1)&&(A=N,E=E.filter(G=>!G.matchedPattern)),(typeof k=="string"||A===void 0||v(N,A)!==1)&&E.push({matchedPattern:F,results:Jtt(N,P,i,o,s,t,r,l,u,d).map(({name:G,kind:j,extension:J})=>HP(G,j,J))})}}return E.forEach(R=>R.results.forEach(N=>e.add(N))),A!==void 0}function qtt(e,t,r,i,o,s,l){let u=i.getTypeChecker(),d=i.getCompilerOptions(),{baseUrl:g,paths:_}=d,v=afe(),E=ru(d);if(g){let N=ya(Qr(o.getCurrentDirectory(),g));GO(e,N,l,i,o,s,!1,void 0,v)}if(_){let N=aW(d,o);F2e(v,e,N,l,i,o,s,_)}let A=G2e(e);for(let N of Xtt(e,A,u))v.add(HP(N,"external module name",void 0));if(U2e(i,o,s,t,A,l,v),u7(E)){let N=!1;if(A===void 0)for(let P of $tt(o,t)){let k=HP(P,"external module name",void 0);v.has(k.name)||(N=!0,v.add(k))}if(!N){let P=kk(d),k=wk(d),F=!1,O=j=>{if(k&&!F){let J=Qr(j,"package.json");if(F=kP(o,J)){let Z=ZR(J,o);R(Z.imports,e,j,!1,!0)}}},G=j=>{let J=Qr(j,"node_modules");S7(o,J)&&GO(e,J,l,i,o,s,!1,void 0,v),O(j)};if(A&&P){let j=G;G=J=>{let Z=zd(e);Z.shift();let q=Z.shift();if(!q)return j(J);if(po(q,"@")){let K=Z.shift();if(!K)return j(J);q=Qr(q,K)}if(k&&po(q,"#"))return O(J);let ye=Qr(J,"node_modules",q),ie=Qr(ye,"package.json");if(kP(o,ie)){let K=ZR(ie,o),pe=Z.join("/")+(Z.length&&nb(e)?"/":"");R(K.exports,pe,ye,!0,!1);return}return j(J)}}O_(o,t,G)}}return Co(v.values());function R(N,P,k,F,O){if(typeof N!="object"||N===null)return;let G=Oh(N),j=Lb(d,r);z2e(v,F,O,P,k,l,i,o,s,G,J=>{let Z=B2e(N[J],j);if(Z!==void 0)return UA(el(J,"/")&&el(Z,"/")?Z+"*":Z)},fU)}}function B2e(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Mo(e)){for(let r in e)if(r==="default"||t.includes(r)||Nw(t,r)){let i=e[r];return B2e(i,t)}}}function G2e(e){return dfe(e)?nb(e)?e:ci(e):void 0}function Jtt(e,t,r,i,o,s,l,u,d,g){let _=EI(e);if(!_)return ae;if(typeof _=="string")return E(e,"script");let v=zz(r,_.prefix);if(v===void 0)return el(e,"/*")?E(_.prefix,"directory"):Ki(t,R=>{var N;return(N=V2e("",i,R,o,s,l,u,d,g))==null?void 0:N.map(({name:P,...k})=>({name:_.prefix+P+_.suffix,...k}))});return Ki(t,A=>V2e(v,i,A,o,s,l,u,d,g));function E(A,R){return po(A,r)?[{name:Jy(A),kind:R,extension:void 0}]:ae}}function V2e(e,t,r,i,o,s,l,u,d){if(!u.readDirectory)return;let g=EI(r);if(g===void 0||Bo(g))return;let _=rb(g.prefix),v=nb(g.prefix)?_:ci(_),E=nb(g.prefix)?"":xc(_),A=dfe(e),R=A?nb(e)?e:ci(e):void 0,N=()=>d.getCommonSourceDirectory(),P=!tE(d),k=l.getCompilerOptions().outDir,F=l.getCompilerOptions().declarationDir,O=A?Qr(v,E+R):v,G=ya(Qr(t,O)),j=s&&k&&qG(G,P,k,N),J=s&&F&&qG(G,P,F,N),Z=ya(g.suffix),q=Z&&oW("_"+Z),ye=Z?HG("_"+Z):void 0,ie=[q&&rv(Z,q),...ye?ye.map(Y=>rv(Z,Y)):[],Z].filter(Bo),K=Z?ie.map(Y=>"**/*"+Y):["./*"],pe=(o||s)&&el(r,"/*"),de=fe(G);return j&&(de=so(de,fe(j))),J&&(de=so(de,fe(J))),Z||(de=so(de,ve(G)),j&&(de=so(de,ve(j))),J&&(de=so(de,ve(J)))),de;function fe(Y){let Ce=A?Y:Hc(Y)+E;return Ui(Zq(u,Y,i.extensionsToSearch,void 0,K),Xe=>{let Se=xe(Xe,Ce);if(Se){if(dfe(Se))return lfe(zd(j2e(Se))[1]);let{name:re,extension:be}=W2e(Se,l,i,pe);return HP(re,"script",be)}})}function ve(Y){return Ui(T7(u,Y),Ce=>Ce==="node_modules"?void 0:lfe(Ce))}function xe(Y,Ce){return Hn(ie,Xe=>{let Se=Ktt(ya(Y),Ce,Xe);return Se===void 0?void 0:j2e(Se)})}}function Ktt(e,t,r){return po(e,t)&&el(e,r)?e.slice(t.length,e.length-r.length):void 0}function j2e(e){return e[0]===Js?e.slice(1):e}function Xtt(e,t,r){let o=r.getAmbientModules().map(s=>hm(s.name)).filter(s=>po(s,e)&&!s.includes("*"));if(t!==void 0){let s=Hc(t);return o.map(l=>pN(l,s))}return o}function Ytt(e,t,r,i,o){let s=r.getCompilerOptions(),l=Fi(e,t),u=sg(e.text,l.pos),d=u&&hn(u,P=>t>=P.pos&&t<=P.end);if(!d)return;let g=e.text.slice(d.pos,t),_=ent.exec(g);if(!_)return;let[,v,E,A]=_,R=ci(e.path),N=E==="path"?GO(A,R,cfe(s,0,e),r,i,o,!0,e.path):E==="types"?U2e(r,i,o,R,G2e(A),cfe(s,1,e)):C.fail();return w2e(A,d.pos+v.length,Co(N.values()))}function U2e(e,t,r,i,o,s,l=afe()){let u=e.getCompilerOptions(),d=new Map,g=E7(()=>ZM(u,t))||ae;for(let v of g)_(v);for(let v of eJ(i,t)){let E=Qr(ci(v),"node_modules/@types");_(E)}return l;function _(v){if(S7(t,v))for(let E of T7(t,v)){let A=Mw(E);if(!(u.types&&!jn(u.types,A)))if(o===void 0)d.has(A)||(l.add(HP(A,"external module name",void 0)),d.set(A,!0));else{let R=Qr(v,E),N=TV(o,A,ay(t));N!==void 0&&GO(N,R,s,e,t,r,!1,void 0,l)}}}}function $tt(e,t){if(!e.readFile||!e.fileExists)return ae;let r=[];for(let i of eJ(t,e)){let o=ZR(i,e);for(let s of tnt){let l=o[s];if(l)for(let u in l)Rs(l,u)&&!po(u,"@types/")&&r.push(u)}}return r}function Qtt(e,t){let r=Math.max(e.lastIndexOf(Js),e.lastIndexOf(V8)),i=r!==-1?r+1:0,o=e.length-i;return o===0||pp(e.substr(i,o),99)?void 0:Id(t+i,o)}function Ztt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}var ent=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\x03"]*)$/,tnt=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function dfe(e){return e.includes(Js)}function nnt(e){return Zo(e.parent)&&Ic(e.parent.arguments)===e&&He(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Ys={};x(Ys,{Core:()=>mx,DefinitionKind:()=>$2e,EntryKind:()=>Q2e,ExportKind:()=>H2e,FindReferencesUse:()=>Z2e,ImportExport:()=>q2e,createImportTracker:()=>ufe,findModuleReferences:()=>J2e,findReferenceOrRenameEntries:()=>_nt,findReferencedSymbols:()=>fnt,getContextNode:()=>kE,getExportInfo:()=>pfe,getImplementationsAtPosition:()=>hnt,getImportOrExportSymbol:()=>Y2e,getReferenceEntriesForNode:()=>tLe,isContextWithStartAndEndNode:()=>mfe,isDeclarationOfSymbol:()=>aLe,isWriteAccessForReference:()=>_fe,toContextSpan:()=>hfe,toHighlightSpan:()=>Ent,toReferenceEntry:()=>iLe,toRenameLocation:()=>ynt});function ufe(e,t,r,i){let o=ant(e,r,i);return(s,l,u)=>{let{directImports:d,indirectUsers:g}=rnt(e,t,o,l,r,i);return{indirectUsers:g,...int(d,s,l.exportKind,r,u)}}}var H2e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(H2e||{}),q2e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(q2e||{});function rnt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let u=qD(),d=qD(),g=[],_=!!i.globalExports,v=_?void 0:[];return A(i),{directImports:g,indirectUsers:E()};function E(){if(_)return e;if(i.declarations)for(let O of i.declarations)f1(O)&&t.has(O.getSourceFile().fileName)&&k(O);return v.map(Wn)}function A(O){let G=F(O);if(G){for(let j of G)if(u(j))switch(l&&l.throwIfCancellationRequested(),j.kind){case 214:if(Yu(j)){R(j);break}if(!_){let Z=j.parent;if(o===2&&Z.kind===261){let{name:q}=Z;if(q.kind===80){g.push(q);break}}}break;case 80:break;case 272:P(j,j.name,di(j,32),!1);break;case 273:case 352:g.push(j);let J=j.importClause&&j.importClause.namedBindings;J&&J.kind===275?P(j,J.name,!1,!0):!_&&QS(j)&&k(l5(j));break;case 279:j.exportClause?j.exportClause.kind===281?k(l5(j),!0):g.push(j):A(unt(j,s));break;case 206:!_&&j.isTypeOf&&!j.qualifier&&N(j)&&k(j.getSourceFile(),!0),g.push(j);break;default:C.failBadSyntaxKind(j,"Unexpected import kind.")}}}function R(O){let G=Dn(O,FK)||O.getSourceFile();k(G,!!N(O,!0))}function N(O,G=!1){return Dn(O,j=>G&&FK(j)?"quit":bm(j)&&vt(j.modifiers,PI))}function P(O,G,j,J){if(o===2)J||g.push(O);else if(!_){let Z=l5(O);C.assert(Z.kind===308||Z.kind===268),j||ont(Z,G,s)?k(Z,!0):k(Z)}}function k(O,G=!1){if(C.assert(!_),!d(O)||(v.push(O),!G))return;let J=s.getMergedSymbol(O.symbol);if(!J)return;C.assert(!!(J.flags&1536));let Z=F(J);if(Z)for(let q of Z)Zh(q)||k(l5(q),!0)}function F(O){return r.get(Ta(O).toString())}}function int(e,t,r,i,o){let s=[],l=[];function u(E,A){s.push([E,A])}if(e)for(let E of e)d(E);return{importSearches:s,singleReferences:l};function d(E){if(E.kind===272){ffe(E)&&g(E.name);return}if(E.kind===80){g(E);return}if(E.kind===206){if(E.qualifier){let N=Pu(E.qualifier);N.escapedText===wl(t)&&l.push(N)}else r===2&&l.push(E.argument.literal);return}if(E.moduleSpecifier.kind!==11)return;if(E.kind===279){E.exportClause&&Hf(E.exportClause)&&_(E.exportClause);return}let{name:A,namedBindings:R}=E.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 275:g(R.name);break;case 276:(r===0||r===1)&&_(R);break;default:C.assertNever(R)}if(A&&(r===1||r===2)&&(!o||A.escapedText===p7(t))){let N=i.getSymbolAtLocation(A);u(A,N)}}function g(E){r===2&&(!o||v(E.escapedText))&&u(E,i.getSymbolAtLocation(E))}function _(E){if(E)for(let A of E.elements){let{name:R,propertyName:N}=A;if(v(p1(N||R)))if(N)l.push(N),(!o||p1(R)===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{let P=A.kind===282&&A.propertyName?i.getExportSpecifierLocalTargetSymbol(A):i.getSymbolAtLocation(R);u(R,P)}}}function v(E){return E===t.escapedName||r!==0&&E==="default"}}function ont(e,t,r){let i=r.getSymbolAtLocation(t);return!!K2e(e,o=>{if(!fc(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Hf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function J2e(e,t,r){var i;let o=[],s=e.getTypeChecker();for(let l of t){let u=r.valueDeclaration;if(u?.kind===308){for(let d of l.referencedFiles)e.getSourceFileFromReference(l,d)===u&&o.push({kind:"reference",referencingFile:l,ref:d});for(let d of l.typeReferenceDirectives){let g=(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(d,l))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:d})}}X2e(l,(d,g)=>{s.getSymbolAtLocation(g)===r&&o.push(Os(d)?{kind:"implicit",literal:g,referencingFile:l}:{kind:"import",literal:g})})}return o}function ant(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),X2e(o,(s,l)=>{let u=t.getSymbolAtLocation(l);if(u){let d=Ta(u).toString(),g=i.get(d);g||i.set(d,g=[]),g.push(s)}});return i}function K2e(e,t){return Je(e.kind===308?e.statements:e.body.statements,r=>t(r)||FK(r)&&Je(r.body&&r.body.statements,t))}function X2e(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t($N(r),r);else K2e(e,r=>{switch(r.kind){case 279:case 273:{let i=r;i.moduleSpecifier&&ka(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 272:{let i=r;ffe(i)&&t(i,i.moduleReference.expression);break}}})}function Y2e(e,t,r,i){return i?o():o()||s();function o(){var d;let{parent:g}=e,_=g.parent;if(t.exportSymbol)return g.kind===212?(d=t.declarations)!=null&&d.some(A=>A===g)&&Nr(_)?E(_,!1):void 0:l(t.exportSymbol,u(g));{let A=lnt(g,e);if(A&&di(A,32))return Bc(A)&&A.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(A.name)}:l(t,u(A));if(w_(g))return l(t,0);if(ll(g))return v(g);if(ll(_))return v(_);if(Nr(g))return E(g,!0);if(Nr(_))return E(_,!0);if(yE(g)||fj(g))return l(t,0)}function v(A){if(!A.symbol.parent)return;let R=A.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:A.symbol.parent,exportKind:R}}}function E(A,R){let N;switch(oc(A)){case 1:N=0;break;case 2:N=2;break;default:return}let P=R?r.getSymbolAtLocation(fV(ma(A.left,Ks))):t;return P&&l(P,N)}}function s(){if(!cnt(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=dnt(g,r),g.escapedName==="export="&&(g=snt(g,r),g===void 0)))return;let _=p7(g);if(_===void 0||_==="default"||_===t.escapedName)return{kind:0,symbol:g}}function l(d,g){let _=pfe(d,g,r);return _&&{kind:1,symbol:d,exportInfo:_}}function u(d){return di(d,2048)?1:0}}function snt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=C.checkDefined(e.valueDeclaration);if(ll(o))return(r=ni(o.expression,ah))==null?void 0:r.symbol;if(Nr(o))return(i=ni(o.right,ah))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function lnt(e,t){let r=yi(e)?e:Ha(e)?WS(e):void 0;return r?e.name!==t||O1(r.parent)?void 0:ac(r.parent.parent)?r.parent.parent:void 0:e}function cnt(e){let{parent:t}=e;switch(t.kind){case 272:return t.name===e&&ffe(t);case 277:return!t.propertyName;case 274:case 275:return C.assert(t.name===e),!0;case 209:return Ir(e)&&h1(t.parent.parent);default:return!1}}function pfe(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return eI(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function dnt(e,t){if(e.declarations)for(let r of e.declarations){if(iu(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(qr(r)&&_g(r.expression)&&!eo(r.name))return t.getSymbolAtLocation(r);if(Ud(r)&&Nr(r.parent.parent)&&oc(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function unt(e,t){return t.getMergedSymbol(l5(e).symbol)}function l5(e){if(e.kind===214||e.kind===352)return e.getSourceFile();let{parent:t}=e;return t.kind===308?t:(C.assert(t.kind===269),ma(t.parent,FK))}function FK(e){return e.kind===268&&e.name.kind===11}function ffe(e){return e.moduleReference.kind===284&&e.moduleReference.expression.kind===11}var $2e=(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))($2e||{}),Q2e=(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))(Q2e||{});function yy(e,t=1){return{kind:t,node:e.name||e,context:pnt(e)}}function mfe(e){return e&&e.kind===void 0}function pnt(e){if(rd(e))return kE(e);if(e.parent){if(!rd(e.parent)&&!ll(e.parent)){if(Ir(e)){let r=Nr(e.parent)?e.parent:Ks(e.parent)&&Nr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&oc(r)!==0)return kE(r)}if(ph(e.parent)||k1(e.parent))return e.parent.parent;if(_E(e.parent)||Nb(e.parent)||MN(e.parent))return e.parent;if(cs(e)){let r=ck(e);if(r){let i=Dn(r,o=>rd(o)||ji(o)||LR(o));return rd(i)?kE(i):i}}let t=Dn(e,va);return t?kE(t.parent):void 0}if(e.parent.name===e||Ml(e.parent)||ll(e.parent)||(lb(e.parent)||Ha(e.parent))&&e.parent.propertyName===e||e.kind===90&&di(e.parent,2080))return kE(e.parent)}}function kE(e){if(e)switch(e.kind){case 261:return!_d(e.parent)||e.parent.declarations.length!==1?e:ac(e.parent.parent)?e.parent.parent:jS(e.parent.parent)?kE(e.parent.parent):e.parent;case 209:return kE(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return od(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return pv(e.parent)?kE(Dn(e.parent,t=>Nr(t)||jS(t))):e;case 256:return{start:hn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function hfe(e,t,r){if(!r)return;let i=mfe(r)?d5(r.start,t,r.end):d5(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}var Z2e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Z2e||{});function fnt(e,t,r,i,o){let s=np(i,o),l={use:1},u=mx.getReferencedSymbolsForNode(o,s,e,r,t,l),d=e.getTypeChecker(),g=mx.getAdjustedNode(s,l),_=mnt(g)?d.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Ui(u,({definition:v,references:E})=>v&&{definition:d.runWithCancellationToken(t,A=>gnt(v,A,s)),references:E.map(A=>vnt(A,_))})}function mnt(e){return e.kind===90||!!ZN(e)||hk(e)||e.kind===137&&Ml(e.parent)}function hnt(e,t,r,i,o){let s=np(i,o),l,u=eLe(e,t,r,s,o);if(s.parent.kind===212||s.parent.kind===209||s.parent.kind===213||s.kind===108)l=u&&[...u];else if(u){let g=aL(u),_=new Set;for(;!g.isEmpty();){let v=g.dequeue();if(!_m(_,ss(v.node)))continue;l=Bn(l,v);let E=eLe(e,t,r,v.node,v.node.pos);E&&g.enqueue(...E)}}let d=e.getTypeChecker();return Vt(l,g=>Tnt(g,d))}function eLe(e,t,r,i,o){if(i.kind===308)return;let s=e.getTypeChecker();if(i.parent.kind===305){let l=[];return mx.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(yy(u))),l}else if(i.kind===108||fp(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[yy(l.valueDeclaration)]}else return tLe(o,i,e,r,t,{implementations:!0,use:1})}function _nt(e,t,r,i,o,s,l){return Vt(nLe(mx.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function tLe(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return nLe(mx.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function nLe(e){return e&&Ki(e,t=>t.references)}function gnt(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:_}=e,{displayParts:v,kind:E}=rLe(_,t,r),A=v.map(P=>P.text).join(""),R=_.declarations&&Ic(_.declarations),N=R?Oo(R)||R:r;return{...c5(N),name:A,kind:E,displayParts:v,context:kE(R)}}case 1:{let{node:_}=e;return{...c5(_),name:_.text,kind:"label",displayParts:[gp(_.text,17)]}}case 2:{let{node:_}=e,v=_a(_.kind);return{...c5(_),name:v,kind:"keyword",displayParts:[{text:v,kind:"keyword"}]}}case 3:{let{node:_}=e,v=t.getSymbolAtLocation(_),E=v&&_v.getSymbolDisplayPartsDocumentationAndSymbolKind(t,v,_.getSourceFile(),CE(_),_).displayParts||[gf("this")];return{...c5(_),name:"this",kind:"var",displayParts:E}}case 4:{let{node:_}=e;return{...c5(_),name:_.text,kind:"var",displayParts:[gp(Al(_),8)]}}case 5:return{textSpan:fv(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[gp(`"${e.reference.fileName}"`,8)]};default:return C.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:d,context:g}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:d,...hfe(s,o,g)}}function c5(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:d5(va(e)?e.expression:e,t)}}function rLe(e,t,r){let i=mx.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Ic(e.declarations)||r,{displayParts:s,symbolKind:l}=_v.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function ynt(e,t,r,i,o){return{...zK(e),...i&&bnt(e,t,r,o)}}function vnt(e,t){let r=iLe(e);return t?{...r,isDefinition:e.kind!==0&&aLe(e.node,t)}:r}function iLe(e){let t=zK(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:_fe(i),isInString:r===2?!0:void 0}}function zK(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=d5(e.node,t);return{textSpan:r,fileName:t.fileName,...hfe(r,t,e.context)}}}function bnt(e,t,r,i){if(e.kind!==0&&(He(t)||cs(t))){let{node:o,kind:s}=e,l=o.parent,u=t.text,d=Ud(l);if(d||mO(l)&&l.name===o&&l.dotDotDotToken===void 0){let g={prefixText:u+": "},_={suffixText:": "+u};if(s===3)return g;if(s===4)return _;if(d){let v=l.parent;return Wa(v)&&Nr(v.parent)&&_g(v.parent.left)?g:_}else return g}else if(Su(l)&&!l.propertyName){let g=iu(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return jn(g.declarations,l)?{prefixText:u+" as "}:Tm}else if(iu(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&ep(e.node)&&Ks(e.node.parent)){let o=Wq(i);return{prefixText:o,suffixText:o}}return Tm}function Tnt(e,t){let r=zK(e);if(e.kind!==0){let{node:i}=e;return{...r,...Snt(i,t)}}else return{...r,kind:"",displayParts:[]}}function Snt(e,t){let r=t.getSymbolAtLocation(rd(e)&&e.name?e.name:e);return r?rLe(r,t,e):e.kind===211?{kind:"interface",displayParts:[su(21),gf("object literal"),su(22)]}:e.kind===232?{kind:"local class",displayParts:[su(21),gf("anonymous local class"),su(22)]}:{kind:H1(e),displayParts:[]}}function Ent(e){let t=zK(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=_fe(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 d5(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return cs(e)&&o-i>2&&(C.assert(r===void 0),i+=1,o-=1),r?.kind===270&&(o=r.getFullStart()),ic(i,o)}function oLe(e){return e.kind===0?e.textSpan:d5(e.node,e.node.getSourceFile())}function _fe(e){let t=ZN(e);return!!t&&Ant(t)||e.kind===90||gI(e)}function aLe(e,t){var r;if(!t)return!1;let i=ZN(e)||(e.kind===90?e.parent:hk(e)||e.kind===137&&Ml(e.parent)?e.parent.parent:void 0),o=i&&Nr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function Ant(e){if(e.flags&33554432)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!pv(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||O1(e.parent);case 174:case 172:case 349:case 342:return!1;default:return C.failBadSyntaxKind(e)}}var mx;(e=>{function t(ot,Ft,le,ht,ne,Fe={},it=new Set(ht.map(dt=>dt.fileName))){var dt,Lt;if(Ft=r(Ft,Fe),Yi(Ft)){let Sr=iC.getReferenceAtPosition(Ft,ot,le);if(!Sr?.file)return;let Oe=le.getTypeChecker().getMergedSymbol(Sr.file.symbol);if(Oe)return g(le,Oe,!1,ht,it);let Nt=le.getFileIncludeReasons();return Nt?[{definition:{type:5,reference:Sr.reference,file:Ft},references:o(Sr.file,Nt,le)||ae}]:void 0}if(!Fe.implementations){let Sr=v(Ft,ht,ne);if(Sr)return Sr}let Ue=le.getTypeChecker(),Rt=Ue.getSymbolAtLocation(Ml(Ft)&&Ft.parent.name||Ft);if(!Rt){if(!Fe.implementations&&cs(Ft)){if(f7(Ft)){let Sr=le.getFileIncludeReasons(),Oe=(Lt=(dt=le.getResolvedModuleFromModuleSpecifier(Ft))==null?void 0:dt.resolvedModule)==null?void 0:Lt.resolvedFileName,Nt=Oe?le.getSourceFile(Oe):void 0;if(Nt)return[{definition:{type:4,node:Ft},references:o(Nt,Sr,le)||ae}]}return Ni(Ft,ht,Ue,ne)}return}if(Rt.escapedName==="export=")return g(le,Rt.parent,!1,ht,it);let It=l(Rt,le,ht,ne,Fe,it);if(It&&!(Rt.flags&33554432))return It;let Ot=s(Ft,Rt,Ue),nt=Ot&&l(Ot,le,ht,ne,Fe,it),Kt=E(Rt,Ft,ht,it,Ue,ne,Fe);return u(le,It,Kt,nt)}e.getReferencedSymbolsForNode=t;function r(ot,Ft){return Ft.use===1?ot=Sq(ot):Ft.use===2&&(ot=r7(ot)),ot}e.getAdjustedNode=r;function i(ot,Ft,le,ht=new Set(le.map(ne=>ne.fileName))){var ne,Fe;let it=(ne=Ft.getSourceFile(ot))==null?void 0:ne.symbol;if(it)return((Fe=g(Ft,it,!1,le,ht)[0])==null?void 0:Fe.references)||ae;let dt=Ft.getFileIncludeReasons(),Lt=Ft.getSourceFile(ot);return Lt&&dt&&o(Lt,dt,Ft)||ae}e.getReferencesForFileName=i;function o(ot,Ft,le){let ht,ne=Ft.get(ot.path)||ae;for(let Fe of ne)if(rT(Fe)){let it=le.getSourceFileByPath(Fe.file),dt=gP(le,Fe);WD(dt)&&(ht=Bn(ht,{kind:0,fileName:it.fileName,textSpan:fv(dt)}))}return ht}function s(ot,Ft,le){if(ot.parent&&sw(ot.parent)){let ht=le.getAliasedSymbol(Ft),ne=le.getMergedSymbol(ht);if(ht!==ne)return ne}}function l(ot,Ft,le,ht,ne,Fe){let it=ot.flags&1536&&ot.declarations&&hn(ot.declarations,Yi);if(!it)return;let dt=ot.exports.get("export="),Lt=g(Ft,ot,!!dt,le,Fe);if(!dt||!Fe.has(it.fileName))return Lt;let Ue=Ft.getTypeChecker();return ot=xd(dt,Ue),u(Ft,Lt,E(ot,void 0,le,Fe,Ue,ht,ne))}function u(ot,...Ft){let le;for(let ht of Ft)if(!(!ht||!ht.length)){if(!le){le=ht;continue}for(let ne of ht){if(!ne.definition||ne.definition.type!==0){le.push(ne);continue}let Fe=ne.definition.symbol,it=ho(le,Lt=>!!Lt.definition&&Lt.definition.type===0&&Lt.definition.symbol===Fe);if(it===-1){le.push(ne);continue}let dt=le[it];le[it]={definition:dt.definition,references:dt.references.concat(ne.references).sort((Lt,Ue)=>{let Rt=d(ot,Lt),It=d(ot,Ue);if(Rt!==It)return js(Rt,It);let Ot=oLe(Lt),nt=oLe(Ue);return Ot.start!==nt.start?js(Ot.start,nt.start):js(Ot.length,nt.length)})}}}return le}function d(ot,Ft){let le=Ft.kind===0?ot.getSourceFile(Ft.fileName):Ft.node.getSourceFile();return ot.getSourceFiles().indexOf(le)}function g(ot,Ft,le,ht,ne){C.assert(!!Ft.valueDeclaration);let Fe=Ui(J2e(ot,ht,Ft),dt=>{if(dt.kind==="import"){let Lt=dt.literal.parent;if(lv(Lt)){let Ue=ma(Lt.parent,Zh);if(le&&!Ue.qualifier)return}return yy(dt.literal)}else if(dt.kind==="implicit"){let Lt=dt.literal.text!==pb&&UI(dt.referencingFile,Ue=>Ue.transformFlags&2?n_(Ue)||_E(Ue)||J0(Ue)?Ue:void 0:"skip")||dt.referencingFile.statements[0]||dt.referencingFile;return yy(Lt)}else return{kind:0,fileName:dt.referencingFile.fileName,textSpan:fv(dt.ref)}});if(Ft.declarations)for(let dt of Ft.declarations)switch(dt.kind){case 308:break;case 268:ne.has(dt.getSourceFile().fileName)&&Fe.push(yy(dt.name));break;default:C.assert(!!(Ft.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let it=Ft.exports.get("export=");if(it?.declarations)for(let dt of it.declarations){let Lt=dt.getSourceFile();if(ne.has(Lt.fileName)){let Ue=Nr(dt)&&qr(dt.left)?dt.left.expression:ll(dt)?C.checkDefined(Es(dt,95,Lt)):Oo(dt)||dt;Fe.push(yy(Ue))}}return Fe.length?[{definition:{type:0,symbol:Ft},references:Fe}]:ae}function _(ot){return ot.kind===148&&G0(ot.parent)&&ot.parent.operator===148}function v(ot,Ft,le){if(xP(ot.kind))return ot.kind===116&&FI(ot.parent)||ot.kind===148&&!_(ot)?void 0:Xe(Ft,ot.kind,le,ot.kind===148?_:void 0);if(zR(ot.parent)&&ot.parent.name===ot)return Ce(Ft,le);if(LI(ot)&&$l(ot.parent))return[{definition:{type:2,node:ot},references:[yy(ot)]}];if(aO(ot)){let ht=$F(ot.parent,ot.text);return ht&&xe(ht.parent,ht)}else if(fq(ot))return xe(ot.parent,ot);if(jD(ot))return Ai(ot,Ft,le);if(ot.kind===108)return zt(ot)}function E(ot,Ft,le,ht,ne,Fe,it){let dt=Ft&&N(ot,Ft,ne,!Uo(it))||ot,Lt=Ft&&it.use!==2?ri(Ft,dt):7,Ue=[],Rt=new F(le,ht,Ft?R(Ft):0,ne,Fe,Lt,it,Ue),It=!Uo(it)||!dt.declarations?void 0:hn(dt.declarations,iu);if(It)lt(It.name,dt,It,Rt.createSearch(Ft,ot,void 0),Rt,!0,!0);else if(Ft&&Ft.kind===90&&dt.escapedName==="default"&&dt.parent)Ge(Ft,dt,Rt),O(Ft,dt,{exportingModuleSymbol:dt.parent,exportKind:1},Rt);else{let Ot=Rt.createSearch(Ft,dt,void 0,{allSearchSymbols:Ft?Ci(dt,Ft,ne,it.use===2,!!it.providePrefixAndSuffixTextForRename,!!it.implementations):[dt]});A(dt,Rt,Ot)}return Ue}function A(ot,Ft,le){let ht=ye(ot);if(ht)re(ht,ht.getSourceFile(),le,Ft,!(Yi(ht)&&!jn(Ft.sourceFiles,ht)));else for(let ne of Ft.sourceFiles)Ft.cancellationToken.throwIfCancellationRequested(),Z(ne,le,Ft)}function R(ot){switch(ot.kind){case 177:case 137:return 1;case 80:if(ui(ot.parent))return C.assert(ot.parent.name===ot),2;default:return 0}}function N(ot,Ft,le,ht){let{parent:ne}=Ft;return iu(ne)&&ht?ce(Ft,ot,ne,le):Hn(ot.declarations,Fe=>{if(!Fe.parent){if(ot.flags&33554432)return;C.fail(`Unexpected symbol at ${C.formatSyntaxKind(Ft.kind)}: ${C.formatSymbol(ot)}`)}return ku(Fe.parent)&&sv(Fe.parent.parent)?le.getPropertyOfType(le.getTypeFromTypeNode(Fe.parent.parent),ot.name):void 0})}let P;(ot=>{ot[ot.None=0]="None",ot[ot.Constructor=1]="Constructor",ot[ot.Class=2]="Class"})(P||(P={}));function k(ot){if(!(ot.flags&33555968))return;let Ft=ot.declarations&&hn(ot.declarations,le=>!Yi(le)&&!pc(le));return Ft&&Ft.symbol}class F{constructor(Ft,le,ht,ne,Fe,it,dt,Lt){this.sourceFiles=Ft,this.sourceFilesSet=le,this.specialSearchKind=ht,this.checker=ne,this.cancellationToken=Fe,this.searchMeaning=it,this.options=dt,this.result=Lt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=qD(),this.markSeenReExportRHS=qD(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Ft){return this.sourceFilesSet.has(Ft.fileName)}getImportSearches(Ft,le){return this.importTracker||(this.importTracker=ufe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Ft,le,this.options.use===2)}createSearch(Ft,le,ht,ne={}){let{text:Fe=hm(wl(uM(le)||k(le)||le)),allSearchSymbols:it=[le]}=ne,dt=Cl(Fe),Lt=this.options.implementations&&Ft?Mn(Ft,le,this.checker):void 0;return{symbol:le,comingFrom:ht,text:Fe,escapedText:dt,parents:Lt,allSearchSymbols:it,includes:Ue=>jn(it,Ue)}}referenceAdder(Ft){let le=Ta(Ft),ht=this.symbolIdToReferences[le];return ht||(ht=this.symbolIdToReferences[le]=[],this.result.push({definition:{type:0,symbol:Ft},references:ht})),(ne,Fe)=>ht.push(yy(ne,Fe))}addStringOrCommentReference(Ft,le){this.result.push({definition:void 0,references:[{kind:0,fileName:Ft,textSpan:le}]})}markSearchedSymbols(Ft,le){let ht=ss(Ft),ne=this.sourceFileToSeenSymbols[ht]||(this.sourceFileToSeenSymbols[ht]=new Set),Fe=!1;for(let it of le)Fe=rh(ne,Ta(it))||Fe;return Fe}}function O(ot,Ft,le,ht){let{importSearches:ne,singleReferences:Fe,indirectUsers:it}=ht.getImportSearches(Ft,le);if(Fe.length){let dt=ht.referenceAdder(Ft);for(let Lt of Fe)j(Lt,ht)&&dt(Lt)}for(let[dt,Lt]of ne)Se(dt.getSourceFile(),ht.createSearch(dt,Lt,1),ht);if(it.length){let dt;switch(le.exportKind){case 0:dt=ht.createSearch(ot,Ft,1);break;case 1:dt=ht.options.use===2?void 0:ht.createSearch(ot,Ft,1,{text:"default"});break}if(dt)for(let Lt of it)Z(Lt,dt,ht)}}function G(ot,Ft,le,ht,ne,Fe,it,dt){let Lt=ufe(ot,new Set(ot.map(Ot=>Ot.fileName)),Ft,le),{importSearches:Ue,indirectUsers:Rt,singleReferences:It}=Lt(ht,{exportKind:it?1:0,exportingModuleSymbol:ne},!1);for(let[Ot]of Ue)dt(Ot);for(let Ot of It)He(Ot)&&Zh(Ot.parent)&&dt(Ot);for(let Ot of Rt)for(let nt of fe(Ot,it?"default":Fe)){let Kt=Ft.getSymbolAtLocation(nt),Sr=vt(Kt?.declarations,Oe=>!!ni(Oe,ll));He(nt)&&!lb(nt.parent)&&(Kt===ht||Sr)&&dt(nt)}}e.eachExportReference=G;function j(ot,Ft){return be(ot,Ft)?Ft.options.use!==2?!0:!He(ot)&&!lb(ot.parent)?!1:!(lb(ot.parent)&&C_(ot)):!1}function J(ot,Ft){if(ot.declarations)for(let le of ot.declarations){let ht=le.getSourceFile();Se(ht,Ft.createSearch(le,ot,0),Ft,Ft.includesSourceFile(ht))}}function Z(ot,Ft,le){XJ(ot).get(Ft.escapedText)!==void 0&&Se(ot,Ft,le)}function q(ot,Ft){return pv(ot.parent.parent)?Ft.getPropertySymbolOfDestructuringAssignment(ot):void 0}function ye(ot){let{declarations:Ft,flags:le,parent:ht,valueDeclaration:ne}=ot;if(ne&&(ne.kind===219||ne.kind===232))return ne;if(!Ft)return;if(le&8196){let dt=hn(Ft,Lt=>Lp(Lt,2)||tu(Lt));return dt?w0(dt,264):void 0}if(Ft.some(mO))return;let Fe=ht&&!(ot.flags&262144);if(Fe&&!(eI(ht)&&!ht.globalExports))return;let it;for(let dt of Ft){let Lt=CE(dt);if(it&&it!==Lt||!Lt||Lt.kind===308&&!Np(Lt))return;if(it=Lt,Us(it)){let Ue;for(;Ue=IG(it);)it=Ue}}return Fe?it.getSourceFile():it}function ie(ot,Ft,le,ht=le){return K(ot,Ft,le,()=>!0,ht)||!1}e.isSymbolReferencedInFile=ie;function K(ot,Ft,le,ht,ne=le){let Fe=Dp(ot.parent,ot.parent.parent)?$a(Ft.getSymbolsOfParameterPropertyDeclaration(ot.parent,ot.text)):Ft.getSymbolAtLocation(ot);if(Fe)for(let it of fe(le,Fe.name,ne)){if(!He(it)||it===ot||it.escapedText!==ot.escapedText)continue;let dt=Ft.getSymbolAtLocation(it);if(dt===Fe||Ft.getShorthandAssignmentValueSymbol(it.parent)===Fe||iu(it.parent)&&ce(it,dt,it.parent,Ft)===Fe){let Lt=ht(it);if(Lt)return Lt}}}e.eachSymbolReferenceInFile=K;function pe(ot,Ft){return Un(fe(Ft,ot),ne=>!!ZN(ne)).reduce((ne,Fe)=>{let it=ht(Fe);return!vt(ne.declarationNames)||it===ne.depth?(ne.declarationNames.push(Fe),ne.depth=it):it<ne.depth&&(ne.declarationNames=[Fe],ne.depth=it),ne},{depth:1/0,declarationNames:[]}).declarationNames;function ht(ne){let Fe=0;for(;ne;)ne=CE(ne),Fe++;return Fe}}e.getTopMostDeclarationNamesInFile=pe;function de(ot,Ft,le,ht){if(!ot.name||!He(ot.name))return!1;let ne=C.checkDefined(le.getSymbolAtLocation(ot.name));for(let Fe of Ft)for(let it of fe(Fe,ne.name)){if(!He(it)||it===ot.name||it.escapedText!==ot.name.escapedText)continue;let dt=YF(it),Lt=Zo(dt.parent)&&dt.parent.expression===dt?dt.parent:void 0,Ue=le.getSymbolAtLocation(it);if(Ue&&le.getRootSymbols(Ue).some(Rt=>Rt===ne)&&ht(it,Lt))return!0}return!1}e.someSignatureUsage=de;function fe(ot,Ft,le=ot){return Ui(ve(ot,Ft,le),ht=>{let ne=np(ot,ht);return ne===ot?void 0:ne})}function ve(ot,Ft,le=ot){let ht=[];if(!Ft||!Ft.length)return ht;let ne=ot.text,Fe=ne.length,it=Ft.length,dt=ne.indexOf(Ft,le.pos);for(;dt>=0&&!(dt>le.end);){let Lt=dt+it;(dt===0||!ey(ne.charCodeAt(dt-1),99))&&(Lt===Fe||!ey(ne.charCodeAt(Lt),99))&&ht.push(dt),dt=ne.indexOf(Ft,dt+it+1)}return ht}function xe(ot,Ft){let le=ot.getSourceFile(),ht=Ft.text,ne=Ui(fe(le,ht,ot),Fe=>Fe===Ft||aO(Fe)&&$F(Fe,ht)===Ft?yy(Fe):void 0);return[{definition:{type:1,node:Ft},references:ne}]}function Y(ot,Ft){switch(ot.kind){case 81:if(X0(ot.parent))return!0;case 80:return ot.text.length===Ft.length;case 15:case 11:{let le=ot;return le.text.length===Ft.length&&(QF(le)||gq(ot)||Ple(ot)||Zo(ot.parent)&&YS(ot.parent)&&ot.parent.arguments[1]===ot||lb(ot.parent))}case 9:return QF(ot)&&ot.text.length===Ft.length;case 90:return Ft.length===7;default:return!1}}function Ce(ot,Ft){let le=Ki(ot,ht=>(Ft.throwIfCancellationRequested(),Ui(fe(ht,"meta",ht),ne=>{let Fe=ne.parent;if(zR(Fe))return yy(Fe)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function Xe(ot,Ft,le,ht){let ne=Ki(ot,Fe=>(le.throwIfCancellationRequested(),Ui(fe(Fe,_a(Ft),Fe),it=>{if(it.kind===Ft&&(!ht||ht(it)))return yy(it)})));return ne.length?[{definition:{type:2,node:ne[0].node},references:ne}]:void 0}function Se(ot,Ft,le,ht=!0){return le.cancellationToken.throwIfCancellationRequested(),re(ot,ot,Ft,le,ht)}function re(ot,Ft,le,ht,ne){if(ht.markSearchedSymbols(Ft,le.allSearchSymbols))for(let Fe of ve(Ft,le.text,ot))Ne(Ft,Fe,le,ht,ne)}function be(ot,Ft){return!!(DE(ot)&Ft.searchMeaning)}function Ne(ot,Ft,le,ht,ne){let Fe=np(ot,Ft);if(!Y(Fe,le.text)){!ht.options.implementations&&(ht.options.findInStrings&&nx(ot,Ft)||ht.options.findInComments&&Hle(ot,Ft))&&ht.addStringOrCommentReference(ot.fileName,Id(Ft,le.text.length));return}if(!be(Fe,ht))return;let it=ht.checker.getSymbolAtLocation(Fe);if(!it)return;let dt=Fe.parent;if(Su(dt)&&dt.propertyName===Fe)return;if(iu(dt)){C.assert(Fe.kind===80||Fe.kind===11),lt(Fe,it,dt,le,ht,ne);return}if(PN(dt)&&dt.isNameFirst&&dt.typeExpression&&gE(dt.typeExpression.type)&&dt.typeExpression.type.jsDocPropertyTags&&et(dt.typeExpression.type.jsDocPropertyTags)){Be(dt.typeExpression.type.jsDocPropertyTags,Fe,le,ht);return}let Lt=dr(le,it,Fe,ht);if(!Lt){je(it,le,ht);return}switch(ht.specialSearchKind){case 0:ne&&Ge(Fe,Lt,ht);break;case 1:We(Fe,ot,le,ht);break;case 2:at(Fe,le,ht);break;default:C.assertNever(ht.specialSearchKind)}Ir(Fe)&&Ha(Fe.parent)&&h1(Fe.parent.parent.parent)&&(it=Fe.parent.symbol,!it)||ge(Fe,it,le,ht)}function Be(ot,Ft,le,ht){let ne=ht.referenceAdder(le.symbol);Ge(Ft,le.symbol,ht),Je(ot,Fe=>{Lu(Fe.name)&&ne(Fe.name.left)})}function lt(ot,Ft,le,ht,ne,Fe,it){C.assert(!it||!!ne.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:dt,propertyName:Lt,name:Ue}=le,Rt=dt.parent,It=ce(ot,Ft,le,ne.checker);if(!it&&!ht.includes(It))return;if(Lt?ot===Lt?(Rt.moduleSpecifier||Ot(),Fe&&ne.options.use!==2&&ne.markSeenReExportRHS(Ue)&&Ge(Ue,C.checkDefined(le.symbol),ne)):ne.markSeenReExportRHS(ot)&&Ot():ne.options.use===2&&C_(Ue)||Ot(),!Uo(ne.options)||it){let Kt=C_(ot)||C_(le.name)?1:0,Sr=C.checkDefined(le.symbol),Oe=pfe(Sr,Kt,ne.checker);Oe&&O(ot,Sr,Oe,ne)}if(ht.comingFrom!==1&&Rt.moduleSpecifier&&!Lt&&!Uo(ne.options)){let nt=ne.checker.getExportSpecifierLocalTargetSymbol(le);nt&&J(nt,ne)}function Ot(){Fe&&Ge(ot,It,ne)}}function ce(ot,Ft,le,ht){return De(ot,le)&&ht.getExportSpecifierLocalTargetSymbol(le)||Ft}function De(ot,Ft){let{parent:le,propertyName:ht,name:ne}=Ft;return C.assert(ht===ot||ne===ot),ht?ht===ot:!le.parent.moduleSpecifier}function ge(ot,Ft,le,ht){let ne=Y2e(ot,Ft,ht.checker,le.comingFrom===1);if(!ne)return;let{symbol:Fe}=ne;ne.kind===0?Uo(ht.options)||J(Fe,ht):O(ot,Fe,ne.exportInfo,ht)}function je({flags:ot,valueDeclaration:Ft},le,ht){let ne=ht.checker.getShorthandAssignmentValueSymbol(Ft),Fe=Ft&&Oo(Ft);!(ot&33554432)&&Fe&&le.includes(ne)&&Ge(Fe,ne,ht)}function Ge(ot,Ft,le){let{kind:ht,symbol:ne}="kind"in Ft?Ft:{kind:void 0,symbol:Ft};if(le.options.use===2&&ot.kind===90)return;let Fe=le.referenceAdder(ne);le.options.implementations?en(ot,Fe,le):Fe(ot,ht)}function We(ot,Ft,le,ht){SP(ot)&&Ge(ot,le.symbol,ht);let ne=()=>ht.referenceAdder(le.symbol);if(ui(ot.parent))C.assert(ot.kind===90||ot.parent.name===ot),Wt(le.symbol,Ft,ne());else{let Fe=Ia(ot);Fe&&(gn(Fe,ne()),_t(Fe,ht))}}function at(ot,Ft,le){Ge(ot,Ft.symbol,le);let ht=ot.parent;if(le.options.use===2||!ui(ht))return;C.assert(ht.name===ot);let ne=le.referenceAdder(Ft.symbol);for(let Fe of ht.members)$A(Fe)&&ua(Fe)&&Fe.body&&Fe.body.forEachChild(function it(dt){dt.kind===110?ne(dt):!Yo(dt)&&!ui(dt)&&dt.forEachChild(it)})}function Wt(ot,Ft,le){let ht=cn(ot);if(ht&&ht.declarations)for(let ne of ht.declarations){let Fe=Es(ne,137,Ft);C.assert(ne.kind===177&&!!Fe),le(Fe)}ot.exports&&ot.exports.forEach(ne=>{let Fe=ne.valueDeclaration;if(Fe&&Fe.kind===175){let it=Fe.body;it&&$o(it,110,dt=>{SP(dt)&&le(dt)})}})}function cn(ot){return ot.members&&ot.members.get("__constructor")}function gn(ot,Ft){let le=cn(ot.symbol);if(le&&le.declarations)for(let ht of le.declarations){C.assert(ht.kind===177);let ne=ht.body;ne&&$o(ne,108,Fe=>{dq(Fe)&&Ft(Fe)})}}function Kn(ot){return!!cn(ot.symbol)}function _t(ot,Ft){if(Kn(ot))return;let le=ot.symbol,ht=Ft.createSearch(void 0,le,void 0);A(le,Ft,ht)}function en(ot,Ft,le){if(P_(ot)&&ai(ot.parent)){Ft(ot);return}if(ot.kind!==80)return;ot.parent.kind===305&&qi(ot,le.checker,Ft);let ht=ir(ot);if(ht){Ft(ht);return}let ne=Dn(ot,dt=>!Lu(dt.parent)&&!Ri(dt.parent)&&!l1(dt.parent)),Fe=ne.parent;if(h6(Fe)&&Fe.type===ne&&le.markSeenContainingTypeReference(Fe))if(Yy(Fe))it(Fe.initializer);else if(Yo(Fe)&&Fe.body){let dt=Fe.body;dt.kind===242?_b(dt,Lt=>{Lt.expression&&it(Lt.expression)}):it(dt)}else(d1(Fe)||mD(Fe))&&it(Fe.expression);function it(dt){Di(dt)&&Ft(dt)}}function ir(ot){return He(ot)||qr(ot)?ir(ot.parent):dy(ot)?ni(ot.parent.parent,Ip(ui,gd)):void 0}function Di(ot){switch(ot.kind){case 218:return Di(ot.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function lo(ot,Ft,le,ht){if(ot===Ft)return!0;let ne=Ta(ot)+","+Ta(Ft),Fe=le.get(ne);if(Fe!==void 0)return Fe;le.set(ne,!1);let it=!!ot.declarations&&ot.declarations.some(dt=>eM(dt).some(Lt=>{let Ue=ht.getTypeAtLocation(Lt);return!!Ue&&!!Ue.symbol&&lo(Ue.symbol,Ft,le,ht)}));return le.set(ne,it),it}function zt(ot){let Ft=YL(ot,!1);if(!Ft)return;let le=256;switch(Ft.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:le&=Zy(Ft),Ft=Ft.parent;break;default:return}let ht=Ft.getSourceFile(),ne=Ui(fe(ht,"super",Ft),Fe=>{if(Fe.kind!==108)return;let it=YL(Fe,!1);return it&&ua(it)===!!le&&it.parent.symbol===Ft.symbol?yy(Fe):void 0});return[{definition:{type:0,symbol:Ft.symbol},references:ne}]}function Zr(ot){return ot.kind===80&&ot.parent.kind===170&&ot.parent.name===ot}function Ai(ot,Ft,le){let ht=yu(ot,!1,!1),ne=256;switch(ht.kind){case 175:case 174:if(fm(ht)){ne&=Zy(ht),ht=ht.parent;break}case 173:case 172:case 177:case 178:case 179:ne&=Zy(ht),ht=ht.parent;break;case 308:if(Gc(ht)||Zr(ot))return;case 263:case 219:break;default:return}let Fe=Ki(ht.kind===308?Ft:[ht.getSourceFile()],dt=>(le.throwIfCancellationRequested(),fe(dt,"this",Yi(ht)?dt:ht).filter(Lt=>{if(!jD(Lt))return!1;let Ue=yu(Lt,!1,!1);if(!ah(Ue))return!1;switch(ht.kind){case 219:case 263:return ht.symbol===Ue.symbol;case 175:case 174:return fm(ht)&&ht.symbol===Ue.symbol;case 232:case 264:case 211:return Ue.parent&&ah(Ue.parent)&&ht.symbol===Ue.parent.symbol&&ua(Ue)===!!ne;case 308:return Ue.kind===308&&!Gc(Ue)&&!Zr(Lt)}}))).map(dt=>yy(dt));return[{definition:{type:3,node:Hn(Fe,dt=>to(dt.node.parent)?dt.node:void 0)||ot},references:Fe}]}function Ni(ot,Ft,le,ht){let ne=n7(ot,le),Fe=Ki(Ft,it=>(ht.throwIfCancellationRequested(),Ui(fe(it,ot.text),dt=>{if(cs(dt)&&dt.text===ot.text)if(ne){let Lt=n7(dt,le);if(ne!==le.getStringType()&&(ne===Lt||Pr(dt,le)))return yy(dt,2)}else return lE(dt)&&!rE(dt,it)?void 0:yy(dt,2)})));return[{definition:{type:4,node:ot},references:Fe}]}function Pr(ot,Ft){if(Tu(ot.parent))return Ft.getPropertyOfType(Ft.getTypeAtLocation(ot.parent.parent),ot.text)}function Ci(ot,Ft,le,ht,ne,Fe){let it=[];return $e(ot,Ft,le,ht,!(ht&&ne),(dt,Lt,Ue)=>{Ue&&mn(ot)!==mn(Ue)&&(Ue=void 0),it.push(Ue||Lt||dt)},()=>!Fe),it}function $e(ot,Ft,le,ht,ne,Fe,it){let dt=PO(Ft);if(dt){let Kt=le.getShorthandAssignmentValueSymbol(Ft.parent);if(Kt&&ht)return Fe(Kt,void 0,void 0,3);let Sr=le.getContextualType(dt.parent),Oe=Sr&&Hn(Y7(dt,le,Sr,!0),Ae=>Ot(Ae,4));if(Oe)return Oe;let Nt=q(Ft,le),_e=Nt&&Fe(Nt,void 0,void 0,4);if(_e)return _e;let B=Kt&&Fe(Kt,void 0,void 0,3);if(B)return B}let Lt=s(Ft,ot,le);if(Lt){let Kt=Fe(Lt,void 0,void 0,1);if(Kt)return Kt}let Ue=Ot(ot);if(Ue)return Ue;if(ot.valueDeclaration&&Dp(ot.valueDeclaration,ot.valueDeclaration.parent)){let Kt=le.getSymbolsOfParameterPropertyDeclaration(ma(ot.valueDeclaration,to),ot.name);return C.assert(Kt.length===2&&!!(Kt[0].flags&1)&&!!(Kt[1].flags&4)),Ot(ot.flags&1?Kt[1]:Kt[0])}let Rt=al(ot,282);if(!ht||Rt&&!Rt.propertyName){let Kt=Rt&&le.getExportSpecifierLocalTargetSymbol(Rt);if(Kt){let Sr=Fe(Kt,void 0,void 0,1);if(Sr)return Sr}}if(!ht){let Kt;return ne?Kt=mO(Ft.parent)?m7(le,Ft.parent):void 0:Kt=nt(ot,le),Kt&&Ot(Kt,4)}if(C.assert(ht),ne){let Kt=nt(ot,le);return Kt&&Ot(Kt,4)}function Ot(Kt,Sr){return Hn(le.getRootSymbols(Kt),Oe=>Fe(Kt,Oe,void 0,Sr)||(Oe.parent&&Oe.parent.flags&96&&it(Oe)?At(Oe.parent,Oe.name,le,Nt=>Fe(Kt,Oe,Nt,Sr)):void 0))}function nt(Kt,Sr){let Oe=al(Kt,209);if(Oe&&mO(Oe))return m7(Sr,Oe)}}function At(ot,Ft,le,ht){let ne=new Set;return Fe(ot);function Fe(it){if(!(!(it.flags&96)||!_m(ne,it)))return Hn(it.declarations,dt=>Hn(eM(dt),Lt=>{let Ue=le.getTypeAtLocation(Lt),Rt=Ue.symbol&&le.getPropertyOfType(Ue,Ft);return Rt&&Hn(le.getRootSymbols(Rt),ht)||Ue.symbol&&Fe(Ue.symbol)}))}}function mn(ot){return ot.valueDeclaration?!!(Gd(ot.valueDeclaration)&256):!1}function dr(ot,Ft,le,ht){let{checker:ne}=ht;return $e(Ft,le,ne,!1,ht.options.use!==2||!!ht.options.providePrefixAndSuffixTextForRename,(Fe,it,dt,Lt)=>(dt&&mn(Ft)!==mn(dt)&&(dt=void 0),ot.includes(dt||it||Fe)?{symbol:it&&!(Wl(Fe)&6)?it:Fe,kind:Lt}:void 0),Fe=>!(ot.parents&&!ot.parents.some(it=>lo(Fe.parent,it,ht.inheritsFromCache,ne))))}function ri(ot,Ft){let le=DE(ot),{declarations:ht}=Ft;if(ht){let ne;do{ne=le;for(let Fe of ht){let it=KF(Fe);it&le&&(le|=it)}}while(le!==ne)}return le}e.getIntersectingMeaningFromDeclarations=ri;function ai(ot){return ot.flags&33554432?!(gd(ot)||ym(ot)):VN(ot)?Yy(ot):Ms(ot)?!!ot.body:ui(ot)||kL(ot)}function qi(ot,Ft,le){let ht=Ft.getSymbolAtLocation(ot),ne=Ft.getShorthandAssignmentValueSymbol(ht.valueDeclaration);if(ne)for(let Fe of ne.getDeclarations())KF(Fe)&1&&le(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=qi;function $o(ot,Ft,le){Jo(ot,ht=>{ht.kind===Ft&&le(ht),$o(ht,Ft,le)})}function Ia(ot){return eV(YF(ot).parent)}function Mn(ot,Ft,le){let ht=VD(ot)?ot.parent:void 0,ne=ht&&le.getTypeAtLocation(ht.expression),Fe=Ui(ne&&(ne.isUnionOrIntersection()?ne.types:ne.symbol===Ft.parent?void 0:[ne]),it=>it.symbol&&it.symbol.flags&96?it.symbol:void 0);return Fe.length===0?void 0:Fe}function Uo(ot){return ot.use===2&&ot.providePrefixAndSuffixTextForRename}})(mx||(mx={}));var iC={};x(iC,{createDefinitionInfo:()=>jO,getDefinitionAndBoundSpan:()=>Mnt,getDefinitionAtPosition:()=>sLe,getReferenceAtPosition:()=>cLe,getTypeDefinitionAtPosition:()=>Cnt});function sLe(e,t,r,i,o){var s;let l=cLe(t,r,e),u=l&&[Ont(l.reference.fileName,l.fileName,l.unverified)]||ae;if(l?.file)return u;let d=np(t,r);if(d===t)return;let{parent:g}=d,_=e.getTypeChecker();if(d.kind===164||He(d)&&m3(g)&&g.tagName===d){let k=xnt(_,d);if(k!==void 0||d.kind!==164)return k||ae}if(aO(d)){let k=$F(d.parent,d.text);return k?[gfe(_,k,"label",d.text,void 0)]:void 0}switch(d.kind){case 90:if(!jM(d.parent))break;case 84:let k=Dn(d.parent,GM);if(k)return[wnt(k,t)];break}let v;switch(d.kind){case 107:case 135:case 127:v=Ms;let k=Dn(d,v);return k?[vfe(_,k)]:void 0}if(LI(d)&&$l(d.parent)){let k=d.parent.parent,{symbol:F,failedAliasResolution:O}=BK(k,_,o),G=Un(k.members,$l),j=F?_.symbolToString(F,k):"",J=d.getSourceFile();return Vt(G,Z=>{let{pos:q}=Xh(Z);return q=La(J.text,q),gfe(_,Z,"constructor","static {}",j,!1,O,{start:q,length:6})})}let{symbol:E,failedAliasResolution:A}=BK(d,_,o),R=d;if(i&&A){let k=Je([d,...E?.declarations||ae],O=>Dn(O,kte)),F=k&&sI(k);F&&({symbol:E,failedAliasResolution:A}=BK(F,_,o),R=F)}if(!E&&f7(R)){let k=(s=e.getResolvedModuleFromModuleSpecifier(R,t))==null?void 0:s.resolvedModule;if(k)return[{name:R.text,fileName:k.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Id(0,0),failedAliasResolution:A,isAmbient:ad(k.resolvedFileName),unverified:R!==d}]}if(Aa(d)&&(Tc(g)||nd(g))&&(E=g.symbol),!E)return so(u,Pnt(d,_));if(i&&Vn(E.declarations,k=>k.getSourceFile().fileName===t.fileName))return;let N=Fnt(_,d);if(N&&!(nu(d.parent)&&znt(N))){let k=vfe(_,N,A),F=G=>G!==N;if(_.getRootSymbols(E).some(G=>Int(G,N))){if(!Ml(N))return[k];F=G=>G!==N&&(Cc(G)||uc(G))}let O=qP(_,E,d,A,F)||ae;return d.kind===108?[k,...O]:[...O,k]}if(d.parent.kind===305){let k=_.getShorthandAssignmentValueSymbol(E.valueDeclaration),F=k?.declarations?k.declarations.map(O=>jO(O,_,k,d,!1,A)):ae;return so(F,lLe(_,d))}if(bc(d)&&Ha(g)&&pf(g.parent)&&d===(g.propertyName||g.name)){let k=fO(d),F=_.getTypeAtLocation(g.parent);return k===void 0?ae:Ki(F.isUnion()?F.types:[F],O=>{let G=O.getProperty(k);return G&&qP(_,G,d)})}let P=lLe(_,d);return so(u,P.length?P:qP(_,E,d,A))}function Int(e,t){var r;return e===t.symbol||e===t.symbol.parent||id(t.parent)||!c1(t.parent)&&e===((r=ni(t.parent,ah))==null?void 0:r.symbol)}function lLe(e,t){let r=PO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return Ki(Y7(r,e,i,!1),o=>qP(e,o,t))}return ae}function xnt(e,t){let r=Dn(t,Tc);if(!(r&&r.name))return;let i=Dn(r,ui);if(!i)return;let o=lh(i);if(!o)return;let s=ds(o.expression),l=uc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let u=Wc(r)?e.getTypeOfSymbol(l):e.getDeclaredTypeOfSymbol(l),d;if(va(r.name)){let g=e.getSymbolAtLocation(r.name);if(!g)return;iM(g)?d=hn(e.getPropertiesOfType(u),_=>_.escapedName===g.escapedName):d=e.getPropertyOfType(u,Vi(g.escapedName))}else d=e.getPropertyOfType(u,Vi(oI(r.name)));if(d)return qP(e,d,t)}function cLe(e,t,r){var i,o;let s=UO(e.referencedFiles,t);if(s){let d=r.getSourceFileFromReference(e,s);return d&&{reference:s,fileName:d.fileName,file:d,unverified:!1}}let l=UO(e.typeReferenceDirectives,t);if(l){let d=(i=r.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(l,e))==null?void 0:i.resolvedTypeReferenceDirective,g=d&&r.getSourceFile(d.resolvedFileName);return g&&{reference:l,fileName:g.fileName,file:g,unverified:!1}}let u=UO(e.libReferenceDirectives,t);if(u){let d=r.getLibFileFromReference(u);return d&&{reference:u,fileName:d.fileName,file:d,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let d=HD(e,t),g;if(f7(d)&&td(d.text)&&(g=r.getResolvedModuleFromModuleSpecifier(d,e))){let _=(o=g.resolvedModule)==null?void 0:o.resolvedFileName,v=_||rb(ci(e.fileName),d.text);return{file:r.getSourceFile(v),fileName:v,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!_}}}}var dLe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Rnt(e,t){let r=t.symbol.name;if(!dLe.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function uLe(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!dLe.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function Dnt(e,t,r,i){var o,s;if(Hr(t)&4&&Rnt(e,t))return VO(e.getTypeArguments(t)[0],e,r,i);if(uLe(e,t)&&t.aliasTypeArguments)return VO(t.aliasTypeArguments[0],e,r,i);if(Hr(t)&32&&t.target&&uLe(e,t.target)){let l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&ym(l)&&wp(l.type)&&l.type.typeArguments)return VO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function Cnt(e,t,r){let i=np(t,r);if(i===t)return;if(zR(i.parent)&&i.parent.name===i)return VO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=BK(i,e,!1);if(Aa(i)&&(Tc(i.parent)||nd(i.parent))&&(o=i.parent.symbol,s=!1),!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),u=Nnt(o,l,e),d=u&&VO(u,e,i,s),[g,_]=d&&d.length!==0?[u,d]:[l,VO(l,e,i,s)];return _.length?[...Dnt(e,g,i,s),..._]:!(o.flags&111551)&&o.flags&788968?qP(e,xd(o,e),i,s):void 0}function VO(e,t,r,i){return Ki(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&qP(t,o.symbol,r,i))}function Nnt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&yi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature($a(i))}}function Mnt(e,t,r){let i=sLe(e,t,r);if(!i||i.length===0)return;let o=UO(t.referencedFiles,r)||UO(t.typeReferenceDirectives,r)||UO(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:fv(o)};let s=np(t,r),l=Id(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function Pnt(e,t){return Ui(t.getIndexInfosAtLocation(e),r=>r.declaration&&vfe(t,r.declaration))}function BK(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&Lnt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function Lnt(e,t){return e.kind!==80&&(e.kind!==11||!lb(e.parent))?!1:e.parent===t?!0:t.kind!==275}function knt(e){if(!KN(e))return!1;let t=Dn(e,r=>id(r)?!0:KN(r)?!1:"quit");return!!t&&oc(t)===5}function qP(e,t,r,i,o){let s=o!==void 0?Un(t.declarations,o):t.declarations,l=!o&&(g()||_());if(l)return l;let u=Un(s,E=>!knt(E)),d=vt(u)?u:s;return Vt(d,E=>jO(E,e,t,r,!1,i));function g(){if(t.flags&32&&!(t.flags&19)&&(SP(r)||r.kind===137)){let E=hn(s,ui);return E&&v(E.members,!0)}}function _(){return uq(r)||yq(r)?v(s,!1):void 0}function v(E,A){if(!E)return;let R=E.filter(A?Ml:Yo),N=R.filter(P=>!!P.body);return R.length?N.length!==0?N.map(P=>jO(P,e,t,r)):[jO(Ba(R),e,t,r,!1,i)]:void 0}}function jO(e,t,r,i,o,s){let l=t.symbolToString(r),u=_v.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return gfe(t,e,u,l,d,o,s)}function gfe(e,t,r,i,o,s,l,u){let d=t.getSourceFile();if(!u){let g=Oo(t)||t;u=Fu(g,d)}return{fileName:d.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Ys.toContextSpan(u,d,Ys.getContextNode(t)),isLocal:!yfe(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function wnt(e,t){let r=Ys.getContextNode(e),i=Fu(mfe(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ys.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function yfe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Yy(t.parent)&&t.parent.initializer===t)return yfe(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(Lp(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return yfe(e,t.parent);default:return!1}}function vfe(e,t,r){return jO(t,e,t.symbol,t,!1,r)}function UO(e,t){return hn(e,r=>vL(r,t))}function Ont(e,t,r){return{fileName:t,textSpan:ic(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function Wnt(e){let t=Dn(e,i=>!VD(i)),r=t?.parent;return r&&c1(r)&&B6(r)===t?r:void 0}function Fnt(e,t){let r=Wnt(t),i=r&&e.getResolvedSignature(r);return ni(i&&i.declaration,o=>Yo(o)&&!k_(o))}function znt(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}var GK={};x(GK,{provideInlayHints:()=>jnt});var Bnt=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Gnt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Vnt(e){return e.includeInlayParameterNameHints==="literals"}function bfe(e){return e.interactiveInlayHints===!0}function jnt(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),d=zp(t,s),g=r.getTypeChecker(),_=[];return v(t),_;function v(Se){if(!(!Se||Se.getFullWidth()===0)){switch(Se.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:o.throwIfCancellationRequested()}if(bL(i,Se.pos,Se.getFullWidth())&&!(Ri(Se)&&!dy(Se)))return s.includeInlayVariableTypeHints&&yi(Se)||s.includeInlayPropertyDeclarationTypeHints&&Po(Se)?F(Se):s.includeInlayEnumMemberValueHints&&py(Se)?P(Se):Gnt(s)&&(Zo(Se)||L1(Se))?O(Se):(s.includeInlayFunctionParameterTypeHints&&Ms(Se)&&GW(Se)&&ye(Se),s.includeInlayFunctionLikeReturnTypeHints&&E(Se)&&Z(Se)),Jo(Se,v)}}function E(Se){return Xs(Se)||Us(Se)||Ql(Se)||Nl(Se)||jf(Se)}function A(Se,re,be,Ne){let Be=`${Ne?"...":""}${Se}`,lt;bfe(s)?(lt=[Xe(Be,re),{text:":"}],Be=""):Be+=":",_.push({text:Be,position:be,kind:"Parameter",whitespaceAfter:!0,displayParts:lt})}function R(Se,re){_.push({text:typeof Se=="string"?`: ${Se}`:"",displayParts:typeof Se=="string"?void 0:[{text:": "},...Se],position:re,kind:"Type",whitespaceBefore:!0})}function N(Se,re){_.push({text:`= ${Se}`,position:re,kind:"Enum",whitespaceBefore:!0})}function P(Se){if(Se.initializer)return;let re=g.getConstantValue(Se);re!==void 0&&N(re.toString(),Se.end)}function k(Se){return Se.symbol&&Se.symbol.flags&1536}function F(Se){if(Se.initializer===void 0&&!(Po(Se)&&!(g.getTypeAtLocation(Se).flags&1))||Qo(Se.name)||yi(Se)&&!Ce(Se)||Rc(Se))return;let be=g.getTypeAtLocation(Se);if(k(be))return;let Ne=fe(be);if(Ne){let Be=typeof Ne=="string"?Ne:Ne.map(ce=>ce.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&eb(Se.name.getText(),Be))return;R(Ne,Se.name.end)}}function O(Se){let re=Se.arguments;if(!re||!re.length)return;let be=g.getResolvedSignature(Se);if(be===void 0)return;let Ne=0;for(let Be of re){let lt=ds(Be);if(Vnt(s)&&!J(lt)){Ne++;continue}let ce=0;if(Uf(lt)){let ge=g.getTypeAtLocation(lt.expression);if(g.isTupleType(ge)){let{elementFlags:je,fixedLength:Ge}=ge.target;if(Ge===0)continue;let We=ho(je,Wt=>!(Wt&1));(We<0?Ge:We)>0&&(ce=We<0?Ge:We)}}let De=g.getParameterIdentifierInfoAtPosition(be,Ne);if(Ne=Ne+(ce||1),De){let{parameter:ge,parameterName:je,isRestParameter:Ge}=De;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!G(lt,je))&&!Ge)continue;let at=Vi(je);if(j(lt,at))continue;A(at,ge,Be.getStart(),Ge)}}}function G(Se,re){return He(Se)?Se.text===re:qr(Se)?Se.name.text===re:!1}function j(Se,re){if(!pp(re,Ga(u),Pk(t.scriptKind)))return!1;let be=sg(l,Se.pos);if(!be?.length)return!1;let Ne=Bnt(re);return vt(be,Be=>Ne.test(l.substring(Be.pos,Be.end)))}function J(Se){switch(Se.kind){case 225:{let re=Se.operand;return BS(re)||He(re)&&RM(re.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{let re=Se.escapedText;return Y(re)||RM(re)}}return BS(Se)}function Z(Se){if(Xs(Se)&&!Es(Se,21,t)||Pp(Se)||!Se.body)return;let be=g.getSignatureFromDeclaration(Se);if(!be)return;let Ne=g.getTypePredicateOfSignature(be);if(Ne?.type){let ce=ve(Ne);if(ce){R(ce,q(Se));return}}let Be=g.getReturnTypeOfSignature(be);if(k(Be))return;let lt=fe(Be);lt&&R(lt,q(Se))}function q(Se){let re=Es(Se,22,t);return re?re.end:Se.parameters.end}function ye(Se){let re=g.getSignatureFromDeclaration(Se);if(!re)return;let be=0;for(let Ne of Se.parameters)Ce(Ne)&&ie(Ne,vb(Ne)?re.thisParameter:re.parameters[be]),!vb(Ne)&&be++}function ie(Se,re){if(Rc(Se)||re===void 0)return;let Ne=K(re);Ne!==void 0&&R(Ne,Se.questionToken?Se.questionToken.end:Se.name.end)}function K(Se){let re=Se.valueDeclaration;if(!re||!to(re))return;let be=g.getTypeOfSymbolAtLocation(Se,re);if(!k(be))return fe(be)}function pe(Se){let be=V1();return kR(Ne=>{let Be=g.typeToTypeNode(Se,void 0,71286784);C.assertIsDefined(Be,"should always get typenode"),be.writeNode(4,Be,t,Ne)})}function de(Se){let be=V1();return kR(Ne=>{let Be=g.typePredicateToTypePredicateNode(Se,void 0,71286784);C.assertIsDefined(Be,"should always get typePredicateNode"),be.writeNode(4,Be,t,Ne)})}function fe(Se){if(!bfe(s))return pe(Se);let be=g.typeToTypeNode(Se,void 0,71286784);return C.assertIsDefined(be,"should always get typeNode"),xe(be)}function ve(Se){if(!bfe(s))return de(Se);let be=g.typePredicateToTypePredicateNode(Se,void 0,71286784);return C.assertIsDefined(be,"should always get typenode"),xe(be)}function xe(Se){let re=[];return be(Se),re;function be(ce){var De,ge;if(!ce)return;let je=_a(ce.kind);if(je){re.push({text:je});return}if(BS(ce)){re.push({text:lt(ce)});return}switch(ce.kind){case 80:C.assertNode(ce,He);let Ge=Kr(ce),We=ce.symbol&&ce.symbol.declarations&&ce.symbol.declarations.length&&Oo(ce.symbol.declarations[0]);We?re.push(Xe(Ge,We)):re.push({text:Ge});break;case 167:C.assertNode(ce,Lu),be(ce.left),re.push({text:"."}),be(ce.right);break;case 183:C.assertNode(ce,wI),ce.assertsModifier&&re.push({text:"asserts "}),be(ce.parameterName),ce.type&&(re.push({text:" is "}),be(ce.type));break;case 184:C.assertNode(ce,wp),be(ce.typeName),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 169:C.assertNode(ce,sl),ce.modifiers&&Be(ce.modifiers," "),be(ce.name),ce.constraint&&(re.push({text:" extends "}),be(ce.constraint)),ce.default&&(re.push({text:" = "}),be(ce.default));break;case 170:C.assertNode(ce,to),ce.modifiers&&Be(ce.modifiers," "),ce.dotDotDotToken&&re.push({text:"..."}),be(ce.name),ce.questionToken&&re.push({text:"?"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 186:C.assertNode(ce,dD),re.push({text:"new "}),Ne(ce),re.push({text:" => "}),be(ce.type);break;case 187:C.assertNode(ce,N1),re.push({text:"typeof "}),be(ce.exprName),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 188:C.assertNode(ce,ku),re.push({text:"{"}),ce.members.length&&(re.push({text:" "}),Be(ce.members,"; "),re.push({text:" "})),re.push({text:"}"});break;case 189:C.assertNode(ce,iw),be(ce.elementType),re.push({text:"[]"});break;case 190:C.assertNode(ce,OI),re.push({text:"["}),Be(ce.elements,", "),re.push({text:"]"});break;case 203:C.assertNode(ce,uD),ce.dotDotDotToken&&re.push({text:"..."}),be(ce.name),ce.questionToken&&re.push({text:"?"}),re.push({text:": "}),be(ce.type);break;case 191:C.assertNode(ce,a3),be(ce.type),re.push({text:"?"});break;case 192:C.assertNode(ce,s3),re.push({text:"..."}),be(ce.type);break;case 193:C.assertNode(ce,sv),Be(ce.types," | ");break;case 194:C.assertNode(ce,WI),Be(ce.types," & ");break;case 195:C.assertNode(ce,M1),be(ce.checkType),re.push({text:" extends "}),be(ce.extendsType),re.push({text:" ? "}),be(ce.trueType),re.push({text:" : "}),be(ce.falseType);break;case 196:C.assertNode(ce,cE),re.push({text:"infer "}),be(ce.typeParameter);break;case 197:C.assertNode(ce,dE),re.push({text:"("}),be(ce.type),re.push({text:")"});break;case 199:C.assertNode(ce,G0),re.push({text:`${_a(ce.operator)} `}),be(ce.type);break;case 200:C.assertNode(ce,P1),be(ce.objectType),re.push({text:"["}),be(ce.indexType),re.push({text:"]"});break;case 201:C.assertNode(ce,uE),re.push({text:"{ "}),ce.readonlyToken&&(ce.readonlyToken.kind===40?re.push({text:"+"}):ce.readonlyToken.kind===41&&re.push({text:"-"}),re.push({text:"readonly "})),re.push({text:"["}),be(ce.typeParameter),ce.nameType&&(re.push({text:" as "}),be(ce.nameType)),re.push({text:"]"}),ce.questionToken&&(ce.questionToken.kind===40?re.push({text:"+"}):ce.questionToken.kind===41&&re.push({text:"-"}),re.push({text:"?"})),re.push({text:": "}),ce.type&&be(ce.type),re.push({text:"; }"});break;case 202:C.assertNode(ce,lv),be(ce.literal);break;case 185:C.assertNode(ce,k_),Ne(ce),re.push({text:" => "}),be(ce.type);break;case 206:C.assertNode(ce,Zh),ce.isTypeOf&&re.push({text:"typeof "}),re.push({text:"import("}),be(ce.argument),ce.assertions&&(re.push({text:", { assert: "}),Be(ce.assertions.assertClause.elements,", "),re.push({text:" }"})),re.push({text:")"}),ce.qualifier&&(re.push({text:"."}),be(ce.qualifier)),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 172:C.assertNode(ce,Tu),(De=ce.modifiers)!=null&&De.length&&(Be(ce.modifiers," "),re.push({text:" "})),be(ce.name),ce.questionToken&&re.push({text:"?"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 182:C.assertNode(ce,Db),re.push({text:"["}),Be(ce.parameters,", "),re.push({text:"]"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 174:C.assertNode(ce,Bm),(ge=ce.modifiers)!=null&&ge.length&&(Be(ce.modifiers," "),re.push({text:" "})),be(ce.name),ce.questionToken&&re.push({text:"?"}),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 180:C.assertNode(ce,kI),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 181:C.assertNode(ce,FM),re.push({text:"new "}),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 208:C.assertNode(ce,cv),re.push({text:"["}),Be(ce.elements,", "),re.push({text:"]"});break;case 207:C.assertNode(ce,pf),re.push({text:"{"}),ce.elements.length&&(re.push({text:" "}),Be(ce.elements,", "),re.push({text:" "})),re.push({text:"}"});break;case 209:C.assertNode(ce,Ha),be(ce.name);break;case 225:C.assertNode(ce,j0),re.push({text:_a(ce.operator)}),be(ce.operand);break;case 204:C.assertNode(ce,gie),be(ce.head),ce.templateSpans.forEach(be);break;case 16:C.assertNode(ce,MI),re.push({text:lt(ce)});break;case 205:C.assertNode(ce,sj),be(ce.type),be(ce.literal);break;case 17:C.assertNode(ce,nj),re.push({text:lt(ce)});break;case 18:C.assertNode(ce,n3),re.push({text:lt(ce)});break;case 198:C.assertNode(ce,zM),re.push({text:"this"});break;case 168:C.assertNode(ce,va),re.push({text:"["}),be(ce.expression),re.push({text:"]"});break;default:C.failBadSyntaxKind(ce)}}function Ne(ce){ce.typeParameters&&(re.push({text:"<"}),Be(ce.typeParameters,", "),re.push({text:">"})),re.push({text:"("}),Be(ce.parameters,", "),re.push({text:")"})}function Be(ce,De){ce.forEach((ge,je)=>{je>0&&re.push({text:De}),be(ge)})}function lt(ce){switch(ce.kind){case 11:return d===0?`'${L_(ce.text,39)}'`:`"${L_(ce.text,34)}"`;case 16:case 17:case 18:{let De=ce.rawText??zG(L_(ce.text,96));switch(ce.kind){case 16:return"`"+De+"${";case 17:return"}"+De+"${";case 18:return"}"+De+"`"}}}return ce.text}}function Y(Se){return Se==="undefined"}function Ce(Se){if((O0(Se)||yi(Se)&&FR(Se))&&Se.initializer){let re=ds(Se.initializer);return!(J(re)||L1(re)||Wa(re)||d1(re))}return!0}function Xe(Se,re){let be=re.getSourceFile();return{text:Se,span:Fu(re,be),file:be.fileName}}}var uT={};x(uT,{getDocCommentTemplateAtPosition:()=>ert,getJSDocParameterNameCompletionDetails:()=>Znt,getJSDocParameterNameCompletions:()=>Qnt,getJSDocTagCompletionDetails:()=>yLe,getJSDocTagCompletions:()=>$nt,getJSDocTagNameCompletionDetails:()=>Ynt,getJSDocTagNameCompletions:()=>Xnt,getJsDocCommentsFromDeclarations:()=>Unt,getJsDocTagsFromDeclarations:()=>Jnt});var pLe=["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","import","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"],fLe,mLe;function Unt(e,t){let r=[];return jq(e,i=>{for(let o of qnt(i)){let s=mh(o)&&o.tags&&hn(o.tags,u=>u.kind===328&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||mh(o)&&i.kind!==347&&i.kind!==339&&o.tags&&o.tags.some(u=>u.kind===347||u.kind===339)&&!o.tags.some(u=>u.kind===342||u.kind===343))continue;let l=o.comment?oC(o.comment,t):[];s&&s.comment&&(l=l.concat(oC(s.comment,t))),jn(r,l,Hnt)||r.push(l)}}),la(bo(r,[XD()]))}function Hnt(e,t){return $p(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function qnt(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(bD(e.parent))return[e.parent.parent];default:return AG(e)}}function Jnt(e,t){let r=[];return jq(e,i=>{let o=R0(i);if(!(o.some(s=>s.kind===347||s.kind===339)&&!o.some(s=>s.kind===342||s.kind===343)))for(let s of o)r.push({name:s.tagName.text,text:gLe(s,t)}),r.push(...hLe(_Le(s),t))}),r}function hLe(e,t){return Ki(e,r=>so([{name:r.tagName.text,text:gLe(r,t)}],hLe(_Le(r),t)))}function _Le(e){return PN(e)&&e.isNameFirst&&e.typeExpression&&gE(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function oC(e,t){return typeof e=="string"?[gf(e)]:Ki(e,r=>r.kind===322?[gf(r.text)]:nce(r,t))}function gLe(e,t){let{comment:r,kind:i}=e,o=Knt(i);switch(i){case 350:let u=e.typeExpression;return u?s(u):r===void 0?void 0:oC(r,t);case 330:return s(e.class);case 329:return s(e.class);case 346:let d=e,g=[];if(d.constraint&&g.push(gf(d.constraint.getText())),et(d.typeParameters)){et(g)&&g.push(zl());let v=d.typeParameters[d.typeParameters.length-1];Je(d.typeParameters,E=>{g.push(o(E.getText())),v!==E&&g.push(su(28),zl())})}return r&&g.push(zl(),...oC(r,t)),g;case 345:case 351:return s(e.typeExpression);case 347:case 339:case 349:case 342:case 348:let{name:_}=e;return _?s(_):r===void 0?void 0:oC(r,t);default:return r===void 0?void 0:oC(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[gf(u),...oC(r,t)]:[o(u),zl(),...oC(r,t)]:[gf(u)]}}function Knt(e){switch(e){case 342:return $le;case 349:return Qle;case 346:return ece;case 347:case 339:return Zle;default:return gf}}function Xnt(){return fLe||(fLe=Vt(pLe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:fx.SortText.LocationPriority})))}var Ynt=yLe;function $nt(){return mLe||(mLe=Vt(pLe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:fx.SortText.LocationPriority})))}function yLe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[gf(e)],documentation:ae,tags:void 0,codeActions:void 0}}function Qnt(e){if(!He(e.name))return ae;let t=e.name.text,r=e.parent,i=r.parent;return Yo(i)?Ui(i.parameters,o=>{if(!He(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&ff(l)&&He(l.name)&&l.name.escapedText===s)||t!==void 0&&!po(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:fx.SortText.LocationPriority}}):[]}function Znt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[gf(e)],documentation:ae,tags:void 0,codeActions:void 0}}function ert(e,t,r,i){let o=Fi(t,r),s=Dn(o,mh);if(s&&(s.comment!==void 0||et(s.tags)))return;let l=o.getStart(t);if(!s&&l<r)return;let u=irt(o,i);if(!u)return;let{commentOwner:d,parameters:g,hasReturn:_}=u,v=Zp(d)&&d.jsDoc?d.jsDoc:void 0,E=Zs(v);if(d.getStart(t)<r||E&&s&&E!==s)return;let A=trt(t,r),R=bg(t.fileName),N=(g?nrt(g||[],R,A,e):"")+(_?rrt(A,e):""),P="/**",k=" */",F=et(R0(d))>0;if(N&&!F){let O=P+e+A+" * ",G=l===r?e+A:"";return{newText:O+e+N+A+k+G,caretOffset:O.length}}return{newText:P+k,caretOffset:3}}function trt(e,t){let{text:r}=e,i=Sm(t,e),o=i;for(;o<=t&&zh(r.charCodeAt(o));o++);return r.slice(i,o)}function nrt(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{let u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function rrt(e,t){return`${e} * @returns${t}`}function irt(e,t){return Ste(e,r=>Tfe(r,t))}function Tfe(e,t){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:u5(r,t)};case 304:return Tfe(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{let o=e;return o.type&&k_(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:u5(o.type,t)}:{commentOwner:e}}case 244:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?ort(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:u5(l,t)}:{commentOwner:e}}case 308:return"quit";case 268:return e.parent.kind===268?void 0:{commentOwner:e};case 245:return Tfe(e.expression,t);case 227:{let o=e;return oc(o)===0?"quit":Yo(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:u5(o.right,t)}:{commentOwner:e}}case 173:let i=e.initializer;if(i&&(Us(i)||Xs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:u5(i,t)}}}function u5(e,t){return!!t?.generateReturnInDocTemplate&&(k_(e)||Xs(e)&&St(e.body)||Ms(e)&&e.body&&ea(e.body)&&!!_b(e.body,r=>r))}function ort(e){for(;e.kind===218;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return hn(e.members,Ml)}}var VK={};x(VK,{mapCode:()=>art});function art(e,t,r,i,o,s){return Rr.ChangeTracker.with({host:i,formatContext:o,preferences:s},l=>{let u=t.map(g=>srt(e,g)),d=r&&la(r);for(let g of u)lrt(e,l,g,d)})}function srt(e,t){let r=[{parse:()=>HI("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:s=>s.statements},{parse:()=>HI("__mapcode_class_content_nodes.ts",`class __class {
${t}
}`,e.languageVersion,!0,e.scriptKind),body:s=>s.statements[0].members}],i=[];for(let{parse:s,body:l}of r){let u=s(),d=l(u);if(d.length&&u.parseDiagnostics.length===0)return d;d.length&&i.push({sourceFile:u,body:d})}i.sort((s,l)=>s.sourceFile.parseDiagnostics.length-l.sourceFile.parseDiagnostics.length);let{body:o}=i[0];return o}function lrt(e,t,r,i){Tc(r[0])||l1(r[0])?crt(e,t,r,i):drt(e,t,r,i)}function crt(e,t,r,i){let o;if(!i||!i.length?o=hn(e.statements,Ip(ui,gd)):o=Je(i,l=>Dn(Fi(e,l.start),Ip(ui,gd))),!o)return;let s=o.members.find(l=>r.some(u=>p5(u,l)));if(s){let l=ga(o.members,u=>r.some(d=>p5(d,u)));Je(r,jK),t.replaceNodeRangeWithNodes(e,s,l,r);return}Je(r,jK),t.insertNodesAfter(e,o.members[o.members.length-1],r)}function drt(e,t,r,i){if(!i?.length){t.insertNodesAtEndOfFile(e,r,!1);return}for(let s of i){let l=Dn(Fi(e,s.start),u=>Ip(ea,Yi)(u)&&vt(u.statements,d=>r.some(g=>p5(g,d))));if(l){let u=l.statements.find(d=>r.some(g=>p5(g,d)));if(u){let d=ga(l.statements,g=>r.some(_=>p5(_,g)));Je(r,jK),t.replaceNodeRangeWithNodes(e,u,d,r);return}}}let o=e.statements;for(let s of i){let l=Dn(Fi(e,s.start),ea);if(l){o=l.statements;break}}Je(r,jK),t.insertNodesAfter(e,o[o.length-1],r)}function p5(e,t){var r,i,o,s,l,u;return e.kind!==t.kind?!1:e.kind===177?e.kind===t.kind:nd(e)&&nd(t)?e.name.getText()===t.name.getText():U0(e)&&U0(t)||dj(e)&&dj(t)?e.expression.getText()===t.expression.getText():H0(e)&&H0(t)?((r=e.initializer)==null?void 0:r.getText())===((i=t.initializer)==null?void 0:i.getText())&&((o=e.incrementor)==null?void 0:o.getText())===((s=t.incrementor)==null?void 0:s.getText())&&((l=e.condition)==null?void 0:l.getText())===((u=t.condition)==null?void 0:u.getText()):jS(e)&&jS(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():Nb(e)&&Nb(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function jK(e){vLe(e),e.parent=void 0}function vLe(e){e.pos=-1,e.end=-1,e.forEachChild(vLe)}var pT={};x(pT,{compareImportsOrRequireStatements:()=>Cfe,compareModuleSpecifiers:()=>Crt,getImportDeclarationInsertionIndex:()=>Irt,getImportSpecifierInsertionIndex:()=>xrt,getNamedImportSpecifierComparerWithDetection:()=>Art,getOrganizeImportsStringComparerWithDetection:()=>Ert,organizeImports:()=>urt,testCoalesceExports:()=>Drt,testCoalesceImports:()=>Rrt});function urt(e,t,r,i,o,s){let l=Rr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",d=u,g=s==="RemoveUnused"||s==="All",_=e.statements.filter(vl),v=Efe(e,_),{comparersToTest:E,typeOrdersToTest:A}=Sfe(o),R=E[0],N={moduleSpecifierComparer:typeof o.organizeImportsIgnoreCase=="boolean"?R:void 0,namedImportComparer:typeof o.organizeImportsIgnoreCase=="boolean"?R:void 0,typeOrder:o.organizeImportsTypeOrder};if(typeof o.organizeImportsIgnoreCase!="boolean"&&({comparer:N.moduleSpecifierComparer}=SLe(v,E)),!N.typeOrder||typeof o.organizeImportsIgnoreCase!="boolean"){let O=Rfe(_,E,A);if(O){let{namedImportComparer:G,typeOrder:j}=O;N.namedImportComparer=N.namedImportComparer??G,N.typeOrder=N.typeOrder??j}}v.forEach(O=>k(O,N)),s!=="RemoveUnused"&&frt(e).forEach(O=>F(O,N.namedImportComparer));for(let O of e.statements.filter(gu)){if(!O.body)continue;if(Efe(e,O.body.statements.filter(vl)).forEach(j=>k(j,N)),s!=="RemoveUnused"){let j=O.body.statements.filter(fc);F(j,N.namedImportComparer)}}return l.getChanges();function P(O,G){if(et(O)===0)return;Cr(O[0],1024);let j=d?_R(O,q=>f5(q.moduleSpecifier)):[O],J=u?Ap(j,(q,ye)=>Ife(q[0].moduleSpecifier,ye[0].moduleSpecifier,N.moduleSpecifierComparer??R)):j,Z=Ki(J,q=>f5(q[0].moduleSpecifier)||q[0].moduleSpecifier===void 0?G(q):q);if(Z.length===0)l.deleteNodes(e,O,{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Include},!0);else{let q={leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Include,suffix:_y(r,t.options)};l.replaceNodeWithNodes(e,O[0],Z,q);let ye=l.nodeHasTrailingComment(e,O[0],q);l.deleteNodes(e,O.slice(1),{trailingTriviaOption:Rr.TrailingTriviaOption.Include},ye)}}function k(O,G){let j=G.moduleSpecifierComparer??R,J=G.namedImportComparer??R,Z=G.typeOrder??"last",q=qO({organizeImportsTypeOrder:Z},J);P(O,ie=>(g&&(ie=mrt(ie,e,i)),d&&(ie=bLe(ie,j,q,e)),u&&(ie=Ap(ie,(K,pe)=>Cfe(K,pe,j))),ie))}function F(O,G){let j=qO(o,G);P(O,J=>TLe(J,j))}}function Sfe(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[Dfe(e,e.organizeImportsIgnoreCase)]:[Dfe(e,!0),Dfe(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function Efe(e,t){let r=lg(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&prt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function prt(e,t,r){let 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 frt(e){let t=[],r=e.statements,i=et(r),o=0,s=0;for(;o<i;)if(fc(r[o])){t[s]===void 0&&(t[s]=[]);let l=r[o];if(l.moduleSpecifier)t[s].push(l),o++;else{for(;o<i&&fc(r[o]);)t[s].push(r[o++]);s++}}else o++;return Ki(t,l=>Efe(e,l))}function mrt(e,t,r){let i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),d=[];for(let _ of e){let{importClause:v,moduleSpecifier:E}=_;if(!v){d.push(_);continue}let{name:A,namedBindings:R}=v;if(A&&!g(A)&&(A=void 0),R)if(Ag(R))g(R.name)||(R=void 0);else{let N=R.elements.filter(P=>g(P.name));N.length<R.elements.length&&(R=N.length?L.updateNamedImports(R,N):void 0)}A||R?d.push(HO(_,A,R)):grt(t,E)&&(t.isDeclarationFile?d.push(L.createImportDeclaration(_.modifiers,void 0,E,void 0)):d.push(_))}return d;function g(_){return u&&(_.text===s||l&&_.text===l)&&sJ(o.jsx)||Ys.Core.isSymbolReferencedInFile(_,i,t)}}function f5(e){return e!==void 0&&cs(e)?e.text:void 0}function hrt(e){let t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let o of e){if(o.importClause===void 0){t=t||o;continue}let s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(Ag(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function bLe(e,t,r,i){if(e.length===0)return e;let o=Cz(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(let d of Ap(l.attributes.elements,(g,_)=>Wd(g.name.text,_.name.text)))u+=d.name.text+":",u+=cs(d.value)?`"${d.value.text}"`:d.value.getText()+" ";return u}return""}),s=[];for(let l in o){let u=o[l],{importWithoutClause:d,typeOnlyImports:g,regularImports:_}=hrt(u);d&&s.push(d);for(let v of[_,g]){let E=v===g,{defaultImports:A,namespaceImports:R,namedImports:N}=v;if(!E&&A.length===1&&R.length===1&&N.length===0){let q=A[0];s.push(HO(q,q.importClause.name,R[0].importClause.namedBindings));continue}let P=Ap(R,(q,ye)=>t(q.importClause.namedBindings.name.text,ye.importClause.namedBindings.name.text));for(let q of P)s.push(HO(q,void 0,q.importClause.namedBindings));let k=Ic(A),F=Ic(N),O=k??F;if(!O)continue;let G,j=[];if(A.length===1)G=A[0].importClause.name;else for(let q of A)j.push(L.createImportSpecifier(!1,L.createIdentifier("default"),q.importClause.name));j.push(...yrt(N));let J=L.createNodeArray(Ap(j,r),F?.importClause.namedBindings.elements.hasTrailingComma),Z=J.length===0?G?void 0:L.createNamedImports(ae):F?L.updateNamedImports(F.importClause.namedBindings,J):L.createNamedImports(J);i&&Z&&F?.importClause.namedBindings&&!rE(F.importClause.namedBindings,i)&&Cr(Z,2),E&&G&&Z?(s.push(HO(O,G,void 0)),s.push(HO(F??O,void 0,Z))):s.push(HO(O,G,Z))}}return s}function TLe(e,t){if(e.length===0)return e;let{exportWithoutClause:r,namedExports:i,typeOnlyExports:o}=l(e),s=[];r&&s.push(r);for(let u of[i,o]){if(u.length===0)continue;let d=[];d.push(...Ki(u,v=>v.exportClause&&Hf(v.exportClause)?v.exportClause.elements:ae));let g=Ap(d,t),_=u[0];s.push(L.updateExportDeclaration(_,_.modifiers,_.isTypeOnly,_.exportClause&&(Hf(_.exportClause)?L.updateNamedExports(_.exportClause,g):L.updateNamespaceExport(_.exportClause,_.exportClause.name)),_.moduleSpecifier,_.attributes))}return s;function l(u){let d,g=[],_=[];for(let v of u)v.exportClause===void 0?d=d||v:v.isTypeOnly?_.push(v):g.push(v);return{exportWithoutClause:d,namedExports:g,typeOnlyExports:_}}}function HO(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.phaseModifier,t,r),e.moduleSpecifier,e.attributes)}function Afe(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return E0(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return E0(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Ife(e,t,r){let i=e===void 0?void 0:f5(e),o=t===void 0?void 0:f5(t);return E0(i===void 0,o===void 0)||E0(td(i),td(o))||r(i,o)}function _rt(e){return e.map(t=>f5(xfe(t))||"")}function xfe(e){var t;switch(e.kind){case 272:return(t=ni(e.moduleReference,uy))==null?void 0:t.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function grt(e,t){let r=ka(t)&&t.text;return Bo(r)&&vt(e.moduleAugmentations,i=>ka(i)&&i.text===r)}function yrt(e){return Ki(e,t=>Vt(vrt(t),r=>r.name&&r.propertyName&&p1(r.name)===p1(r.propertyName)?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function vrt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&t_(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function SLe(e,t){let r=[];return e.forEach(i=>{r.push(_rt(i))}),ALe(r,t)}function Rfe(e,t,r){let i=!1,o=e.filter(d=>{var g,_;let v=(_=ni((g=d.importClause)==null?void 0:g.namedBindings,t_))==null?void 0:_.elements;return v?.length?(!i&&v.some(E=>E.isTypeOnly)&&v.some(E=>!E.isTypeOnly)&&(i=!0),!0):!1});if(o.length===0)return;let s=o.map(d=>{var g,_;return(_=ni((g=d.importClause)==null?void 0:g.namedBindings,t_))==null?void 0:_.elements}).filter(d=>d!==void 0);if(!i||r.length===0){let d=ALe(s.map(g=>g.map(_=>_.name.text)),t);return{namedImportComparer:d.comparer,typeOrder:r.length===1?r[0]:void 0,isSorted:d.isSorted}}let l={first:1/0,last:1/0,inline:1/0},u={first:t[0],last:t[0],inline:t[0]};for(let d of t){let g={first:0,last:0,inline:0};for(let _ of s)for(let v of r)g[v]=(g[v]??0)+ELe(_,(E,A)=>Afe(E,A,d,{organizeImportsTypeOrder:v}));for(let _ of r){let v=_;g[v]<l[v]&&(l[v]=g[v],u[v]=d)}}e:for(let d of r){let g=d;for(let _ of r)if(l[_]<l[g])continue e;return{namedImportComparer:u[g],typeOrder:g,isSorted:l[g]===0}}return{namedImportComparer:u.last,typeOrder:"last",isSorted:l.last===0}}function ELe(e,t){let r=0;for(let i=0;i<e.length-1;i++)t(e[i],e[i+1])>0&&r++;return r}function ALe(e,t){let r,i=1/0;for(let o of t){let s=0;for(let l of e){if(l.length<=1)continue;let u=ELe(l,o);s+=u}s<i&&(i=s,r=o)}return{comparer:r??t[0],isSorted:i===0}}function brt(e,t){return js(ILe(e),ILe(t))}function ILe(e){var t;switch(e.kind){case 273:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===275?2:e.importClause.name?3:4:0;case 272:return 5;case 244:return 6}}function m5(e){return e?UQ:Wd}function Trt(e,t){let r=Srt(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 Srt(e){let t=e.organizeImportsLocale;t==="auto"&&(t=HQ()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function Dfe(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?Trt(t,e):m5(t)}function Ert(e,t){return SLe([e],Sfe(t).comparersToTest)}function qO(e,t){let r=t??m5(!!e.organizeImportsIgnoreCase);return(i,o)=>Afe(i,o,r,e)}function Art(e,t,r){let{comparersToTest:i,typeOrdersToTest:o}=Sfe(t),s=Rfe([e],i,o),l=qO(t,i[0]),u;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(s){let{namedImportComparer:d,typeOrder:g,isSorted:_}=s;u=_,l=qO({organizeImportsTypeOrder:g},d)}else if(r){let d=Rfe(r.statements.filter(vl),i,o);if(d){let{namedImportComparer:g,typeOrder:_,isSorted:v}=d;u=v,l=qO({organizeImportsTypeOrder:_},g)}}}return{specifierComparer:l,isSorted:u}}function Irt(e,t,r){let i=Yv(e,t,Vs,(o,s)=>Cfe(o,s,r));return i<0?~i:i}function xrt(e,t,r){let i=Yv(e,t,Vs,r);return i<0?~i:i}function Cfe(e,t,r){return Ife(xfe(e),xfe(t),r)||brt(e,t)}function Rrt(e,t,r,i){let o=m5(t),s=qO({organizeImportsTypeOrder:i?.organizeImportsTypeOrder},o);return bLe(e,o,s,r)}function Drt(e,t,r){return TLe(e,(o,s)=>Afe(o,s,m5(t),{organizeImportsTypeOrder:r?.organizeImportsTypeOrder??"last"}))}function Crt(e,t,r){let i=m5(!!r);return Ife(e,t,i)}var UK={};x(UK,{collectElements:()=>Nrt});function Nrt(e,t){let r=[];return Mrt(e,t,r),Prt(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start),r}function Mrt(e,t,r){let i=40,o=0,s=e.statements,l=s.length;for(;o<l;){for(;o<l&&!iI(s[o]);)u(s[o]),o++;if(o===l)break;let d=o;for(;o<l&&iI(s[o]);)u(s[o]),o++;let g=o-1;g!==d&&r.push(h5(Es(s[d],102,e).getStart(e),s[g].getEnd(),"imports"))}u(e.endOfFileToken);function u(d){var g;if(i===0)return;t.throwIfCancellationRequested(),(rd(d)||ac(d)||ef(d)||Bh(d)||d.kind===1)&&RLe(d,e,t,r),Yo(d)&&Nr(d.parent)&&qr(d.parent.left)&&RLe(d.parent.left,e,t,r),(ea(d)||e_(d))&&Nfe(d.statements.end,e,t,r),(ui(d)||gd(d))&&Nfe(d.members.end,e,t,r);let _=krt(d,e);_&&r.push(_),i--,Zo(d)?(i++,u(d.expression),i--,d.arguments.forEach(u),(g=d.typeArguments)==null||g.forEach(u)):U0(d)&&d.elseStatement&&U0(d.elseStatement)?(u(d.expression),u(d.thenStatement),i++,u(d.elseStatement),i--):d.forEachChild(u),i++}}function Prt(e,t){let r=[],i=e.getLineStarts();for(let o of i){let s=e.getLineEndOfPosition(o),l=e.text.substring(o,s),u=xLe(l);if(!(!u||uv(e,o)))if(u.isStart){let d=ic(e.text.indexOf("//",o),s);r.push(hx(d,"region",d,!1,u.name||"#region"))}else{let d=r.pop();d&&(d.textSpan.length=s-d.textSpan.start,d.hintSpan.length=s-d.textSpan.start,t.push(d))}}}var Lrt=/^#(end)?region(.*)\r?$/;function xLe(e){if(e=e.trimStart(),!po(e,"//"))return null;e=e.slice(2).trim();let t=Lrt.exec(e);if(t)return{isStart:!t[1],name:t[2].trim()}}function Nfe(e,t,r,i){let o=sg(t.text,e);if(!o)return;let s=-1,l=-1,u=0,d=t.getFullText();for(let{kind:_,pos:v,end:E}of o)switch(r.throwIfCancellationRequested(),_){case 2:let A=d.slice(v,E);if(xLe(A)){g(),u=0;break}u===0&&(s=v),l=E,u++;break;case 3:g(),i.push(h5(v,E,"comment")),u=0;break;default:C.assertNever(_)}g();function g(){u>1&&i.push(h5(s,l,"comment"))}}function RLe(e,t,r,i){NI(e)||Nfe(e.pos,t,r,i)}function h5(e,t,r){return hx(ic(e,t),r)}function krt(e,t){switch(e.kind){case 242:if(Yo(e.parent))return wrt(e.parent,e,t);switch(e.parent.kind){case 247:case 250:case 251:case 249:case 246:case 248:case 255:case 300:return _(e.parent);case 259:let A=e.parent;if(A.tryBlock===e)return _(e.parent);if(A.finallyBlock===e){let R=Es(A,98,t);if(R)return _(R)}default:return hx(Fu(e,t),"code")}case 269:return _(e.parent);case 264:case 232:case 265:case 267:case 270:case 188:case 207:return _(e);case 190:return _(e,!1,!OI(e.parent),23);case 297:case 298:return v(e.statements);case 211:return g(e);case 210:return g(e,23);case 285:return s(e);case 289:return l(e);case 286:case 287:return u(e.attributes);case 229:case 15:return d(e);case 208:return _(e,!1,!Ha(e.parent),23);case 220:return o(e);case 214:return i(e);case 218:return E(e);case 276:case 280:case 301:return r(e)}function r(A){if(!A.elements.length)return;let R=Es(A,19,t),N=Es(A,20,t);if(!(!R||!N||zf(R.pos,N.pos,t)))return HK(R,N,A,t,!1,!1)}function i(A){if(!A.arguments.length)return;let R=Es(A,21,t),N=Es(A,22,t);if(!(!R||!N||zf(R.pos,N.pos,t)))return HK(R,N,A,t,!1,!0)}function o(A){if(ea(A.body)||wu(A.body)||zf(A.body.getFullStart(),A.body.getEnd(),t))return;let R=ic(A.body.getFullStart(),A.body.getEnd());return hx(R,"code",Fu(A))}function s(A){let R=ic(A.openingElement.getStart(t),A.closingElement.getEnd()),N=A.openingElement.tagName.getText(t),P="<"+N+">...</"+N+">";return hx(R,"code",R,!1,P)}function l(A){let R=ic(A.openingFragment.getStart(t),A.closingFragment.getEnd());return hx(R,"code",R,!1,"<>...</>")}function u(A){if(A.properties.length!==0)return h5(A.getStart(t),A.getEnd(),"code")}function d(A){if(!(A.kind===15&&A.text.length===0))return h5(A.getStart(t),A.getEnd(),"code")}function g(A,R=19){return _(A,!1,!Cd(A.parent)&&!Zo(A.parent),R)}function _(A,R=!1,N=!0,P=19,k=P===19?20:24){let F=Es(e,P,t),O=Es(e,k,t);return F&&O&&HK(F,O,A,t,R,N)}function v(A){return A.length?hx(fv(A),"code"):void 0}function E(A){if(zf(A.getStart(),A.getEnd(),t))return;let R=ic(A.getStart(),A.getEnd());return hx(R,"code",Fu(A))}}function wrt(e,t,r){let i=Ort(e,t,r),o=Es(t,20,r);return i&&o&&HK(i,o,e,r,e.kind!==220)}function HK(e,t,r,i,o=!1,s=!0){let l=ic(s?e.getFullStart():e.getStart(i),t.getEnd());return hx(l,"code",Fu(r,i),o)}function hx(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function Ort(e,t,r){if(Hne(e.parameters,r)){let i=Es(e,21,r);if(i)return i}return Es(t,19,r)}var _5={};x(_5,{getRenameInfo:()=>Wrt,nodeIsEligibleForRename:()=>CLe});function Wrt(e,t,r,i){let o=r7(np(t,r));if(CLe(o)){let s=Frt(o,e.getTypeChecker(),t,e,i);if(s)return s}return qK(f.You_cannot_rename_this_element)}function Frt(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(cs(e)){let E=n7(e,t);if(E&&(E.flags&128||E.flags&1048576&&Vn(E.types,A=>!!(A.flags&128))))return Mfe(e.text,e.text,"string","",e,r)}else if(mq(e)){let E=Al(e);return Mfe(E,E,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>zrt(i,E)))return qK(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(He(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(cs(e)&&ck(e))return o.allowRenameOfImportPath?Grt(e,r,s):void 0;let u=Brt(r,s,t,o);if(u)return qK(u);let d=_v.getSymbolKind(t,s,e),g=rce(e)||df(e)&&e.parent.kind===168?hm(Wf(e)):void 0,_=g||t.symbolToString(s),v=g||t.getFullyQualifiedName(s);return Mfe(_,v,d,_v.getSymbolModifiers(t,s),e,r)}function zrt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&El(r.fileName,".d.ts")}function Brt(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&hn(t.declarations,u=>Su(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=DLe(e.path);if(s===void 0)return vt(o,l=>bO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let l of o){let u=DLe(l.getSourceFile().path);if(u){let d=Math.min(s.length,u.length);for(let g=0;g<=d;g++)if(Wd(s[g],u[g])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function DLe(e){let t=zd(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Grt(e,t,r){if(!td(e.text))return qK(f.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&hn(r.declarations,Yi);if(!i)return;let o=el(e.text,"/index")||el(e.text,"/index.js")?void 0:KQ(bu(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,d=Id(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:d}}function Mfe(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Vrt(o,s)}}function qK(e){return{canRename:!1,localizedErrorMessage:Ho(e)}}function Vrt(e,t){let r=e.getStart(t),i=e.getWidth(t);return cs(e)&&(r+=1,i-=2),Id(r,i)}function CLe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return QF(e);default:return!1}}var JO={};x(JO,{getArgumentInfoForCompletions:()=>Jrt,getSignatureHelpItems:()=>jrt});function jrt(e,t,r,i,o){let s=e.getTypeChecker(),l=AP(t,r);if(!l)return;let u=!!i&&i.kind==="characterTyped";if(u&&(nx(t,r,l)||uv(t,r)))return;let d=!!i&&i.kind==="invoked",g=ait(l,r,t,s,d);if(!g)return;o.throwIfCancellationRequested();let _=Urt(g,s,t,l,u);return o.throwIfCancellationRequested(),_?s.runWithCancellationToken(o,v=>_.kind===0?WLe(_.candidates,_.resolvedSignature,g,t,v):lit(_.symbol,g,t,v)):Mu(t)?qrt(g,e,o):void 0}function Urt({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Hrt(o,e.node,i))return;let l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{let{called:l}=e;if(s&&!NLe(o,i,He(l)?l.parent:l))return;let u=Aq(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:$a(u)};let d=r.getSymbolAtLocation(l);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return C.assertNever(e)}}function Hrt(e,t,r){if(!Bh(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return jn(i,e);case 28:{let o=t7(e);return!!o&&jn(i,o)}case 30:return NLe(e,r,t.expression);default:return!1}}function qrt(e,t,r){if(e.invocation.kind===2)return;let i=wLe(e.invocation),o=qr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Hn(t.getSourceFiles(),l=>Hn(l.getNamedDeclarations().get(o),u=>{let d=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),g=d&&d.getCallSignatures();if(g&&g.length)return s.runWithCancellationToken(r,_=>WLe(g,g[0],e,l,_,!0))}))}function NLe(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Vc(i,t,o,!0);if(s)return Zu(r,s);o=o.parent}return C.fail("Could not find preceding token")}function Jrt(e,t,r,i){let o=PLe(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 MLe(e,t,r,i){let o=Krt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,u=nit(i,s),d=iit(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:d}}function Krt(e,t,r){if(e.kind===30||e.kind===21)return{list:sit(e.parent,e,t),argumentIndex:0};{let i=t7(e);return i&&{list:i,argumentIndex:tit(r,i,e)}}}function PLe(e,t,r,i){let{parent:o}=e;if(Bh(o)){let s=o,l=MLe(e,t,r,i);if(!l)return;let{list:u,argumentIndex:d,argumentCount:g,argumentsSpan:_}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:_,argumentIndex:d,argumentCount:g}}else{if(lE(e)&&V0(o))return dO(e,t,r)?Lfe(o,0,r):void 0;if(MI(e)&&o.parent.kind===216){let s=o,l=s.parent;C.assert(s.kind===229);let u=dO(e,t,r)?0:1;return Lfe(l,u,r)}else if(hD(o)&&V0(o.parent.parent)){let s=o,l=o.parent.parent;if(n3(e)&&!dO(e,t,r))return;let u=s.parent.templateSpans.indexOf(s),d=rit(u,e,t,r);return Lfe(l,d,r)}else if(nu(o)){let s=o.attributes.pos,l=La(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:Id(s,l-s),argumentIndex:0,argumentCount:1}}else{let s=Iq(e,r);if(s){let{called:l,nTypeArguments:u}=s,d={kind:1,called:l},g=ic(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:d,argumentsSpan:g,argumentIndex:u,argumentCount:u+1}}return}}}function Xrt(e,t,r,i){return Yrt(e,t,r,i)||PLe(e,t,r,i)}function LLe(e){return Nr(e.parent)?LLe(e.parent):e}function Pfe(e){return Nr(e.left)?Pfe(e.left)+1:2}function Yrt(e,t,r,i){let o=$rt(e);if(o===void 0)return;let s=Qrt(o,r,t,i);if(s===void 0)return;let{contextualType:l,argumentIndex:u,argumentCount:d,argumentsSpan:g}=s,_=l.getNonNullableType(),v=_.symbol;if(v===void 0)return;let E=Zs(_.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:Zrt(v)},argumentsSpan:g,argumentIndex:u,argumentCount:d}}function $rt(e){switch(e.kind){case 21:case 28:return e;default:return Dn(e.parent,t=>to(t)?!0:Ha(t)||pf(t)||cv(t)?!1:"quit")}}function Qrt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 218:case 175:case 219:case 220:let s=MLe(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:u,argumentsSpan:d}=s,g=Nl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return g&&{contextualType:g,argumentIndex:l,argumentCount:u,argumentsSpan:d};case 227:{let _=LLe(o),v=i.getContextualType(_),E=e.kind===21?0:Pfe(o)-1,A=Pfe(_);return v&&{contextualType:v,argumentIndex:E,argumentCount:A,argumentsSpan:Fu(o)}}default:return}}function Zrt(e){return e.name==="__type"&&Hn(e.declarations,t=>{var r;return k_(t)?(r=ni(t.parent,ah))==null?void 0:r.symbol:void 0})||e}function eit(e,t){let r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){let{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;let s=ho(i,l=>!(l&1));return s<0?o:s}return 0}function tit(e,t,r){return kLe(e,t,r)}function nit(e,t){return kLe(e,t,void 0)}function kLe(e,t,r){let i=t.getChildren(),o=0,s=!1;for(let l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(Uf(l)){o+=eit(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ba(i).kind===28?o+1:o}function rit(e,t,r,i){return C.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Qee(t)?dO(t,r,i)?0:e+2:e+1}function Lfe(e,t,r){let i=lE(e.template)?1:e.template.templateSpans.length+1;return t!==0&&C.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:oit(e,r),argumentIndex:t,argumentCount:i}}function iit(e,t){let r=e.getFullStart(),i=La(t.text,e.getEnd(),!1);return Id(r,i-r)}function oit(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===229&&Ba(r.templateSpans).literal.getFullWidth()===0&&(o=La(t.text,o,!1)),Id(i,o-i)}function ait(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!ea(s));s=s.parent){C.assert(Zu(s.parent,s),"Not a subspan",()=>`Child: ${C.formatSyntaxKind(s.kind)}, parent: ${C.formatSyntaxKind(s.parent.kind)}`);let l=Xrt(s,t,r,i);if(l)return l}}function sit(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return C.assert(o>=0&&i.length>o+1),i[o+1]}function wLe(e){return e.kind===0?B6(e.node):e.called}function OLe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var g5=70246400;function WLe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,d,g){var _;let v=OLe(s),E=s.kind===2?s.symbol:d.getSymbolAtLocation(wLe(s))||g&&((_=t.declaration)==null?void 0:_.symbol),A=E?NP(d,E,g?u:void 0,void 0):ae,R=Vt(e,O=>dit(O,A,r,d,v,u)),N=0,P=0;for(let O=0;O<R.length;O++){let G=R[O];if(e[O]===t&&(N=P,G.length>1)){let j=0;for(let J of G){if(J.isVariadic||J.parameters.length>=i){N=P+j;break}j++}}P+=G.length}C.assert(N!==-1);let k={items:vc(R,Vs),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},F=k.items[N];if(F.isVariadic){let O=ho(F.parameters,G=>!!G.isRest);-1<O&&O<F.parameters.length-1?k.argumentIndex=F.parameters.length:k.argumentIndex=Math.min(k.argumentIndex,F.parameters.length-1)}return k}function lit(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,l){let u=l.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return u?{items:[cit(e,u,l,OLe(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function cit(e,t,r,i,o){let s=NP(r,e),l=V1(),u=t.map(v=>zLe(v,r,i,o,l)),d=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,su(30)],suffixDisplayParts:[su(32)],separatorDisplayParts:FLe,parameters:u,documentation:d,tags:g}}var FLe=[su(28),zl()];function dit(e,t,r,i,o,s){let l=(r?pit:fit)(e,i,o,s);return Vt(l,({isVariadic:u,parameters:d,prefix:g,suffix:_})=>{let v=[...t,...g],E=[..._,...uit(e,o,i)],A=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:v,suffixDisplayParts:E,separatorDisplayParts:FLe,parameters:d,documentation:A,tags:R}})}function uit(e,t,r){return Bb(i=>{i.writePunctuation(":"),i.writeSpace(" ");let o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function pit(e,t,r,i){let o=(e.target||e).typeParameters,s=V1(),l=(o||ae).map(d=>zLe(d,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,g5)]:[];return t.getExpandedParameters(e).map(d=>{let g=L.createNodeArray([...u,...Vt(d,v=>t.symbolToParameterDeclaration(v,r,g5))]),_=Bb(v=>{s.writeList(2576,g,i,v)});return{isVariadic:!1,parameters:l,prefix:[su(30)],suffix:[su(32),..._]}})}function fit(e,t,r,i){let o=V1(),s=Bb(d=>{if(e.typeParameters&&e.typeParameters.length){let g=L.createNodeArray(e.typeParameters.map(_=>t.typeParameterToDeclaration(_,r,g5)));o.writeList(53776,g,i,d)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?d=>!0:d=>{var g;return!!(d.length&&((g=ni(d[d.length-1],ug))==null?void 0:g.links.checkFlags)&32768)}:d=>!1;return l.map(d=>({isVariadic:u(d),parameters:d.map(g=>mit(g,t,r,i,o)),prefix:[...s,su(21)],suffix:[su(22)]}))}function mit(e,t,r,i,o){let s=Bb(d=>{let g=t.symbolToParameterDeclaration(e,r,g5);o.writeNode(4,g,i,d)}),l=t.isOptionalParameter(e.valueDeclaration),u=ug(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function zLe(e,t,r,i,o){let s=Bb(l=>{let u=t.typeParameterToDeclaration(e,r,g5);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var JK={};x(JK,{getSmartSelectionRange:()=>hit});function hit(e,t){var r,i;let o={textSpan:ic(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let d=yit(s);if(!d.length)break;for(let g=0;g<d.length;g++){let _=d[g-1],v=d[g],E=d[g+1];if(mb(v,t,!0)>e)break e;let A=ig(ib(t.text,v.end));if(A&&A.kind===2&&u(A.pos,A.end),_it(t,e,v)){if(jB(v)&&Ms(s)&&!zf(v.getStart(t),v.getEnd(),t)&&l(v.getStart(t),v.getEnd()),ea(v)||hD(v)||MI(v)||n3(v)||_&&MI(_)||_d(v)&&ac(s)||TD(v)&&_d(s)||yi(v)&&TD(s)&&d.length===1||K0(v)||dv(v)||gE(v)){s=v;break}if(hD(s)&&E&&s6(E)){let k=v.getFullStart()-2,F=E.getStart()+1;l(k,F)}let R=TD(v)&&vit(_)&&bit(E)&&!zf(_.getStart(),E.getStart(),t),N=R?_.getEnd():v.getStart(),P=R?E.getStart():Tit(t,v);if(Zp(v)&&((r=v.jsDoc)!=null&&r.length)&&l($a(v.jsDoc).getStart(),P),TD(v)){let k=v.getChildren()[0];k&&Zp(k)&&((i=k.jsDoc)!=null&&i.length)&&k.getStart()!==v.pos&&(N=Math.min(N,$a(k.jsDoc).getStart()))}l(N,P),(ka(v)||QA(v))&&l(N+1,P-1),s=v;break}if(g===d.length-1)break e}}return o;function l(d,g){if(d!==g){let _=ic(d,g);(!o||!KD(_,o.textSpan)&&Cee(_,e))&&(o={textSpan:_,...o&&{parent:o}})}}function u(d,g){l(d,g);let _=d;for(;t.text.charCodeAt(_)===47;)_++;l(_,g)}}function _it(e,t,r){return C.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?np(e,t).pos<r.end:!1}var git=Ip(vl,Bc);function yit(e){var t;if(Yi(e))return KO(e.getChildAt(0).getChildren(),git);if(uE(e)){let[r,...i]=e.getChildren(),o=C.checkDefined(i.pop());C.assertEqual(r.kind,19),C.assertEqual(o.kind,20);let s=KO(i,u=>u===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=KO(s,({kind:u})=>u===23||u===169||u===24);return[r,XO(KK(l,({kind:u})=>u===59)),o]}if(Tu(e)){let r=KO(e.getChildren(),l=>l===e.name||jn(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===321?r[0]:void 0,o=i?r.slice(1):r,s=KK(o,({kind:l})=>l===59);return i?[i,XO(s)]:s}if(to(e)){let r=KO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=KO(r,o=>o===r[0]||o===e.questionToken);return KK(i,({kind:o})=>o===64)}return Ha(e)?KK(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function KO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(XO(i)),i=void 0),r.push(o));return i&&r.push(XO(i)),r}function KK(e,t,r=!0){if(e.length<2)return e;let i=ho(e,t);if(i===-1)return e;let o=e.slice(0,i),s=e[i],l=Ba(e),u=r&&l.kind===27,d=e.slice(i+1,u?e.length-1:void 0),g=rL([o.length?XO(o):void 0,s,d.length?XO(d):void 0]);return u?g.concat(l):g}function XO(e){return C.assertGreaterThanOrEqual(e.length,1),uh($0.createSyntaxList(e),e[0].pos,Ba(e).end)}function vit(e){let t=e&&e.kind;return t===19||t===23||t===21||t===287}function bit(e){let t=e&&e.kind;return t===20||t===24||t===22||t===288}function Tit(e,t){switch(t.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var _v={};x(_v,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Eit,getSymbolKind:()=>GLe,getSymbolModifiers:()=>Sit});var BLe=70246400;function GLe(e,t,r){let i=VLe(e,t,r);if(i!=="")return i;let o=eD(t);return o&32?al(t,232)?"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 VLe(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&$a(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&&St(r)||S1(r))return"parameter";let o=eD(t);if(o&3)return Hq(t)?"parameter":t.valueDeclaration&&FR(t.valueDeclaration)?"const":t.valueDeclaration&&JL(t.valueDeclaration)?"using":t.valueDeclaration&&qL(t.valueDeclaration)?"await using":Je(t.declarations,N6)?"let":HLe(t)?"local var":"var";if(o&16)return HLe(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){let s=Je(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function jLe(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=et(r)&&x7(t)&&vt(r,s=>!x7(s))?65536:0,o=IP(t,i);if(o)return o.split(",")}return[]}function Sit(e,t){if(!t)return"";let r=new Set(jLe(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&Je(jLe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Co(r.values()).join(","):""}function ULe(e,t,r,i,o,s,l,u,d,g){var _;let v=[],E=[],A=[],R=eD(t),N=l&1?VLe(e,t,o):"",P=!1,k=o.kind===110&&G6(o)||S1(o),F,O,G=!1,j={canIncreaseExpansionDepth:!1,truncated:!1},J=!1;if(o.kind===110&&!k)return{displayParts:[Bp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(N!==""||R&32||R&2097152){if(N==="getter"||N==="setter"){let be=hn(t.declarations,Ne=>Ne.name===o&&Ne.kind!==212);if(be)switch(be.kind){case 178:N="getter";break;case 179:N="setter";break;case 173:N="accessor";break;default:C.assertNever(be)}else N="property"}let Se;if(s??(s=k?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===212){let be=o.parent.name;(be===o||be&&be.getFullWidth()===0)&&(o=o.parent)}let re;if(Bh(o)?re=o:(dq(o)||SP(o)||o.parent&&(nu(o.parent)||V0(o.parent))&&Yo(t.valueDeclaration))&&(re=o.parent),re){Se=e.getResolvedSignature(re);let be=re.kind===215||Zo(re)&&re.expression.kind===108,Ne=be?s.getConstructSignatures():s.getCallSignatures();if(Se&&!jn(Ne,Se.target)&&!jn(Ne,Se)&&(Se=Ne.length?Ne[0]:void 0),Se){switch(be&&R&32?(N="constructor",xe(s.symbol,N)):R&2097152?(N="alias",Y(N),v.push(zl()),be&&(Se.flags&4&&(v.push(Bp(128)),v.push(zl())),v.push(Bp(105)),v.push(zl())),ve(t)):xe(t,N),N){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":v.push(su(59)),v.push(zl()),!(Hr(s)&16)&&s.symbol&&(Xr(v,NP(e,s.symbol,i,void 0,5)),v.push(XD())),be&&(Se.flags&4&&(v.push(Bp(128)),v.push(zl())),v.push(Bp(105)),v.push(zl())),Ce(Se,Ne,262144);break;default:Ce(Se,Ne)}P=!0,G=Ne.length>1}}else if(yq(o)&&!(R&98304)||o.kind===137&&o.parent.kind===177){let be=o.parent;if(t.declarations&&hn(t.declarations,Be=>Be===(o.kind===137?be.parent:be))){let Be=be.kind===177?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(be)?Se=Be[0]:Se=e.getSignatureFromDeclaration(be),be.kind===177?(N="constructor",xe(s.symbol,N)):xe(be.kind===180&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,N),Se&&Ce(Se,Be),P=!0,G=Be.length>1}}}if(R&32&&!P&&!k){ie();let Se=al(t,232);Se&&(Y("local class"),v.push(zl())),fe(t,l)||(Se||(v.push(Bp(86)),v.push(zl())),ve(t),Xe(t,r))}if(R&64&&l&2&&(ye(),fe(t,l)||(v.push(Bp(120)),v.push(zl()),ve(t),Xe(t,r))),R&524288&&l&2&&(ye(),v.push(Bp(156)),v.push(zl()),ve(t),Xe(t,r),v.push(zl()),v.push(CP(64)),v.push(zl()),Xr(v,_O(e,o.parent&&wm(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608,d,g,j))),R&384&&(ye(),fe(t,l)||(vt(t.declarations,Se=>q0(Se)&&C0(Se))&&(v.push(Bp(87)),v.push(zl())),v.push(Bp(94)),v.push(zl()),ve(t,void 0))),R&1536&&!k&&(ye(),!fe(t,l))){let Se=al(t,268),re=Se&&Se.name&&Se.name.kind===80;v.push(Bp(re?145:144)),v.push(zl()),ve(t)}if(R&262144&&l&2)if(ye(),v.push(su(21)),v.push(gf("type parameter")),v.push(su(22)),v.push(zl()),ve(t),t.parent)K(),ve(t.parent,i),Xe(t.parent,i);else{let Se=al(t,169);if(Se===void 0)return C.fail();let re=Se.parent;if(re)if(Yo(re)){K();let be=e.getSignatureFromDeclaration(re);re.kind===181?(v.push(Bp(105)),v.push(zl())):re.kind!==180&&re.name&&ve(re.symbol),Xr(v,Jq(e,be,r,32))}else ym(re)&&(K(),v.push(Bp(156)),v.push(zl()),ve(re.symbol),Xe(re.symbol,r))}if(R&8){N="enum member",xe(t,"enum member");let Se=(_=t.declarations)==null?void 0:_[0];if(Se?.kind===307){let re=e.getConstantValue(Se);re!==void 0&&(v.push(zl()),v.push(CP(64)),v.push(zl()),v.push(gp(Mte(re),typeof re=="number"?7:8)))}}if(t.flags&2097152){if(ye(),!P||E.length===0&&A.length===0){let Se=e.getAliasedSymbol(t);if(Se!==t&&Se.declarations&&Se.declarations.length>0){let re=Se.declarations[0],be=Oo(re);if(be&&!P){let Ne=x6(re)&&di(re,128),Be=t.name!=="default"&&!Ne,lt=ULe(e,Se,Wn(re),i,be,s,l,Be?t:Se,d,g);v.push(...lt.displayParts),v.push(XD()),F=lt.documentation,O=lt.tags,j&&lt.canIncreaseVerbosityLevel&&(j.canIncreaseExpansionDepth=!0)}else F=Se.getContextualDocumentationComment(re,e),O=Se.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:v.push(Bp(95)),v.push(zl()),v.push(Bp(145));break;case 278:v.push(Bp(95)),v.push(zl()),v.push(Bp(t.declarations[0].isExportEquals?64:90));break;case 282:v.push(Bp(95));break;default:v.push(Bp(102))}v.push(zl()),ve(t),Je(t.declarations,Se=>{if(Se.kind===272){let re=Se;if(M0(re))v.push(zl()),v.push(CP(64)),v.push(zl()),v.push(Bp(149)),v.push(su(21)),v.push(gp(Al(qN(re)),8)),v.push(su(22));else{let be=e.getSymbolAtLocation(re.moduleReference);be&&(v.push(zl()),v.push(CP(64)),v.push(zl()),ve(be,i))}return!0}})}if(!P)if(N!==""){if(s){if(k?(ye(),v.push(Bp(110))):xe(t,N),N==="property"||N==="accessor"||N==="getter"||N==="setter"||N==="JSX attribute"||R&3||N==="local var"||N==="index"||N==="using"||N==="await using"||k){if(v.push(su(59)),v.push(zl()),s.symbol&&s.symbol.flags&262144&&N!=="index"){let Se=Bb(re=>{let be=e.typeParameterToDeclaration(s,i,BLe,void 0,void 0,d,g,j);q().writeNode(4,be,Wn(jo(i)),re)},d);Xr(v,Se)}else Xr(v,_O(e,s,i,void 0,d,g,j));if(ug(t)&&t.links.target&&ug(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let Se=t.links.target.links.tupleLabelDeclaration;C.assertNode(Se.name,He),v.push(zl()),v.push(su(21)),v.push(gf(Kr(Se.name))),v.push(su(22))}}else if(R&16||R&8192||R&16384||R&131072||R&98304||N==="method"){let Se=s.getNonNullableType().getCallSignatures();Se.length&&(Ce(Se[0],Se),G=Se.length>1)}}}else N=GLe(e,t,o);if(E.length===0&&!G&&(E=t.getContextualDocumentationComment(i,e)),E.length===0&&R&4&&t.parent&&t.declarations&&Je(t.parent.declarations,Se=>Se.kind===308))for(let Se of t.declarations){if(!Se.parent||Se.parent.kind!==227)continue;let re=e.getSymbolAtLocation(Se.parent.right);if(re&&(E=re.getDocumentationComment(e),A=re.getJsDocTags(e),E.length>0))break}if(E.length===0&&He(o)&&t.valueDeclaration&&Ha(t.valueDeclaration)){let Se=t.valueDeclaration,re=Se.parent,be=Se.propertyName||Se.name;if(He(be)&&pf(re)){let Ne=Wf(be),Be=e.getTypeAtLocation(re);E=Hn(Be.isUnion()?Be.types:[Be],lt=>{let ce=lt.getProperty(Ne);return ce?ce.getDocumentationComment(e):void 0})||ae}}A.length===0&&!G&&!JN(o)&&(A=t.getContextualJsDocTags(i,e)),E.length===0&&F&&(E=F),A.length===0&&O&&(A=O);let Z=!j.truncated&&j.canIncreaseExpansionDepth;return{displayParts:v,documentation:E,symbolKind:N,tags:A.length===0?void 0:A,canIncreaseVerbosityLevel:g!==void 0?Z:void 0};function q(){return V1()}function ye(){v.length&&v.push(XD()),ie()}function ie(){u&&(Y("alias"),v.push(zl()))}function K(){v.push(zl()),v.push(Bp(103)),v.push(zl())}function pe(Se,re){if(g===void 0)return!1;let be=Se.flags&96?e.getDeclaredTypeOfSymbol(Se):e.getTypeOfSymbolAtLocation(Se,o);return!be||e.isLibType(be)?!1:0<g?!0:(re&&(re.canIncreaseExpansionDepth=!0),!1)}function de(Se){let re=0;return Se&1&&(re|=111551),Se&2&&(re|=788968),Se&4&&(re|=1920),re}function fe(Se,re){if(J)return!0;if(pe(Se,j)){let be=de(re),Ne=Bb(Be=>{let lt=e.getEmitResolver().symbolToDeclarations(Se,be,17408,d,g!==void 0?g-1:void 0,j),ce=q(),De=Se.valueDeclaration&&Wn(Se.valueDeclaration);lt.forEach((ge,je)=>{je>0&&Be.writeLine(),ce.writeNode(4,ge,De,Be)})},d);return Xr(v,Ne),J=!0,!0}return!1}function ve(Se,re){let be;u&&Se===t&&(Se=u),N==="index"&&(be=e.getIndexInfosOfIndexSymbol(Se));let Ne=[];Se.flags&131072&&be?(Se.parent&&(Ne=NP(e,Se.parent)),Ne.push(su(23)),be.forEach((Be,lt)=>{Ne.push(..._O(e,Be.keyType)),lt!==be.length-1&&(Ne.push(zl()),Ne.push(su(52)),Ne.push(zl()))}),Ne.push(su(24))):Ne=NP(e,Se,re||r,void 0,7),Xr(v,Ne),t.flags&16777216&&v.push(su(58))}function xe(Se,re){ye(),re&&(Y(re),Se&&!vt(Se.declarations,be=>Xs(be)||(Us(be)||uc(be))&&!be.name)&&(v.push(zl()),ve(Se)))}function Y(Se){switch(Se){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":v.push(qq(Se));return;default:v.push(su(21)),v.push(qq(Se)),v.push(su(22));return}}function Ce(Se,re,be=0){Xr(v,Jq(e,Se,i,be|32,d,g,j)),re.length>1&&(v.push(zl()),v.push(su(21)),v.push(CP(40)),v.push(gp((re.length-1).toString(),7)),v.push(zl()),v.push(gf(re.length===2?"overload":"overloads")),v.push(su(22))),E=Se.getDocumentationComment(e),A=Se.getJsDocTags(),re.length>1&&E.length===0&&A.length===0&&(E=re[0].getDocumentationComment(e),A=re[0].getJsDocTags().filter(Ne=>Ne.name!=="deprecated"))}function Xe(Se,re){let be=Bb(Ne=>{let Be=e.symbolToTypeParameterDeclarations(Se,re,BLe);q().writeList(53776,Be,Wn(jo(re)),Ne)});Xr(v,be)}}function Eit(e,t,r,i,o,s=DE(o),l,u,d){return ULe(e,t,r,i,o,void 0,s,l,u,d)}function HLe(e){return e.parent?!1:Je(e.declarations,t=>{if(t.kind===219)return!0;if(t.kind!==261&&t.kind!==263)return!1;for(let r=t.parent;!m1(r);r=r.parent)if(r.kind===308||r.kind===269)return!1;return!0})}var Rr={};x(Rr,{ChangeTracker:()=>xit,LeadingTriviaOption:()=>KLe,TrailingTriviaOption:()=>XLe,applyChanges:()=>Ffe,assignPositionsToNode:()=>QK,createWriter:()=>$Le,deleteNode:()=>vy,getAdjustedEndPosition:()=>_x,isThisTypeAnnotatable:()=>Iit,isValidLocationToAddComment:()=>QLe});function qLe(e){let t=e.__pos;return C.assert(typeof t=="number"),t}function kfe(e,t){C.assert(typeof t=="number"),e.__pos=t}function JLe(e){let t=e.__end;return C.assert(typeof t=="number"),t}function wfe(e,t){C.assert(typeof t=="number"),e.__end=t}var KLe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(KLe||{}),XLe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(XLe||{});function YLe(e,t){return La(e,t,!1,!0)}function Ait(e,t){let r=t;for(;r<e.length;){let i=e.charCodeAt(r);if(zh(i)){r++;continue}return i===47}return!1}var YO={leadingTriviaOption:0,trailingTriviaOption:0};function $O(e,t,r,i){return{pos:wE(e,t,i),end:_x(e,r,i)}}function wE(e,t,r,i=!1){var o,s;let{leadingTriviaOption:l}=r;if(l===0)return t.getStart(e);if(l===3){let A=t.getStart(e),R=Sm(A,e);return UD(t,R)?R:A}if(l===2){let A=mG(t,e.text);if(A?.length)return Sm(A[0].pos,e)}let u=t.getFullStart(),d=t.getStart(e);if(u===d)return d;let g=Sm(u,e);if(Sm(d,e)===g)return l===1?u:d;if(i){let A=((o=sg(e.text,u))==null?void 0:o[0])||((s=ib(e.text,u))==null?void 0:s[0]);if(A)return La(e.text,A.end,!0,!0)}let v=u>0?1:0,E=fb(sM(e,g)+v,e);return E=YLe(e.text,E),fb(sM(e,E),e)}function Ofe(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=ib(e.text,i);if(s){let l=sM(e,t.end);for(let u of s){if(u.kind===2||sM(e,u.pos)>l)break;if(sM(e,u.end)>l)return La(e.text,u.end,!0,!0)}}}}function _x(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let d=so(ib(e.text,o),sg(e.text,o)),g=(i=d?.[d.length-1])==null?void 0:i.end;return g||o}let l=Ofe(e,t,r);if(l)return l;let u=La(e.text,o,!0);return u!==o&&(s===2||Zd(e.text.charCodeAt(u-1)))?u:o}function XK(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===211)}function Iit(e){return Us(e)||Ql(e)}var xit=class qve{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new qve(_y(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=qve.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){C.assertEqual(t.fileName,r.fileName);for(let i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:l7(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,$O(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(let s of r){let l=wE(t,s,i,o),u=_x(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!Ofe(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:La(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){let s=wE(t,r,o),l=_x(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){let s=wE(t,r,o),l=i===void 0?t.text.length:wE(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=YO){this.replaceRange(t,$O(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=YO){this.replaceRange(t,$O(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=YO){this.replaceRangeWithNodes(t,$O(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,$O(t,r,r,YO),i)}replaceNodeRangeWithNodes(t,r,i,o,s=YO){this.replaceRangeWithNodes(t,$O(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=YO){return!!Ofe(t,r,i)}nextCommaToken(t,r){let i=q1(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){let o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Ff(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Ff(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){let o=kit(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Zd(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Mo(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){let 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=lm()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){let o=Ic(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,wE(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,wE(t,r,s),i,this.getOptionsForInsertNodeBefore(r,$a(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,L.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){let s=fb(r,t),l=oce(t.text,s),u=QLe(t,l),d=HD(t,u?l:i),g=t.text.slice(s,l),_=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${g}`;this.insertText(t,d.getStart(t),_)}insertJsdocCommentBefore(t,r,i){let o=r.getStart(t);if(r.jsDoc)for(let u of r.jsDoc)this.deleteRange(t,{pos:Sm(u.getStart(t),t),end:_x(t,u,{})});let s=_7(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){let i=Ki(r.jsDoc,s=>Bo(s.comment)?L.createJSDocText(s.comment):s.comment),o=ig(r.jsDoc);return o&&zf(o.pos,o.end,t)&&et(i)===0?void 0:L.createNodeArray(bo(i,L.createJSDocText(`
`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,Rit(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){let o=vc(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,d)=>{let g=Dit(u,l);return g&&(o[d]=g),!!g}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Un(vc(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,Ff(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(Yo(r)){if(o=Es(r,22,t),!o){if(!Xs(r))return!1;o=$a(r.parameters)}}else o=(r.kind===261?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){let o=Es(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){let o=(Es(r,21,t)||$a(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return ji(t)||Tc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:yi(t)?{suffix:", "}:to(t)?to(r)?{suffix:", "}:{}:ka(t)&&vl(t.parent)||t_(t)?{suffix:", "}:Su(t)?{suffix:","+(i?this.newLineCharacter:" ")}:C.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Ic(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){let o=hn(r.body.statements,s=>od(s)&&JS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){let o=Zs(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,L.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){let o=wE(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Zd(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){let o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,YK(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(let s of YK(r)){if(gW(o,s,t))return;let l=s.getStart(t),u=Mc.SmartIndenter.findFirstNonWhitespaceColumn(Sm(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){let i=r.getStart(t);return Mc.SmartIndenter.findFirstNonWhitespaceColumn(Sm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){let s=YK(r).length===0,l=!this.classesWithNodesInsertedAtStart.has(ss(r));l&&this.classesWithNodesInsertedAtStart.set(ss(r),{node:r,sourceFile:t});let u=Wa(r)&&(!Of(t)||!s),d=Wa(r)&&Of(t)&&s&&!l;return{indentation:i,prefix:(d?",":"")+this.newLineCharacter,suffix:u?",":gd(r)&&s?";":""}}insertNodeAfterComma(t,r,i){let o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){let 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){let o=this.insertNodeAfterWorker(t,r,$a(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return wit(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Ff(r.end),L.createToken(27)),_x(t,r,{})}getInsertNodeAfterOptions(t,r){let i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&ji(r)?i.prefix?`
${i.prefix}`:`
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return C.assert(ji(t)||l6(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(C.assert(!r.name),r.kind===220){let o=Es(r,39,t),s=Es(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),vy(this,t,o)):(this.insertText(t,$a(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,L.createToken(22))),r.body.kind!==242&&(this.insertNodesAt(t,r.body.getStart(t),[L.createToken(19),L.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[L.createToken(27),L.createToken(20)],{joiner:" "}))}else{let o=Es(r,r.kind===219?100:86,t).end;this.insertNodeAt(t,o,L.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){let s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!zf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=Mc.SmartIndenter.getContainingList(r,t)){if(!o){C.fail("node is not a list element");return}let s=wR(o,r);if(s<0)return;let l=r.getEnd();if(s!==o.length-1){let u=Fi(t,r.end);if(u&&XK(r,u)){let d=o[s+1],g=YLe(t.text,d.getFullStart()),_=`${_a(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:_})}}else{let u=r.getStart(t),d=Sm(u,t),g,_=!1;if(o.length===1)g=28;else{let v=Vc(r.pos,t);g=XK(r,v)?v.kind:28,_=Sm(o[s-1].getStart(t),t)!==d}if((Ait(t.text,r.end)||!zf(o.pos,o.end,t))&&(_=!0),_){this.replaceRange(t,Ff(l),L.createToken(g));let v=Mc.SmartIndenter.findFirstNonWhitespaceColumn(d,u,t,this.formatContext.options),E=La(t.text,l,!0,!1);for(;E!==l&&Zd(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,Ff(E),i,{indentation:v,prefix:this.newLineCharacter})}else this.replaceRange(t,Ff(l),i,{prefix:`${_a(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,CV(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[i,o]=Nit(t,r);if(i!==void 0&&o!==void 0){let s=YK(t).length===0,l=zf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Ff(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&Lle(o.node,i))||(Mo(i)?this.deleteRange(r,NV(r,i)):zfe.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=Mc.SmartIndenter.getContainingList(r,i);if(r!==Ba(o))return;let s=gl(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:Wfe(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=$K.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push($K.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}};function Rit(e){if(e.kind!==220)return e;let t=e.parent.kind===173?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function Dit(e,t){if(e.kind===t.kind)switch(e.kind){case 342:{let r=e,i=t;return He(r.name)&&He(i.name)&&r.name.escapedText===i.name.escapedText?L.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 343:return L.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 345:return L.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function Wfe(e,t){return La(e.text,wE(e,t,{leadingTriviaOption:1}),!1,!0)}function Cit(e,t,r,i){let o=Wfe(e,i);if(r===void 0||zf(_x(e,t,{}),o,e))return o;let s=Vc(i.getStart(e),e);if(XK(t,s)){let l=Vc(t.getStart(e),e);if(XK(r,l)){let u=La(e.text,s.getEnd(),!0,!0);if(zf(l.getStart(e),s.getStart(e),e))return Zd(e.text.charCodeAt(u-1))?u-1:u;if(Zd(e.text.charCodeAt(u)))return u}}return o}function Nit(e,t){let r=Es(e,19,t),i=Es(e,20,t);return[r?.end,i?.end]}function YK(e){return Wa(e)?e.properties:e.members}var $K;(e=>{function t(u,d,g,_){return Ui(_R(u,v=>v.sourceFile.path),v=>{let E=v[0].sourceFile,A=Ap(v,(N,P)=>N.range.pos-P.range.pos||N.range.end-P.range.end);for(let N=0;N<A.length-1;N++)C.assert(A[N].range.end<=A[N+1].range.pos,"Changes overlap",()=>`${JSON.stringify(A[N].range)} and ${JSON.stringify(A[N+1].range)}`);let R=Ui(A,N=>{let P=fv(N.range),k=N.kind===1?Wn(yl(N.node))??N.sourceFile:N.kind===2?Wn(yl(N.nodes[0]))??N.sourceFile:N.sourceFile,F=o(N,k,E,d,g,_);if(!(P.length===F.length&&mce(k.text,F,P.start)))return uO(P,F)});return R.length>0?{fileName:E.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,d,g,_){let v=i(kW(u),d,g,_);return{fileName:u,textChanges:[uO(Id(0,0),v)],isNewFile:!0}}e.newFileChanges=r;function i(u,d,g,_){let v=Ki(d,R=>R.statements.map(N=>N===4?"":l(N,R.oldFile,g).text)).join(g),E=HI("any file name",v,{languageVersion:99,jsDocParsingMode:1},!0,u),A=Mc.formatDocument(E,_);return Ffe(v,A)+g}e.newFileChangesWorker=i;function o(u,d,g,_,v,E){var A;if(u.kind===0)return"";if(u.kind===3)return u.text;let{options:R={},range:{pos:N}}=u,P=O=>s(O,d,g,N,R,_,v,E),k=u.kind===2?u.nodes.map(O=>yR(P(O),_)).join(((A=u.options)==null?void 0:A.joiner)||_):P(u.node),F=R.indentation!==void 0||Sm(N,d)===N?k:k.replace(/^\s+/,"");return(R.prefix||"")+F+(!R.suffix||el(F,R.suffix)?"":R.suffix)}function s(u,d,g,_,{indentation:v,prefix:E,delta:A},R,N,P){let{node:k,text:F}=l(u,d,R);P&&P(k,F);let O=D7(N,d),G=v!==void 0?v:Mc.SmartIndenter.getIndentation(_,g,O,E===R||Sm(_,d)===_);A===void 0&&(A=Mc.SmartIndenter.shouldIndentChildNode(O,u)&&O.indentSize||0);let j={text:F,getLineAndCharacterOfPosition(Z){return ca(this,Z)}},J=Mc.formatNodeGivenIndentation(k,j,d.languageVariant,G,A,{...N,options:O});return Ffe(F,J)}function l(u,d,g){let _=$Le(g),v=EO(g);return Ob({newLine:v,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},_).writeNode(4,u,d,_),{text:_.getText(),node:QK(u)}}e.getNonformattedText=l})($K||($K={}));function Ffe(e,t){for(let r=t.length-1;r>=0;r--){let{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Dl(i))}`}return e}function Mit(e){return La(e,0)===e.length}var Pit={...Gw,factory:Yk(Gw.factory.flags|1,Gw.factory.baseFactory)};function QK(e){let t=kn(e,QK,Pit,Lit,QK),r=Os(t)?t:Object.create(t);return uh(r,qLe(e),JLe(e)),r}function Lit(e,t,r,i,o){let s=Xn(e,t,r,i,o);if(!s)return s;C.assert(e);let l=s===e?L.createNodeArray(s.slice(0)):s;return uh(l,qLe(e),JLe(e)),l}function $Le(e){let t=0,r=Ek(e),i=Y=>{Y&&kfe(Y,t)},o=Y=>{Y&&wfe(Y,t)},s=Y=>{Y&&kfe(Y,t)},l=Y=>{Y&&wfe(Y,t)},u=Y=>{Y&&kfe(Y,t)},d=Y=>{Y&&wfe(Y,t)};function g(Y,Ce){if(Ce||!Mit(Y)){t=r.getTextPos();let Xe=0;for(;ag(Y.charCodeAt(Y.length-Xe-1));)Xe++;t-=Xe}}function _(Y){r.write(Y),g(Y,!1)}function v(Y){r.writeComment(Y)}function E(Y){r.writeKeyword(Y),g(Y,!1)}function A(Y){r.writeOperator(Y),g(Y,!1)}function R(Y){r.writePunctuation(Y),g(Y,!1)}function N(Y){r.writeTrailingSemicolon(Y),g(Y,!1)}function P(Y){r.writeParameter(Y),g(Y,!1)}function k(Y){r.writeProperty(Y),g(Y,!1)}function F(Y){r.writeSpace(Y),g(Y,!1)}function O(Y){r.writeStringLiteral(Y),g(Y,!1)}function G(Y,Ce){r.writeSymbol(Y,Ce),g(Y,!1)}function j(Y){r.writeLine(Y)}function J(){r.increaseIndent()}function Z(){r.decreaseIndent()}function q(){return r.getText()}function ye(Y){r.rawWrite(Y),g(Y,!1)}function ie(Y){r.writeLiteral(Y),g(Y,!0)}function K(){return r.getTextPos()}function pe(){return r.getLine()}function de(){return r.getColumn()}function fe(){return r.getIndent()}function ve(){return r.isAtStartOfLine()}function xe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:d,write:_,writeComment:v,writeKeyword:E,writeOperator:A,writePunctuation:R,writeTrailingSemicolon:N,writeParameter:P,writeProperty:k,writeSpace:F,writeStringLiteral:O,writeSymbol:G,writeLine:j,increaseIndent:J,decreaseIndent:Z,getText:q,rawWrite:ye,writeLiteral:ie,getTextPos:K,getLine:pe,getColumn:de,getIndent:fe,isAtStartOfLine:ve,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:xe}}function kit(e){let t;for(let g of e.statements)if(jh(g))t=g;else break;let r=0,i=e.text;if(t)return r=t.end,d(),r;let o=Y8(i);o!==void 0&&(r=o.length,d());let s=sg(i,r);if(!s)return r;let l,u;for(let g of s){if(g.kind===3){if(A6(i,g.pos)){l={range:g,pinnedOrTripleSlash:!0};continue}}else if(ZB(i,g.pos,g.end)){l={range:g,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;let _=e.getLineAndCharacterOfPosition(g.pos).line,v=e.getLineAndCharacterOfPosition(l.range.end).line;if(_>=v+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let _=e.getLineAndCharacterOfPosition(g.end).line;if(u<_+2)break}l={range:g,pinnedOrTripleSlash:!1}}return l&&(r=l.range.end,d()),r;function d(){if(r<i.length){let g=i.charCodeAt(r);Zd(g)&&(r++,r<i.length&&g===13&&i.charCodeAt(r)===10&&r++)}}}function QLe(e,t){return!uv(e,t)&&!nx(e,t)&&!Eq(e,t)&&!zle(e,t)}function wit(e,t){return(Tu(e)||Po(e))&&l6(t)&&t.name.kind===168||wL(e)&&wL(t)}var zfe;(e=>{function t(s,l,u,d){switch(d.kind){case 170:{let A=d.parent;Xs(A)&&A.parameters.length===1&&!Es(A,21,u)?s.replaceNodeWithText(u,d,"()"):QO(s,l,u,d);break}case 273:case 272:let g=u.imports.length&&d===$a(u.imports).parent||d===hn(u.statements,iI);vy(s,u,d,{leadingTriviaOption:g?0:Zp(d)?2:3});break;case 209:let _=d.parent;_.kind===208&&d!==Ba(_.elements)?vy(s,u,d):QO(s,l,u,d);break;case 261:o(s,l,u,d);break;case 169:QO(s,l,u,d);break;case 277:let E=d.parent;E.elements.length===1?i(s,u,E):QO(s,l,u,d);break;case 275:i(s,u,d);break;case 27:vy(s,u,d,{trailingTriviaOption:0});break;case 100:vy(s,u,d,{leadingTriviaOption:0});break;case 264:case 263:vy(s,u,d,{leadingTriviaOption:Zp(d)?2:3});break;default:d.parent?Gm(d.parent)&&d.parent.name===d?r(s,u,d.parent):Zo(d.parent)&&jn(d.parent.arguments,d)?QO(s,l,u,d):vy(s,u,d):vy(s,u,d)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)vy(s,l,u.parent);else{let d=u.name.getStart(l),g=Fi(l,u.name.end);if(g&&g.kind===28){let _=La(l.text,g.end,!1,!0);s.deleteRange(l,{pos:d,end:_})}else vy(s,l,u.name)}}function i(s,l,u){if(u.parent.name){let d=C.checkDefined(Fi(l,u.pos-1));s.deleteRange(l,{pos:d.getStart(l),end:u.end})}else{let d=w0(u,273);vy(s,l,d)}}function o(s,l,u,d){let{parent:g}=d;if(g.kind===300){s.deleteNodeRange(u,Es(g,21,u),Es(g,22,u));return}if(g.declarations.length!==1){QO(s,l,u,d);return}let _=g.parent;switch(_.kind){case 251:case 250:s.replaceNode(u,d,L.createObjectLiteralExpression());break;case 249:vy(s,u,g);break;case 244:vy(s,u,_,{leadingTriviaOption:Zp(_)?2:3});break;default:C.assertNever(_)}}})(zfe||(zfe={}));function vy(e,t,r,i={leadingTriviaOption:1}){let o=wE(t,r,i),s=_x(t,r,i);e.deleteRange(t,{pos:o,end:s})}function QO(e,t,r,i){let o=C.checkDefined(Mc.SmartIndenter.getContainingList(i,r)),s=wR(o,i);if(C.assert(s!==-1),o.length===1){vy(e,r,i);return}C.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:Wfe(r,i),end:s===o.length-1?_x(r,i,{}):Cit(r,i,o[s-1],o[s+1])})}var Mc={};x(Mc,{FormattingContext:()=>eke,FormattingRequestKind:()=>ZLe,RuleAction:()=>tke,RuleFlags:()=>nke,SmartIndenter:()=>c_,anyContext:()=>ZK,createTextRangeWithKind:()=>rX,formatDocument:()=>xot,formatNodeGivenIndentation:()=>Lot,formatOnClosingCurly:()=>Iot,formatOnEnter:()=>Sot,formatOnOpeningCurly:()=>Aot,formatOnSemicolon:()=>Eot,formatSelection:()=>Rot,getAllRules:()=>rke,getFormatContext:()=>mot,getFormattingScanner:()=>Bfe,getIndentationString:()=>eme,getRangeOfEnclosingComment:()=>Dke});var ZLe=(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))(ZLe||{}),eke=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=C.checkDefined(e),this.currentTokenParent=C.checkDefined(t),this.nextTokenSpan=C.checkDefined(r),this.nextTokenParent=C.checkDefined(i),this.contextNode=C.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){let 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){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=Es(e,19,this.sourceFile),r=Es(e,20,this.sourceFile);if(t&&r){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}},Oit=lg(99,!1,0),Wit=lg(99,!1,1);function Bfe(e,t,r,i,o){let s=t===1?Wit:Oit;s.setText(e),s.resetTokenState(r);let l=!0,u,d,g,_,v,E=o({advance:A,readTokenInfo:j,readEOFTokenRange:Z,isOnToken:q,isOnEOF:ye,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:K,skipToStartOf:pe,getTokenFullStart:()=>v?.token.pos??s.getTokenStart(),getStartPos:()=>v?.token.pos??s.getTokenStart()});return v=void 0,s.setText(void 0),E;function A(){v=void 0,s.getTokenFullStart()!==r?l=!!d&&Ba(d).kind===4:s.scan(),u=void 0,d=void 0;let fe=s.getTokenFullStart();for(;fe<i;){let ve=s.getToken();if(!KR(ve))break;s.scan();let xe={pos:fe,end:s.getTokenFullStart(),kind:ve};fe=s.getTokenFullStart(),u=Bn(u,xe)}g=s.getTokenFullStart()}function R(de){switch(de.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function N(de){if(de.parent)switch(de.parent.kind){case 292:case 287:case 288:case 286:return Qu(de.kind)||de.kind===80}return!1}function P(de){return NI(de)||n_(de)&&v?.token.kind===12}function k(de){return de.kind===14}function F(de){return de.kind===17||de.kind===18}function O(de){return de.parent&&r_(de.parent)&&de.parent.initializer===de}function G(de){return de===44||de===69}function j(de){C.assert(q());let fe=R(de)?1:k(de)?2:F(de)?3:N(de)?4:P(de)?5:O(de)?6:0;if(v&&fe===_)return ie(v,de);s.getTokenFullStart()!==g&&(C.assert(v!==void 0),s.resetTokenState(g),s.scan());let ve=J(de,fe),xe=rX(s.getTokenFullStart(),s.getTokenEnd(),ve);for(d&&(d=void 0);s.getTokenFullStart()<i&&(ve=s.scan(),!!KR(ve));){let Y=rX(s.getTokenFullStart(),s.getTokenEnd(),ve);if(d||(d=[]),d.push(Y),ve===4){s.scan();break}}return v={leadingTrivia:u,trailingTrivia:d,token:xe},ie(v,de)}function J(de,fe){let ve=s.getToken();switch(_=0,fe){case 1:if(ve===32){_=1;let xe=s.reScanGreaterToken();return C.assert(de.kind===xe),xe}break;case 2:if(G(ve)){_=2;let xe=s.reScanSlashToken();return C.assert(de.kind===xe),xe}break;case 3:if(ve===20)return _=3,s.reScanTemplateToken(!1);break;case 4:return _=4,s.scanJsxIdentifier();case 5:return _=5,s.reScanJsxToken(!1);case 6:return _=6,s.reScanJsxAttributeValue();case 0:break;default:C.assertNever(fe)}return ve}function Z(){return C.assert(ye()),rX(s.getTokenFullStart(),s.getTokenEnd(),1)}function q(){let de=v?v.token.kind:s.getToken();return de!==1&&!KR(de)}function ye(){return(v?v.token.kind:s.getToken())===1}function ie(de,fe){return XA(fe)&&de.token.kind!==fe.kind&&(de.token.kind=fe.kind),de}function K(de){s.resetTokenState(de.end),g=s.getTokenFullStart(),_=void 0,v=void 0,l=!1,u=void 0,d=void 0}function pe(de){s.resetTokenState(de.pos),g=s.getTokenFullStart(),_=void 0,v=void 0,l=!1,u=void 0,d=void 0}}var ZK=ae,tke=(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))(tke||{}),nke=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(nke||{});function rke(){let e=[];for(let J=0;J<=166;J++)J!==1&&e.push(J);function t(...J){return{tokens:e.filter(Z=>!J.some(q=>q===Z)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=JP([...e,3]),o=JP([...e,1]),s=oke(83,166),l=oke(30,79),u=[103,104,165,130,142,152],d=[46,47,55,54],g=[9,10,80,21,23,19,110,105],_=[80,21,110,105],v=[80,22,24,105],E=[80,21,110,105],A=[80,22,24,105],R=[2,3],N=[80,...Pq],P=i,k=JP([80,32,3,86,95,102]),F=JP([22,3,92,113,98,93,85]),O=[oi("IgnoreBeforeComment",r,R,ZK,1),oi("IgnoreAfterLineComment",2,r,ZK,1),oi("NotSpaceBeforeColon",r,59,[no,y5,lke],16),oi("SpaceAfterColon",59,r,[no,y5,eot],4),oi("NoSpaceBeforeQuestionMark",r,58,[no,y5,lke],16),oi("SpaceAfterQuestionMarkInConditionalOperator",58,r,[no,Git],4),oi("NoSpaceAfterQuestionMark",58,r,[no,Bit],16),oi("NoSpaceBeforeDot",r,[25,29],[no,fot],16),oi("NoSpaceAfterDot",[25,29],r,[no],16),oi("NoSpaceBetweenImportParenInImportType",102,21,[no,Qit],16),oi("NoSpaceAfterUnaryPrefixOperator",d,g,[no,y5],16),oi("NoSpaceAfterUnaryPreincrementOperator",46,_,[no],16),oi("NoSpaceAfterUnaryPredecrementOperator",47,E,[no],16),oi("NoSpaceBeforeUnaryPostincrementOperator",v,46,[no,Ake],16),oi("NoSpaceBeforeUnaryPostdecrementOperator",A,47,[no,Ake],16),oi("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[no,Gb],4),oi("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[no,Gb],4),oi("SpaceAfterAddWhenFollowedByPreincrement",40,46,[no,Gb],4),oi("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[no,Gb],4),oi("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[no,Gb],4),oi("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[no,Gb],4),oi("NoSpaceAfterCloseBrace",20,[28,27],[no],16),oi("NewLineBeforeCloseBraceInBlockContext",i,20,[dke],8),oi("SpaceAfterCloseBrace",20,t(22),[no,Uit],4),oi("SpaceBetweenCloseBraceAndElse",20,93,[no],4),oi("SpaceBetweenCloseBraceAndWhile",20,117,[no],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[no,_ke],16),oi("SpaceAfterConditionalClosingParen",22,23,[v5],4),oi("NoSpaceBetweenFunctionKeywordAndStar",100,42,[fke],16),oi("SpaceAfterStarInGeneratorDeclaration",42,80,[fke],4),oi("SpaceAfterFunctionInFuncDecl",100,r,[OE],4),oi("NewLineAfterOpenBraceInBlockContext",19,r,[dke],8),oi("SpaceAfterGetSetInMember",[139,153],80,[OE],4),oi("NoSpaceBetweenYieldKeywordAndStar",127,42,[no,Eke],16),oi("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[no,Eke],4),oi("NoSpaceBetweenReturnAndSemicolon",107,27,[no],16),oi("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[no],4),oi("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[no,rot],4),oi("NoSpaceBeforeOpenParenInFuncCall",r,21,[no,Jit,Kit],16),oi("SpaceBeforeBinaryKeywordOperator",r,u,[no,Gb],4),oi("SpaceAfterBinaryKeywordOperator",u,r,[no,Gb],4),oi("SpaceAfterVoidOperator",116,r,[no,lot],4),oi("SpaceBetweenAsyncAndOpenParen",134,21,[$it,no],4),oi("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[no],4),oi("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[no],16),oi("SpaceBeforeJsxAttribute",r,80,[Zit,no],4),oi("SpaceBeforeSlashInJsxOpeningElement",r,44,[bke,no],4),oi("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[bke,no],16),oi("NoSpaceBeforeEqualInJsxAttribute",r,64,[yke,no],16),oi("NoSpaceAfterEqualInJsxAttribute",64,r,[yke,no],16),oi("NoSpaceBeforeJsxNamespaceColon",80,59,[vke],16),oi("NoSpaceAfterJsxNamespaceColon",59,80,[vke],16),oi("NoSpaceAfterModuleImport",[144,149],21,[no],16),oi("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,[no],4),oi("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[no],4),oi("SpaceAfterModuleName",11,19,[iot],4),oi("SpaceBeforeArrow",r,39,[no],4),oi("SpaceAfterArrow",39,r,[no],4),oi("NoSpaceAfterEllipsis",26,80,[no],16),oi("NoSpaceAfterOptionalParameters",58,[22,28],[no,y5],16),oi("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[no,oot],16),oi("NoSpaceBeforeOpenAngularBracket",N,30,[no,b5],16),oi("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[no,b5],16),oi("NoSpaceAfterOpenAngularBracket",30,r,[no,b5],16),oi("NoSpaceBeforeCloseAngularBracket",r,32,[no,b5],16),oi("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[no,b5,jit,sot],16),oi("SpaceBeforeAt",[22,80],60,[no],4),oi("NoSpaceAfterAt",60,r,[no],16),oi("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[not],4),oi("NoSpaceBeforeNonNullAssertionOperator",r,54,[no,cot],16),oi("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[no,aot],16),oi("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[no],4)],G=[oi("SpaceAfterConstructor",137,21,[yf("insertSpaceAfterConstructor"),no],4),oi("NoSpaceAfterConstructor",137,21,[l_("insertSpaceAfterConstructor"),no],16),oi("SpaceAfterComma",28,r,[yf("insertSpaceAfterCommaDelimiter"),no,Jfe,Xit,Yit],4),oi("NoSpaceAfterComma",28,r,[l_("insertSpaceAfterCommaDelimiter"),no,Jfe],16),oi("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[yf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),OE],4),oi("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[l_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),OE],16),oi("SpaceAfterKeywordInControl",s,21,[yf("insertSpaceAfterKeywordsInControlFlowStatements"),v5],4),oi("NoSpaceAfterKeywordInControl",s,21,[l_("insertSpaceAfterKeywordsInControlFlowStatements"),v5],16),oi("SpaceAfterOpenParen",21,r,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("SpaceBeforeCloseParen",r,22,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("SpaceBetweenOpenParens",21,21,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("NoSpaceBetweenParens",21,22,[no],16),oi("NoSpaceAfterOpenParen",21,r,[l_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],16),oi("NoSpaceBeforeCloseParen",r,22,[l_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],16),oi("SpaceAfterOpenBracket",23,r,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],4),oi("SpaceBeforeCloseBracket",r,24,[yf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],4),oi("NoSpaceBetweenBrackets",23,24,[no],16),oi("NoSpaceAfterOpenBracket",23,r,[l_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],16),oi("NoSpaceBeforeCloseBracket",r,24,[l_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],16),oi("SpaceAfterOpenBrace",19,r,[ske("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),cke],4),oi("SpaceBeforeCloseBrace",r,20,[ske("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),cke],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[no,_ke],16),oi("NoSpaceAfterOpenBrace",19,r,[Gfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),no],16),oi("NoSpaceBeforeCloseBrace",r,20,[Gfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),no],16),oi("SpaceBetweenEmptyBraceBrackets",19,20,[yf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[Gfe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),no],16),oi("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[yf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),gke],4,1),oi("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[yf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),no],4),oi("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[l_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),gke],16,1),oi("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[l_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),no],16),oi("SpaceAfterOpenBraceInJsxExpression",19,r,[yf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,tX],4),oi("SpaceBeforeCloseBraceInJsxExpression",r,20,[yf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,tX],4),oi("NoSpaceAfterOpenBraceInJsxExpression",19,r,[l_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,tX],16),oi("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[l_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,tX],16),oi("SpaceAfterSemicolonInFor",27,r,[yf("insertSpaceAfterSemicolonInForStatements"),no,jfe],4),oi("NoSpaceAfterSemicolonInFor",27,r,[l_("insertSpaceAfterSemicolonInForStatements"),no,jfe],16),oi("SpaceBeforeBinaryOperator",r,l,[yf("insertSpaceBeforeAndAfterBinaryOperators"),no,Gb],4),oi("SpaceAfterBinaryOperator",l,r,[yf("insertSpaceBeforeAndAfterBinaryOperators"),no,Gb],4),oi("NoSpaceBeforeBinaryOperator",r,l,[l_("insertSpaceBeforeAndAfterBinaryOperators"),no,Gb],16),oi("NoSpaceAfterBinaryOperator",l,r,[l_("insertSpaceBeforeAndAfterBinaryOperators"),no,Gb],16),oi("SpaceBeforeOpenParenInFuncDecl",r,21,[yf("insertSpaceBeforeFunctionParenthesis"),no,OE],4),oi("NoSpaceBeforeOpenParenInFuncDecl",r,21,[l_("insertSpaceBeforeFunctionParenthesis"),no,OE],16),oi("NewLineBeforeOpenBraceInControl",F,19,[yf("placeOpenBraceOnNewLineForControlBlocks"),v5,qfe],8,1),oi("NewLineBeforeOpenBraceInFunction",P,19,[yf("placeOpenBraceOnNewLineForFunctions"),OE,qfe],8,1),oi("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",k,19,[yf("placeOpenBraceOnNewLineForFunctions"),mke,qfe],8,1),oi("SpaceAfterTypeAssertion",32,r,[yf("insertSpaceAfterTypeAssertion"),no,Xfe],4),oi("NoSpaceAfterTypeAssertion",32,r,[l_("insertSpaceAfterTypeAssertion"),no,Xfe],16),oi("SpaceBeforeTypeAnnotation",r,[58,59],[yf("insertSpaceBeforeTypeAnnotation"),no,Ufe],4),oi("NoSpaceBeforeTypeAnnotation",r,[58,59],[l_("insertSpaceBeforeTypeAnnotation"),no,Ufe],16),oi("NoOptionalSemicolon",27,o,[ake("semicolons","remove"),uot],32),oi("OptionalSemicolon",r,o,[ake("semicolons","insert"),pot],64)],j=[oi("NoSpaceBeforeSemicolon",r,27,[no],16),oi("SpaceBeforeOpenBraceInControl",F,19,[Vfe("placeOpenBraceOnNewLineForControlBlocks"),v5,Kfe,Hfe],4,1),oi("SpaceBeforeOpenBraceInFunction",P,19,[Vfe("placeOpenBraceOnNewLineForFunctions"),OE,eX,Kfe,Hfe],4,1),oi("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",k,19,[Vfe("placeOpenBraceOnNewLineForFunctions"),mke,Kfe,Hfe],4,1),oi("NoSpaceBeforeComma",r,28,[no],16),oi("NoSpaceBeforeOpenBracket",t(134,84),23,[no],16),oi("NoSpaceAfterCloseBracket",24,r,[no,tot],16),oi("SpaceAfterSemicolon",27,r,[no],4),oi("SpaceBetweenForAndAwaitKeyword",99,135,[no],4),oi("SpaceBetweenDotDotDotAndTypeName",26,N,[no],16),oi("SpaceBetweenStatements",[22,92,93,84],r,[no,Jfe,Fit],4),oi("SpaceAfterTryCatchFinally",[113,85,98],19,[no],4)];return[...O,...G,...j]}function oi(e,t,r,i,o,s=0){return{leftTokenRange:ike(t),rightTokenRange:ike(r),rule:{debugName:e,context:i,action:o,flags:s}}}function JP(e){return{tokens:e,isSpecific:!0}}function ike(e){return typeof e=="number"?JP([e]):Mo(e)?JP(e):e}function oke(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)jn(r,o)||i.push(o);return JP(i)}function ake(e,t){return r=>r.options&&r.options[e]===t}function yf(e){return t=>t.options&&Rs(t.options,e)&&!!t.options[e]}function Gfe(e){return t=>t.options&&Rs(t.options,e)&&!t.options[e]}function l_(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]}function Vfe(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function ske(e){return t=>!t.options||!Rs(t.options,e)||!!t.options[e]}function jfe(e){return e.contextNode.kind===249}function Fit(e){return!jfe(e)}function Gb(e){switch(e.contextNode.kind){case 227:return e.contextNode.operatorToken.kind!==28;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:case 169:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 251:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function y5(e){return!Gb(e)}function lke(e){return!Ufe(e)}function Ufe(e){let t=e.contextNode.kind;return t===173||t===172||t===170||t===261||YA(t)}function zit(e){return Po(e.contextNode)&&e.contextNode.questionToken}function Bit(e){return!zit(e)}function Git(e){return e.contextNode.kind===228||e.contextNode.kind===195}function Hfe(e){return e.TokensAreOnSameLine()||eX(e)}function cke(e){return e.contextNode.kind===207||e.contextNode.kind===201||Vit(e)}function qfe(e){return eX(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function dke(e){return uke(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Vit(e){return uke(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function uke(e){return pke(e.contextNode)}function eX(e){return pke(e.nextTokenParent)}function pke(e){if(hke(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function OE(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function jit(e){return!OE(e)}function fke(e){return e.contextNode.kind===263||e.contextNode.kind===219}function mke(e){return hke(e.contextNode)}function hke(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function Uit(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{let t=e.currentTokenParent.parent;if(!t||t.kind!==220&&t.kind!==219)return!0}}return!1}function v5(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function _ke(e){return e.contextNode.kind===211}function Hit(e){return e.contextNode.kind===214}function qit(e){return e.contextNode.kind===215}function Jit(e){return Hit(e)||qit(e)}function Kit(e){return e.currentTokenSpan.kind!==28}function Xit(e){return e.nextTokenSpan.kind!==24}function Yit(e){return e.nextTokenSpan.kind!==22}function $it(e){return e.contextNode.kind===220}function Qit(e){return e.contextNode.kind===206}function no(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function gke(e){return e.contextNode.kind!==12}function Jfe(e){return e.contextNode.kind!==285&&e.contextNode.kind!==289}function tX(e){return e.contextNode.kind===295||e.contextNode.kind===294}function Zit(e){return e.nextTokenParent.kind===292||e.nextTokenParent.kind===296&&e.nextTokenParent.parent.kind===292}function yke(e){return e.contextNode.kind===292}function eot(e){return e.nextTokenParent.kind!==296}function vke(e){return e.nextTokenParent.kind===296}function bke(e){return e.contextNode.kind===286}function tot(e){return!OE(e)&&!eX(e)}function not(e){return e.TokensAreOnSameLine()&&uf(e.contextNode)&&Tke(e.currentTokenParent)&&!Tke(e.nextTokenParent)}function Tke(e){for(;e&&St(e);)e=e.parent;return e&&e.kind===171}function rot(e){return e.currentTokenParent.kind===262&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Kfe(e){return e.formattingRequestKind!==2}function iot(e){return e.contextNode.kind===268}function oot(e){return e.contextNode.kind===188}function aot(e){return e.contextNode.kind===181}function Ske(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function b5(e){return Ske(e.currentTokenSpan,e.currentTokenParent)||Ske(e.nextTokenSpan,e.nextTokenParent)}function Xfe(e){return e.contextNode.kind===217}function sot(e){return!Xfe(e)}function lot(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===223}function Eke(e){return e.contextNode.kind===230&&e.contextNode.expression!==void 0}function cot(e){return e.contextNode.kind===236}function Ake(e){return!dot(e)}function dot(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}function uot(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(KR(t)){let s=e.nextTokenParent===e.currentTokenParent?q1(e.currentTokenParent,Dn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===27&&e.currentTokenSpan.kind===27?!0:t===241||t===27?!1:e.contextNode.kind===265||e.contextNode.kind===266?!Tu(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Po(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==249&&e.currentTokenParent.kind!==243&&e.currentTokenParent.kind!==241&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==229&&t!==16&&t!==15&&t!==25}function pot(e){return b7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function fot(e){return!qr(e.contextNode)||!ep(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function mot(e,t){return{options:e,getRules:hot(),host:t}}var Yfe;function hot(){return Yfe===void 0&&(Yfe=got(rke())),Yfe}function _ot(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function got(e){let t=yot(e);return r=>{let i=t[Ike(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let u=~_ot(s);l.action&u&&Vn(l.context,d=>d(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function yot(e){let t=new Array($fe*$fe),r=new Array(t.length);for(let i of e){let o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let s of i.leftTokenRange.tokens)for(let l of i.rightTokenRange.tokens){let u=Ike(s,l),d=t[u];d===void 0&&(d=t[u]=[]),vot(d,i.rule,o,r,u)}}return t}function Ike(e,t){return C.assert(e<=166&&t<=166,"Must compute formatting context from tokens"),e*$fe+t}var KP=5,nX=31,$fe=167,ZO=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=KP*1]="StopRulesAny",e[e.ContextRulesSpecific=KP*2]="ContextRulesSpecific",e[e.ContextRulesAny=KP*3]="ContextRulesAny",e[e.NoContextRulesSpecific=KP*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=KP*5]="NoContextRulesAny",e))(ZO||{});function vot(e,t,r,i,o){let s=t.action&3?r?0:ZO.StopRulesAny:t.context!==ZK?r?ZO.ContextRulesSpecific:ZO.ContextRulesAny:r?ZO.NoContextRulesSpecific:ZO.NoContextRulesAny,l=i[o]||0;e.splice(bot(l,s),0,t),i[o]=Tot(l,s)}function bot(e,t){let r=0;for(let i=0;i<=t;i+=KP)r+=e&nX,e>>=KP;return r}function Tot(e,t){let r=(e>>t&nX)+1;return C.assert((r&nX)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(nX<<t)|r<<t}function rX(e,t,r){let i={pos:e,end:t,kind:r};return C.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>C.formatSyntaxKind(r)}),i}function Sot(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=zL(i,t);for(;zh(t.text.charCodeAt(o));)o--;Zd(t.text.charCodeAt(o))&&o--;let s={pos:fb(i-1,t),end:o+1};return T5(s,t,r,2)}function Eot(e,t,r){let i=Qfe(e,27,t);return xke(Zfe(i),t,r,3)}function Aot(e,t,r){let i=Qfe(e,19,t);if(!i)return[];let o=i.parent,s=Zfe(o),l={pos:Sm(s.getStart(t),t),end:e};return T5(l,t,r,4)}function Iot(e,t,r){let i=Qfe(e,20,t);return xke(Zfe(i),t,r,5)}function xot(e,t){let r={pos:0,end:e.text.length};return T5(r,e,t,0)}function Rot(e,t,r,i){let o={pos:Sm(e,r),end:t};return T5(o,r,i,1)}function Qfe(e,t,r){let i=Vc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Zfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Dot(t.parent,t);)t=t.parent;return t}function Dot(e,t){switch(e.kind){case 264:case 265:return Zu(e.members,t);case 268:let r=e.body;return!!r&&r.kind===269&&Zu(r.statements,t);case 308:case 242:case 269:return Zu(e.statements,t);case 300:return Zu(e.block.statements,t)}return!1}function Cot(e,t){return r(t);function r(i){let o=Jo(i,s=>sV(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function Not(e,t){if(!e.length)return o;let r=e.filter(s=>EP(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;let l=r[i];if(s.end<=l.start)return!1;if(e7(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Mot(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=Vc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Pot(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(c_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Lot(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return Bfe(t.text,r,l.pos,l.end,u=>Rke(l,e,i,o,u,s,1,d=>!1,t))}function xke(e,t,r,i){if(!e)return[];let o={pos:Sm(e.getStart(t),t),end:e.end};return T5(o,t,r,i)}function T5(e,t,r,i){let o=Cot(e,t);return Bfe(t.text,t.languageVariant,Mot(o,e,t),e.end,s=>Rke(e,o,c_.getIndentationForNode(o,e,t,r.options),Pot(o,r.options,t),s,r,i,Not(t.parseDiagnostics,e),t))}function Rke(e,t,r,i,o,{options:s,getRules:l,host:u},d,g,_){var v;let E=new eke(_,d,s),A,R,N,P,k,F=-1,O=[];if(o.advance(),o.isOnToken()){let ce=_.getLineAndCharacterOfPosition(t.getStart(_)).line,De=ce;uf(t)&&(De=_.getLineAndCharacterOfPosition(eG(t,_)).line),ye(t,t,ce,De,r,i)}let G=o.getCurrentLeadingTrivia();if(G){let ce=c_.nodeWillIndentChild(s,t,void 0,_,!1)?r+s.indentSize:r;ie(G,ce,!0,De=>{pe(De,_.getLineAndCharacterOfPosition(De.pos),t,t,void 0),fe(De.pos,ce,!1)}),s.trimTrailingWhitespace!==!1&&Se(G)}if(R&&o.getTokenFullStart()>=e.end){let ce=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(ce&&ce.pos===A){let De=((v=Vc(ce.end,_,t))==null?void 0:v.parent)||N;de(ce,_.getLineAndCharacterOfPosition(ce.pos).line,De,R,P,N,De,void 0)}}return O;function j(ce,De,ge,je,Ge){if(EP(je,ce,De)||lO(je,ce,De)){if(Ge!==-1)return Ge}else{let We=_.getLineAndCharacterOfPosition(ce).line,at=Sm(ce,_),Wt=c_.findFirstNonWhitespaceColumn(at,ce,_,s);if(We!==ge||ce===Wt){let cn=c_.getBaseIndentation(s);return cn>Wt?cn:Wt}}return-1}function J(ce,De,ge,je,Ge,We){let at=c_.shouldIndentChildNode(s,ce)?s.indentSize:0;return We===De?{indentation:De===k?F:Ge.getIndentation(),delta:Math.min(s.indentSize,Ge.getDelta(ce)+at)}:ge===-1?ce.kind===21&&De===k?{indentation:F,delta:Ge.getDelta(ce)}:c_.childStartsOnTheSameLineWithElseInIfStatement(je,ce,De,_)||c_.childIsUnindentedBranchOfConditionalExpression(je,ce,De,_)||c_.argumentStartsOnSameLineAsPreviousArgument(je,ce,De,_)?{indentation:Ge.getIndentation(),delta:at}:{indentation:Ge.getIndentation()+Ge.getDelta(ce),delta:at}:{indentation:ge,delta:at}}function Z(ce){if(bm(ce)){let De=hn(ce.modifiers,Aa,ho(ce.modifiers,zc));if(De)return De.kind}switch(ce.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(ce.asteriskToken)return 42;case 173:case 170:let De=Oo(ce);if(De)return De.kind}}function q(ce,De,ge,je){return{getIndentationForComment:(at,Wt,cn)=>{switch(at){case 20:case 24:case 22:return ge+We(cn)}return Wt!==-1?Wt:ge},getIndentationForToken:(at,Wt,cn,gn)=>!gn&&Ge(at,Wt,cn)?ge+We(cn):ge,getIndentation:()=>ge,getDelta:We,recomputeIndentation:(at,Wt)=>{c_.shouldIndentChildNode(s,Wt,ce,_)&&(ge+=at?s.indentSize:-s.indentSize,je=c_.shouldIndentChildNode(s,ce)?s.indentSize:0)}};function Ge(at,Wt,cn){switch(Wt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(cn.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(cn.kind!==201)return!1;break}return De!==at&&!(uf(ce)&&Wt===Z(ce))}function We(at){return c_.nodeWillIndentChild(s,ce,at,_,!0)?je:0}}function ye(ce,De,ge,je,Ge,We){if(!EP(e,ce.getStart(_),ce.getEnd()))return;let at=q(ce,ge,Ge,We),Wt=De;for(Jo(ce,_t=>{cn(_t,-1,ce,at,ge,je,!1)},_t=>{gn(_t,ce,ge,at)});o.isOnToken()&&o.getTokenFullStart()<e.end;){let _t=o.readTokenInfo(ce);if(_t.token.end>Math.min(ce.end,e.end))break;Kn(_t,ce,at,ce)}function cn(_t,en,ir,Di,lo,zt,Zr,Ai){if(C.assert(!Os(_t)),Ol(_t)||xte(ir,_t))return en;let Ni=_t.getStart(_),Pr=_.getLineAndCharacterOfPosition(Ni).line,Ci=Pr;uf(_t)&&(Ci=_.getLineAndCharacterOfPosition(eG(_t,_)).line);let $e=-1;if(Zr&&Zu(e,ir)&&($e=j(Ni,_t.end,lo,e,en),$e!==-1&&(en=$e)),!EP(e,_t.pos,_t.end))return _t.end<e.pos&&o.skipToEndOf(_t),en;if(_t.getFullWidth()===0)return en;for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){let dr=o.readTokenInfo(ce);if(dr.token.end>e.end)return en;if(dr.token.end>Ni){dr.token.pos>Ni&&o.skipToStartOf(_t);break}Kn(dr,ce,Di,ce)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return en;if(XA(_t)){let dr=o.readTokenInfo(_t);if(_t.kind!==12)return C.assert(dr.token.end===_t.end,"Token end is child end"),Kn(dr,ce,Di,_t),en}let At=_t.kind===171?Pr:zt,mn=J(_t,Pr,$e,ce,Di,At);return ye(_t,Wt,Pr,Ci,mn.indentation,mn.delta),Wt=ce,Ai&&ir.kind===210&&en===-1&&(en=mn.indentation),en}function gn(_t,en,ir,Di){C.assert(s1(_t)),C.assert(!Os(_t));let lo=kot(en,_t),zt=Di,Zr=ir;if(!EP(e,_t.pos,_t.end)){_t.end<e.pos&&o.skipToEndOf(_t);return}if(lo!==0)for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){let Pr=o.readTokenInfo(en);if(Pr.token.end>_t.pos)break;if(Pr.token.kind===lo){Zr=_.getLineAndCharacterOfPosition(Pr.token.pos).line,Kn(Pr,en,Di,en);let Ci;if(F!==-1)Ci=F;else{let $e=Sm(Pr.token.pos,_);Ci=c_.findFirstNonWhitespaceColumn($e,Pr.token.pos,_,s)}zt=q(en,ir,Ci,s.indentSize)}else Kn(Pr,en,Di,en)}let Ai=-1;for(let Pr=0;Pr<_t.length;Pr++){let Ci=_t[Pr];Ai=cn(Ci,Ai,ce,zt,Zr,Zr,!0,Pr===0)}let Ni=wot(lo);if(Ni!==0&&o.isOnToken()&&o.getTokenFullStart()<e.end){let Pr=o.readTokenInfo(en);Pr.token.kind===28&&(Kn(Pr,en,zt,en),Pr=o.isOnToken()?o.readTokenInfo(en):void 0),Pr&&Pr.token.kind===Ni&&Zu(en,Pr.token)&&Kn(Pr,en,zt,en,!0)}}function Kn(_t,en,ir,Di,lo){C.assert(Zu(en,_t.token));let zt=o.lastTrailingTriviaWasNewLine(),Zr=!1;_t.leadingTrivia&&K(_t.leadingTrivia,en,Wt,ir);let Ai=0,Ni=Zu(e,_t.token),Pr=_.getLineAndCharacterOfPosition(_t.token.pos);if(Ni){let Ci=g(_t.token),$e=R;if(Ai=pe(_t.token,Pr,en,Wt,ir),!Ci)if(Ai===0){let At=$e&&_.getLineAndCharacterOfPosition($e.end).line;Zr=zt&&Pr.line!==At}else Zr=Ai===1}if(_t.trailingTrivia&&(A=Ba(_t.trailingTrivia).end,K(_t.trailingTrivia,en,Wt,ir)),Zr){let Ci=Ni&&!g(_t.token)?ir.getIndentationForToken(Pr.line,_t.token.kind,Di,!!lo):-1,$e=!0;if(_t.leadingTrivia){let At=ir.getIndentationForComment(_t.token.kind,Ci,Di);$e=ie(_t.leadingTrivia,At,$e,mn=>fe(mn.pos,At,!1))}Ci!==-1&&$e&&(fe(_t.token.pos,Ci,Ai===1),k=Pr.line,F=Ci)}o.advance(),Wt=en}}function ie(ce,De,ge,je){for(let Ge of ce){let We=Zu(e,Ge);switch(Ge.kind){case 3:We&&Y(Ge,De,!ge),ge=!1;break;case 2:ge&&We&&je(Ge),ge=!1;break;case 4:ge=!0;break}}return ge}function K(ce,De,ge,je){for(let Ge of ce)if(s7(Ge.kind)&&Zu(e,Ge)){let We=_.getLineAndCharacterOfPosition(Ge.pos);pe(Ge,We,De,ge,je)}}function pe(ce,De,ge,je,Ge){let We=g(ce),at=0;if(!We)if(R)at=de(ce,De.line,ge,R,P,N,je,Ge);else{let Wt=_.getLineAndCharacterOfPosition(e.pos);Ce(Wt.line,De.line)}return R=ce,A=ce.end,N=ge,P=De.line,at}function de(ce,De,ge,je,Ge,We,at,Wt){E.updateContext(je,We,ce,ge,at);let cn=l(E),gn=E.options.trimTrailingWhitespace!==!1,Kn=0;return cn?Pn(cn,_t=>{if(Kn=lt(_t,je,Ge,ce,De),Wt)switch(Kn){case 2:ge.getStart(_)===ce.pos&&Wt.recomputeIndentation(!1,at);break;case 1:ge.getStart(_)===ce.pos&&Wt.recomputeIndentation(!0,at);break;default:C.assert(Kn===0)}gn=gn&&!(_t.action&16)&&_t.flags!==1}):gn=gn&&ce.kind!==1,De!==Ge&&gn&&Ce(Ge,De,je),Kn}function fe(ce,De,ge){let je=eme(De,s);if(ge)Ne(ce,0,je);else{let Ge=_.getLineAndCharacterOfPosition(ce),We=fb(Ge.line,_);(De!==ve(We,Ge.character)||xe(je,We))&&Ne(We,Ge.character,je)}}function ve(ce,De){let ge=0;for(let je=0;je<De;je++)_.text.charCodeAt(ce+je)===9?ge+=s.tabSize-ge%s.tabSize:ge++;return ge}function xe(ce,De){return ce!==_.text.substr(De,ce.length)}function Y(ce,De,ge,je=!0){let Ge=_.getLineAndCharacterOfPosition(ce.pos).line,We=_.getLineAndCharacterOfPosition(ce.end).line;if(Ge===We){ge||fe(ce.pos,De,!1);return}let at=[],Wt=ce.pos;for(let en=Ge;en<We;en++){let ir=zL(en,_);at.push({pos:Wt,end:ir}),Wt=fb(en+1,_)}if(je&&at.push({pos:Wt,end:ce.end}),at.length===0)return;let cn=fb(Ge,_),gn=c_.findFirstNonWhitespaceCharacterAndColumn(cn,at[0].pos,_,s),Kn=0;ge&&(Kn=1,Ge++);let _t=De-gn.column;for(let en=Kn;en<at.length;en++,Ge++){let ir=fb(Ge,_),Di=en===0?gn:c_.findFirstNonWhitespaceCharacterAndColumn(at[en].pos,at[en].end,_,s),lo=Di.column+_t;if(lo>0){let zt=eme(lo,s);Ne(ir,Di.character,zt)}else be(ir,Di.character)}}function Ce(ce,De,ge){for(let je=ce;je<De;je++){let Ge=fb(je,_),We=zL(je,_);if(ge&&(s7(ge.kind)||xq(ge.kind))&&ge.pos<=We&&ge.end>We)continue;let at=Xe(Ge,We);at!==-1&&(C.assert(at===Ge||!zh(_.text.charCodeAt(at-1))),be(at,We+1-at))}}function Xe(ce,De){let ge=De;for(;ge>=ce&&zh(_.text.charCodeAt(ge));)ge--;return ge!==De?ge+1:-1}function Se(ce){let De=R?R.end:e.pos;for(let ge of ce)s7(ge.kind)&&(De<ge.pos&&re(De,ge.pos-1,R),De=ge.end+1);De<e.end&&re(De,e.end,R)}function re(ce,De,ge){let je=_.getLineAndCharacterOfPosition(ce).line,Ge=_.getLineAndCharacterOfPosition(De).line;Ce(je,Ge+1,ge)}function be(ce,De){De&&O.push(c7(ce,De,""))}function Ne(ce,De,ge){(De||ge)&&O.push(c7(ce,De,ge))}function Be(ce,De){O.push(c7(ce,0,De))}function lt(ce,De,ge,je,Ge){let We=Ge!==ge;switch(ce.action){case 1:return 0;case 16:if(De.end!==je.pos)return be(De.end,je.pos-De.end),We?2:0;break;case 32:be(De.pos,De.end-De.pos);break;case 8:if(ce.flags!==1&&ge!==Ge)return 0;if(Ge-ge!==1)return Ne(De.end,je.pos-De.end,_y(u,s)),We?0:1;break;case 4:if(ce.flags!==1&&ge!==Ge)return 0;if(je.pos-De.end!==1||_.text.charCodeAt(De.end)!==32)return Ne(De.end,je.pos-De.end," "),We?2:0;break;case 64:Be(De.end,";")}return 0}}function Dke(e,t,r,i=Fi(e,t)){let o=Dn(i,mh);if(o&&(i=o.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?Vc(t,e):r;let l=r&&ib(e.text,r.end),u=fG(i,e),d=so(l,u);return d&&hn(d,g=>sO(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function kot(e,t){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 214:case 215:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===t)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===t)return 30;break;case 188:return 19}return 0}function wot(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var iX,e4,t4;function eme(e,t){if((!iX||iX.tabSize!==t.tabSize||iX.indentSize!==t.indentSize)&&(iX={tabSize:t.tabSize,indentSize:t.indentSize},e4=t4=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return t4||(t4=[]),t4[o]===void 0?(i=pO(" ",t.indentSize*o),t4[o]=i):i=t4[o],s?i+pO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return e4||(e4=[]),e4[i]===void 0?e4[i]=s=pO(" ",i):s=e4[i],o?s+pO(" ",o):s}}var c_;(e=>{let t;(Y=>{Y[Y.Unknown=-1]="Unknown"})(t||(t={}));function r(Y,Ce,Xe,Se=!1){if(Y>Ce.text.length)return u(Xe);if(Xe.indentStyle===0)return 0;let re=Vc(Y,Ce,void 0,!0),be=Dke(Ce,Y,re||null);if(be&&be.kind===3)return i(Ce,Y,Xe,be);if(!re)return u(Xe);if(xq(re.kind)&&re.getStart(Ce)<=Y&&Y<re.end)return 0;let Be=Ce.getLineAndCharacterOfPosition(Y).line,lt=Fi(Ce,Y),ce=lt.kind===19&&lt.parent.kind===211;if(Xe.indentStyle===1||ce)return o(Ce,Y,Xe);if(re.kind===28&&re.parent.kind!==227){let ge=_(re,Ce,Xe);if(ge!==-1)return ge}let De=G(Y,re.parent,Ce);if(De&&!Zu(De,re)){let je=[219,220].includes(lt.parent.kind)?0:Xe.indentSize;return Z(De,Ce,Xe)+je}return s(Ce,Y,re,Be,Se,Xe)}e.getIndentation=r;function i(Y,Ce,Xe,Se){let re=ca(Y,Ce).line-1,be=ca(Y,Se.pos).line;if(C.assert(be>=0),re<=be)return pe(fb(be,Y),Ce,Y,Xe);let Ne=fb(re,Y),{column:Be,character:lt}=K(Ne,Ce,Y,Xe);return Be===0?Be:Y.text.charCodeAt(Ne+lt)===42?Be-1:Be}function o(Y,Ce,Xe){let Se=Ce;for(;Se>0;){let be=Y.text.charCodeAt(Se);if(!ag(be))break;Se--}let re=Sm(Se,Y);return pe(re,Se,Y,Xe)}function s(Y,Ce,Xe,Se,re,be){let Ne,Be=Xe;for(;Be;){if(vq(Be,Ce,Y)&&ve(be,Be,Ne,Y,!0)){let ce=R(Be,Y),De=A(Xe,Be,Se,Y),ge=De!==0?re&&De===2?be.indentSize:0:Se!==ce.line?be.indentSize:0;return d(Be,ce,void 0,ge,Y,!0,be)}let lt=q(Be,Y,be,!0);if(lt!==-1)return lt;Ne=Be,Be=Be.parent}return u(be)}function l(Y,Ce,Xe,Se){let re=Xe.getLineAndCharacterOfPosition(Y.getStart(Xe));return d(Y,re,Ce,0,Xe,!1,Se)}e.getIndentationForNode=l;function u(Y){return Y.baseIndentSize||0}e.getBaseIndentation=u;function d(Y,Ce,Xe,Se,re,be,Ne){var Be;let lt=Y.parent;for(;lt;){let ce=!0;if(Xe){let Ge=Y.getStart(re);ce=Ge<Xe.pos||Ge>Xe.end}let De=g(lt,Y,re),ge=De.line===Ce.line||P(lt,Y,Ce.line,re);if(ce){let Ge=(Be=O(Y,re))==null?void 0:Be[0],We=!!Ge&&R(Ge,re).line>De.line,at=q(Y,re,Ne,We);if(at!==-1||(at=v(Y,lt,Ce,ge,re,Ne),at!==-1))return at+Se}ve(Ne,lt,Y,re,be)&&!ge&&(Se+=Ne.indentSize);let je=N(lt,Y,Ce.line,re);Y=lt,lt=Y.parent,Ce=je?re.getLineAndCharacterOfPosition(Y.getStart(re)):De}return Se+u(Ne)}function g(Y,Ce,Xe){let Se=O(Ce,Xe),re=Se?Se.pos:Y.getStart(Xe);return Xe.getLineAndCharacterOfPosition(re)}function _(Y,Ce,Xe){let Se=kle(Y);return Se&&Se.listItemIndex>0?ye(Se.list.getChildren(),Se.listItemIndex-1,Ce,Xe):-1}function v(Y,Ce,Xe,Se,re,be){return(rd(Y)||wL(Y))&&(Ce.kind===308||!Se)?ie(Xe,re,be):-1}let E;(Y=>{Y[Y.Unknown=0]="Unknown",Y[Y.OpenBrace=1]="OpenBrace",Y[Y.CloseBrace=2]="CloseBrace"})(E||(E={}));function A(Y,Ce,Xe,Se){let re=q1(Y,Ce,Se);if(!re)return 0;if(re.kind===19)return 1;if(re.kind===20){let be=R(re,Se).line;return Xe===be?2:0}return 0}function R(Y,Ce){return Ce.getLineAndCharacterOfPosition(Y.getStart(Ce))}function N(Y,Ce,Xe,Se){if(!(Zo(Y)&&jn(Y.arguments,Ce)))return!1;let re=Y.expression.getEnd();return ca(Se,re).line===Xe}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function P(Y,Ce,Xe,Se){if(Y.kind===246&&Y.elseStatement===Ce){let re=Es(Y,93,Se);return C.assert(re!==void 0),R(re,Se).line===Xe}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=P;function k(Y,Ce,Xe,Se){if(pE(Y)&&(Ce===Y.whenTrue||Ce===Y.whenFalse)){let re=ca(Se,Y.condition.end).line;if(Ce===Y.whenTrue)return Xe===re;{let be=R(Y.whenTrue,Se).line,Ne=ca(Se,Y.whenTrue.end).line;return re===be&&Ne===Xe}}return!1}e.childIsUnindentedBranchOfConditionalExpression=k;function F(Y,Ce,Xe,Se){if(Bh(Y)){if(!Y.arguments)return!1;let re=hn(Y.arguments,lt=>lt.pos===Ce.pos);if(!re)return!1;let be=Y.arguments.indexOf(re);if(be===0)return!1;let Ne=Y.arguments[be-1],Be=ca(Se,Ne.getEnd()).line;if(Xe===Be)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=F;function O(Y,Ce){return Y.parent&&j(Y.getStart(Ce),Y.getEnd(),Y.parent,Ce)}e.getContainingList=O;function G(Y,Ce,Xe){return Ce&&j(Y,Y,Ce,Xe)}function j(Y,Ce,Xe,Se){switch(Xe.kind){case 184:return re(Xe.typeArguments);case 211:return re(Xe.properties);case 210:return re(Xe.elements);case 188:return re(Xe.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return re(Xe.typeParameters)||re(Xe.parameters);case 178:return re(Xe.parameters);case 264:case 232:case 265:case 266:case 346:return re(Xe.typeParameters);case 215:case 214:return re(Xe.typeArguments)||re(Xe.arguments);case 262:return re(Xe.declarations);case 276:case 280:return re(Xe.elements);case 207:case 208:return re(Xe.elements)}function re(be){return be&&lO(J(Xe,be,Se),Y,Ce)?be:void 0}}function J(Y,Ce,Xe){let Se=Y.getChildren(Xe);for(let re=1;re<Se.length-1;re++)if(Se[re].pos===Ce.pos&&Se[re].end===Ce.end)return{pos:Se[re-1].end,end:Se[re+1].getStart(Xe)};return Ce}function Z(Y,Ce,Xe){return Y?ie(Ce.getLineAndCharacterOfPosition(Y.pos),Ce,Xe):-1}function q(Y,Ce,Xe,Se){if(Y.parent&&Y.parent.kind===262)return-1;let re=O(Y,Ce);if(re){let be=re.indexOf(Y);if(be!==-1){let Ne=ye(re,be,Ce,Xe);if(Ne!==-1)return Ne}return Z(re,Ce,Xe)+(Se?Xe.indentSize:0)}return-1}function ye(Y,Ce,Xe,Se){C.assert(Ce>=0&&Ce<Y.length);let re=Y[Ce],be=R(re,Xe);for(let Ne=Ce-1;Ne>=0;Ne--){if(Y[Ne].kind===28)continue;if(Xe.getLineAndCharacterOfPosition(Y[Ne].end).line!==be.line)return ie(be,Xe,Se);be=R(Y[Ne],Xe)}return-1}function ie(Y,Ce,Xe){let Se=Ce.getPositionOfLineAndCharacter(Y.line,0);return pe(Se,Se+Y.character,Ce,Xe)}function K(Y,Ce,Xe,Se){let re=0,be=0;for(let Ne=Y;Ne<Ce;Ne++){let Be=Xe.text.charCodeAt(Ne);if(!zh(Be))break;Be===9?be+=Se.tabSize+be%Se.tabSize:be++,re++}return{column:be,character:re}}e.findFirstNonWhitespaceCharacterAndColumn=K;function pe(Y,Ce,Xe,Se){return K(Y,Ce,Xe,Se).column}e.findFirstNonWhitespaceColumn=pe;function de(Y,Ce,Xe,Se,re){let be=Xe?Xe.kind:0;switch(Ce.kind){case 245:case 264:case 232:case 265:case 267:case 266:case 210:case 242:case 269:case 211:case 188:case 201:case 190:case 218:case 212:case 214:case 215:case 244:case 278:case 254:case 228:case 208:case 207:case 287:case 290:case 286:case 295:case 174:case 180:case 181:case 170:case 185:case 186:case 197:case 216:case 224:case 280:case 276:case 282:case 277:case 173:case 297:case 298:return!0;case 270:return Y.indentSwitchCase??!0;case 261:case 304:case 227:if(!Y.indentMultiLineObjectLiteralBeginningOnBlankLine&&Se&&be===211)return xe(Se,Xe);if(Ce.kind===227&&Se&&Xe&&be===285){let Ne=Se.getLineAndCharacterOfPosition(La(Se.text,Ce.pos)).line,Be=Se.getLineAndCharacterOfPosition(La(Se.text,Xe.pos)).line;return Ne!==Be}if(Ce.kind!==227)return!0;break;case 247:case 248:case 250:case 251:case 249:case 246:case 263:case 219:case 175:case 177:case 178:case 179:return be!==242;case 220:return Se&&be===218?xe(Se,Xe):be!==242;case 279:return be!==280;case 273:return be!==274||!!Xe.namedBindings&&Xe.namedBindings.kind!==276;case 285:return be!==288;case 289:return be!==291;case 194:case 193:case 239:if(be===188||be===190||be===201)return!1;break;case 259:if(be===242)return!1;break}return re}e.nodeWillIndentChild=de;function fe(Y,Ce){switch(Y){case 254:case 258:case 252:case 253:return Ce.kind!==242;default:return!1}}function ve(Y,Ce,Xe,Se,re=!1){return de(Y,Ce,Xe,Se,!1)&&!(re&&Xe&&fe(Xe.kind,Ce))}e.shouldIndentChildNode=ve;function xe(Y,Ce){let Xe=La(Y.text,Ce.pos),Se=Y.getLineAndCharacterOfPosition(Xe).line,re=Y.getLineAndCharacterOfPosition(Ce.end).line;return Se===re}})(c_||(c_={}));var oX={};x(oX,{preparePasteEdits:()=>Oot});function Oot(e,t,r){let i=!1;return t.forEach(o=>{let s=Dn(Fi(e,o.pos),l=>Zu(l,o));s&&Jo(s,function l(u){var d;if(!i){if(He(u)&&UD(o,u.getStart(e))){let g=r.resolveName(u.text,u,-1,!1);if(g&&g.declarations){for(let _ of g.declarations)if(OJ(_)||u.text&&e.symbol&&((d=e.symbol.exports)!=null&&d.has(u.escapedText))){i=!0;return}}}u.forEachChild(l)}})}),i}var aX={};x(aX,{pasteEditsProvider:()=>Fot});var Wot="providePostPasteEdits";function Fot(e,t,r,i,o,s,l,u){return{edits:Rr.ChangeTracker.with({host:o,formatContext:l,preferences:s},g=>zot(e,t,r,i,o,s,l,u,g)),fixId:Wot}}function zot(e,t,r,i,o,s,l,u,d){let g;t.length!==r.length&&(g=t.length===1?t[0]:t.join(_y(l.host,l.options)));let _=[],v=e.text;for(let A=r.length-1;A>=0;A--){let{pos:R,end:N}=r[A];v=g?v.slice(0,R)+g+v.slice(N):v.slice(0,R)+t[A]+v.slice(N)}let E;C.checkDefined(o.runWithTemporaryFileUpdate).call(o,e.fileName,v,(A,R,N)=>{if(E=lu.createImportAdder(N,A,s,o),i?.range){C.assert(i.range.length===t.length),i.range.forEach(G=>{let j=i.file.statements,J=ho(j,q=>q.end>G.pos);if(J===-1)return;let Z=ho(j,q=>q.end>=G.end,J);Z!==-1&&G.end<=j[Z].getStart()&&Z--,_.push(...j.slice(J,Z===-1?j.length:Z+1))}),C.assertIsDefined(R,"no original program found");let P=R.getTypeChecker(),k=Bot(i),F=F7(i.file,_,P,gde(N,_,P),k),O=!lJ(e.fileName,R,o,!!i.file.commonJsModuleIndicator);cde(i.file,F.targetFileImportsFromOldFile,d,O),vde(i.file,F.oldImportsNeededByTargetFile,F.targetFileImportsFromOldFile,P,A,E)}else{let P={sourceFile:N,program:R,cancellationToken:u,host:o,preferences:s,formatContext:l},k=0;r.forEach((F,O)=>{let G=F.end-F.pos,j=g??t[O],J=F.pos+k,Z=J+j.length,q={pos:J,end:Z};k+=j.length-G;let ye=Dn(Fi(P.sourceFile,q.pos),ie=>Zu(ie,q));ye&&Jo(ye,function ie(K){if(He(K)&&UD(q,K.getStart(N))&&!A?.getTypeChecker().resolveName(K.text,K,-1,!1))return E.addImportForUnresolvedIdentifier(P,K,!0);K.forEachChild(ie)})})}E.writeFixes(d,zp(i?i.file:e,s))}),E.hasFixes()&&r.forEach((A,R)=>{d.replaceRangeWithText(e,{pos:A.pos,end:A.end},g??t[R])})}function Bot({file:e,range:t}){let r=t[0].pos,i=t[t.length-1].end,o=Fi(e,r),s=AP(e,r)??Fi(e,i);return{pos:He(o)&&r<=o.getStart(e)?o.getFullStart():r,end:He(s)&&i===s.getEnd()?Rr.getAdjustedEndPosition(e,s,{}):i}}var Cke={};x(Cke,{ANONYMOUS:()=>Qq,AccessFlags:()=>LZ,AssertionLevel:()=>jQ,AssignmentDeclarationKind:()=>VZ,AssignmentKind:()=>pne,Associativity:()=>bne,BreakpointResolver:()=>YJ,BuilderFileEmit:()=>_se,BuilderProgramKind:()=>Ase,BuilderState:()=>_h,CallHierarchy:()=>lx,CharacterCodes:()=>ZZ,CheckFlags:()=>CZ,CheckMode:()=>TU,ClassificationType:()=>cq,ClassificationTypeNames:()=>xle,CommentDirectiveType:()=>mZ,Comparison:()=>Ke,CompletionInfoFlags:()=>vle,CompletionTriggerKind:()=>sq,Completions:()=>fx,ContainerFlags:()=>Yoe,ContextFlags:()=>TZ,Debug:()=>C,DiagnosticCategory:()=>W8,Diagnostics:()=>f,DocumentHighlights:()=>L7,ElementFlags:()=>PZ,EmitFlags:()=>aB,EmitHint:()=>ree,EmitOnly:()=>_Z,EndOfLineState:()=>Sle,ExitStatus:()=>gZ,ExportKind:()=>_ce,Extension:()=>eee,ExternalEmitHelpers:()=>nee,FileIncludeKind:()=>Yz,FilePreprocessingDiagnosticsKind:()=>hZ,FileSystemEntryKind:()=>pee,FileWatcherEventKind:()=>cee,FindAllReferences:()=>Ys,FlattenLevel:()=>yae,FlowFlags:()=>O8,ForegroundColorEscapeSequences:()=>ase,FunctionFlags:()=>yne,GeneratedIdentifierFlags:()=>Xz,GetLiteralTextFlags:()=>Cte,GoToDefinition:()=>iC,HighlightSpanKind:()=>gle,IdentifierNameMap:()=>kD,ImportKind:()=>hce,ImportsNotUsedAsValues:()=>KZ,IndentStyle:()=>yle,IndexFlags:()=>kZ,IndexKind:()=>WZ,InferenceFlags:()=>BZ,InferencePriority:()=>zZ,InlayHintKind:()=>_le,InlayHints:()=>GK,InternalEmitFlags:()=>tee,InternalNodeBuilderFlags:()=>EZ,InternalSymbolName:()=>NZ,IntersectionFlags:()=>bZ,InvalidatedProjectKind:()=>Jse,JSDocParsingMode:()=>lee,JsDoc:()=>uT,JsTyping:()=>Fb,JsxEmit:()=>JZ,JsxFlags:()=>dZ,JsxReferenceKind:()=>wZ,LanguageFeatureMinimumTarget:()=>ed,LanguageServiceMode:()=>mle,LanguageVariant:()=>$Z,LexicalEnvironmentFlags:()=>oee,ListFormat:()=>aee,LogLevel:()=>ZQ,MapCode:()=>VK,MemberOverrideStatus:()=>yZ,ModifierFlags:()=>Jz,ModuleDetectionKind:()=>jZ,ModuleInstanceState:()=>Koe,ModuleKind:()=>bR,ModuleResolutionKind:()=>vR,ModuleSpecifierEnding:()=>gre,NavigateTo:()=>Bce,NavigationBar:()=>Vce,NewLineKind:()=>XZ,NodeBuilderFlags:()=>SZ,NodeCheckFlags:()=>Zz,NodeFactoryFlags:()=>Xre,NodeFlags:()=>qz,NodeResolutionFeatures:()=>Foe,ObjectFlags:()=>tB,OperationCanceledException:()=>yN,OperatorPrecedence:()=>Tne,OrganizeImports:()=>pT,OrganizeImportsMode:()=>aq,OuterExpressionKinds:()=>iee,OutliningElementsCollector:()=>UK,OutliningSpanKind:()=>ble,OutputFileType:()=>Tle,PackageJsonAutoImportPreference:()=>fle,PackageJsonDependencyGroup:()=>ple,PatternMatchKind:()=>gJ,PollingInterval:()=>sB,PollingWatchKind:()=>qZ,PragmaKindFlags:()=>see,PredicateSemantics:()=>uZ,PreparePasteEdits:()=>oX,PrivateIdentifierKind:()=>oie,ProcessLevel:()=>Sae,ProgramUpdateLevel:()=>tse,QuotePreference:()=>Kle,RegularExpressionFlags:()=>pZ,RelationComparisonResult:()=>Kz,Rename:()=>_5,ScriptElementKind:()=>Ale,ScriptElementKindModifier:()=>Ile,ScriptKind:()=>rB,ScriptSnapshot:()=>HF,ScriptTarget:()=>YZ,SemanticClassificationFormat:()=>hle,SemanticMeaning:()=>Rle,SemicolonPreference:()=>lq,SignatureCheckMode:()=>SU,SignatureFlags:()=>nB,SignatureHelp:()=>JO,SignatureInfo:()=>hse,SignatureKind:()=>OZ,SmartSelectionRange:()=>JK,SnippetKind:()=>oB,StatisticType:()=>nle,StructureIsReused:()=>$z,SymbolAccessibility:()=>xZ,SymbolDisplay:()=>_v,SymbolDisplayPartKind:()=>JF,SymbolFlags:()=>Qz,SymbolFormatFlags:()=>IZ,SyntaxKind:()=>Hz,Ternary:()=>GZ,ThrottledCancellationToken:()=>Yde,TokenClass:()=>Ele,TokenFlags:()=>fZ,TransformFlags:()=>iB,TypeFacts:()=>bU,TypeFlags:()=>eB,TypeFormatFlags:()=>AZ,TypeMapKind:()=>FZ,TypePredicateKind:()=>RZ,TypeReferenceSerializationKind:()=>DZ,UnionReduction:()=>vZ,UpToDateStatusType:()=>Bse,VarianceFlags:()=>MZ,Version:()=>ih,VersionRange:()=>w8,WatchDirectoryFlags:()=>QZ,WatchDirectoryKind:()=>HZ,WatchFileKind:()=>UZ,WatchLogLevel:()=>rse,WatchType:()=>sd,accessPrivateIdentifier:()=>gae,addEmitFlags:()=>$h,addEmitHelper:()=>CI,addEmitHelpers:()=>Eg,addInternalEmitFlags:()=>aE,addNodeFactoryPatcher:()=>H0e,addObjectAllocatorPatcher:()=>C0e,addRange:()=>Xr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>xb,addSyntheticTrailingComment:()=>LM,addToSeen:()=>_m,advancedAsyncSuperHelper:()=>t3,affectsDeclarationPathOptionDeclarations:()=>doe,affectsEmitOptionDeclarations:()=>coe,allKeysStartWithDot:()=>X3,altDirectorySeparator:()=>V8,and:()=>P8,append:()=>Bn,appendIfUnique:()=>$g,arrayFrom:()=>Co,arrayIsEqualTo:()=>$p,arrayIsHomogeneous:()=>xre,arrayOf:()=>zQ,arrayReverseIterator:()=>Az,arrayToMap:()=>hR,arrayToMultiMap:()=>oL,arrayToNumericMap:()=>GQ,assertType:()=>rbe,assign:()=>PS,asyncSuperHelper:()=>e3,attachFileToDiagnostics:()=>bI,base64decode:()=>Vne,base64encode:()=>Gne,binarySearch:()=>Yv,binarySearchKey:()=>BA,bindSourceFile:()=>$oe,breakIntoCharacterSpans:()=>Pce,breakIntoWordSpans:()=>Lce,buildLinkParts:()=>nce,buildOpts:()=>Tw,buildOverload:()=>Pke,bundlerModuleNameResolver:()=>zoe,canBeConvertedToAsync:()=>EJ,canHaveDecorators:()=>F1,canHaveExportModifier:()=>Hk,canHaveFlowNode:()=>HR,canHaveIllegalDecorators:()=>Nj,canHaveIllegalModifiers:()=>Uie,canHaveIllegalType:()=>gTe,canHaveIllegalTypeParameters:()=>jie,canHaveJSDoc:()=>pk,canHaveLocals:()=>R_,canHaveModifiers:()=>bm,canHaveModuleSpecifier:()=>cne,canHaveSymbol:()=>ah,canIncludeBindAndCheckDiagnostics:()=>EM,canJsonReportNoInputFiles:()=>Rw,canProduceDiagnostics:()=>Ow,canUsePropertyAccess:()=>kV,canWatchAffectingLocation:()=>Pse,canWatchAtTypes:()=>Mse,canWatchDirectoryOrFile:()=>EH,canWatchDirectoryOrFilePath:()=>$w,cartesianProduct:()=>$Q,cast:()=>ma,chainBundle:()=>hh,chainDiagnosticMessages:()=>qo,changeAnyExtension:()=>pL,changeCompilerHostLikeToUseCache:()=>hP,changeExtension:()=>rv,changeFullExtension:()=>H8,changesAffectModuleResolution:()=>y6,changesAffectingProgramStructure:()=>Tte,characterCodeToRegularExpressionFlag:()=>yB,childIsDecorated:()=>HN,classElementOrClassElementParameterIsDecorated:()=>gG,classHasClassThisAssignment:()=>WU,classHasDeclaredOrExplicitlyAssignedName:()=>FU,classHasExplicitlyAssignedName:()=>cF,classOrConstructorParameterIsDecorated:()=>Qy,classicNameResolver:()=>qoe,classifier:()=>eue,cleanExtendedConfigCache:()=>hF,clear:()=>hi,clearMap:()=>mp,clearSharedExtendedConfigFileWatcher:()=>QU,climbPastPropertyAccess:()=>YF,clone:()=>VQ,cloneCompilerOptions:()=>Dq,closeFileWatcher:()=>zm,closeFileWatcherOf:()=>qf,codefix:()=>lu,collapseTextChangeRangesAcrossMultipleVersions:()=>Lee,collectExternalModuleInfo:()=>LU,combine:()=>zA,combinePaths:()=>Qr,commandLineOptionOfCustomType:()=>foe,commentPragmas:()=>F8,commonOptionsWithBuild:()=>D3,compact:()=>rL,compareBooleans:()=>E0,compareDataObjects:()=>dV,compareDiagnostics:()=>_M,compareEmitHelpers:()=>sie,compareNumberOfDirectorySeparators:()=>Gk,comparePaths:()=>Zg,comparePathsCaseInsensitive:()=>Cbe,comparePathsCaseSensitive:()=>Dbe,comparePatternKeys:()=>fU,compareProperties:()=>JQ,compareStringsCaseInsensitive:()=>sL,compareStringsCaseInsensitiveEslintCompatible:()=>UQ,compareStringsCaseSensitive:()=>Wd,compareStringsCaseSensitiveUI:()=>lL,compareTextSpans:()=>N8,compareValues:()=>js,compilerOptionsAffectDeclarationPath:()=>dre,compilerOptionsAffectEmit:()=>cre,compilerOptionsAffectSemanticDiagnostics:()=>lre,compilerOptionsDidYouMeanDiagnostics:()=>P3,compilerOptionsIndicateEsModules:()=>kq,computeCommonSourceDirectoryOfFilenames:()=>ise,computeLineAndCharacterOfPosition:()=>AR,computeLineOfPosition:()=>SN,computeLineStarts:()=>KA,computePositionOfLineAndCharacter:()=>X8,computeSignatureWithDiagnostics:()=>gH,computeSuggestionDiagnostics:()=>bJ,computedOptions:()=>gM,concatenate:()=>so,concatenateDiagnosticMessageChains:()=>tre,consumesNodeCoreModules:()=>A7,contains:()=>jn,containsIgnoredPath:()=>xM,containsObjectRestOrSpread:()=>gw,containsParseError:()=>rI,containsPath:()=>dm,convertCompilerOptionsForTelemetry:()=>Doe,convertCompilerOptionsFromJson:()=>x1e,convertJsonOption:()=>TE,convertToBase64:()=>Bne,convertToJson:()=>Aw,convertToObject:()=>Soe,convertToOptionsWithAbsolutePaths:()=>O3,convertToRelativePath:()=>bN,convertToTSConfig:()=>Yj,convertTypeAcquisitionFromJson:()=>R1e,copyComments:()=>NE,copyEntries:()=>v6,copyLeadingComments:()=>YD,copyProperties:()=>Mz,copyTrailingAsLeadingComments:()=>yO,copyTrailingComments:()=>MP,couldStartTrivia:()=>vee,countWhere:()=>Io,createAbstractBuilder:()=>kEe,createAccessorPropertyBackingField:()=>Lj,createAccessorPropertyGetRedirector:()=>Qie,createAccessorPropertySetRedirector:()=>Zie,createBaseNodeFactory:()=>Ure,createBinaryExpressionTrampoline:()=>E3,createBuilderProgram:()=>yH,createBuilderProgramUsingIncrementalBuildInfo:()=>Dse,createBuilderStatusReporter:()=>WF,createCacheableExportInfoMap:()=>cJ,createCachedDirectoryStructureHost:()=>fF,createClassifier:()=>dIe,createCommentDirectivesMap:()=>Rte,createCompilerDiagnostic:()=>Il,createCompilerDiagnosticForInvalidCustomType:()=>moe,createCompilerDiagnosticFromMessageChain:()=>SW,createCompilerHost:()=>ose,createCompilerHostFromProgramHost:()=>FH,createCompilerHostWorker:()=>_F,createDetachedDiagnostic:()=>vI,createDiagnosticCollection:()=>aM,createDiagnosticForFileFromMessageChain:()=>pG,createDiagnosticForNode:()=>Ar,createDiagnosticForNodeArray:()=>WR,createDiagnosticForNodeArrayFromMessageChain:()=>UL,createDiagnosticForNodeFromMessageChain:()=>mg,createDiagnosticForNodeInSourceFile:()=>wf,createDiagnosticForRange:()=>Gte,createDiagnosticMessageChainFromDiagnostic:()=>Bte,createDiagnosticReporter:()=>ex,createDocumentPositionMapper:()=>pae,createDocumentRegistry:()=>Tce,createDocumentRegistryInternal:()=>mJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>SH,createEmitHelperFactory:()=>aie,createEmptyExports:()=>cw,createEvaluator:()=>Ore,createExpressionForJsxElement:()=>Wie,createExpressionForJsxFragment:()=>Fie,createExpressionForObjectLiteralElementLike:()=>zie,createExpressionForPropertyName:()=>Aj,createExpressionFromEntityName:()=>dw,createExternalHelpersImportDeclarationIfNeeded:()=>Rj,createFileDiagnostic:()=>Fc,createFileDiagnosticFromMessageChain:()=>C6,createFlowNode:()=>W_,createForOfBindingStatement:()=>Ej,createFutureSourceFile:()=>N7,createGetCanonicalFileName:()=>Fd,createGetIsolatedDeclarationErrors:()=>Hae,createGetSourceFile:()=>rH,createGetSymbolAccessibilityDiagnosticForNode:()=>tT,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Uae,createGetSymbolWalker:()=>Qoe,createIncrementalCompilerHost:()=>OF,createIncrementalProgram:()=>zse,createJsxFactoryExpression:()=>Sj,createLanguageService:()=>$de,createLanguageServiceSourceFile:()=>X7,createMemberAccessForPropertyName:()=>vE,createModeAwareCache:()=>CD,createModeAwareCacheKey:()=>eP,createModeMismatchDetails:()=>YB,createModuleNotFoundChain:()=>T6,createModuleResolutionCache:()=>ND,createModuleResolutionLoader:()=>cH,createModuleResolutionLoaderUsingGlobalCache:()=>Ose,createModuleSpecifierResolutionHost:()=>oT,createMultiMap:()=>lm,createNameResolver:()=>zV,createNodeConverters:()=>Jre,createNodeFactory:()=>Yk,createOptionNameMap:()=>N3,createOverload:()=>sX,createPackageJsonImportFilter:()=>$D,createPackageJsonInfo:()=>tJ,createParenthesizerRules:()=>Hre,createPatternMatcher:()=>xce,createPrinter:()=>Ob,createPrinterWithDefaults:()=>Zae,createPrinterWithRemoveComments:()=>V1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>ese,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>$U,createProgram:()=>Kw,createProgramDiagnostics:()=>fse,createProgramHost:()=>zH,createPropertyNameNodeForIdentifierOrLiteral:()=>Uk,createQueue:()=>aL,createRange:()=>Ff,createRedirectedBuilderProgram:()=>TH,createResolutionCache:()=>IH,createRuntimeTypeSerializer:()=>Rae,createScanner:()=>lg,createSemanticDiagnosticsBuilderProgram:()=>LEe,createSet:()=>Pz,createSolutionBuilder:()=>Use,createSolutionBuilderHost:()=>Vse,createSolutionBuilderWithWatch:()=>Hse,createSolutionBuilderWithWatchHost:()=>jse,createSortedArray:()=>Ez,createSourceFile:()=>HI,createSourceMapGenerator:()=>sae,createSourceMapSource:()=>X0e,createSuperAccessVariableStatement:()=>uF,createSymbolTable:()=>da,createSymlinkCache:()=>bV,createSyntacticTypeNodeBuilder:()=>cle,createSystemWatchFunctions:()=>Tbe,createTextChange:()=>uO,createTextChangeFromStartLength:()=>c7,createTextChangeRange:()=>SL,createTextRangeFromNode:()=>Mq,createTextRangeFromSpan:()=>l7,createTextSpan:()=>Id,createTextSpanFromBounds:()=>ic,createTextSpanFromNode:()=>Fu,createTextSpanFromRange:()=>fv,createTextSpanFromStringLiteralLikeContent:()=>Nq,createTextWriter:()=>Ek,createTokenRange:()=>oV,createTypeChecker:()=>oae,createTypeReferenceDirectiveResolutionCache:()=>q3,createTypeReferenceResolutionLoader:()=>vF,createWatchCompilerHost:()=>UEe,createWatchCompilerHostOfConfigFile:()=>BH,createWatchCompilerHostOfFilesAndCompilerOptions:()=>GH,createWatchFactory:()=>WH,createWatchHost:()=>OH,createWatchProgram:()=>VH,createWatchStatusReporter:()=>xH,createWriteFileMeasuringIO:()=>iH,declarationNameToString:()=>ws,decodeMappings:()=>NU,decodedTextSpanIntersectsWith:()=>TL,deduplicate:()=>t1,defaultHoverMaximumTruncationLength:()=>vte,defaultInitCompilerOptions:()=>qTe,defaultMaximumTruncationLength:()=>FN,diagnosticCategoryName:()=>kS,diagnosticToString:()=>J1,diagnosticsEqualityComparer:()=>EW,directoryProbablyExists:()=>ch,directorySeparator:()=>Js,displayPart:()=>gp,displayPartsToString:()=>MO,disposeEmitNodes:()=>YV,documentSpansEqual:()=>Gq,dumpTracingLegend:()=>cZ,elementAt:()=>Xv,elideNodes:()=>$ie,emitDetachedComments:()=>Nne,emitFiles:()=>XU,emitFilesAndReportErrors:()=>PF,emitFilesAndReportErrorsAndGetExitStatus:()=>wH,emitModuleKindIsNonNodeESM:()=>Wk,emitNewLineBeforeLeadingCommentOfPosition:()=>Cne,emitResolverSkipsTypeChecking:()=>KU,emitSkippedWithNoDiagnostics:()=>pH,emptyArray:()=>ae,emptyFileSystemEntries:()=>Tre,emptyMap:()=>yt,emptyOptions:()=>Tm,endsWith:()=>el,ensurePathIsNonModuleName:()=>wS,ensureScriptKind:()=>LW,ensureTrailingDirectorySeparator:()=>Hc,entityNameToString:()=>Cp,enumerateInsertsAndDeletes:()=>k8,equalOwnProperties:()=>BQ,equateStringsCaseInsensitive:()=>eb,equateStringsCaseSensitive:()=>i1,equateValues:()=>Zv,escapeJsxAttributeString:()=>GG,escapeLeadingUnderscores:()=>Cl,escapeNonAsciiString:()=>nW,escapeSnippetText:()=>D1,escapeString:()=>L_,escapeTemplateSubstitution:()=>zG,evaluatorResult:()=>Jc,every:()=>Vn,exclusivelyPrefixedNodeCoreModules:()=>KW,executeCommandLine:()=>EAe,expandPreOrPostfixIncrementOrDecrementExpression:()=>y3,explainFiles:()=>NH,explainIfFileIsRedirectAndImpliedFormat:()=>MH,exportAssignmentIsAlias:()=>_k,expressionResultIsUnused:()=>Dre,extend:()=>Nz,extensionFromPath:()=>TM,extensionIsTS:()=>FW,extensionsNotSupportingExtensionlessResolution:()=>WW,externalHelpersModuleNameText:()=>pb,factory:()=>L,fileExtensionIs:()=>El,fileExtensionIsOneOf:()=>Yl,fileIncludeReasonToDiagnostics:()=>kH,fileShouldUseJavaScriptRequire:()=>lJ,filter:()=>Un,filterMutate:()=>ul,filterSemanticDiagnostics:()=>EF,find:()=>hn,findAncestor:()=>Dn,findBestPatternMatch:()=>Fz,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>A3,findConfigFile:()=>tH,findConstructorDeclaration:()=>Kk,findContainingList:()=>t7,findDiagnosticForNode:()=>pce,findFirstNonJsxWhitespaceToken:()=>wle,findIndex:()=>ho,findLast:()=>ga,findLastIndex:()=>gl,findListItemInfo:()=>kle,findModifier:()=>JD,findNextToken:()=>q1,findPackageJson:()=>uce,findPackageJsons:()=>eJ,findPrecedingMatchingToken:()=>a7,findPrecedingToken:()=>Vc,findSuperStatementIndexPath:()=>oF,findTokenOnLeftOfPosition:()=>AP,findUseStrictPrologue:()=>xj,first:()=>$a,firstDefined:()=>Hn,firstDefinedIterator:()=>cr,firstIterator:()=>xz,firstOrOnly:()=>iJ,firstOrUndefined:()=>Ic,firstOrUndefinedIterator:()=>C8,fixupCompilerOptions:()=>AJ,flatMap:()=>Ki,flatMapIterator:()=>sf,flatMapToMutable:()=>vc,flatten:()=>la,flattenCommaList:()=>eoe,flattenDestructuringAssignment:()=>IE,flattenDestructuringBinding:()=>G1,flattenDiagnosticMessageText:()=>o_,forEach:()=>Je,forEachAncestor:()=>Ste,forEachAncestorDirectory:()=>TN,forEachAncestorDirectoryStoppingAtGlobalCache:()=>O_,forEachChild:()=>Jo,forEachChildRecursively:()=>UI,forEachDynamicImportOrRequireCall:()=>XW,forEachEmittedFile:()=>UU,forEachEnclosingBlockScopeContainer:()=>Wte,forEachEntry:()=>qc,forEachExternalModuleToImportFrom:()=>uJ,forEachImportClauseDeclaration:()=>dne,forEachKey:()=>pg,forEachLeadingCommentRange:()=>hL,forEachNameInAccessChainWalkingLeft:()=>Yne,forEachNameOfDefaultExport:()=>P7,forEachOptionsSyntaxByName:()=>HV,forEachProjectReference:()=>MM,forEachPropertyAssignment:()=>BR,forEachResolvedProjectReference:()=>jV,forEachReturnStatement:()=>_b,forEachRight:()=>Pn,forEachTrailingCommentRange:()=>_L,forEachTsConfigPropArray:()=>XL,forEachUnique:()=>jq,forEachYieldExpression:()=>Hte,formatColorAndReset:()=>j1,formatDiagnostic:()=>oH,formatDiagnostics:()=>sEe,formatDiagnosticsWithColorAndContext:()=>cse,formatGeneratedName:()=>Y0,formatGeneratedNamePart:()=>ID,formatLocation:()=>aH,formatMessage:()=>TI,formatStringFromArgs:()=>vg,formatting:()=>Mc,generateDjb2Hash:()=>uL,generateTSConfig:()=>Eoe,getAdjustedReferenceLocation:()=>Sq,getAdjustedRenameLocation:()=>r7,getAliasDeclarationFromName:()=>CG,getAllAccessorDeclarations:()=>E1,getAllDecoratorsOfClass:()=>wU,getAllDecoratorsOfClassElement:()=>sF,getAllJSDocTags:()=>n6,getAllJSDocTagsOfKind:()=>Qbe,getAllKeys:()=>Zve,getAllProjectOutputs:()=>pF,getAllSuperTypeNodes:()=>eM,getAllowImportingTsExtensions:()=>rre,getAllowJSCompilerOption:()=>Eb,getAllowSyntheticDefaultImports:()=>SI,getAncestor:()=>w0,getAnyExtensionFromPath:()=>qA,getAreDeclarationMapsEnabled:()=>AW,getAssignedExpandoInitializer:()=>aI,getAssignedName:()=>Z8,getAssignmentDeclarationKind:()=>oc,getAssignmentDeclarationPropertyAccessKind:()=>sk,getAssignmentTargetKind:()=>gb,getAutomaticTypeDirectiveNames:()=>U3,getBaseFileName:()=>xc,getBinaryOperatorPrecedence:()=>bk,getBuildInfo:()=>YU,getBuildInfoFileVersionMap:()=>bH,getBuildInfoText:()=>$ae,getBuildOrderFromAnyBuildOrder:()=>Zw,getBuilderCreationParameters:()=>RF,getBuilderFileEmit:()=>Wb,getCanonicalDiagnostic:()=>Vte,getCheckFlags:()=>Wl,getClassExtendsHeritageElement:()=>v1,getClassLikeDeclarationOfSymbol:()=>cy,getCombinedLocalAndExportSymbolFlags:()=>eD,getCombinedModifierFlags:()=>I0,getCombinedNodeFlags:()=>ty,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>AB,getCommentRange:()=>Qh,getCommonSourceDirectory:()=>mP,getCommonSourceDirectoryOfConfig:()=>xE,getCompilerOptionValue:()=>RW,getConditions:()=>Lb,getConfigFileParsingDiagnostics:()=>U1,getConstantValue:()=>Qre,getContainerFlags:()=>hU,getContainerNode:()=>CE,getContainingClass:()=>hd,getContainingClassExcludingClassDecorators:()=>W6,getContainingClassStaticBlock:()=>Zte,getContainingFunction:()=>cf,getContainingFunctionDeclaration:()=>Qte,getContainingFunctionOrClassStaticBlock:()=>O6,getContainingNodeArray:()=>Cre,getContainingObjectLiteralElement:()=>PO,getContextualTypeFromParent:()=>y7,getContextualTypeFromParentOrAncestorTypeNode:()=>n7,getDeclarationDiagnostics:()=>qae,getDeclarationEmitExtensionForPath:()=>oW,getDeclarationEmitOutputFilePath:()=>Ine,getDeclarationEmitOutputFilePathWorker:()=>iW,getDeclarationFileExtension:()=>x3,getDeclarationFromName:()=>ZN,getDeclarationModifierFlagsFromSymbol:()=>Bf,getDeclarationOfKind:()=>al,getDeclarationsOfKind:()=>bte,getDeclaredExpandoInitializer:()=>XN,getDecorators:()=>ob,getDefaultCompilerOptions:()=>K7,getDefaultFormatCodeSettings:()=>qF,getDefaultLibFileName:()=>yL,getDefaultLibFilePath:()=>Qde,getDefaultLikeExportInfo:()=>M7,getDefaultLikeExportNameFromDeclaration:()=>oJ,getDefaultResolutionModeForFileWorker:()=>SF,getDiagnosticText:()=>tp,getDiagnosticsWithinSpan:()=>fce,getDirectoryPath:()=>ci,getDirectoryToWatchFailedLookupLocation:()=>AH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>kse,getDocumentPositionMapper:()=>vJ,getDocumentSpansEqualityComparer:()=>Vq,getESModuleInterop:()=>Yh,getEditsForFileRename:()=>Ece,getEffectiveBaseTypeNode:()=>lh,getEffectiveConstraintOfTypeParameter:()=>DR,getEffectiveContainerForJSDocTemplateTag:()=>X6,getEffectiveImplementsTypeNodes:()=>JR,getEffectiveInitializer:()=>ik,getEffectiveJSDocHost:()=>k0,getEffectiveModifierFlags:()=>Gd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>kne,getEffectiveModifierFlagsNoCache:()=>wne,getEffectiveReturnTypeNode:()=>Pp,getEffectiveSetAccessorTypeAnnotationNode:()=>XG,getEffectiveTypeAnnotationNode:()=>Rc,getEffectiveTypeParameterDeclarations:()=>ab,getEffectiveTypeRoots:()=>ZM,getElementOrPropertyAccessArgumentExpressionOrName:()=>K6,getElementOrPropertyAccessName:()=>iy,getElementsOfBindingOrAssignmentPattern:()=>AD,getEmitDeclarations:()=>hp,getEmitFlags:()=>Qa,getEmitHelpers:()=>$V,getEmitModuleDetectionKind:()=>ire,getEmitModuleFormatOfFileWorker:()=>yP,getEmitModuleKind:()=>vu,getEmitModuleResolutionKind:()=>ru,getEmitScriptTarget:()=>Ga,getEmitStandardClassFields:()=>yV,getEnclosingBlockScopeContainer:()=>sh,getEnclosingContainer:()=>D6,getEncodedSemanticClassifications:()=>pJ,getEncodedSyntacticClassifications:()=>fJ,getEndLinePosition:()=>zL,getEntityNameFromTypeNode:()=>QL,getEntrypointsFromPackageJsonInfo:()=>dU,getErrorCountForSummary:()=>NF,getErrorSpanForNode:()=>qS,getErrorSummaryText:()=>DH,getEscapedTextOfIdentifierOrLiteral:()=>rM,getEscapedTextOfJsxAttributeName:()=>CM,getEscapedTextOfJsxNamespacedName:()=>xI,getExpandoInitializer:()=>P0,getExportAssignmentExpression:()=>NG,getExportInfoMap:()=>AO,getExportNeedsImportStarHelper:()=>fae,getExpressionAssociativity:()=>WG,getExpressionPrecedence:()=>oM,getExternalHelpersModuleName:()=>pw,getExternalModuleImportEqualsDeclarationExpression:()=>qN,getExternalModuleName:()=>lI,getExternalModuleNameFromDeclaration:()=>Ene,getExternalModuleNameFromPath:()=>UG,getExternalModuleNameLiteral:()=>jI,getExternalModuleRequireArgument:()=>vG,getFallbackOptions:()=>Hw,getFileEmitOutput:()=>mse,getFileMatcherPatterns:()=>PW,getFileNamesFromConfigSpecs:()=>$M,getFileWatcherEventKind:()=>dB,getFilesInErrorForSummary:()=>MF,getFirstConstructorWithBody:()=>gg,getFirstIdentifier:()=>Pu,getFirstNonSpaceCharacterPosition:()=>oce,getFirstProjectOutput:()=>JU,getFixableErrorSpanExpression:()=>nJ,getFormatCodeSettingsForWriting:()=>D7,getFullWidth:()=>WL,getFunctionFlags:()=>dc,getHeritageClause:()=>gk,getHostSignatureFromJSDoc:()=>L0,getIdentifierAutoGenerate:()=>Q0e,getIdentifierGeneratedImportReference:()=>iie,getIdentifierTypeArguments:()=>sE,getImmediatelyInvokedFunctionExpression:()=>N0,getImpliedNodeFormatForEmitWorker:()=>RE,getImpliedNodeFormatForFile:()=>Jw,getImpliedNodeFormatForFileWorker:()=>TF,getImportNeedsImportDefaultHelper:()=>PU,getImportNeedsImportStarHelper:()=>rF,getIndentString:()=>rW,getInferredLibraryNameResolveFrom:()=>bF,getInitializedVariables:()=>fM,getInitializerOfBinaryExpression:()=>EG,getInitializerOfBindingOrAssignmentElement:()=>mw,getInterfaceBaseTypeNodes:()=>tM,getInternalEmitFlags:()=>Wm,getInvokedExpression:()=>B6,getIsFileExcluded:()=>yce,getIsolatedModules:()=>gm,getJSDocAugmentsTag:()=>jee,getJSDocClassTag:()=>RB,getJSDocCommentRanges:()=>mG,getJSDocCommentsAndTags:()=>AG,getJSDocDeprecatedTag:()=>DB,getJSDocDeprecatedTagNoCache:()=>Yee,getJSDocEnumTag:()=>CB,getJSDocHost:()=>g1,getJSDocImplementsTags:()=>Uee,getJSDocOverloadTags:()=>xG,getJSDocOverrideTagNoCache:()=>Xee,getJSDocParameterTags:()=>RR,getJSDocParameterTagsNoCache:()=>zee,getJSDocPrivateTag:()=>Kbe,getJSDocPrivateTagNoCache:()=>qee,getJSDocProtectedTag:()=>Xbe,getJSDocProtectedTagNoCache:()=>Jee,getJSDocPublicTag:()=>Jbe,getJSDocPublicTagNoCache:()=>Hee,getJSDocReadonlyTag:()=>Ybe,getJSDocReadonlyTagNoCache:()=>Kee,getJSDocReturnTag:()=>$ee,getJSDocReturnType:()=>AL,getJSDocRoot:()=>qR,getJSDocSatisfiesExpressionType:()=>OV,getJSDocSatisfiesTag:()=>NB,getJSDocTags:()=>R0,getJSDocTemplateTag:()=>$be,getJSDocThisTag:()=>e6,getJSDocType:()=>Ky,getJSDocTypeAliasName:()=>Cj,getJSDocTypeAssertionType:()=>SD,getJSDocTypeParameterDeclarations:()=>dW,getJSDocTypeParameterTags:()=>Bee,getJSDocTypeParameterTagsNoCache:()=>Gee,getJSDocTypeTag:()=>x0,getJSXImplicitImportBase:()=>Fk,getJSXRuntimeImport:()=>CW,getJSXTransformEnabled:()=>DW,getKeyForCompilerOptions:()=>oU,getLanguageVariant:()=>Pk,getLastChild:()=>uV,getLeadingCommentRanges:()=>sg,getLeadingCommentRangesOfNode:()=>fG,getLeftmostAccessExpression:()=>tD,getLeftmostExpression:()=>nD,getLibFileNameFromLibReference:()=>VV,getLibNameFromLibReference:()=>GV,getLibraryNameFromLibFileName:()=>dH,getLineAndCharacterOfPosition:()=>ca,getLineInfo:()=>CU,getLineOfLocalPosition:()=>sM,getLineStartPositionForPosition:()=>Sm,getLineStarts:()=>og,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Jne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>qne,getLinesBetweenPositions:()=>EN,getLinesBetweenRangeEndAndRangeStart:()=>aV,getLinesBetweenRangeEndPositions:()=>R0e,getLiteralText:()=>Nte,getLocalNameForExternalImport:()=>ED,getLocalSymbolForExportDefault:()=>uM,getLocaleSpecificMessage:()=>Ho,getLocaleTimeString:()=>Qw,getMappedContextSpan:()=>Uq,getMappedDocumentSpan:()=>h7,getMappedLocation:()=>DP,getMatchedFileSpec:()=>PH,getMatchedIncludeSpec:()=>LH,getMeaningFromDeclaration:()=>KF,getMeaningFromLocation:()=>DE,getMembersOfDeclaration:()=>qte,getModeForFileReference:()=>dse,getModeForResolutionAtIndex:()=>fEe,getModeForUsageLocation:()=>lH,getModifiedTime:()=>HA,getModifiers:()=>a1,getModuleInstanceState:()=>my,getModuleNameStringLiteralAt:()=>Xw,getModuleSpecifierEndingPreference:()=>yre,getModuleSpecifierResolverHost:()=>wq,getNameForExportedSymbol:()=>I7,getNameFromImportAttribute:()=>HW,getNameFromIndexInfo:()=>Fte,getNameFromPropertyName:()=>fO,getNameOfAccessExpression:()=>fV,getNameOfCompilerOptionValue:()=>w3,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>bG,getNameOfJSDocTypedef:()=>Fee,getNameOfScriptTarget:()=>xW,getNameOrArgument:()=>ak,getNameTable:()=>XJ,getNamespaceDeclarationNode:()=>UR,getNewLineCharacter:()=>tv,getNewLineKind:()=>EO,getNewLineOrDefaultFromHost:()=>_y,getNewTargetContainer:()=>tne,getNextJSDocCommentLocation:()=>IG,getNodeChildren:()=>bj,getNodeForGeneratedName:()=>_w,getNodeId:()=>ss,getNodeKind:()=>H1,getNodeModifiers:()=>IP,getNodeModulePathParts:()=>VW,getNonAssignedNameOfDeclaration:()=>Q8,getNonAssignmentOperatorForCompoundAssignment:()=>sP,getNonAugmentationDeclaration:()=>aG,getNonDecoratorTokenPosOfNode:()=>eG,getNonIncrementalBuildInfoRoots:()=>Cse,getNonModifierTokenPosOfNode:()=>Dte,getNormalizedAbsolutePath:()=>To,getNormalizedAbsolutePathWithoutRoot:()=>mB,getNormalizedPathComponents:()=>U8,getObjectFlags:()=>Hr,getOperatorAssociativity:()=>FG,getOperatorPrecedence:()=>vk,getOptionFromName:()=>Hj,getOptionsForLibraryResolution:()=>aU,getOptionsNameMap:()=>RD,getOptionsSyntaxByArrayElementValue:()=>UV,getOptionsSyntaxByValue:()=>Gre,getOrCreateEmitNode:()=>jd,getOrUpdate:()=>FA,getOriginalNode:()=>yl,getOriginalNodeId:()=>Wu,getOutputDeclarationFileName:()=>fP,getOutputDeclarationFileNameWorker:()=>HU,getOutputExtension:()=>Vw,getOutputFileNames:()=>oEe,getOutputJSFileNameWorker:()=>qU,getOutputPathsFor:()=>pP,getOwnEmitOutputFilePath:()=>Ane,getOwnKeys:()=>Oh,getOwnValues:()=>GA,getPackageJsonTypesVersionsPaths:()=>j3,getPackageNameFromTypesPackageName:()=>rP,getPackageScopeForPath:()=>nP,getParameterSymbolFromJSDoc:()=>fk,getParentNodeInSpan:()=>hO,getParseTreeNode:()=>jo,getParsedCommandLineOfConfigFile:()=>Sw,getPathComponents:()=>zd,getPathFromPathComponents:()=>A0,getPathUpdater:()=>_J,getPathsBasePath:()=>aW,getPatternFromSpec:()=>EV,getPendingEmitKindWithSeen:()=>xF,getPositionOfLineAndCharacter:()=>fL,getPossibleGenericSignatures:()=>Aq,getPossibleOriginalInputExtensionForExtension:()=>HG,getPossibleOriginalInputPathWithoutChangingExt:()=>qG,getPossibleTypeArgumentsInfo:()=>Iq,getPreEmitDiagnostics:()=>aEe,getPrecedingNonSpaceCharacterPosition:()=>_7,getPrivateIdentifier:()=>OU,getProperties:()=>kU,getProperty:()=>iL,getPropertyAssignmentAliasLikeExpression:()=>gne,getPropertyNameForPropertyNameNode:()=>eE,getPropertyNameFromType:()=>Vf,getPropertyNameOfBindingOrAssignmentElement:()=>Dj,getPropertySymbolFromBindingElement:()=>m7,getPropertySymbolsFromContextualType:()=>Y7,getQuoteFromPreference:()=>Wq,getQuotePreference:()=>zp,getRangesWhere:()=>Sz,getRefactorContextSpan:()=>ix,getReferencedFileLocation:()=>gP,getRegexFromPattern:()=>nv,getRegularExpressionForWildcard:()=>yM,getRegularExpressionsForWildcards:()=>NW,getRelativePathFromDirectory:()=>lf,getRelativePathFromFile:()=>SR,getRelativePathToDirectoryOrUrl:()=>ER,getRenameLocation:()=>gO,getReplacementSpanForContextToken:()=>Cq,getResolutionDiagnostic:()=>mH,getResolutionModeOverride:()=>OD,getResolveJsonModule:()=>I1,getResolvePackageJsonExports:()=>kk,getResolvePackageJsonImports:()=>wk,getResolvedExternalModuleName:()=>jG,getResolvedModuleFromResolution:()=>nI,getResolvedTypeReferenceDirectiveFromResolution:()=>b6,getRestIndicatorOfBindingOrAssignmentElement:()=>T3,getRestParameterElementType:()=>hG,getRightMostAssignedExpression:()=>ok,getRootDeclaration:()=>qh,getRootDirectoryOfResolutionCache:()=>wse,getRootLength:()=>Fh,getScriptKind:()=>Kq,getScriptKindFromFileName:()=>kW,getScriptTargetFeatures:()=>tG,getSelectedEffectiveModifierFlags:()=>mI,getSelectedSyntacticModifierFlags:()=>Pne,getSemanticClassifications:()=>vce,getSemanticJsxChildren:()=>XR,getSetAccessorTypeAnnotationNode:()=>Rne,getSetAccessorValueParameter:()=>lM,getSetExternalModuleIndicator:()=>Lk,getShebang:()=>Y8,getSingleVariableOfVariableStatement:()=>uI,getSnapshotText:()=>rx,getSnippetElement:()=>QV,getSourceFileOfModule:()=>FL,getSourceFileOfNode:()=>Wn,getSourceFilePathInNewDir:()=>lW,getSourceFileVersionAsHashFromText:()=>LF,getSourceFilesToEmit:()=>sW,getSourceMapRange:()=>ov,getSourceMapper:()=>wce,getSourceTextOfNodeFromSourceFile:()=>u1,getSpanOfTokenAtPosition:()=>Vh,getSpellingSuggestion:()=>o1,getStartPositionOfLine:()=>fb,getStartPositionOfRange:()=>pM,getStartsOnNewLine:()=>PM,getStaticPropertiesAndClassStaticBlock:()=>aF,getStrictOptionValue:()=>Vd,getStringComparer:()=>gR,getSubPatternFromSpec:()=>MW,getSuperCallFromStatement:()=>iF,getSuperContainer:()=>YL,getSupportedCodeFixes:()=>JJ,getSupportedExtensions:()=>vM,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Bk,getSwitchedType:()=>$q,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>yk,getSymbolTarget:()=>Xq,getSyntacticClassifications:()=>bce,getSyntacticModifierFlags:()=>Zy,getSyntacticModifierFlagsNoCache:()=>QG,getSynthesizedDeepClone:()=>_s,getSynthesizedDeepCloneWithReplacements:()=>Xk,getSynthesizedDeepClones:()=>C1,getSynthesizedDeepClonesWithReplacements:()=>qV,getSyntheticLeadingComments:()=>lD,getSyntheticTrailingComments:()=>ew,getTargetLabel:()=>$F,getTargetOfBindingOrAssignmentElement:()=>Mb,getTemporaryModuleResolutionState:()=>tP,getTextOfConstantValue:()=>Mte,getTextOfIdentifierOrLiteral:()=>Wf,getTextOfJSDocComment:()=>IL,getTextOfJsxAttributeName:()=>Jk,getTextOfJsxNamespacedName:()=>NM,getTextOfNode:()=>Al,getTextOfNodeFromSourceText:()=>BN,getTextOfPropertyName:()=>oI,getThisContainer:()=>yu,getThisParameter:()=>T1,getTokenAtPosition:()=>Fi,getTokenPosOfNode:()=>mb,getTokenSourceMapRange:()=>Y0e,getTouchingPropertyName:()=>np,getTouchingToken:()=>HD,getTrailingCommentRanges:()=>ib,getTrailingSemicolonDeferringWriter:()=>VG,getTransformers:()=>Kae,getTsBuildInfoEmitOutputFilePath:()=>nT,getTsConfigObjectLiteralExpression:()=>UN,getTsConfigPropArrayElementValue:()=>w6,getTypeAnnotationNode:()=>Dne,getTypeArgumentOrTypeParameterList:()=>Vle,getTypeKeywordOfTypeOnlyImport:()=>Bq,getTypeNode:()=>nie,getTypeNodeIfAccessible:()=>LP,getTypeParameterFromJsDoc:()=>une,getTypeParameterOwner:()=>jbe,getTypesPackageName:()=>Y3,getUILocale:()=>HQ,getUniqueName:()=>ME,getUniqueSymbolId:()=>ice,getUseDefineForClassFields:()=>Ok,getWatchErrorSummaryDiagnosticMessage:()=>RH,getWatchFactory:()=>eH,group:()=>_R,groupBy:()=>Cz,guessIndentation:()=>gte,handleNoEmitOptions:()=>fH,handleWatchOptionsConfigDirTemplateSubstitution:()=>W3,hasAbstractModifier:()=>A1,hasAccessorModifier:()=>Jh,hasAmbientModifier:()=>$G,hasChangesInResolutions:()=>$B,hasContextSensitiveParameters:()=>GW,hasDecorators:()=>uf,hasDocComment:()=>Ble,hasDynamicName:()=>oy,hasEffectiveModifier:()=>Lp,hasEffectiveModifiers:()=>YG,hasEffectiveReadonlyModifier:()=>nE,hasExtension:()=>TR,hasImplementationTSFileExtension:()=>_re,hasIndexSignature:()=>Yq,hasInferredType:()=>JW,hasInitializer:()=>Yy,hasInvalidEscape:()=>BG,hasJSDocNodes:()=>Zp,hasJSDocParameterTags:()=>Vee,hasJSFileExtension:()=>bg,hasJsonModuleEmitEnabled:()=>IW,hasOnlyExpressionInitializer:()=>US,hasOverrideModifier:()=>uW,hasPossibleExternalModuleReference:()=>Ote,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>oO,hasQuestionToken:()=>cI,hasRecordedExternalHelpers:()=>Vie,hasResolutionModeOverride:()=>kre,hasRestParameter:()=>qB,hasScopeMarker:()=>lte,hasStaticModifier:()=>Wc,hasSyntacticModifier:()=>di,hasSyntacticModifiers:()=>Mne,hasTSFileExtension:()=>iE,hasTabstop:()=>Mre,hasTrailingDirectorySeparator:()=>nb,hasType:()=>h6,hasTypeArguments:()=>g0e,hasZeroOrOneAsteriskCharacter:()=>vV,hostGetCanonicalFileName:()=>ay,hostUsesCaseSensitiveFileNames:()=>tE,idText:()=>Kr,identifierIsThisKeyword:()=>KG,identifierToKeywordKind:()=>FS,identity:()=>Vs,identitySourceMapConsumer:()=>MU,ignoreSourceNewlines:()=>ej,ignoredPaths:()=>B8,importFromModuleSpecifier:()=>$N,importSyntaxAffectsModuleResolution:()=>gV,indexOfAnyCharCode:()=>Gi,indexOfNode:()=>wR,indicesOf:()=>D8,inferredTypesContainingFile:()=>_P,injectClassNamedEvaluationHelperBlockIfMissing:()=>dF,injectClassThisAssignmentIfMissing:()=>Tae,insertImports:()=>zq,insertSorted:()=>Kv,insertStatementAfterCustomPrologue:()=>HS,insertStatementAfterStandardPrologue:()=>d0e,insertStatementsAfterCustomPrologue:()=>QB,insertStatementsAfterStandardPrologue:()=>fg,intersperse:()=>bo,intrinsicTagNameToString:()=>WV,introducesArgumentsExoticObject:()=>Xte,inverseJsxOptionMap:()=>bw,isAbstractConstructorSymbol:()=>Kne,isAbstractModifier:()=>mie,isAccessExpression:()=>Ks,isAccessibilityModifier:()=>Rq,isAccessor:()=>db,isAccessorModifier:()=>aj,isAliasableExpression:()=>Y6,isAmbientModule:()=>gu,isAmbientPropertyDeclaration:()=>lG,isAnyDirectorySeparator:()=>uB,isAnyImportOrBareOrAccessedRequire:()=>kte,isAnyImportOrReExport:()=>VL,isAnyImportOrRequireStatement:()=>wte,isAnyImportSyntax:()=>iI,isAnySupportedFileExtension:()=>G0e,isApplicableVersionedTypesKey:()=>Nw,isArgumentExpressionOfElementAccess:()=>_q,isArray:()=>Mo,isArrayBindingElement:()=>c6,isArrayBindingOrAssignmentElement:()=>ML,isArrayBindingOrAssignmentPattern:()=>BB,isArrayBindingPattern:()=>cv,isArrayLiteralExpression:()=>Cd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>pv,isArrayTypeNode:()=>iw,isArrowFunction:()=>Xs,isAsExpression:()=>fD,isAssertClause:()=>Sie,isAssertEntry:()=>sTe,isAssertionExpression:()=>d1,isAssertsKeyword:()=>pie,isAssignmentDeclaration:()=>KN,isAssignmentExpression:()=>id,isAssignmentOperator:()=>sy,isAssignmentPattern:()=>ON,isAssignmentTarget:()=>yb,isAsteriskToken:()=>nw,isAsyncFunction:()=>nM,isAsyncModifier:()=>wM,isAutoAccessorPropertyDeclaration:()=>Ku,isAwaitExpression:()=>Cb,isAwaitKeyword:()=>oj,isBigIntLiteral:()=>cD,isBinaryExpression:()=>Nr,isBinaryLogicalOperator:()=>Ak,isBinaryOperatorToken:()=>Yie,isBindableObjectDefinePropertyCall:()=>YS,isBindableStaticAccessExpression:()=>_1,isBindableStaticElementAccessExpression:()=>J6,isBindableStaticNameExpression:()=>$S,isBindingElement:()=>Ha,isBindingElementOfBareOrAccessedRequire:()=>ine,isBindingName:()=>VS,isBindingOrAssignmentElement:()=>ite,isBindingOrAssignmentPattern:()=>CL,isBindingPattern:()=>Qo,isBlock:()=>ea,isBlockLike:()=>ox,isBlockOrCatchScoped:()=>nG,isBlockScope:()=>cG,isBlockScopedContainerTopLevel:()=>Lte,isBooleanLiteral:()=>wN,isBreakOrContinueStatement:()=>MN,isBreakStatement:()=>iTe,isBuildCommand:()=>rle,isBuildInfoFile:()=>Xae,isBuilderProgram:()=>CH,isBundle:()=>xie,isCallChain:()=>zS,isCallExpression:()=>Zo,isCallExpressionTarget:()=>dq,isCallLikeExpression:()=>c1,isCallLikeOrFunctionLikeExpression:()=>GB,isCallOrNewExpression:()=>Bh,isCallOrNewExpressionTarget:()=>uq,isCallSignatureDeclaration:()=>kI,isCallToHelper:()=>kM,isCaseBlock:()=>VM,isCaseClause:()=>gD,isCaseKeyword:()=>_ie,isCaseOrDefaultClause:()=>f6,isCatchClause:()=>O1,isCatchClauseVariableDeclaration:()=>Nre,isCatchClauseVariableDeclarationOrBindingElement:()=>rG,isCheckJsEnabledForFile:()=>SM,isCircularBuildOrder:()=>tx,isClassDeclaration:()=>Cc,isClassElement:()=>Tc,isClassExpression:()=>uc,isClassInstanceProperty:()=>nte,isClassLike:()=>ui,isClassMemberModifier:()=>WB,isClassNamedEvaluationHelperBlock:()=>QI,isClassOrTypeElement:()=>l6,isClassStaticBlockDeclaration:()=>$l,isClassThisAssignmentBlock:()=>cP,isColonToken:()=>die,isCommaExpression:()=>uw,isCommaListExpression:()=>BM,isCommaSequence:()=>JM,isCommaToken:()=>cie,isComment:()=>s7,isCommonJsExportPropertyAssignment:()=>L6,isCommonJsExportedExpression:()=>Jte,isCompoundAssignment:()=>aP,isComputedNonLiteralName:()=>jL,isComputedPropertyName:()=>va,isConciseBody:()=>u6,isConditionalExpression:()=>pE,isConditionalTypeNode:()=>M1,isConstAssertion:()=>FV,isConstTypeReference:()=>wm,isConstructSignatureDeclaration:()=>FM,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>dD,isContextualKeyword:()=>Q6,isContinueStatement:()=>rTe,isCustomPrologue:()=>KL,isDebuggerStatement:()=>oTe,isDeclaration:()=>rd,isDeclarationBindingElement:()=>DL,isDeclarationFileName:()=>ad,isDeclarationName:()=>P_,isDeclarationNameOfEnumOrNamespace:()=>lV,isDeclarationReadonly:()=>HL,isDeclarationStatement:()=>pte,isDeclarationWithTypeParameterChildren:()=>uG,isDeclarationWithTypeParameters:()=>dG,isDecorator:()=>zc,isDecoratorTarget:()=>Cle,isDefaultClause:()=>jM,isDefaultImport:()=>QS,isDefaultModifier:()=>o3,isDefaultedExpandoInitializer:()=>one,isDeleteExpression:()=>yie,isDeleteTarget:()=>DG,isDeprecatedDeclaration:()=>x7,isDestructuringAssignment:()=>ev,isDiskPathRoot:()=>pB,isDoStatement:()=>nTe,isDocumentRegistryEntry:()=>IO,isDotDotDotToken:()=>r3,isDottedName:()=>xk,isDynamicName:()=>eW,isEffectiveExternalModule:()=>OR,isEffectiveStrictModeSourceFile:()=>sG,isElementAccessChain:()=>MB,isElementAccessExpression:()=>Ws,isEmittedFileOfProgram:()=>nse,isEmptyArrayLiteral:()=>zne,isEmptyBindingElement:()=>wee,isEmptyBindingPattern:()=>kee,isEmptyObjectLiteral:()=>rV,isEmptyStatement:()=>cj,isEmptyStringLiteral:()=>yG,isEntityName:()=>Nu,isEntityNameExpression:()=>Ds,isEnumConst:()=>C0,isEnumDeclaration:()=>q0,isEnumMember:()=>py,isEqualityOperatorKind:()=>v7,isEqualsGreaterThanToken:()=>uie,isExclamationToken:()=>rw,isExcludedFile:()=>Ioe,isExclusivelyTypeOnlyImportOrExport:()=>sH,isExpandoPropertyDeclaration:()=>RI,isExportAssignment:()=>ll,isExportDeclaration:()=>fc,isExportModifier:()=>PI,isExportName:()=>v3,isExportNamespaceAsDefaultDeclaration:()=>I6,isExportOrDefaultModifier:()=>hw,isExportSpecifier:()=>iu,isExportsIdentifier:()=>XS,isExportsOrModuleExportsOrAlias:()=>z1,isExpression:()=>St,isExpressionNode:()=>M_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Ple,isExpressionOfOptionalChainRoot:()=>i6,isExpressionStatement:()=>od,isExpressionWithTypeArguments:()=>dy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>fW,isExternalModule:()=>Gc,isExternalModuleAugmentation:()=>f1,isExternalModuleImportEqualsDeclaration:()=>M0,isExternalModuleIndicator:()=>LL,isExternalModuleNameRelative:()=>td,isExternalModuleReference:()=>uy,isExternalModuleSymbol:()=>eI,isExternalOrCommonJsModule:()=>Np,isFileLevelReservedGeneratedIdentifier:()=>RL,isFileLevelUniqueName:()=>E6,isFileProbablyExternalModule:()=>yw,isFirstDeclarationOfSymbolParameter:()=>Hq,isFixablePromiseHandler:()=>SJ,isForInOrOfStatement:()=>jS,isForInStatement:()=>d3,isForInitializer:()=>kf,isForOfStatement:()=>aw,isForStatement:()=>H0,isFullSourceFile:()=>hg,isFunctionBlock:()=>m1,isFunctionBody:()=>jB,isFunctionDeclaration:()=>Ql,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>Ab,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Ms,isFunctionLikeKind:()=>YA,isFunctionLikeOrClassStaticBlockDeclaration:()=>MR,isFunctionOrConstructorTypeNode:()=>rte,isFunctionOrModuleBlock:()=>FB,isFunctionSymbol:()=>lne,isFunctionTypeNode:()=>k_,isGeneratedIdentifier:()=>pl,isGeneratedPrivateIdentifier:()=>GS,isGetAccessor:()=>dg,isGetAccessorDeclaration:()=>jf,isGetOrSetAccessorDeclaration:()=>xL,isGlobalScopeAugmentation:()=>N_,isGlobalSourceFile:()=>$y,isGrammarError:()=>xte,isHeritageClause:()=>Op,isHoistedFunction:()=>M6,isHoistedVariableStatement:()=>P6,isIdentifier:()=>He,isIdentifierANonContextualKeyword:()=>LG,isIdentifierName:()=>_ne,isIdentifierOrThisTypeNode:()=>qie,isIdentifierPart:()=>ey,isIdentifierStart:()=>x_,isIdentifierText:()=>pp,isIdentifierTypePredicate:()=>Yte,isIdentifierTypeReference:()=>Ire,isIfStatement:()=>U0,isIgnoredFileFromWildCardWatching:()=>Uw,isImplicitGlob:()=>SV,isImportAttribute:()=>Eie,isImportAttributeName:()=>tte,isImportAttributes:()=>hE,isImportCall:()=>Yu,isImportClause:()=>Gm,isImportDeclaration:()=>vl,isImportEqualsDeclaration:()=>Bc,isImportKeyword:()=>WM,isImportMeta:()=>zR,isImportOrExportSpecifier:()=>lb,isImportOrExportSpecifierName:()=>rce,isImportSpecifier:()=>Su,isImportTypeAssertionContainer:()=>aTe,isImportTypeNode:()=>Zh,isImportable:()=>dJ,isInComment:()=>uv,isInCompoundLikeAssignment:()=>RG,isInExpressionContext:()=>G6,isInJSDoc:()=>JN,isInJSFile:()=>Ir,isInJSXText:()=>zle,isInJsonFile:()=>j6,isInNonReferenceComment:()=>Hle,isInReferenceComment:()=>Ule,isInRightSideOfInternalImportEqualsDeclaration:()=>XF,isInString:()=>nx,isInTemplateString:()=>Eq,isInTopLevelContext:()=>F6,isInTypeQuery:()=>fI,isIncrementalBuildInfo:()=>Yw,isIncrementalBundleEmitBuildInfo:()=>Ese,isIncrementalCompilation:()=>x1,isIndexSignatureDeclaration:()=>Db,isIndexedAccessTypeNode:()=>P1,isInferTypeNode:()=>cE,isInfinityOrNaNString:()=>RM,isInitializedProperty:()=>kw,isInitializedVariable:()=>Mk,isInsideJsxElement:()=>o7,isInsideJsxElementOrAttribute:()=>Fle,isInsideNodeModules:()=>bO,isInsideTemplateLiteral:()=>dO,isInstanceOfExpression:()=>mW,isInstantiatedModule:()=>AU,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>yte,isInternalModuleImportEqualsDeclaration:()=>KS,isInternalName:()=>Ij,isIntersectionTypeNode:()=>WI,isIntrinsicJsxName:()=>YR,isIterationStatement:()=>ub,isJSDoc:()=>mh,isJSDocAllType:()=>Cie,isJSDocAugmentsTag:()=>VI,isJSDocAuthorTag:()=>uTe,isJSDocCallbackTag:()=>fj,isJSDocClassTag:()=>Mie,isJSDocCommentContainingNode:()=>m6,isJSDocConstructSignature:()=>dI,isJSDocDeprecatedTag:()=>yj,isJSDocEnumTag:()=>lw,isJSDocFunctionType:()=>vD,isJSDocImplementsTag:()=>_3,isJSDocImportTag:()=>i_,isJSDocIndexSignature:()=>H6,isJSDocLikeText:()=>kj,isJSDocLink:()=>Rie,isJSDocLinkCode:()=>Die,isJSDocLinkLike:()=>ZA,isJSDocLinkPlain:()=>cTe,isJSDocMemberName:()=>X0,isJSDocNameReference:()=>UM,isJSDocNamepathType:()=>dTe,isJSDocNamespaceBody:()=>r0e,isJSDocNode:()=>PR,isJSDocNonNullableType:()=>p3,isJSDocNullableType:()=>yD,isJSDocOptionalParameter:()=>jW,isJSDocOptionalType:()=>pj,isJSDocOverloadTag:()=>bD,isJSDocOverrideTag:()=>m3,isJSDocParameterTag:()=>ff,isJSDocPrivateTag:()=>hj,isJSDocPropertyLikeTag:()=>PN,isJSDocPropertyTag:()=>Pie,isJSDocProtectedTag:()=>_j,isJSDocPublicTag:()=>mj,isJSDocReadonlyTag:()=>gj,isJSDocReturnTag:()=>h3,isJSDocSatisfiesExpression:()=>wV,isJSDocSatisfiesTag:()=>g3,isJSDocSeeTag:()=>pTe,isJSDocSignature:()=>dv,isJSDocTag:()=>LR,isJSDocTemplateTag:()=>vm,isJSDocThisTag:()=>vj,isJSDocThrowsTag:()=>mTe,isJSDocTypeAlias:()=>mm,isJSDocTypeAssertion:()=>W1,isJSDocTypeExpression:()=>K0,isJSDocTypeLiteral:()=>gE,isJSDocTypeTag:()=>HM,isJSDocTypedefTag:()=>yE,isJSDocUnknownTag:()=>fTe,isJSDocUnknownType:()=>Nie,isJSDocVariadicType:()=>f3,isJSXTagName:()=>VR,isJsonEqual:()=>zW,isJsonSourceFile:()=>Of,isJsxAttribute:()=>r_,isJsxAttributeLike:()=>p6,isJsxAttributeName:()=>Lre,isJsxAttributes:()=>w1,isJsxCallLike:()=>_te,isJsxChild:()=>OL,isJsxClosingElement:()=>k1,isJsxClosingFragment:()=>Iie,isJsxElement:()=>n_,isJsxExpression:()=>_D,isJsxFragment:()=>J0,isJsxNamespacedName:()=>fh,isJsxOpeningElement:()=>ph,isJsxOpeningFragment:()=>Vm,isJsxOpeningLikeElement:()=>nu,isJsxOpeningLikeElementTagName:()=>Nle,isJsxSelfClosingElement:()=>_E,isJsxSpreadAttribute:()=>GI,isJsxTagNameExpression:()=>WN,isJsxText:()=>NI,isJumpStatementTarget:()=>aO,isKeyword:()=>Qu,isKeywordOrPunctuation:()=>$6,isKnownSymbol:()=>iM,isLabelName:()=>mq,isLabelOfLabeledStatement:()=>fq,isLabeledStatement:()=>Nb,isLateVisibilityPaintedStatement:()=>R6,isLeftHandSideExpression:()=>Xu,isLet:()=>N6,isLineBreak:()=>Zd,isLiteralComputedPropertyDeclarationName:()=>hk,isLiteralExpression:()=>BS,isLiteralExpressionOfObject:()=>wB,isLiteralImportTypeNode:()=>ry,isLiteralKind:()=>LN,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>QF,isLiteralTypeLiteral:()=>ste,isLiteralTypeNode:()=>lv,isLocalName:()=>fy,isLogicalOperator:()=>One,isLogicalOrCoalescingAssignmentExpression:()=>ZG,isLogicalOrCoalescingAssignmentOperator:()=>cM,isLogicalOrCoalescingBinaryExpression:()=>Ik,isLogicalOrCoalescingBinaryOperator:()=>pW,isMappedTypeNode:()=>uE,isMemberName:()=>cg,isMetaProperty:()=>fE,isMethodDeclaration:()=>Nl,isMethodOrAccessor:()=>$A,isMethodSignature:()=>Bm,isMinusToken:()=>ij,isMissingDeclaration:()=>lTe,isMissingPackageJsonInfo:()=>Ooe,isModifier:()=>Aa,isModifierKind:()=>cb,isModifierLike:()=>fl,isModuleAugmentationExternal:()=>oG,isModuleBlock:()=>e_,isModuleBody:()=>cte,isModuleDeclaration:()=>pc,isModuleExportName:()=>u3,isModuleExportsAccessExpression:()=>_g,isModuleIdentifier:()=>TG,isModuleName:()=>Xie,isModuleOrEnumDeclaration:()=>kL,isModuleReference:()=>mte,isModuleSpecifierLike:()=>f7,isModuleWithStringLiteralName:()=>x6,isNameOfFunctionDeclaration:()=>yq,isNameOfModuleDeclaration:()=>gq,isNamedDeclaration:()=>nd,isNamedEvaluation:()=>Mp,isNamedEvaluationSource:()=>kG,isNamedExportBindings:()=>LB,isNamedExports:()=>Hf,isNamedImportBindings:()=>UB,isNamedImports:()=>t_,isNamedImportsOrExports:()=>bW,isNamedTupleMember:()=>uD,isNamespaceBody:()=>n0e,isNamespaceExport:()=>w_,isNamespaceExportDeclaration:()=>sw,isNamespaceImport:()=>Ag,isNamespaceReexportDeclaration:()=>rne,isNewExpression:()=>L1,isNewExpressionTarget:()=>SP,isNewScopeNode:()=>Bre,isNoSubstitutionTemplateLiteral:()=>lE,isNodeArray:()=>s1,isNodeArrayMultiLine:()=>Hne,isNodeDescendantOf:()=>y1,isNodeKind:()=>a6,isNodeLikeSystem:()=>Gz,isNodeModulesDirectory:()=>q8,isNodeWithPossibleHoistedDeclaration:()=>mne,isNonContextualKeyword:()=>PG,isNonGlobalAmbientModule:()=>iG,isNonNullAccess:()=>Pre,isNonNullChain:()=>o6,isNonNullExpression:()=>zI,isNonStaticMethodOrAccessorWithPrivateName:()=>mae,isNotEmittedStatement:()=>Aie,isNullishCoalesce:()=>PB,isNumber:()=>$v,isNumericLiteral:()=>ep,isNumericLiteralName:()=>Sg,isObjectBindingElementWithoutPropertyName:()=>mO,isObjectBindingOrAssignmentElement:()=>NL,isObjectBindingOrAssignmentPattern:()=>zB,isObjectBindingPattern:()=>pf,isObjectLiteralElement:()=>HB,isObjectLiteralElementLike:()=>ny,isObjectLiteralExpression:()=>Wa,isObjectLiteralMethod:()=>fm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>k6,isObjectTypeDeclaration:()=>yI,isOmittedExpression:()=>Kc,isOptionalChain:()=>eu,isOptionalChainRoot:()=>CN,isOptionalDeclaration:()=>II,isOptionalJSDocPropertyLikeTag:()=>qk,isOptionalTypeNode:()=>a3,isOuterExpression:()=>b3,isOutermostOptionalChain:()=>NN,isOverrideModifier:()=>hie,isPackageJsonInfo:()=>H3,isPackedArrayLiteral:()=>LV,isParameter:()=>to,isParameterPropertyDeclaration:()=>Dp,isParameterPropertyModifier:()=>kN,isParenthesizedExpression:()=>wu,isParenthesizedTypeNode:()=>dE,isParseTreeNode:()=>DN,isPartOfParameterDeclaration:()=>O0,isPartOfTypeNode:()=>Uh,isPartOfTypeOnlyImportOrExportDeclaration:()=>ete,isPartOfTypeQuery:()=>V6,isPartiallyEmittedExpression:()=>vie,isPatternMatch:()=>M8,isPinnedComment:()=>A6,isPlainJsFile:()=>zN,isPlusToken:()=>rj,isPossiblyTypeArgumentPosition:()=>cO,isPostfixUnaryExpression:()=>lj,isPrefixUnaryExpression:()=>j0,isPrimitiveLiteralValue:()=>qW,isPrivateIdentifier:()=>eo,isPrivateIdentifierClassElementDeclaration:()=>tu,isPrivateIdentifierPropertyAccessExpression:()=>NR,isPrivateIdentifierSymbol:()=>vne,isProgramUptoDate:()=>uH,isPrologueDirective:()=>jh,isPropertyAccessChain:()=>r6,isPropertyAccessEntityNameExpression:()=>Rk,isPropertyAccessExpression:()=>qr,isPropertyAccessOrQualifiedName:()=>PL,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ote,isPropertyAssignment:()=>Nc,isPropertyDeclaration:()=>Po,isPropertyName:()=>bc,isPropertyNameLiteral:()=>Hh,isPropertySignature:()=>Tu,isPrototypeAccess:()=>Tb,isPrototypePropertyAssignment:()=>lk,isPunctuation:()=>MG,isPushOrUnshiftIdentifier:()=>wG,isQualifiedName:()=>Lu,isQuestionDotToken:()=>i3,isQuestionOrExclamationToken:()=>Hie,isQuestionOrPlusOrMinusToken:()=>Kie,isQuestionToken:()=>Rb,isReadonlyKeyword:()=>fie,isReadonlyKeywordOrPlusOrMinusToken:()=>Jie,isRecognizedTripleSlashComment:()=>ZB,isReferenceFileLocation:()=>WD,isReferencedFile:()=>rT,isRegularExpressionLiteral:()=>tj,isRequireCall:()=>$u,isRequireVariableStatement:()=>nk,isRestParameter:()=>D_,isRestTypeNode:()=>s3,isReturnStatement:()=>ef,isReturnStatementWithFixablePromiseHandler:()=>k7,isRightSideOfAccessExpression:()=>nV,isRightSideOfInstanceofExpression:()=>Fne,isRightSideOfPropertyAccess:()=>VD,isRightSideOfQualifiedName:()=>Mle,isRightSideOfQualifiedNameOrPropertyAccess:()=>dM,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Wne,isRootedDiskPath:()=>Rp,isSameEntityName:()=>jR,isSatisfiesExpression:()=>mD,isSemicolonClassElement:()=>bie,isSetAccessor:()=>Gh,isSetAccessorDeclaration:()=>_p,isShiftOperatorOrHigher:()=>Mj,isShorthandAmbientModuleSymbol:()=>GL,isShorthandPropertyAssignment:()=>Ud,isSideEffectImport:()=>BV,isSignedNumericLiteral:()=>Z6,isSimpleCopiableExpression:()=>B1,isSimpleInlineableExpression:()=>F_,isSimpleParameterList:()=>ww,isSingleOrDoubleQuote:()=>rk,isSolutionConfig:()=>eU,isSourceElement:()=>wre,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>QD,isSourceFileJS:()=>Mu,isSourceFileNotJson:()=>U6,isSourceMapping:()=>uae,isSpecialPropertyDeclaration:()=>sne,isSpreadAssignment:()=>Ig,isSpreadElement:()=>Uf,isStatement:()=>ji,isStatementButNotDeclaration:()=>wL,isStatementOrBlock:()=>fte,isStatementWithLocals:()=>Ite,isStatic:()=>ua,isStaticModifier:()=>LI,isString:()=>Bo,isStringANonContextualKeyword:()=>pI,isStringAndEmptyAnonymousObjectIntersection:()=>jle,isStringDoubleQuoted:()=>q6,isStringLiteral:()=>ka,isStringLiteralLike:()=>cs,isStringLiteralOrJsxExpression:()=>hte,isStringLiteralOrTemplate:()=>sce,isStringOrNumericLiteralLike:()=>df,isStringOrRegularExpressionOrTemplateLiteral:()=>xq,isStringTextContainingNode:()=>OB,isSuperCall:()=>JS,isSuperKeyword:()=>OM,isSuperProperty:()=>fp,isSupportedSourceFileName:()=>xV,isSwitchStatement:()=>GM,isSyntaxList:()=>TD,isSyntheticExpression:()=>tTe,isSyntheticReference:()=>BI,isTagName:()=>hq,isTaggedTemplateExpression:()=>V0,isTaggedTemplateTag:()=>Dle,isTemplateExpression:()=>c3,isTemplateHead:()=>MI,isTemplateLiteral:()=>QA,isTemplateLiteralKind:()=>sb,isTemplateLiteralToken:()=>Qee,isTemplateLiteralTypeNode:()=>gie,isTemplateLiteralTypeSpan:()=>sj,isTemplateMiddle:()=>nj,isTemplateMiddleOrTemplateTail:()=>s6,isTemplateSpan:()=>hD,isTemplateTail:()=>n3,isTextWhiteSpaceLike:()=>Xle,isThis:()=>jD,isThisContainerOrFunctionBlock:()=>ene,isThisIdentifier:()=>bb,isThisInTypeQuery:()=>S1,isThisInitializedDeclaration:()=>z6,isThisInitializedObjectBindingExpression:()=>nne,isThisProperty:()=>$L,isThisTypeNode:()=>zM,isThisTypeParameter:()=>DM,isThisTypePredicate:()=>$te,isThrowStatement:()=>uj,isToken:()=>XA,isTokenKind:()=>kB,isTraceEnabled:()=>Pb,isTransientSymbol:()=>ug,isTrivia:()=>KR,isTryStatement:()=>mE,isTupleTypeNode:()=>OI,isTypeAlias:()=>uk,isTypeAliasDeclaration:()=>ym,isTypeAssertionExpression:()=>l3,isTypeDeclaration:()=>AI,isTypeElement:()=>l1,isTypeKeyword:()=>xP,isTypeKeywordTokenOrIdentifier:()=>d7,isTypeLiteralNode:()=>ku,isTypeNode:()=>Ri,isTypeNodeKind:()=>pV,isTypeOfExpression:()=>pD,isTypeOnlyExportDeclaration:()=>Zee,isTypeOnlyImportDeclaration:()=>CR,isTypeOnlyImportOrExportDeclaration:()=>Xy,isTypeOperatorNode:()=>G0,isTypeParameterDeclaration:()=>sl,isTypePredicateNode:()=>wI,isTypeQueryNode:()=>N1,isTypeReferenceNode:()=>wp,isTypeReferenceType:()=>_6,isTypeUsableAsPropertyName:()=>Gf,isUMDExportSymbol:()=>vW,isUnaryExpression:()=>VB,isUnaryExpressionWithWrite:()=>ate,isUnicodeIdentifierStart:()=>K8,isUnionTypeNode:()=>sv,isUrl:()=>fee,isValidBigIntString:()=>BW,isValidESSymbolDeclaration:()=>Kte,isValidTypeOnlyAliasUseSite:()=>F0,isValueSignatureDeclaration:()=>ZS,isVarAwaitUsing:()=>qL,isVarConst:()=>FR,isVarConstLike:()=>Ute,isVarUsing:()=>JL,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>jN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>h1,isVariableDeclarationInitializedToRequire:()=>tk,isVariableDeclarationList:()=>_d,isVariableLike:()=>VN,isVariableStatement:()=>ac,isVoidExpression:()=>FI,isWatchSet:()=>cV,isWhileStatement:()=>dj,isWhiteSpaceLike:()=>ag,isWhiteSpaceSingleLine:()=>zh,isWithStatement:()=>Tie,isWriteAccess:()=>gI,isWriteOnlyAccess:()=>yW,isYieldExpression:()=>ow,jsxModeNeedsExplicitImport:()=>sJ,keywordPart:()=>Bp,last:()=>Ba,lastOrUndefined:()=>Zs,length:()=>et,libMap:()=>zj,libs:()=>R3,lineBreakPart:()=>XD,loadModuleFromGlobalCache:()=>Joe,loadWithModeAwareCache:()=>qw,makeIdentifierFromModuleName:()=>Pte,makeImport:()=>zb,makeStringLiteral:()=>RP,mangleScopedPackageName:()=>PD,map:()=>Vt,mapAllOrFail:()=>T0,mapDefined:()=>Ui,mapDefinedIterator:()=>nh,mapEntries:()=>OQ,mapIterator:()=>za,mapOneOrMany:()=>rJ,mapToDisplayParts:()=>Bb,matchFiles:()=>hre,matchPatternOrExact:()=>RV,matchedText:()=>YQ,matchesExclude:()=>B3,matchesExcludeWorker:()=>G3,maxBy:()=>Lz,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>ere,memoize:()=>Cu,memoizeOne:()=>Wh,min:()=>kz,minAndMax:()=>Sre,missingFileModifiedTime:()=>xp,modifierToFlag:()=>hI,modifiersToFlags:()=>Kh,moduleExportNameIsDefault:()=>C_,moduleExportNameTextEscaped:()=>p1,moduleExportNameTextUnescaped:()=>hb,moduleOptionDeclaration:()=>soe,moduleResolutionIsEqualTo:()=>Ete,moduleResolutionNameAndModeGetter:()=>yF,moduleResolutionOptionDeclarations:()=>Gj,moduleResolutionSupportsPackageJsonExportsAndImports:()=>rD,moduleResolutionUsesNodeModules:()=>u7,moduleSpecifierToValidIdentifier:()=>SO,moduleSpecifiers:()=>hy,moduleSupportsImportAttributes:()=>sre,moduleSymbolToValidIdentifier:()=>TO,moveEmitHelpers:()=>eie,moveRangeEnd:()=>_W,moveRangePastDecorators:()=>ly,moveRangePastModifiers:()=>Xh,moveRangePos:()=>W0,moveSyntheticComments:()=>$re,mutateMap:()=>hM,mutateMapSkippingNewValues:()=>yg,needsParentheses:()=>g7,needsScopeMarker:()=>d6,newCaseClauseTracker:()=>C7,newPrivateEnvironment:()=>_ae,noEmitNotification:()=>zw,noEmitSubstitution:()=>uP,noTransformers:()=>Jae,noTruncationMaximumTruncationLength:()=>KB,nodeCanBeDecorated:()=>ZL,nodeCoreModules:()=>sD,nodeHasName:()=>EL,nodeIsDecorated:()=>GR,nodeIsMissing:()=>Ol,nodeIsPresent:()=>pm,nodeIsSynthesized:()=>Os,nodeModuleNameResolver:()=>Boe,nodeModulesPathPart:()=>xg,nodeNextJsonConfigResolver:()=>Goe,nodeOrChildIsDecorated:()=>ek,nodeOverlapsWithStartEnd:()=>ZF,nodePosToString:()=>a0e,nodeSeenTracker:()=>qD,nodeStartsNewLexicalEnvironment:()=>OG,noop:()=>gs,noopFileWatcher:()=>BD,normalizePath:()=>ya,normalizeSlashes:()=>Bd,normalizeSpans:()=>EB,not:()=>L8,notImplemented:()=>ha,notImplementedResolver:()=>Qae,nullNodeConverters:()=>Kre,nullParenthesizerRules:()=>qre,nullTransformationContext:()=>Gw,objectAllocator:()=>Rd,operatorPart:()=>CP,optionDeclarations:()=>jm,optionMapToObject:()=>k3,optionsAffectingProgramStructure:()=>uoe,optionsForBuild:()=>jj,optionsForWatch:()=>JI,optionsHaveChanges:()=>tI,or:()=>Ip,orderedRemoveItem:()=>uN,orderedRemoveItemAt:()=>tb,packageIdToPackageName:()=>S6,packageIdToString:()=>D0,parameterIsThisKeyword:()=>vb,parameterNamePart:()=>$le,parseBaseNodeFactory:()=>toe,parseBigInt:()=>Are,parseBuildCommand:()=>voe,parseCommandLine:()=>goe,parseCommandLineWorker:()=>Uj,parseConfigFileTextToJson:()=>qj,parseConfigFileWithSystem:()=>Wse,parseConfigHostFromCompilerHostLike:()=>AF,parseCustomTypeOption:()=>M3,parseIsolatedEntityName:()=>qI,parseIsolatedJSDocComment:()=>roe,parseJSDocTypeExpressionForTests:()=>FTe,parseJsonConfigFileContent:()=>m1e,parseJsonSourceFileConfigFileContent:()=>Iw,parseJsonText:()=>vw,parseListTypeOption:()=>hoe,parseNodeFactory:()=>$0,parseNodeModuleFromPath:()=>Cw,parsePackageName:()=>K3,parsePseudoBigInt:()=>AM,parseValidBigInt:()=>MV,pasteEdits:()=>aX,patchWriteFileEnsuringDirectory:()=>Sbe,pathContainsNodeModules:()=>kb,pathIsAbsolute:()=>vN,pathIsBareSpecifier:()=>fB,pathIsRelative:()=>Qp,patternText:()=>XQ,performIncrementalCompilation:()=>Fse,performance:()=>iZ,positionBelongsToNode:()=>vq,positionIsASICandidate:()=>b7,positionIsSynthesized:()=>dh,positionsAreOnSameLine:()=>zf,preProcessFile:()=>AIe,probablyUsesSemicolons:()=>vO,processCommentPragmas:()=>Wj,processPragmasIntoFields:()=>Fj,processTaggedTemplateExpression:()=>zU,programContainsEsModules:()=>Jle,programContainsModules:()=>qle,projectReferenceIsEqualTo:()=>XB,propertyNamePart:()=>Qle,pseudoBigIntToString:()=>R1,punctuationPart:()=>su,pushIfUnique:()=>Pf,quote:()=>PP,quotePreferenceFromString:()=>Oq,rangeContainsPosition:()=>UD,rangeContainsPositionExclusive:()=>sO,rangeContainsRange:()=>Zu,rangeContainsRangeExclusive:()=>Lle,rangeContainsStartEnd:()=>lO,rangeEndIsOnSameLineAsRangeStart:()=>Nk,rangeEndPositionsAreOnSameLine:()=>jne,rangeEquals:()=>Iz,rangeIsOnSingleLine:()=>rE,rangeOfNode:()=>CV,rangeOfTypeParameters:()=>NV,rangeOverlapsWithStartEnd:()=>EP,rangeStartIsOnSameLineAsRangeEnd:()=>Une,rangeStartPositionsAreOnSameLine:()=>gW,readBuilderProgram:()=>wF,readConfigFile:()=>Ew,readJson:()=>ZR,readJsonConfigFile:()=>boe,readJsonOrUndefined:()=>iV,reduceEachLeadingCommentRange:()=>Tee,reduceEachTrailingCommentRange:()=>See,reduceLeft:()=>_u,reduceLeftIterator:()=>Gn,reducePathComponents:()=>JA,refactor:()=>sx,regExpEscape:()=>w0e,regularExpressionFlagToCharacterCode:()=>kbe,relativeComplement:()=>WQ,removeAllComments:()=>Qk,removeEmitHelper:()=>$0e,removeExtension:()=>Vk,removeFileExtension:()=>bu,removeIgnoredPath:()=>DF,removeMinAndVersionNumbers:()=>Wz,removePrefix:()=>pN,removeSuffix:()=>yR,removeTrailingDirectorySeparator:()=>Jy,repeatString:()=>pO,replaceElement:()=>Dz,replaceFirstStar:()=>oE,resolutionExtensionIsTSOrJson:()=>bM,resolveConfigFileProjectName:()=>jH,resolveJSModule:()=>q1e,resolveLibrary:()=>J3,resolveModuleName:()=>SE,resolveModuleNameFromCache:()=>U1e,resolvePackageNameToPackageJson:()=>iU,resolvePath:()=>rb,resolveProjectReferencePath:()=>ZI,resolveTripleslashReference:()=>nH,resolveTypeReferenceDirective:()=>koe,resolvingEmptyArray:()=>JB,returnFalse:()=>Qg,returnNoopFileWatcher:()=>vP,returnTrue:()=>n1,returnUndefined:()=>r1,returnsPromise:()=>TJ,rewriteModuleSpecifier:()=>YI,sameFlatMap:()=>km,sameMap:()=>Zi,sameMapping:()=>wSe,scanTokenAtPosition:()=>jte,scanner:()=>yd,semanticDiagnosticsOptionDeclarations:()=>loe,serializeCompilerOptions:()=>$j,server:()=>Lke,servicesVersion:()=>fRe,setCommentRange:()=>Dc,setConfigFileInOptions:()=>Qj,setConstantValue:()=>Zre,setEmitFlags:()=>Cr,setGetSourceFileAsHashVersioned:()=>kF,setIdentifierAutoGenerate:()=>tw,setIdentifierGeneratedImportReference:()=>rie,setIdentifierTypeArguments:()=>av,setInternalEmitFlags:()=>Zk,setLocalizedDiagnosticMessages:()=>Zne,setNodeChildren:()=>Lie,setNodeFlags:()=>Rre,setObjectAllocator:()=>Qne,setOriginalNode:()=>jr,setParent:()=>us,setParentRecursive:()=>z0,setPrivateIdentifier:()=>AE,setSnippetElement:()=>ZV,setSourceMapRange:()=>Ua,setStackTraceLimit:()=>hbe,setStartsOnNewLine:()=>QW,setSyntheticLeadingComments:()=>B0,setSyntheticTrailingComments:()=>DI,setSys:()=>Ebe,setSysLog:()=>uee,setTextRange:()=>bt,setTextRangeEnd:()=>aD,setTextRangePos:()=>IM,setTextRangePosEnd:()=>uh,setTextRangePosWidth:()=>PV,setTokenSourceMapRange:()=>Yre,setTypeNode:()=>tie,setUILocale:()=>qQ,setValueDeclaration:()=>YN,shouldAllowImportingTsExtension:()=>LD,shouldPreserveConstEnums:()=>Sb,shouldRewriteModuleSpecifier:()=>dk,shouldUseUriStyleNodeCoreModules:()=>R7,showModuleSpecifier:()=>Xne,signatureHasRestParameter:()=>au,signatureToDisplayParts:()=>Jq,single:()=>Rz,singleElementArray:()=>UA,singleIterator:()=>R8,singleOrMany:()=>A_,singleOrUndefined:()=>ig,skipAlias:()=>xd,skipConstraint:()=>Lq,skipOuterExpressions:()=>Ul,skipParentheses:()=>ds,skipPartiallyEmittedExpressions:()=>Om,skipTrivia:()=>La,skipTypeChecking:()=>oD,skipTypeCheckingIgnoringNoCheck:()=>Ere,skipTypeParentheses:()=>QN,skipWhile:()=>QQ,sliceAfter:()=>DV,some:()=>vt,sortAndDeduplicate:()=>dN,sortAndDeduplicateDiagnostics:()=>xR,sourceFileAffectingCompilerOptions:()=>Vj,sourceFileMayBeEmitted:()=>b1,sourceMapCommentRegExp:()=>RU,sourceMapCommentRegExpDontCareLineStart:()=>lae,spacePart:()=>zl,spanMap:()=>nL,startEndContainsRange:()=>sV,startEndOverlapsWithStartEnd:()=>e7,startOnNewLine:()=>ou,startTracing:()=>lZ,startsWith:()=>po,startsWithDirectory:()=>_B,startsWithUnderscore:()=>aJ,startsWithUseStrict:()=>Bie,stringContainsAt:()=>mce,stringToToken:()=>OS,stripQuotes:()=>hm,supportedDeclarationExtensions:()=>OW,supportedJSExtensionsFlat:()=>iD,supportedLocaleDirectories:()=>Wee,supportedTSExtensionsFlat:()=>AV,supportedTSImplementationExtensions:()=>zk,suppressLeadingAndTrailingTrivia:()=>kp,suppressLeadingTrivia:()=>JV,suppressTrailingTrivia:()=>Vre,symbolEscapedNameNoDefault:()=>p7,symbolName:()=>wl,symbolNameNoDefault:()=>Fq,symbolToDisplayParts:()=>NP,sys:()=>Uc,sysLog:()=>G8,tagNamesAreEquivalent:()=>Z0,takeWhile:()=>Bz,targetOptionDeclaration:()=>Bj,targetToLibMap:()=>Eee,testFormatSettings:()=>qAe,textChangeRangeIsUnchanged:()=>Pee,textChangeRangeNewSpan:()=>RN,textChanges:()=>Rr,textOrKeywordPart:()=>qq,textPart:()=>gf,textRangeContainsPositionInclusive:()=>vL,textRangeContainsTextSpan:()=>xee,textRangeIntersectsWithTextSpan:()=>Nee,textSpanContainsPosition:()=>TB,textSpanContainsTextRange:()=>SB,textSpanContainsTextSpan:()=>Iee,textSpanEnd:()=>Dl,textSpanIntersection:()=>Mee,textSpanIntersectsWith:()=>bL,textSpanIntersectsWithPosition:()=>Cee,textSpanIntersectsWithTextSpan:()=>Dee,textSpanIsEmpty:()=>Aee,textSpanOverlap:()=>Ree,textSpanOverlapsWith:()=>Vbe,textSpansEqual:()=>KD,textToKeywordObj:()=>J8,timestamp:()=>Ls,toArray:()=>VA,toBuilderFileEmit:()=>xse,toBuilderStateFileInfoForMultiEmit:()=>Ise,toEditorSettings:()=>NO,toFileNameLowerCase:()=>Qv,toPath:()=>ks,toProgramEmitPending:()=>Rse,toSorted:()=>Ap,tokenIsIdentifierOrKeyword:()=>Ju,tokenIsIdentifierOrKeywordOrGreaterThan:()=>hee,tokenToString:()=>_a,trace:()=>xo,tracing:()=>xr,tracingEnabled:()=>dL,transferSourceFileChildren:()=>kie,transform:()=>ERe,transformClassFields:()=>xae,transformDeclarations:()=>jU,transformECMAScriptModule:()=>VU,transformES2015:()=>Bae,transformES2016:()=>zae,transformES2017:()=>Nae,transformES2018:()=>Mae,transformES2019:()=>Pae,transformES2020:()=>Lae,transformES2021:()=>kae,transformESDecorators:()=>Cae,transformESNext:()=>wae,transformGenerators:()=>Gae,transformImpliedNodeFormatDependentModule:()=>jae,transformJsx:()=>Fae,transformLegacyDecorators:()=>Dae,transformModule:()=>GU,transformNamedEvaluation:()=>Wp,transformNodes:()=>Bw,transformSystemModule:()=>Vae,transformTypeScript:()=>Iae,transpile:()=>LIe,transpileDeclaration:()=>MIe,transpileModule:()=>Wce,transpileOptionValueCompilerOptions:()=>poe,tryAddToSet:()=>rh,tryAndIgnoreErrors:()=>E7,tryCast:()=>ni,tryDirectoryExists:()=>S7,tryExtractTSExtension:()=>hW,tryFileExists:()=>kP,tryGetClassExtendingExpressionWithTypeArguments:()=>eV,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>tV,tryGetDirectories:()=>T7,tryGetExtensionFromPath:()=>Tg,tryGetImportFromModuleSpecifier:()=>ck,tryGetJSDocSatisfiesTypeNode:()=>UW,tryGetModuleNameFromFile:()=>fw,tryGetModuleSpecifierFromDeclaration:()=>sI,tryGetNativePerformanceHooks:()=>rZ,tryGetPropertyAccessOrIdentifierToString:()=>Dk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>S3,tryGetSourceMappingURL:()=>cae,tryGetTextOfPropertyName:()=>GN,tryParseJson:()=>Ck,tryParsePattern:()=>EI,tryParsePatterns:()=>jk,tryParseRawSourceMap:()=>dae,tryReadDirectory:()=>Zq,tryReadFile:()=>YM,tryRemoveDirectoryPrefix:()=>TV,tryRemoveExtension:()=>bre,tryRemovePrefix:()=>zz,tryRemoveSuffix:()=>KQ,tscBuildOption:()=>bE,typeAcquisitionDeclarations:()=>C3,typeAliasNamePart:()=>Zle,typeDirectiveIsEqualTo:()=>Ate,typeKeywords:()=>Pq,typeParameterNamePart:()=>ece,typeToDisplayParts:()=>_O,unchangedPollThresholds:()=>z8,unchangedTextChangeRange:()=>$8,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Mw,unorderedRemoveItem:()=>jA,unprefixedNodeCoreModules:()=>zre,unreachableCodeIsError:()=>ore,unsetNodeChildren:()=>Tj,unusedLabelIsError:()=>are,unwrapInnermostStatementOfLabel:()=>_G,unwrapParenthesizedExpression:()=>Wre,updateErrorForNoInputFiles:()=>z3,updateLanguageServiceSourceFile:()=>KJ,updateMissingFilePathsWatch:()=>ZU,updateResolutionField:()=>DD,updateSharedExtendedConfigFileWatcher:()=>mF,updateSourceFile:()=>wj,updateWatchingWildcardDirectories:()=>jw,usingSingleLineStringWriter:()=>kR,utf16EncodeAsString:()=>xN,validateLocaleAndSetLanguage:()=>IB,version:()=>Me,versionMajorMinor:()=>he,visitArray:()=>iP,visitCommaListElements:()=>nF,visitEachChild:()=>kn,visitFunctionBody:()=>_f,visitIterationBody:()=>Ou,visitLexicalEnvironment:()=>xU,visitNode:()=>st,visitNodes:()=>Xn,visitParameterList:()=>Fl,walkUpBindingElementsAndPatterns:()=>WS,walkUpOuterExpressions:()=>Gie,walkUpParenthesizedExpressions:()=>Fm,walkUpParenthesizedTypes:()=>mk,walkUpParenthesizedTypesAndGetParentAndChild:()=>hne,whitespaceOrMapCommentRegExp:()=>DU,writeCommentRange:()=>QR,writeFile:()=>cW,writeFileEnsuringDirectories:()=>JG,zipWith:()=>ki});var Nke;function Got(){return Nke??(Nke=new ih(Me))}function Mke(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?` ${vg(o,[e])}`:"",s}function Vot(e,t,r,i){let o=Mke(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function jot(e,t,r,i){let o=!1;return()=>{o||(C.log.warn(Mke(e,!1,t,r,i)),o=!0)}}function Uot(e,t={}){let r=typeof t.typeScriptVersion=="string"?new ih(t.typeScriptVersion):t.typeScriptVersion??Got(),i=typeof t.errorAfter=="string"?new ih(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new ih(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new ih(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?Vot(e,i,s,t.message):u?jot(e,i,s,t.message):gs}function Hot(e,t){return function(){return e(),t.apply(this,arguments)}}function qot(e,t){let r=Uot(t?.name??C.getFunctionName(e),t);return Hot(r,e)}function sX(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(let l of Object.keys(i)){let u=+l;!isNaN(u)&&Rs(t,`${u}`)&&(t[u]=qot(t[u],{...i[u],name:e}))}let o=Jot(t,r);return s;function s(...l){let u=o(l),d=u!==void 0?t[u]:void 0;if(typeof d=="function")return d(...l);throw new TypeError("Invalid arguments")}}function Jot(e,t){return r=>{for(let i=0;Rs(e,`${i}`)&&Rs(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function Pke(e){return{overload:t=>({bind:r=>({finish:()=>sX(e,t,r),deprecate:i=>({finish:()=>sX(e,t,r,i)})})})}}var Lke={};x(Lke,{ActionInvalidate:()=>jF,ActionPackageInstalled:()=>UF,ActionSet:()=>VF,ActionWatchTypingLocations:()=>rO,Arguments:()=>oq,AutoImportProviderProject:()=>Ime,AuxiliaryProject:()=>Eme,CharRangeSection:()=>$me,CloseFileWatcherEvent:()=>bX,CommandNames:()=>uwe,ConfigFileDiagEvent:()=>hX,ConfiguredProject:()=>xme,ConfiguredProjectLoadKind:()=>Pme,CreateDirectoryWatcherEvent:()=>vX,CreateFileWatcherEvent:()=>yX,Errors:()=>by,EventBeginInstallTypes:()=>rq,EventEndInstallTypes:()=>iq,EventInitializationFailed:()=>dle,EventTypesRegistry:()=>nq,ExternalProject:()=>cX,GcTimer:()=>ume,InferredProject:()=>Sme,LargeFileReferencedEvent:()=>mX,LineIndex:()=>l4,LineLeaf:()=>I5,LineNode:()=>uC,LogLevel:()=>nme,Msg:()=>rme,OpenFileInfoTelemetryEvent:()=>Rme,Project:()=>gx,ProjectInfoTelemetryEvent:()=>gX,ProjectKind:()=>YP,ProjectLanguageServiceStateEvent:()=>_X,ProjectLoadingFinishEvent:()=>fX,ProjectLoadingStartEvent:()=>pX,ProjectService:()=>Gme,ProjectsUpdatedInBackgroundEvent:()=>S5,ScriptInfo:()=>hme,ScriptVersionCache:()=>PX,Session:()=>vwe,TextStorage:()=>mme,ThrottledOperations:()=>dme,TypingsInstallerAdapter:()=>Iwe,allFilesAreJsOrDts:()=>vme,allRootFilesAreJsOrDts:()=>yme,asNormalizedPath:()=>Wke,convertCompilerOptions:()=>E5,convertFormatOptions:()=>lC,convertScriptKindName:()=>SX,convertTypeAcquisition:()=>Cme,convertUserPreferences:()=>Nme,convertWatchOptions:()=>a4,countEachFileTypes:()=>n4,createInstallTypingsRequest:()=>ime,createModuleSpecifierCache:()=>Ume,createNormalizedPathMap:()=>Fke,createPackageJsonCache:()=>Hme,createSortedArray:()=>cme,emptyArray:()=>Xc,findArgument:()=>FAe,formatDiagnosticToProtocol:()=>s4,formatMessage:()=>qme,getBaseConfigFileName:()=>lX,getDetailWatchInfo:()=>xX,getLocationInNewDocument:()=>Yme,hasArgument:()=>WAe,hasNoTypeScriptSource:()=>bme,indent:()=>TP,isBackgroundProject:()=>i4,isConfigFile:()=>Vme,isConfiguredProject:()=>gv,isDynamicFileName:()=>XP,isExternalProject:()=>r4,isInferredProject:()=>sC,isInferredProjectName:()=>ome,isProjectDeferredClose:()=>o4,makeAutoImportProviderProjectName:()=>sme,makeAuxiliaryProjectName:()=>lme,makeInferredProjectName:()=>ame,maxFileSize:()=>uX,maxProgramSizeForNonTsFiles:()=>dX,normalizedPathToPath:()=>aC,nowString:()=>zAe,nullCancellationToken:()=>lwe,nullTypingsInstaller:()=>A5,protocol:()=>pme,scriptInfoIsContainedByBackgroundProject:()=>_me,scriptInfoIsContainedByDeferredClosedProject:()=>gme,stringifyIndented:()=>iT,toEvent:()=>Jme,toNormalizedPath:()=>Cs,tryConvertScriptKindName:()=>TX,typingsInstaller:()=>tme,updateProjectIfDirty:()=>Em});var tme={};x(tme,{TypingsInstaller:()=>Yot,getNpmCommandForInstallation:()=>wke,installNpmPackages:()=>Xot,typingsName:()=>Oke});var Kot={isEnabled:()=>!1,writeLine:gs};function kke(e,t,r,i){try{let o=SE(t,Qr(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 Xot(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=wke(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function wke(e,t,r,i){let o=r.length-i,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}}var Yot=class{constructor(e,t,r,i,o,s=Kot){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":{let t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});let r={kind:nq,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:C.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:rO,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${iT(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();let t=Fb.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){let{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=TN(ci(t),u=>{if(this.installTypingHost.fileExists(Qr(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{let d=u?`Package ${r} installed.`:`There was an error installing ${r}.`,g={kind:UF,projectName:i,id:s,success:u,message:d};this.sendResponse(g)});else{let u={kind:UF,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){let e=Fb.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=Fb.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}let t=Qr(e,"package.json"),r=Qr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){let 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}':${iT(i)}`),this.log.writeLine(`Loaded content of '${r}':${iT(o)}`)),i.devDependencies&&(o.packages||o.dependencies))for(let s in i.devDependencies){if(o.packages&&!Rs(o.packages,`node_modules/${s}`)||o.dependencies&&!Rs(o.dependencies,s))continue;let l=xc(s);if(!l)continue;let u=kke(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}let d=this.packageNameToTypingLocation.get(l);if(d){if(d.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${d}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);let g=o.packages&&iL(o.packages,`node_modules/${s}`)||iL(o.dependencies,s),_=g&&g.version;if(!_)continue;let v={typingLocation:u,version:new ih(_)};this.packageNameToTypingLocation.set(l,v)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Ui(e,t=>{let r=PD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}let i=Fb.validatePackageName(t);if(i!==Fb.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(Fb.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)&&Fb.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){let t=Qr(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)}`);let 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);let s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:rq,eventId:s,typingsInstallerVersion:Me,projectName:e.projectName});let l=o.map(Oke);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(let g of o)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);let d=[];for(let g of o){let _=kke(t,g,this.installTypingHost,this.log);if(!_){this.missingTypingsSet.add(g);continue}let v=this.typesRegistry.get(g),E=new ih(v[`ts${he}`]||v[this.latestDistTag]),A={typingLocation:_,version:E};this.packageNameToTypingLocation.set(g,A),d.push(_)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(d)}`),this.sendResponse(this.createSetTypings(e,r.concat(d)))}finally{let d={kind:iq,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Me};this.sendResponse(d)}})}ensureDirectoryExists(e,t){let r=ci(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let r=this.projectWatchers.get(e),i=new Set(t);!r||pg(i,o=>!r.has(o))||pg(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:rO,projectName:e,files:t})):this.sendResponse({kind:rO,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:VF}}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++;let e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function Oke(e){return`@types/${e}@ts${he}`}var nme=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(nme||{}),Xc=cme(),rme=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(rme||{});function ime(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"}}var by;(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})(by||(by={}));function Cs(e){return ya(e)}function aC(e,t,r){let i=Rp(e)?e:To(e,t);return r(i)}function Wke(e){return e}function Fke(){let 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 ome(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function ame(e){return`/dev/null/inferredProject${e}*`}function sme(e){return`/dev/null/autoImportProviderProject${e}*`}function lme(e){return`/dev/null/auxiliaryProject${e}*`}function cme(){return[]}var dme=class s9e{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){let o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(s9e.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){let r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i()}},ume=class l9e{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(l9e.run,this.delay,this))}static run(t){t.timerId=void 0;let r=t.logger.hasLevel(2),i=r&&t.host.getMemoryUsage();if(t.host.gc(),r){let o=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${i}, after ${o}`)}}};function lX(e){let t=xc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}var pme={};x(pme,{ClassificationType:()=>cq,CommandTypes:()=>fme,CompletionTriggerKind:()=>sq,IndentStyle:()=>Vke,JsxEmit:()=>jke,ModuleKind:()=>Uke,ModuleResolutionKind:()=>Hke,NewLineKind:()=>qke,OrganizeImportsMode:()=>aq,PollingWatchKind:()=>Gke,ScriptTarget:()=>Jke,SemicolonPreference:()=>lq,WatchDirectoryKind:()=>Bke,WatchFileKind:()=>zke});var fme=(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.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",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.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(fme||{}),zke=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(zke||{}),Bke=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Bke||{}),Gke=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Gke||{}),Vke=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Vke||{}),jke=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(jke||{}),Uke=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.Node20="node20",e.NodeNext="nodenext",e.Preserve="preserve",e))(Uke||{}),Hke=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(Hke||{}),qke=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(qke||{}),Jke=(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.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(Jke||{}),mme=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 C.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=rx(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{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,this.ownFileText&&this.info.mTime===xp.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||xp).getTime()),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=HF.fromString(C.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let 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){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let r=this.getLineMap(),i=r[e],o=e+1<r.length?r[e+1]:this.text.length;return ic(i,o)}lineOffsetToPosition(e,t,r){let i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):X8(this.getLineMap(),e-1,t-1,this.text,r)}positionToLineOffset(e){let t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);let{line:r,character:i}=AR(this.getLineMap(),e);return{line:r+1,offset:i+1}}getFileTextAndSize(e){let t,r=e||this.info.fileName,i=()=>t===void 0?t=this.host.readFile(r)||"":t;if(!iE(this.info.fileName)){let o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>uX)return C.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=PX.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=PX.fromString(C.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(C.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return C.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=KA(C.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};let t=this.getLineMap();return CU(this.text,t)}};function XP(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&xc(e)[0]==="^"||e.includes(":^")&&!e.includes(Js)}var hme=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=XP(t),this.textStorage=new mme(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||kW(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)){C.assert(!!this.containingProjects.length);let 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){let 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 jn(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:uN(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){gv(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!sC(e)&&e.addMissingFileRoot(t.fileName)}hi(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return by.ThrowNoProject();case 1:return o4(this.containingProjects[0])||i4(this.containingProjects[0])?by.ThrowNoProject():this.containingProjects[0];default:let e,t,r,i;for(let o=0;o<this.containingProjects.length;o++){let s=this.containingProjects[o];if(gv(s)){if(s.deferredClose)continue;if(!s.isSourceOfProjectReferenceRedirect(this.fileName)){if(i===void 0&&o!==this.containingProjects.length-1&&(i=s.projectService.findDefaultConfiguredProject(this)||!1),i===s)return s;r||(r=s)}e||(e=s)}else{if(r4(s))return s;!t&&sC(s)&&(t=s)}}return(i||r||e||t)??by.ThrowNoProject()}}registerFileUpdate(){for(let e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=qF(this.host.newLine),PS(this.formatSettings,e))),t&&(this.preferences||(this.preferences=Tm),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,rx(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){C.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(let e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return this.deferredDelete||!Je(this.containingProjects,e=>!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){$ot(e);let t=this.textStorage.positionToLineOffset(e);return Qot(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Bo(this.sourceMapFilePath)&&(qf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function $ot(e){C.assert(typeof e=="number",`Expected position ${e} to be a number.`),C.assert(e>=0,"Expected position to be non-negative.")}function Qot(e){C.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),C.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),C.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),C.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}function _me(e){return vt(e.containingProjects,i4)}function gme(e){return vt(e.containingProjects,o4)}var YP=(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))(YP||{});function n4(e,t=!1){let 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(let i of e){let 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:ad(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 Zot(e){let t=n4(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function yme(e){let t=n4(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function vme(e){let t=n4(e.getScriptInfos());return t.ts===0&&t.tsx===0}function bme(e){return!e.some(t=>El(t,".ts")&&!ad(t)||El(t,".tsx"))}function Tme(e){return e.generatedFilePath!==void 0}function Kke(e,t){if(e===t||(e||Xc).length===0&&(t||Xc).length===0)return!0;let r=new Map,i=0;for(let o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(let o of t){let s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function eat(e,t){return e.enable!==t.enable||!Kke(e.include,t.include)||!Kke(e.exclude,t.exclude)}function tat(e,t){return Eb(e)!==Eb(t)}function nat(e,t){return e===t?!1:!$p(e,t)}var gx=class c9e{constructor(t,r,i,o,s,l,u,d,g,_){switch(this.projectKind=r,this.projectService=i,this.compilerOptions=l,this.compileOnSaveEnabled=u,this.watchOptions=d,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.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Xc,this.moduleSpecifierCache=Ume(this),this.createHash=ia(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=Fb.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,i.logger.info(`Creating ${YP[r]}Project: ${t}, currentDirectory: ${_}`),this.projectName=t,this.directoryStructureHost=g,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(_),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new Yde(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(o||Eb(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=K7(),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:C.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let v=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=E=>this.writeLog(E):v.trace&&(this.trace=E=>v.trace(E)),this.realpath=ia(v,v.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||v.preferNonRecursiveWatch,this.resolutionCache=IH(this,this.currentDirectory,!0),this.languageService=$de(this,this.projectService.documentRegistry,this.projectService.serverMode),s&&this.disableLanguageService(s),this.markAsDirty(),i4(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(t){}isNonTsProject(){return Em(this),vme(this)}isJsOnlyProject(){return Em(this),Zot(this)}static resolveModule(t,r,i,o){return c9e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){C.assertIsDefined(i.require);let s,l;for(let u of r){let d=Bd(i.resolvePath(Qr(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${d})`);let g=i.require(d,t.name);if(!g.error){l=g.module;break}let _=g.error.stack||g.error.message||JSON.stringify(g.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${d}: ${_}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){C.assertIsDefined(i.importPlugin);let s,l;for(let u of r){let d=Qr(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${d})`);let g;try{g=await i.importPlugin(d,t.name)}catch(v){g={module:void 0,error:v}}if(!g.error){l=g.module;break}let _=g.error.stack||g.error.message||JSON.stringify(g.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${d}: ${_}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.projectService.typingsInstaller.isKnownTypesPackageName(t)}installPackage(t){return this.projectService.typingsInstaller.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=bV(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.rootFilesMap.size)return ae;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Xr(t,this.typingFiles)||ae}getOrCreateScriptInfoAndAttachToProject(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);if(r){let i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(i.info=r),r.attachToProject(this)}return r}getScriptKind(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);return r&&r.getLatestVersion()}getScriptSnapshot(t){let r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=ci(ya(this.projectService.getExecutingFilePath()));return Qr(t,yL(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){let r=this.toPath(t);return!!this.projectService.getScriptInfoForPath(r)||!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 ks(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),sd.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),sd.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),sd.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}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 Un(this.projectErrors,t=>!t.file)||Xc}getAllProjectErrors(){return this.projectErrors||Xc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Em(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?(Em(this),this.builderState=_h.create(this.program,this.builderState,!0),Ui(_h.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:Xc};let{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let l of s){let u=To(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&hp(this.compilerOptions)){let l=s.filter(u=>ad(u.name));if(l.length===1){let u=this.program.getSourceFile(t.fileName),d=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):uL(l[0].text);_h.updateSignatureOfFile(this.builderState,d,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(let 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&&(C.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.enable||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return Ap(Ki(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){let r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),Je(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r)),this.rootFilesMap.forEach(r=>{var i;return(i=r.info)==null?void 0:i.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!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&&(mp(this.missingFilesMap,zm),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){let r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var t;return!!((t=this.rootFilesMap)!=null&&t.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Co(nh(this.rootFilesMap.values(),t=>{var r;return(r=t.info)==null?void 0:r.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Co(nh(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?Vt(this.program.getSourceFiles(),t=>{let r=this.projectService.getScriptInfoForPath(t.resolvedPath);return C.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.getRootScriptInfos()}getExcludedFiles(){return Xc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){let s=Qde(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}let i=[];for(let o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){let o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(let 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){let r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(let i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r,i;return((i=(r=this.rootFilesMap)==null?void 0:r.get(t.path))==null?void 0:i.info)===t}addRoot(t,r){C.assert(!this.isRoot(t)),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let 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)}markAutoImportProviderAsDirty(){var t;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(t=this.autoImportProviderHost)==null||t.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(t,r,i,o){(!o||t.resolvedPath===t.path&&o.resolvedPath!==t.path)&&this.detachScriptInfoFromProject(t.fileName,i)}updateFromProject(){Em(this)}updateGraph(){var t,r;(t=xr)==null||t.push(xr.Phase.Session,"updateGraph",{name:this.projectName,kind:YP[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();let i=this.updateGraphWorker(),o=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let s=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Xc;for(let u of s)this.cachedUnresolvedImportsPerFile.delete(u);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((i||s.length)&&(this.lastCachedUnresolvedImportsList=rat(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(o)):this.lastCachedUnresolvedImportsList=void 0;let l=this.projectProgramVersion===0&&i;return i&&this.projectProgramVersion++,o&&this.markAutoImportProviderAsDirty(),l&&this.getPackageJsonAutoImportProvider(),(r=xr)==null||r.pop(),!i}enqueueInstallTypingsForProject(t){let r=this.getTypeAcquisition();if(!r||!r.enable||this.projectService.typingsInstaller===A5)return;let i=this.typingsCache;(t||!i||eat(r,i.typeAcquisition)||tat(this.getCompilationSettings(),i.compilerOptions)||nat(this.lastCachedUnresolvedImportsList,i.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:r,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,r,this.lastCachedUnresolvedImportsList))}updateTypingFiles(t,r,i,o){this.typingsCache={compilerOptions:t,typeAcquisition:r,unresolvedImports:i};let s=!r||!r.enable?Xc:Ap(o);k8(s,this.typingFiles,gR(!this.useCaseSensitiveFileNames()),gs,l=>this.detachScriptInfoFromProject(l))&&(this.typingFiles=s,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&mp(this.typingWatchers,zm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:jF})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(o,s)=>{let l=this.toPath(o);if(r.delete(l),!this.typingWatchers.has(l)){let u=s==="FileWatcher"?sd.TypingInstallerLocationFile:sd.TypingInstallerLocationDirectory;this.typingWatchers.set(l,$w(l)?s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),u,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!El(d,".json"))return this.writeLog("Ignoring files that are not *.json");if(Zg(d,Qr(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),u,this):(this.writeLog(`Skipping watcher creation at ${o}:: ${xX(u,this)}`),BD))}};for(let o of t){let s=xc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(dm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){let l=o.indexOf(Js,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(dm(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){if(!t.length)return t;let r=U3(this.getCompilerOptions(),this);return Un(t,i=>!r.includes(i))}updateGraphWorker(){var t,r;let i=this.languageService.getCurrentProgram();C.assert(i===this.program),C.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Ls(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Qg,Qg);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=xr)==null||t.push(xr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=xr)==null||r.pop(),C.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,this.rootFilesMap.forEach((_,v)=>{var E;let A=this.program.getSourceFileByPath(v),R=_.info;!A||((E=_.info)==null?void 0:E.path)===A.resolvedPath||(_.info=this.projectService.getScriptInfo(A.fileName),C.assert(_.info.isAttached(this)),R?.detachFromProject(this))}),ZU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(_,v)=>this.addMissingFileWatcher(_,v)),this.generatedFilesMap){let _=this.compilerOptions.outFile;Tme(this.generatedFilesMap)?(!_||!this.isValidGeneratedFileWatcher(bu(_)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():_?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((v,E)=>{let A=this.program.getSourceFileByPath(E);(!A||A.resolvedPath!==E||!this.isValidGeneratedFileWatcher(iW(A.fileName,this.compilerOptions,this.program),v))&&(qf(v),this.generatedFilesMap.delete(E))})}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&&pg(this.changedFilesForExportMapCache,_=>{let v=i.getSourceFileByPath(_),E=this.program.getSourceFileByPath(_);return!v||!E?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(v,E,!!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());let d=this.externalFiles||Xc;this.externalFiles=this.getExternalFiles(),k8(this.externalFiles,d,gR(!this.useCaseSensitiveFileNames()),_=>{let v=this.projectService.getOrCreateScriptInfoNotOpenedByClient(_,this.currentDirectory,this.directoryStructureHost,!1);v?.attachToProject(this)},_=>this.detachScriptInfoFromProject(_));let g=Ls()-o;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${$z[this.program.structureIsReused]}`:""} Elapsed: ${g}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){let i=this.projectService.getScriptInfo(t);i&&(i.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(i.path))}addMissingFileWatcher(t,r){var i;if(gv(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return BD}let o=this.projectService.watchFactory.watchFile(To(r,this.currentDirectory),(s,l)=>{gv(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),sd.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if(Tme(this.generatedFilesMap)){C.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),sd.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Tme(this.generatedFilesMap)?qf(this.generatedFilesMap):mp(this.generatedFilesMap,qf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?by.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.initialLoadPending)return` Files (0) InitialLoadPending
`;if(!this.program)return` Files (0) NoProgram
`;let o=this.program.getSourceFiles(),s=` Files (${o.length})
`;if(t){for(let l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""}
`;r&&(s+=`
`,NH(this.program,l=>s+=` ${l}
`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${YP[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;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),y6(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;let s=r?d=>Co(d.entries(),([g,_])=>({fileName:g,isSourceOfProjectReferenceRedirect:_})):d=>Co(d.keys());this.initialLoadPending||Em(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:sC(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()};let d=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(N=>({fileName:Cs(N),isSourceOfProjectReferenceRedirect:!1})))||Xc,_=hR(this.getFileNamesWithRedirectInfo(!!r).concat(g),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),v=new Map,E=new Map,A=u?Co(u.keys()):[],R=[];return qc(_,(N,P)=>{d.has(P)?r&&N!==d.get(P)&&R.push({fileName:P,isSourceOfProjectReferenceRedirect:N}):v.set(P,N)}),qc(d,(N,P)=>{_.has(P)||E.set(P,N)}),this.lastReportedFileNames=_,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(v),removed:s(E),updated:r?A.map(N=>({fileName:N,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(N)})):A,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let d=this.getFileNamesWithRedirectInfo(!!r),g=((o=this.externalFiles)==null?void 0:o.map(v=>({fileName:Cs(v),isSourceOfProjectReferenceRedirect:!1})))||Xc,_=d.concat(g);return this.lastReportedFileNames=hR(_,v=>v.fileName,v=>v.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?_:_.map(v=>v.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Qr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let 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}let i=this.getGlobalPluginSearchPaths();for(let 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}let i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:Cke}),s=o.create(i);for(let 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?Xc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t,this)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Qr(this.currentDirectory,_P),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=cJ(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||bO(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(Em(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let o=this.includePackageJsonAutoImports();if(o){(t=xr)==null||t.push(xr.Phase.Session,"getPackageJsonAutoImportProvider");let s=Ls();if(this.autoImportProviderHost=Ime.create(o,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Em(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ls()-s),(r=xr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=xr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!qc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return C.assert(this.projectService.serverMode===0),this.noDtsResolutionProject??(this.noDtsResolutionProject=new Eme(this)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}runWithTemporaryFileUpdate(t,r,i){var o,s,l,u;let d=this.program,g=C.checkDefined((o=this.program)==null?void 0:o.getSourceFile(t),"Expected file to be part of program"),_=C.checkDefined(g.getFullText());(s=this.getScriptInfo(t))==null||s.editContent(0,_.length,r),this.updateGraph();try{i(this.program,d,(l=this.program)==null?void 0:l.getSourceFile(t))}finally{(u=this.getScriptInfo(t))==null||u.editContent(0,r.length,_)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ae,lib:ae,noLib:!0}}};function rat(e,t){var r,i;let o=e.getSourceFiles();(r=xr)==null||r.push(xr.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(u=>hm(u.getName())),l=dN(Ki(o,u=>iat(e,u,s,t)));return(i=xr)==null||i.pop(),l}function iat(e,t,r,i){return FA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!bM(s.extension))&&!td(l)&&!r.some(u=>u===l)&&(o=Bn(o,K3(l).packageName))},t),o||Xc})}var Sme=class extends gx{constructor(e,t,r,i,o,s){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,r,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=s,this.projectRootPath=i&&e.toCanonicalFileName(i),!i&&!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;let t=Dq(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){C.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.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Vn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Je(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:yme(this),include:ae,exclude:ae}}},Eme=class extends gx{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},Ame=class Jve extends gx{constructor(t,r,i){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,!1,void 0,i,!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 ae;let u=r.getCurrentProgram();if(!u)return ae;let d=Ls(),g,_,v=Qr(r.currentDirectory,_P),E=r.getPackageJsonsForAutoImport(Qr(r.currentDirectory,v));for(let G of E)(s=G.dependencies)==null||s.forEach((j,J)=>k(J)),(l=G.peerDependencies)==null||l.forEach((j,J)=>k(J));let A=0;if(g){let G=r.getSymlinkCache();for(let j of Co(g.keys())){if(t===2&&A>=this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),ae;let J=iU(j,r.currentDirectory,o,i,u.getModuleResolutionCache());if(J){let q=F(J,u,G);if(q){A+=P(q);continue}}if(!Je([r.currentDirectory,r.getGlobalTypingsCacheLocation()],q=>{if(q){let ye=iU(`@types/${j}`,q,o,i,u.getModuleResolutionCache());if(ye){let ie=F(ye,u,G);return A+=P(ie),!0}}})&&J&&o.allowJs&&o.maxNodeModuleJsDepth){let q=F(J,u,G,!0);A+=P(q)}}}let R=u.getResolvedProjectReferences(),N=0;return R?.length&&r.projectService.getHostPreferences().includeCompletionsForModuleExports&&R.forEach(G=>{if(G?.commandLine.options.outFile)N+=P(O([rv(G.commandLine.options.outFile,".d.ts")]));else if(G){let j=Cu(()=>xE(G.commandLine,!r.useCaseSensitiveFileNames()));N+=P(O(Ui(G.commandLine.fileNames,J=>!ad(J)&&!El(J,".json")&&!u.getSourceFile(J)?fP(J,G.commandLine,!r.useCaseSensitiveFileNames(),j):void 0)))}}),_?.size&&r.log(`AutoImportProviderProject: found ${_.size} root files in ${A} dependencies ${N} referenced projects in ${Ls()-d} ms`),_?Co(_.values()):ae;function P(G){return G?.length?(_??(_=new Set),G.forEach(j=>_.add(j)),1):0}function k(G){po(G,"@types/")||(g||(g=new Set)).add(G)}function F(G,j,J,Z){var q;let ye=dU(G,o,i,j.getModuleResolutionCache(),Z);if(ye){let ie=(q=i.realpath)==null?void 0:q.call(i,G.packageDirectory),K=ie?r.toPath(ie):void 0,pe=K&&K!==r.toPath(G.packageDirectory);return pe&&J.setSymlinkedDirectory(G.packageDirectory,{real:Hc(ie),realPath:Hc(K)}),O(ye,pe?de=>de.replace(G.packageDirectory,ie):void 0)}}function O(G,j){return Ui(G,J=>{let Z=j?j(J):J;if(!u.getSourceFile(Z)&&!(j&&u.getSourceFile(J)))return Z})}}static create(t,r,i){if(t===0)return;let o={...r.getCompilerOptions(),...this.compilerOptionsOverrides},s=this.getRootFileNames(t,r,i,o);if(s.length)return new Jve(r,s,o)}isEmpty(){return!vt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Jve.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let 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||ae}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()}};Ame.maxDependencies=10,Ame.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ae,lib:ae,noLib:!0};var Ime=Ame,xme=class extends gx{constructor(e,t,r,i,o){super(e,1,r,!1,void 0,{},!1,void 0,i,ci(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=o}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=Cs(e),r=this.projectService.toCanonicalFileName(t),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(Cs(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;let e=this.dirty;this.initialLoadPending=!1;let 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();let i=C.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,i),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),t===2||r&&(!e||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){C.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getRedirectFromSourceFile(e){let t=this.getCurrentProgram();return t&&t.getRedirectFromSourceFile(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;let 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}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let o=ci(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(let o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Un(this.projectErrors,e=>!e.file)||Xc}getAllProjectErrors(){return this.projectErrors||Xc}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()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return ZM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,z3(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,Rw(e.raw))}},cX=class extends gx{constructor(e,t,r,i,o,s,l){super(e,2,t,!0,i,r,o,l,t.host,ci(s||Bd(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function sC(e){return e.projectKind===0}function gv(e){return e.projectKind===1}function r4(e){return e.projectKind===2}function i4(e){return e.projectKind===3||e.projectKind===4}function o4(e){return gv(e)&&!!e.deferredClose}var dX=20*1024*1024,uX=4*1024*1024,S5="projectsUpdatedInBackground",pX="projectLoadingStart",fX="projectLoadingFinish",mX="largeFileReferenced",hX="configFileDiag",_X="projectLanguageServiceState",gX="projectInfo",Rme="openFileInfo",yX="createFileWatcher",vX="createDirectoryWatcher",bX="closeFileWatcher",Xke="*ensureProjectForOpenFiles*";function Yke(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{C.assert(typeof o=="number")}),t.set(r.name,i)}return t}var oat=Yke(jm),aat=Yke(JI),sat=new Map(Object.entries({none:0,block:1,smart:2})),Dme={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,"$"]]}};function lC(e){return Bo(e.indentStyle)&&(e.indentStyle=sat.get(e.indentStyle.toLowerCase()),C.assert(e.indentStyle!==void 0)),e}function E5(e){return oat.forEach((t,r)=>{let i=e[r];Bo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function a4(e,t){let r,i;return JI.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=aat.get(o.name);(r||(r={}))[o.name]=l?Bo(s)?l.get(s.toLowerCase()):s:TE(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function Cme(e){let t;return C3.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function TX(e){return Bo(e)?SX(e):e}function SX(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Nme(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}var EX={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let i=qA(e);i&&vt(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>vt(t,r=>r.isMixedContent&&El(e,r.extension))},AX={getFileName:e=>e.fileName,getScriptKind:e=>TX(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function $ke(e,t){for(let r of t)if(r.getProjectName()===e)return r}var A5={isKnownTypesPackageName:Qg,installPackage:ha,enqueueInstallTypingsRequest:gs,attach:gs,onProjectClosed:gs,globalTypingsCacheLocation:void 0},Mme={close:gs};function Qke(e,t){if(!t)return;let r=t.get(e.path);if(r!==void 0)return IX(e)?r&&!Bo(r)?r.get(e.fileName):void 0:Bo(r)||!r?r:r.get(!1)}function Zke(e){return!!e.containingProjects}function IX(e){return!!e.configFileInfo}var Pme=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(Pme||{});function ewe(e){return e-1}function twe(e,t,r,i,o,s,l,u,d){for(var g;;){if(t.parsedCommandLine&&(u&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;let _=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!u},i<=3);if(!_)return;let v=t.projectService.findCreateOrReloadConfiguredProject(_,i,o,s,u?void 0:e.fileName,l,u,d);if(!v)return;!v.project.parsedCommandLine&&((g=t.parsedCommandLine)!=null&&g.options.composite)&&v.project.setPotentialProjectReference(t.canonicalConfigFilePath);let E=r(v);if(E)return E;t=v.project}}function nwe(e,t,r,i,o,s,l,u){let d=t.options.disableReferencedProjectLoad?0:i,g;return Je(t.projectReferences,_=>{var v;let E=Cs(ZI(_)),A=e.projectService.toCanonicalFileName(E),R=u?.get(A);if(R!==void 0&&R>=d)return;let N=e.projectService.configFileExistenceInfoCache.get(A),P=d===0?N?.exists||(v=e.resolvedChildConfigs)!=null&&v.has(A)?N.config.parsedCommandLine:void 0:e.getParsedCommandLine(E);if(P&&d!==i&&d>2&&(P=e.getParsedCommandLine(E)),!P)return;let k=e.projectService.findConfiguredProjectByProjectName(E,s);if(!(d===2&&!N&&!k)){switch(d){case 6:k&&k.projectService.reloadConfiguredProjectOptimized(k,o,l);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(A);case 2:case 0:if(k||d!==0){let F=r(N??e.projectService.configFileExistenceInfoCache.get(A),k,E,o,e,A);if(F)return F}break;default:C.assertNever(d)}(u??(u=new Map)).set(A,d),(g??(g=[])).push(P)}})||Je(g,_=>_.projectReferences&&nwe(e,_,r,d,o,s,l,u))}function Lme(e,t,r,i,o){let s=!1,l;switch(t){case 2:case 3:Wme(e)&&(l=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(l=Ome(e),l)break;case 5:s=cat(e,r);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,i,o),l=Ome(e),l)break;case 7:s=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,i,o);break;case 0:case 1:break;default:C.assertNever(t)}return{project:e,sentConfigFileDiag:s,configFileExistenceInfo:l,reason:i}}function rwe(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&pg(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&pg(e.resolvedChildConfigs,t)):void 0}function lat(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?rwe(e,i):Je(e.getProjectReferences(),r)}function kme(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function iwe(e,t){return lat(e,r=>kme(e,t,r.sourceFile.path),r=>kme(e,t,e.toPath(ZI(r))),r=>kme(e,t,r))}function xX(e,t){return`${Bo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function wme(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Em(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function owe(e,t,r){if(!r&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;let i=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!r)return i===2;let o=e.projectService.sendConfigFileDiagEvent(e,t,r);return e.triggerFileForConfigFileDiag=void 0,o}function cat(e,t){if(t){if(owe(e,t,!1))return!0}else Em(e);return!1}function Ome(e){let t=Cs(e.getConfigFilePath()),r=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),i=r.config.parsedCommandLine;if(e.parsedCommandLine=i,e.resolvedChildConfigs=void 0,e.updateReferences(i.projectReferences),Wme(e))return r}function Wme(e){return!!e.parsedCommandLine&&(!!e.parsedCommandLine.options.composite||!!eU(e.parsedCommandLine))}function dat(e){return Wme(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}function uat(e){return`Creating possible configured project for ${e.fileName} to open`}function RX(e){return`User requested reload projects: ${e}`}function Fme(e){gv(e)&&(e.projectOptions=!0)}function zme(e){let t=1;return()=>e(t++)}function Bme(){return{idToCallbacks:new Map,pathToId:new Map}}function awe(e,t){return!!t&&!!e.eventHandler&&!!e.session}function pat(e,t){if(!awe(e,t))return;let r=Bme(),i=Bme(),o=Bme(),s=1;return e.session.addProtocolHandler("watchChange",A=>(g(A.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(A,R){return d(r,A,R,N=>({eventName:yX,data:{id:N,path:A}}))}function u(A,R,N){return d(N?o:i,A,R,P=>({eventName:vX,data:{id:P,path:A,recursive:!!N,ignoreUpdate:A.endsWith("/node_modules")?void 0:!0}}))}function d({pathToId:A,idToCallbacks:R},N,P,k){let F=e.toPath(N),O=A.get(F);O||A.set(F,O=s++);let G=R.get(O);return G||(R.set(O,G=new Set),e.eventHandler(k(O))),G.add(P),{close(){let j=R.get(O);j?.delete(P)&&(j.size||(R.delete(O),A.delete(F),e.eventHandler({eventName:bX,data:{id:O}})))}}}function g(A){Mo(A)?A.forEach(_):_(A)}function _({id:A,created:R,deleted:N,updated:P}){v(A,R,0),v(A,N,2),v(A,P,1)}function v(A,R,N){R?.length&&(E(r,A,R,(P,k)=>P(k,N)),E(i,A,R,(P,k)=>P(k)),E(o,A,R,(P,k)=>P(k)))}function E(A,R,N,P){var k;(k=A.idToCallbacks.get(R))==null||k.forEach(F=>{N.forEach(O=>P(F,Bd(O)))})}}var swe=class Kve{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=zme(ame),this.newAutoImportProviderProjectName=zme(sme),this.newAuxiliaryProjectName=zme(lme),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,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=Dme,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=gs,this.verifyDocumentRegistry=gs,this.verifyProgram=gs,this.onProjectCreation=gs;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||A5,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Xc,this.pluginProbeLocations=t.pluginProbeLocations||Xc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Qr(ci(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=lm()),this.currentDirectory=Cs(this.host.getCurrentDirectory()),this.toCanonicalFileName=Fd(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Hc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new dme(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${ci(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:qF(this.host.newLine),preferences:Tm,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=mJ(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):gs;this.packageJsonCache=Hme(this),this.watchFactory=this.serverMode!==0?{watchFile:vP,watchDirectory:vP}:eH(pat(this,t.canUseWatchEvents)||this.host,i,o,xX),this.canUseWatchEvents=awe(this,t.canUseWatchEvents),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return ks(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return To(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=C.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){let 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;let i={eventName:_X,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let r=JSON.parse(t);for(let i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(let i in r.simpleMap)Rs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=Dme,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case VF:r.updateTypingFiles(t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings);return;case jF:r.enqueueInstallTypingsForProject(!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(Xke,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(o4(t)||(t.markAsDirty(),i4(t)))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Em(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:S5,data:{openFiles:Co(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let i={eventName:mX,data:{file:t,fileSize:r,maxFileSize:uX}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:pX,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:fX,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(let i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){C.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=E5(t),o=a4(t,r),s=Cme(t);i.allowNonTsExtensions=!0;let 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(let u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o?.watchOptions),u.setProjectErrors(o?.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return ome(t)?$ke(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(Cs(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){let r=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t){var r;let i=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;if(i)return(r=this.pendingOpenFileProjectUpdates)!=null&&r.delete(i.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,5),i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,this.openFiles.get(i.path))),this.tryGetDefaultProjectForFile(i)}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let r=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Bo(t)?t:t.fileName),by.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let r=i=>{t=Em(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){C.assert(!t.isScriptOpen()),r===2?this.handleDeletedFile(t,!0):(t.deferredDelete&&(t.deferredDelete=void 0),t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(Bo(t.sourceMapFilePath)){let r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(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){let r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t,r){C.assert(!t.isScriptOpen()),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t),t.detachAllProjects(),r?(t.delayReloadNonMixedContentFile(),t.deferredDelete=!0):this.deleteScriptInfo(t)}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>this.onWildCardDirectoryWatcherInvoke(t,i,o,l,u),r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions,ci(i)),sd.WildcardDirectory,i),l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(d=>{d.projects.delete(l),d.close()}),l.packageJsonWatches=void 0)}};return l}onWildCardDirectoryWatcherInvoke(t,r,i,o,s){let l=this.toPath(s),u=i.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(s,l);if(xc(l)==="package.json"&&!bO(l)&&(u&&u.fileExists||!u&&this.host.fileExists(s))){let g=this.getNormalizedAbsolutePath(s);this.logger.info(`Config: ${r} Detected new package.json: ${g}`),this.packageJsonCache.addOrUpdate(g,l),this.watchPackageJsonFile(g,l,o)}u?.fileExists||this.sendSourceFileChange(l);let d=this.findConfiguredProjectByProjectName(r);Uw({watchedDirPath:this.toPath(t),fileOrDirectory:s,fileOrDirectoryPath:l,configFileName:r,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:i.parsedCommandLine.options,program:d?.getCurrentProgram()||i.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:g=>this.logger.info(g),toPath:g=>this.toPath(g),getScriptKind:d?g=>d.getScriptKind(g):void 0})||(i.updateLevel!==2&&(i.updateLevel=1),i.projects.forEach((g,_)=>{var v;if(!g)return;let E=this.getConfiguredProjectByCanonicalConfigFilePath(_);if(!E)return;if(d!==E&&this.getHostPreferences().includeCompletionsForModuleExports){let R=this.toPath(r);hn((v=E.getCurrentProgram())==null?void 0:v.getResolvedProjectReferences(),N=>N?.sourceFile.path===R)&&E.markAutoImportProviderAsDirty()}let A=d===E?1:0;if(!(E.pendingUpdateLevel>A))if(this.openFiles.has(l))if(C.checkDefined(this.getScriptInfoForPath(l)).isAttached(E)){let N=Math.max(A,E.openFileWatchTriggered.get(l)||0);E.openFileWatchTriggered.set(l,N)}else E.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(E);else E.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(E)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache(),i.config.projects.forEach((s,l)=>{var u,d,g;let _=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(_)if(o=!0,l===t){if(_.initialLoadPending)return;_.pendingUpdateLevel=2,_.pendingUpdateReason=r,this.delayUpdateProjectGraph(_),_.markAutoImportProviderAsDirty()}else{if(_.initialLoadPending){(d=(u=this.configFileExistenceInfoCache.get(l))==null?void 0:u.openFilesImpactedByConfigFile)==null||d.forEach(E=>{var A;(A=this.pendingOpenFileProjectUpdates)!=null&&A.has(E)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(E,this.configFileForOpenFiles.get(E))});return}let v=this.toPath(t);_.resolutionCache.removeResolutionsFromProjectReferenceRedirects(v),this.delayUpdateProjectGraph(_),this.getHostPreferences().includeCompletionsForModuleExports&&hn((g=_.getCurrentProgram())==null?void 0:g.getResolvedProjectReferences(),E=>E?.sourceFile.path===v)&&_.markAutoImportProviderAsDirty()}}),o}onConfigFileChanged(t,r,i){let o=this.configFileExistenceInfoCache.get(r),s=this.getConfiguredProjectByCanonicalConfigFilePath(r),l=s?.deferredClose;i===2?(o.exists=!1,s&&(s.deferredClose=!0)):(o.exists=!0,l&&(s.deferredClose=void 0,s.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(r,"Change in config file detected"),this.openFiles.forEach((u,d)=>{var g,_;let v=this.configFileForOpenFiles.get(d);if(!((g=o.openFilesImpactedByConfigFile)!=null&&g.has(d)))return;this.configFileForOpenFiles.delete(d);let E=this.getScriptInfoForPath(d);this.getConfigFileNameForFile(E,!1)&&((_=this.pendingOpenFileProjectUpdates)!=null&&_.has(d)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(d,v))}),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),C.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>C.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Co(nh(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:jA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:jA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){C.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ci(Rp(t.fileName)?t.fileName:To(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(uN(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let o of this.inferredProjects){if(o===i||o.isOrphan())continue;let s=o.getRootScriptInfos();C.assert(s.length===1||!!o.projectRootPath),s.length===1&&Je(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)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){var i;let o=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(o),this.stopWatchingConfigFilesForScriptInfo(t);let s=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(s)===t&&this.openFilesWithNonRootedDiskPath.delete(s);let l=!1;for(let u of t.containingProjects){if(gv(u)){t.hasMixedContent&&t.registerFileUpdate();let d=u.openFileWatchTriggered.get(t.path);d!==void 0&&(u.openFileWatchTriggered.delete(t.path),u.pendingUpdateLevel<d&&(u.pendingUpdateLevel=d,u.markFileAsDirty(t.path)))}else sC(u)&&u.isRoot(t)&&(u.isProjectWithSingleRoot()&&(l=!0),u.removeFile(t,o,!0));u.languageServiceEnabled||u.markAsDirty()}return this.openFiles.delete(t.path),this.configFileForOpenFiles.delete(t.path),(i=this.pendingOpenFileProjectUpdates)==null||i.delete(t.path),C.assert(!this.rootOfInferredProjects.has(t)),!r&&l&&this.assignOrphanScriptInfosToInferredProject(),o?this.watchClosedScriptInfo(t):this.handleDeletedFile(t,!1),l}deleteScriptInfo(t){C.assert(!t.isScriptOpen()),this.filenameToScriptInfo.delete(t.path),this.filenameToScriptInfoVersion.set(t.path,t.textStorage.version),this.stopWatchingScriptInfo(t);let r=t.getRealpathIfDifferent();r&&this.realpathToScriptInfos.remove(r,t),t.closeSourceMapFileWatcher()}configFileExists(t,r,i){let o=this.configFileExistenceInfoCache.get(r),s;if(this.openFiles.has(i.path)&&(!IX(i)||i.isForDefaultProject)&&(o?(o.openFilesImpactedByConfigFile??(o.openFilesImpactedByConfigFile=new Set)).add(i.path):(s=new Set).add(i.path)),o)return o.exists;let l=this.host.fileExists(t);return this.configFileExistenceInfoCache.set(r,{exists:l,openFilesImpactedByConfigFile:s}),l}createConfigFileWatcherForParsedConfig(t,r,i){var o,s;let l=this.configFileExistenceInfoCache.get(r);(!l.watcher||l.watcher===Mme)&&(l.watcher=this.watchFactory.watchFile(t,(u,d)=>this.onConfigFileChanged(t,r,d),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions,ci(t)),sd.ConfigFile,i)),this.ensureConfigFileWatcherForProject(l,i)}ensureConfigFileWatcherForProject(t,r){let i=t.config.projects;i.set(r.canonicalConfigFilePath,i.get(r.canonicalConfigFilePath)||!1)}releaseParsedConfig(t,r){var i,o,s;let 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,QU(t,this.sharedExtendedConfigFileWatchers),C.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?l.inferredProjectRoots?$w(ci(t))||(l.watcher.close(),l.watcher=Mme):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}stopWatchingConfigFilesForScriptInfo(t){if(this.serverMode!==0)return;let r=this.rootOfInferredProjects.delete(t),i=t.isScriptOpen();i&&!r||this.forEachConfigFileLocation(t,o=>{var s,l,u;let d=this.configFileExistenceInfoCache.get(o);if(d){if(i){if(!((s=d?.openFilesImpactedByConfigFile)!=null&&s.has(t.path)))return}else if(!((l=d.openFilesImpactedByConfigFile)!=null&&l.delete(t.path)))return;r&&(d.inferredProjectRoots--,d.watcher&&!d.config&&!d.inferredProjectRoots&&(d.watcher.close(),d.watcher=void 0)),!((u=d.openFilesImpactedByConfigFile)!=null&&u.size)&&!d.config&&(C.assert(!d.watcher),this.configFileExistenceInfoCache.delete(o))}})}startWatchingConfigFilesForInferredProjectRoot(t){this.serverMode===0&&(C.assert(t.isScriptOpen()),this.rootOfInferredProjects.add(t),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o?o.inferredProjectRoots=(o.inferredProjectRoots??0)+1:(o={exists:this.host.fileExists(i),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile??(o.openFilesImpactedByConfigFile=new Set)).add(t.path),o.watcher||(o.watcher=$w(ci(r))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(i,r,l),2e3,this.hostConfiguration.watchOptions,sd.ConfigFileForInferredRoot):Mme)}))}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;C.assert(!Zke(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(C.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ci(t.fileName),l=()=>dm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l(),d=!0,g=!0;IX(t)&&(el(t.fileName,"tsconfig.json")?d=!1:d=g=!1);do{let _=aC(s,this.currentDirectory,this.toCanonicalFileName);if(d){let E=Qr(s,"tsconfig.json");if(r(Qr(_,"tsconfig.json"),E))return E}if(g){let E=Qr(s,"jsconfig.json");if(r(Qr(_,"jsconfig.json"),E))return E}if(q8(_))break;let v=ci(s);if(v===s)break;s=v,d=g=!0}while(u||l())}findDefaultConfiguredProject(t){var r;return(r=this.findDefaultConfiguredProjectWorker(t,1))==null?void 0:r.defaultProject}findDefaultConfiguredProjectWorker(t,r){return t.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r):void 0}getConfigFileNameForFileFromCache(t,r){if(r){let i=Qke(t,this.pendingOpenFileProjectUpdates);if(i!==void 0)return i}return Qke(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,r){if(!this.openFiles.has(t.path))return;let i=r||!1;if(!IX(t))this.configFileForOpenFiles.set(t.path,i);else{let o=this.configFileForOpenFiles.get(t.path);(!o||Bo(o))&&this.configFileForOpenFiles.set(t.path,o=new Map().set(!1,o)),o.set(t.fileName,i)}}getConfigFileNameForFile(t,r){let i=this.getConfigFileNameForFileFromCache(t,r);if(i!==void 0)return i||void 0;if(r)return;let o=this.forEachConfigFileLocation(t,(s,l)=>this.configFileExists(l,s,t));return this.logger.info(`getConfigFileNameForFile:: File: ${t.fileName} ProjectRootPath: ${this.openFiles.get(t.path)}:: Result: ${o}`),this.setConfigFileNameForFileInCache(t,o),o}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(jme),this.configuredProjects.forEach(jme),this.inferredProjects.forEach(jme),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{let 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,r){let i=this.toCanonicalFileName(t),o=this.getConfiguredProjectByCanonicalConfigFilePath(i);return r?o:o?.deferredClose?void 0:o}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return $ke(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=dX;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(let u of i){let d=o.getFileName(u);if(!iE(d)&&(l+=this.host.getFileSize(d),l>dX||l>s)){let g=i.map(_=>o.getFileName(_)).filter(_=>!iE(_)).map(_=>({name:_,size:this.host.getFileSize(_)})).sort((_,v)=>v.size-_.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${g.map(_=>`${_.name}:${_.size}`).join(", ")}`),d}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){let l=E5(i),u=a4(i,ci(Bd(t))),d=new cX(t,this,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,AX),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u?.watchOptions);return d.setProjectErrors(u?.errors),d.excludedFiles=s,this.addFilesToNonInferredProject(d,r,AX,o),this.externalProjects.push(d),d}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){Fme(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Fme(t);return}let r=gv(t)?t.projectOptions:void 0;Fme(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:n4(t.getScriptInfos(),!0),compilerOptions:Doe(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 cX?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Me};this.eventHandler({eventName:gX,data:i});function o(){return gv(t)&&lX(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:d}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:d!==void 0&&d.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t,r){var i;(i=xr)==null||i.instant(xr.Phase.Session,"createConfiguredProject",{configFilePath:t});let o=this.toCanonicalFileName(t),s=this.configFileExistenceInfoCache.get(o);s?s.exists=!0:this.configFileExistenceInfoCache.set(o,s={exists:!0}),s.config||(s.config={cachedDirectoryStructureHost:fF(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let l=new xme(t,o,this,s.config.cachedDirectoryStructureHost,r);return C.assert(!this.configuredProjects.has(o)),this.configuredProjects.set(o,l),this.createConfigFileWatcherForParsedConfig(t,o,l),l}loadConfiguredProject(t,r){var i,o;(i=xr)==null||i.push(xr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let s=Cs(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;C.assert(!!u.fileNames);let d=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.parsedCommandLine=u,t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);let g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,d,u.fileNames,EX);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((v,E)=>this.stopWatchingWildCards(E,t))):(t.setCompilerOptions(d),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(d);let _=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,_,EX,d,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=xr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config&&(i.config.updateLevel===1&&this.reloadFileNamesOfParsedConfig(t,i.config),!i.config.updateLevel))return this.ensureConfigFileWatcherForProject(i,o),i;if(!i.exists&&i.config)return i.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(i,o),i;let d=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||fF(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=YM(t,N=>this.host.readFile(N)),_=vw(t,Bo(g)?g:""),v=_.parseDiagnostics;Bo(g)||v.push(g);let E=ci(t),A=Iw(_,d,E,void 0,t,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);A.errors.length&&v.push(...A.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:A.fileNames,options:A.options,watchOptions:A.watchOptions,projectReferences:A.projectReferences},void 0," ")}`);let R=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=A,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:A,cachedDirectoryStructureHost:d,projects:new Map},!R&&!zW(this.getWatchOptionsFromProjectWatchOptions(void 0,E),this.getWatchOptionsFromProjectWatchOptions(A.watchOptions,E))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),mF(r,A.options,this.sharedExtendedConfigFileWatchers,(N,P)=>this.watchFactory.watchFile(N,()=>{var k;hF(this.extendedConfigCache,P,O=>this.toPath(O));let F=!1;(k=this.sharedExtendedConfigFileWatchers.get(P))==null||k.projects.forEach(O=>{F=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(O,`Change in extended config file ${N} detected`)||F}),F&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,sd.ExtendedConfigFile,t),N=>this.toPath(N)),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,jw(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;mp(i.watchedDirectories,qf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!qc(i.config.projects,Vs)&&(i.config.watchedDirectories&&(mp(i.config.watchedDirectories,qf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){var o;let s=t.getRootFilesMap(),l=new Map;for(let u of r){let d=i.getFileName(u),g=Cs(d),_=XP(g),v;if(!_&&!t.fileExists(d)){v=aC(g,this.currentDirectory,this.toCanonicalFileName);let E=s.get(v);E?(((o=E.info)==null?void 0:o.path)===v&&(t.removeFile(E.info,!1,!0),E.info=void 0),E.fileName=g):s.set(v,{fileName:g})}else{let E=i.getScriptKind(u,this.hostConfiguration.extraFileExtensions),A=i.hasMixedContent(u,this.hostConfiguration.extraFileExtensions),R=C.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(g,t.currentDirectory,E,A,t.directoryStructureHost,!1));v=R.path;let N=s.get(v);!N||N.info!==R?(t.addRoot(R,g),R.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(R)):N.fileName=g}l.set(v,!0)}s.size>l.size&&s.forEach((u,d)=>{l.has(d)||(u.info?t.removeFile(u.info,t.fileExists(u.info.fileName),!0):s.delete(d))})}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){let r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.fileNames.concat(t.getExternalFiles(1)),EX),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine;C.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=$M(i,ci(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},r.updateLevel=void 0,r.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,EX)}reloadConfiguredProjectOptimized(t,r,i){i.has(t)||(i.set(t,6),t.initialLoadPending||this.setProjectForReload(t,2,r))}reloadConfiguredProjectClearingSemanticCache(t,r,i){return i.get(t)===7?!1:(i.set(t,7),this.clearSemanticCache(t),this.reloadConfiguredProject(t,RX(r)),!0)}setProjectForReload(t,r,i){r===2&&this.clearSemanticCache(t),t.pendingUpdateReason=i&&RX(i),t.pendingUpdateLevel=r}reloadConfiguredProject(t,r){t.initialLoadPending=!1,this.setProjectForReload(t,0),this.loadConfiguredProject(t,r),owe(t,t.triggerFileForConfigFileDiag??t.getConfigFilePath(),!0)}clearSemanticCache(t){t.originalConfiguredProjects=void 0,t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r,i){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let o=t.getLanguageService().getCompilerOptionsDiagnostics();return o.push(...t.getAllProjectErrors()),!i&&o.length===(t.configDiagDiagnosticsReported??0)?!1:(t.configDiagDiagnosticsReported=o.length,this.eventHandler({eventName:hX,data:{configFileName:t.getConfigFilePath(),diagnostics:o,triggerFile:r??t.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){let o=this.toCanonicalFileName(r);for(let s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(let o of this.inferredProjects)o.projectRootPath&&dm(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(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(t){C.assert(!this.useSingleInferredProject);let r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t,!1,void 0)}createInferredProject(t,r,i){let o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,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;let u=new Sme(this,o,s?.watchOptions,i,t,l);return u.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i,o){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Cs(t),r,void 0,void 0,i,o)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(Cs(t))}getScriptInfoOrConfig(t){let r=Cs(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;let o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let r=Co(nh(this.filenameToScriptInfo.entries(),i=>i[1].deferredDelete?void 0:i),([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){let o=t.getRealpathIfDifferent();o&&Je(this.realpathToScriptInfos.get(o),i),Je(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(let s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?qc(r,(l,u)=>u===o.path?!1:jn(l,s))||r.add(o.path,s):(r=lm(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(C.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!po(t.path,this.globalCacheLocationDirectoryPath))){let 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,sd.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;let u=DF(this.toPath(s));if(!u)return;let d=xc(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(d==="package.json"||d==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(g=>{var _;(_=g.getModuleSpecifierCache())==null||_.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{let g=this.filenameToScriptInfo.get(u);g?wme(g)&&this.refreshScriptInfo(g):TR(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,sd.NodeModules),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;let o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return C.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){let 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)||xp).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let i=dB(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Js,this.filenameToScriptInfo.forEach(r=>{wme(r)&&po(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s,l){if(Rp(t)||XP(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,!!o,s,l);let u=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(u)return u}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,!!s,l,!1)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u,d){C.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let g=aC(t,r,this.toCanonicalFileName),_=this.filenameToScriptInfo.get(g);if(_){if(_.deferredDelete){if(C.assert(!_.isDynamic),!i&&!(u||this.host).fileExists(t))return d?_:void 0;_.deferredDelete=void 0}}else{let v=XP(t);if(C.assert(Rp(t)||v||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Co(this.openFilesWithNonRootedDiskPath.keys())})}
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),C.assert(!Rp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Co(this.openFilesWithNonRootedDiskPath.keys())})}
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),C.assert(!v||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Co(this.openFilesWithNonRootedDiskPath.keys())})}
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!v&&!(u||this.host).fileExists(t))return;_=new hme(this.host,t,s,l,g,this.filenameToScriptInfoVersion.get(g)),this.filenameToScriptInfo.set(_.path,_),this.filenameToScriptInfoVersion.delete(_.path),i?!Rp(t)&&(!v||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),_):this.watchClosedScriptInfo(_)}return i&&(this.stopWatchingScriptInfo(_),_.open(o),l&&_.registerFileUpdate()),_}getScriptInfoForNormalizedPath(t){return!Rp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(aC(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){let r=this.filenameToScriptInfo.get(t);return!r||!r.deferredDelete?r:void 0}getDocumentPositionMapper(t,r,i){let o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host,!1);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),Bo(o.sourceMapFilePath)){let g=this.getScriptInfoForPath(o.sourceMapFilePath);if(g&&(g.getSnapshot(),g.documentPositionMapper!==void 0))return g.sourceInfos=this.addSourceInfoToSourceMap(i,t,g.sourceInfos),g.documentPositionMapper?g.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=(g,_)=>{let v=this.getOrCreateScriptInfoNotOpenedByClient(g,t.currentDirectory,this.host,!0);if(s=v||_,!v||v.deferredDelete)return;let E=v.getSnapshot();return v.documentPositionMapper!==void 0?v.documentPositionMapper:rx(E)},u=t.projectName,d=vJ({getCanonicalFileName:this.toCanonicalFileName,log:g=>this.logger.info(g),getSourceFileLike:g=>this.getSourceFileLike(g,u,o)},o.fileName,o.textStorage.getLineInfo(),l);return l=void 0,s?Bo(s)?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?s:To(s,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.deferredDelete||(s.documentPositionMapper=d||!1),s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):o.sourceMapFilePath=!1,d}addSourceInfoToSourceMap(t,r,i){if(t){let o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost,!1);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{let o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!Bo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,sd.MissingSourceMapFile)}getSourceFileLike(t,r,i){let o=r.projectName?r:this.findProject(r);if(o){let l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}let s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host,!1);if(s){if(i&&Bo(i.sourceMapFilePath)&&s!==i){let 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 C.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{let u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,d)=>s.lineOffsetToPosition(l+1,u+1,d)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){let i=this.getScriptInfoForNormalizedPath(Cs(t.file));i&&(i.setOptions(lC(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,...lC(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o,includeCompletionsForModuleExports:s}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(l=>l.forEach(u=>{!u.deferredClose&&!u.isClosed()&&u.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(u)&&u.updateGraph()})),(o!==t.preferences.includePackageJsonAutoImports||!!s!=!!t.preferences.includeCompletionsForModuleExports)&&this.forEachProject(l=>{l.onAutoImportProviderSettingsChanged()})}if(t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions){let i=(r=a4(t.watchOptions))==null?void 0:r.watchOptions,o=W3(i,this.currentDirectory);this.hostConfiguration.watchOptions=o,this.hostConfiguration.beforeSubstitution=o===i?void 0:i,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(),t.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(t,r){let i=this.hostConfiguration.beforeSubstitution?W3(this.hostConfiguration.beforeSubstitution,r):this.hostConfiguration.watchOptions;return t&&i?{...i,...t}:t||i}closeLog(){this.logger.close()}sendSourceFileChange(t){this.filenameToScriptInfo.forEach(r=>{if(this.openFiles.has(r.path)||!r.fileWatcher)return;let i=Cu(()=>this.host.fileExists(r.fileName)?r.deferredDelete?0:1:2);if(t){if(wme(r)||!r.path.startsWith(t)||i()===2&&r.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${r.fileName}:: ${i()}`)}this.onSourceFileChanged(r,i())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((i,o)=>{this.throttledOperations.cancel(o),this.pendingProjectUpdates.delete(o)}),this.throttledOperations.cancel(Xke),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(i=>{i.config&&(i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(i=>{this.clearSemanticCache(i),i.updateGraph()});let t=new Map,r=new Set;this.externalProjectToConfiguredProjectMap.forEach((i,o)=>{let s=`Reloading configured project in external project: ${o}`;i.forEach(l=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(l,s,t):this.reloadConfiguredProjectClearingSemanticCache(l,s,t)})}),this.openFiles.forEach((i,o)=>{let s=this.getScriptInfoForPath(o);hn(s.containingProjects,r4)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(s,7,t,r)}),r.forEach(i=>t.set(i,7)),this.inferredProjects.forEach(i=>this.clearSemanticCache(i)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(t,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(t){C.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&sC(r)&&r.isRoot(t)&&Je(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();let t=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,t?.forEach((r,i)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(i),5)),this.openFiles.forEach((r,i)=>{let o=this.getScriptInfoForPath(i);o.isOrphan()?this.assignOrphanScriptInfoToInferredProject(o,r):this.removeRootOfInferredProjectIfNowPartOfOtherProject(o)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Em),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(Cs(t),r,i,!1,o?Cs(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){let i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;let{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;let u={fileName:Cs(s),path:this.toPath(s)},d=this.getConfigFileNameForFile(u,!1);if(!d)return;let g=this.findConfiguredProjectByProjectName(d);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;g=this.createConfiguredProject(d,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}let _=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(u,5,Lme(g,4),A=>`Creating project referenced in solution ${A.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`);if(!_.defaultProject)return;if(_.defaultProject===t)return o;E(_.defaultProject);let v=this.getScriptInfo(s);if(!v||!v.containingProjects.length)return;return v.containingProjects.forEach(A=>{gv(A)&&E(A)}),o;function E(A){(t.originalConfiguredProjects??(t.originalConfiguredProjects=new Set)).add(A.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return hn(this.externalProjects,r=>(Em(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){let l=this.getOrCreateScriptInfoWorker(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,!0,r,i,!!o,void 0,!0);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l;if(!o&&this.serverMode===0){let u=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,5);u&&(s=u.seenProjects,l=u.sentConfigDiag,u.defaultProject&&(r=u.defaultProject.getConfigFilePath(),i=u.defaultProject.getAllProjectErrors()))}return t.containingProjects.forEach(Em),t.isOrphan()&&(s?.forEach((u,d)=>{u!==4&&!l.has(d)&&this.sendConfigFileDiagEvent(d,t.fileName,!0)}),C.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),C.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}findCreateOrReloadConfiguredProject(t,r,i,o,s,l,u,d,g){let _=g??this.findConfiguredProjectByProjectName(t,o),v=!1,E;switch(r){case 0:case 1:case 3:if(!_)return;break;case 2:if(!_)return;E=dat(_);break;case 4:case 5:_??(_=this.createConfiguredProject(t,i)),u||({sentConfigFileDiag:v,configFileExistenceInfo:E}=Lme(_,r,s));break;case 6:if(_??(_=this.createConfiguredProject(t,RX(i))),_.projectService.reloadConfiguredProjectOptimized(_,i,l),E=Ome(_),E)break;case 7:_??(_=this.createConfiguredProject(t,RX(i))),v=!d&&this.reloadConfiguredProjectClearingSemanticCache(_,i,l),d&&!d.has(_)&&!l.has(_)&&(this.setProjectForReload(_,2,i),d.add(_));break;default:C.assertNever(r)}return{project:_,sentConfigFileDiag:v,configFileExistenceInfo:E,reason:i}}tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r,i,o){let s=this.getConfigFileNameForFile(t,r<=3);if(!s)return;let l=ewe(r),u=this.findCreateOrReloadConfiguredProject(s,l,uat(t),i,t.fileName,o);return u&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,r,u,d=>`Creating project referenced in solution ${d.projectName} to find possible configured project for ${t.fileName} to open`,i,o)}isMatchedByConfig(t,r,i){if(r.fileNames.some(d=>this.toPath(d)===i.path))return!0;if(xV(i.fileName,r.options,this.hostConfiguration.extraFileExtensions))return!1;let{validatedFilesSpec:o,validatedIncludeSpecs:s,validatedExcludeSpecs:l}=r.options.configFile.configFileSpecs,u=Cs(To(ci(t),this.currentDirectory));return o?.some(d=>this.toPath(To(d,u))===i.path)?!0:!s?.length||G3(i.fileName,l,this.host.useCaseSensitiveFileNames,this.currentDirectory,u)?!1:s?.some(d=>{let g=EV(d,u,"files");return!!g&&nv(`(${g})$`,this.host.useCaseSensitiveFileNames).test(i.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,r,i,o,s,l){let u=Zke(t),d=ewe(r),g=new Map,_,v=new Set,E,A,R,N;return P(i),{defaultProject:E??A,tsconfigProject:R??N,sentConfigDiag:v,seenProjects:g,seenConfigs:_};function P(J){return O(J,J.project)??G(J.project)??j(J.project)}function k(J,Z,q,ye,ie,K){if(Z){if(g.has(Z))return;g.set(Z,d)}else{if(_?.has(K))return;(_??(_=new Set)).add(K)}if(!ie.projectService.isMatchedByConfig(q,J.config.parsedCommandLine,t)){ie.languageServiceEnabled&&ie.projectService.watchWildcards(q,J,ie);return}let pe=Z?Lme(Z,r,t.fileName,ye,l):ie.projectService.findCreateOrReloadConfiguredProject(q,r,ye,s,t.fileName,l);if(!pe){C.assert(r===3);return}return g.set(pe.project,d),pe.sentConfigFileDiag&&v.add(pe.project),F(pe.project,ie)}function F(J,Z){if(g.get(J)===r)return;g.set(J,r);let q=u?t:J.projectService.getScriptInfo(t.fileName),ye=q&&J.containsScriptInfo(q);if(ye&&!J.isSourceOfProjectReferenceRedirect(q.path))return R=Z,E=J;!A&&u&&ye&&(N=Z,A=J)}function O(J,Z){return J.sentConfigFileDiag&&v.add(J.project),J.configFileExistenceInfo?k(J.configFileExistenceInfo,J.project,Cs(J.project.getConfigFilePath()),J.reason,J.project,J.project.canonicalConfigFilePath):F(J.project,Z)}function G(J){return J.parsedCommandLine&&nwe(J,J.parsedCommandLine,k,d,o(J),s,l)}function j(J){return u?twe(t,J,P,d,`Creating possible configured project for ${t.fileName} to open`,s,l,!1):void 0}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,r,i,o){let s=r===1,l=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r,s,i);if(!l)return;let{defaultProject:u,tsconfigProject:d,seenProjects:g}=l;return u&&twe(t,d,_=>{g.set(_.project,r)},r,`Creating project possibly referencing default composite project ${u.getProjectName()} of open file ${t.fileName}`,s,i,!0,o),l}loadAncestorProjectTree(t){t??(t=new Set(nh(this.configuredProjects.entries(),([o,s])=>s.initialLoadPending?void 0:o)));let r=new Set,i=Co(this.configuredProjects.values());for(let o of i)rwe(o,s=>t.has(s))&&Em(o),this.ensureProjectChildren(o,t,r)}ensureProjectChildren(t,r,i){var o;if(!rh(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(let l of s){if(!l)continue;let u=jV(l.references,_=>r.has(_.sourceFile.path)?_:void 0);if(!u)continue;let d=Cs(l.sourceFile.fileName),g=this.findConfiguredProjectByProjectName(d)??this.createConfiguredProject(d,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Em(g),this.ensureProjectChildren(g,r,i)}}cleanupConfiguredProjects(t,r,i){this.getOrphanConfiguredProjects(t,i,r).forEach(o=>this.removeProject(o))}cleanupProjectsAndScriptInfos(t,r,i){this.cleanupConfiguredProjects(t,i,r);for(let o of this.inferredProjects.slice())o.isOrphan()&&this.removeProject(o);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(t){this.configFileExistenceInfoCache.forEach((r,i)=>{var o,s;!((o=r.config)!=null&&o.parsedCommandLine)||jn(r.config.parsedCommandLine.fileNames,t.fileName,this.host.useCaseSensitiveFileNames?i1:eb)||(s=r.config.watchedDirectories)==null||s.forEach((l,u)=>{dm(u,t.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${i}:: wildcard for open scriptInfo:: ${t.fileName}`),this.onWildCardDirectoryWatcherInvoke(u,i,r.config,l.watcher,t.fileName))})})}openClientFileWithNormalizedPath(t,r,i,o,s){let l=this.getScriptInfoForPath(aC(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,this.toCanonicalFileName)),u=this.getOrCreateOpenScriptInfo(t,r,i,o,s);!l&&u&&!u.isDynamic&&this.tryInvokeWildCardDirectories(u);let{retainProjects:d,...g}=this.assignProjectToOpenedScriptInfo(u);return this.cleanupProjectsAndScriptInfos(d,new Set([u.path]),void 0),this.telemetryOnOpenFile(u),this.printProjects(),g}getOrphanConfiguredProjects(t,r,i){let o=new Set(this.configuredProjects.values()),s=g=>{g.originalConfiguredProjects&&(gv(g)||!g.isOrphan())&&g.originalConfiguredProjects.forEach((_,v)=>{let E=this.getConfiguredProjectByCanonicalConfigFilePath(v);return E&&d(E)})};if(t?.forEach((g,_)=>d(_)),!o.size||(this.inferredProjects.forEach(s),this.externalProjects.forEach(s),this.externalProjectToConfiguredProjectMap.forEach((g,_)=>{i?.has(_)||g.forEach(d)}),!o.size)||(qc(this.openFiles,(g,_)=>{if(r?.has(_))return;let v=this.getScriptInfoForPath(_);if(hn(v.containingProjects,r4))return;let E=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(v,1);if(E?.defaultProject&&(E?.seenProjects.forEach((A,R)=>d(R)),!o.size))return o}),!o.size))return o;return qc(this.configuredProjects,g=>{if(o.has(g)&&(u(g)||iwe(g,l))&&(d(g),!o.size))return o}),o;function l(g){return!o.has(g)||u(g)}function u(g){var _,v;return(g.deferredClose||g.projectService.hasPendingProjectUpdate(g))&&!!((v=(_=g.projectService.configFileExistenceInfoCache.get(g.canonicalConfigFilePath))==null?void 0:_.openFilesImpactedByConfigFile)!=null&&v.size)}function d(g){o.delete(g)&&(s(g),iwe(g,d))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.deferredDelete){if(!r.isScriptOpen()&&r.isOrphan()&&!gme(r)&&!_me(r)){if(!r.sourceMapFilePath)return;let i;if(Bo(r.sourceMapFilePath)){let o=this.filenameToScriptInfo.get(r.sourceMapFilePath);i=o?.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!pg(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Bo(r.sourceMapFilePath)){let o=this.filenameToScriptInfo.get(r.sourceMapFilePath);o?.deferredDelete?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(o.fileName,r.path),sourceInfos:o.sourceInfos}:t.delete(r.sourceMapFilePath),i=o?.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}}),t.forEach(r=>this.deleteScriptInfo(r))}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!_m(this.allJsFilesForOpenFileTelemetry,t.path))return;let r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;let i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:Rme,data:{info:{checkJs:o}}})}closeClientFile(t,r){let i=this.getScriptInfoForNormalizedPath(Cs(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(let s of r){let l=hn(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){let i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,nh(this.configuredProjects.values(),o=>o.deferredClose?void 0:o),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s,l=!1;if(t)for(let d of t){(o??(o=[])).push(this.getScriptInfoForPath(aC(Cs(d.fileName),d.projectRootPath?this.getNormalizedAbsolutePath(d.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));let g=this.getOrCreateOpenScriptInfo(Cs(d.fileName),d.content,TX(d.scriptKind),d.hasMixedContent,d.projectRootPath?Cs(d.projectRootPath):void 0);(s||(s=[])).push(g)}if(r)for(let d of r){let g=this.getScriptInfo(d.fileName);C.assert(!!g),this.applyChangesToFile(g,d.changes)}if(i)for(let d of i)l=this.closeClientFile(d,!0)||l;let u;Je(o,(d,g)=>!d&&s[g]&&!s[g].isDynamic?this.tryInvokeWildCardDirectories(s[g]):void 0),s?.forEach(d=>{var g;return(g=this.assignProjectToOpenedScriptInfo(d).retainProjects)==null?void 0:g.forEach((_,v)=>(u??(u=new Map)).set(v,_))}),l&&this.assignOrphanScriptInfosToInferredProject(),s?(this.cleanupProjectsAndScriptInfos(u,new Set(s.map(d=>d.path)),void 0),s.forEach(d=>this.telemetryOnOpenFile(d)),this.printProjects()):et(i)&&this.printProjects()}applyChangesToFile(t,r){for(let i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeExternalProject(t,r){let i=Cs(t);if(this.externalProjectToConfiguredProjectMap.get(i))this.externalProjectToConfiguredProjectMap.delete(i);else{let s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(t){let r=new Set(this.externalProjects.map(i=>i.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((i,o)=>r.add(o));for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);r.forEach(i=>this.closeExternalProject(i,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Dme}applySafeList(t){let r=t.typeAcquisition;C.assert(!!r,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let o=i.include||(i.include=[]),s=[],l=r.map(v=>Bd(v.fileName));for(let v of Object.keys(this.safelist)){let E=this.safelist[v];for(let A of l)if(E.match.test(A)){if(this.logger.info(`Excluding files based on rule ${v} matching file '${A}'`),E.types)for(let R of E.types)o.includes(R)||o.push(R);if(E.exclude)for(let R of E.exclude){let N=A.replace(E.match,(...P)=>R.map(k=>typeof k=="number"?Bo(P[k])?Kve.escapeFilenameForRegex(P[k]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${v} - not enough groups`),"\\*"):k).join(""));s.includes(N)||s.push(N)}else{let R=Kve.escapeFilenameForRegex(A);s.includes(R)||s.push(R)}}}let u=s.map(v=>new RegExp(v,"i")),d,g;for(let v=0;v<r.length;v++)if(u.some(E=>E.test(l[v])))_(v);else{if(i.enable){let E=xc(Qv(l[v]));if(El(E,"js")){let A=bu(E),R=Wz(A),N=this.legacySafelist.get(R);if(N!==void 0){this.logger.info(`Excluded '${l[v]}' because it matched ${R} from the legacy safelist`),_(v),o.includes(N)||o.push(N);continue}}}/^.+[.-]min\.js$/.test(l[v])?_(v):d?.push(r[v])}return g?{rootFiles:d,excludedFiles:g}:void 0;function _(v){g||(C.assert(!d),d=r.slice(0,v),g=[]),g.push(l[v])}}openExternalProject(t,r){let i=this.findExternalProjectByProjectName(t.projectFileName),o,s=[];for(let l of t.rootFiles){let u=Cs(l.fileName);if(lX(u)){if(this.serverMode===0&&this.host.fileExists(u)){let d=this.findConfiguredProjectByProjectName(u);d||(d=this.createConfiguredProject(u,`Creating configured project in external project: ${t.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||d.updateGraph()),(o??(o=new Set)).add(d),C.assert(!d.isClosed())}}else s.push(l)}if(o)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,o),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let l=t.typeAcquisition||{};l.include=l.include||[],l.exclude=l.exclude||[],l.enable===void 0&&(l.enable=bme(s.map(g=>g.fileName)));let u=this.applySafeListWorker(t,s,l),d=u?.excludedFiles??[];if(s=u?.rootFiles??s,i){i.excludedFiles=d;let g=E5(t.options),_=a4(t.options,i.getCurrentDirectory()),v=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,g,s,AX);v?i.disableLanguageService(v):i.enableLanguageService(),i.setProjectErrors(_?.errors),this.updateRootAndOptionsOfNonInferredProject(i,s,AX,g,l,t.options.compileOnSave,_?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,s,t.options,l,d).updateGraph()}r&&(this.cleanupConfiguredProjects(o,new Set([t.projectFileName])),this.printProjects())}hasDeferredExtension(){for(let 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||td(r.name)||/[\\/]\.\.?(?:$|[\\/])/.test(r.name)){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let o=gx.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,gx.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){let l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){let u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else Je(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;let t=Co(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){C.assert(this.currentPluginEnablementPromise===void 0);let r=!1;await Promise.all(Vt(t,async([i,o])=>{let s=await Promise.all(o);if(i.isClosed()||o4(i)){this.logger.info(`Cancelling plugin enabling for ${i.getProjectName()} as it is ${i.isClosed()?"closed":"deferred close"}`);return}r=!0;for(let l of s)this.endEnablePlugin(i,l);this.delayUpdateProjectGraph(i)})),this.currentPluginEnablementPromise=void 0,r&&this.sendProjectsUpdatedInBackgroundEvent()}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){let o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=d=>{switch(o.directoryHasPackageJson(d)){case 3:return o.searchDirectoryAndAncestors(d,r),u(d);case-1:let g=Qr(d,"package.json");this.watchPackageJsonFile(g,this.toPath(g),r);let _=o.getInDirectory(d);_&&l.push(_)}if(s&&s===d)return!0};return O_(r,ci(t),u),l}getNearestAncestorDirectoryWithPackageJson(t,r){return O_(r,t,i=>{switch(this.packageJsonCache.directoryHasPackageJson(i)){case-1:return i;case 0:return;case 3:return this.host.fileExists(Qr(i,"package.json"))?i:void 0}})}watchPackageJsonFile(t,r,i){C.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: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,sd.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=fat())}};swe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Gme=swe;function fat(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Vme(e){return e.kind!==void 0}function jme(e){e.print(!1,!1,!1)}function Ume(e){let t,r,i,o={get(d,g,_,v){if(!(!r||i!==l(d,_,v)))return r.get(g)},set(d,g,_,v,E,A,R){if(s(d,_,v).set(g,u(E,A,R,void 0,!1)),R){for(let N of A)if(N.isInNodeModules){let P=N.path.substring(0,N.path.indexOf(xg)+xg.length-1),k=e.toPath(P);t?.has(k)||(t||(t=new Map)).set(k,e.watchNodeModulesForPackageJsonChanges(P))}}},setModulePaths(d,g,_,v,E){let A=s(d,_,v),R=A.get(g);R?R.modulePaths=E:A.set(g,u(void 0,E,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(d,g,_,v,E,A){let R=s(d,_,v),N=R.get(g);N?(N.isBlockedByPackageJsonDependencies=A,N.packageName=E):R.set(g,u(void 0,void 0,void 0,E,A))},clear(){t?.forEach(zm),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return C.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(d,g,_){let v=l(d,g,_);return r&&i!==v&&o.clear(),i=v,r||(r=new Map)}function l(d,g,_){return`${d},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${_.overrideImportMode}`}function u(d,g,_,v,E){return{kind:d,modulePaths:g,moduleSpecifiers:_,packageName:v,isBlockedByPackageJsonDependencies:E}}}function Hme(e){let t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ci(l),!0)},getInDirectory:l=>t.get(e.toPath(Qr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:(l,u)=>{O_(u,l,d=>{let g=e.toPath(d);if(s(g)!==3)return!0;let _=Qr(d,"package.json");kP(e,_)?i(_,Qr(g,"package.json")):r.set(g,!0)})}};function i(l,u){let d=C.checkDefined(tJ(l,e.host));t.set(u,d),r.delete(ci(u))}function o(l){t.delete(l),r.delete(ci(l))}function s(l){return t.has(Qr(l,"package.json"))?-1:r.has(l)?0:3}}var lwe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function mat(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function cwe(e,t){if((sC(e)||r4(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function hat(e){return hp(e)||!!e.emitDecoratorMetadata}function dwe(e,t,r){let 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:kS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Vt(r.relatedInformation,DX)}}function DX(e){return e.file?{span:{start:cC(ca(e.file,e.start)),end:cC(ca(e.file,e.start+e.length)),file:e.file.fileName},message:o_(e.messageText,`
`),category:kS(e),code:e.code}:{message:o_(e.messageText,`
`),category:kS(e),code:e.code}}function cC(e){return{line:e.line+1,offset:e.character+1}}function s4(e,t){let r=e.file&&cC(ca(e.file,e.start)),i=e.file&&cC(ca(e.file,e.start+e.length)),o=o_(e.messageText,`
`),{code:s,source:l}=e,u=kS(e),d={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Vt(e.relatedInformation,DX)};return t?{...d,fileName:e.file&&e.file.fileName}:d}function _at(e,t){return e.every(r=>Dl(r.span)<t)}var uwe=fme;function qme(e,t,r,i){let o=t.hasLevel(3),s=JSON.stringify(e);return o&&t.info(`${e.type}:${iT(e)}`),`Content-Length: ${1+r(s,"utf8")}\r
\r
${s}${i}`}var gat=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.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){let r=this.requestId;C.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),this.performanceData)},e))}delay(e,t,r){let i=this.requestId;C.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),this.performanceData)},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=xr)==null||t.instant(xr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=xr)==null||r.push(xr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=xr)==null||i.pop())}catch(d){(o=xr)==null||o.popAll(),u=!0,d instanceof yN?(s=xr)==null||s.instant(xr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=xr)==null||l.instant(xr.Phase.Session,"stepError",{seq:this.requestId,message:d.message}),this.operationHost.logError(d,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(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}};function Jme(e,t){return{seq:0,type:"event",event:e,body:t}}function yat(e,t,r,i){let o=vc(Mo(r)?r:r.projects,s=>i(s,e));return!Mo(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let u=t(l);o.push(...Ki(s,d=>i(d,u)))}),t1(o,Zv)}function CX(e){return Pz(({textSpan:t})=>t.start+100003*t.length,Vq(e))}function vat(e,t,r,i,o,s,l){let u=Kme(e,t,r,pwe(t,r,!0),hwe,(_,v)=>_.getLanguageService().findRenameLocations(v.fileName,v.pos,i,o,s),(_,v)=>v($P(_)));if(Mo(u))return u;let d=[],g=CX(l);return u.forEach((_,v)=>{for(let E of _)!g.has(E)&&!NX($P(E),v)&&(d.push(E),g.add(E))}),d}function pwe(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Ic(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function bat(e,t,r,i,o){var s,l;let u=Kme(e,t,r,pwe(t,r,!1),hwe,(v,E)=>(o.info(`Finding references to ${E.fileName} position ${E.pos} in project ${v.getProjectName()}`),v.getLanguageService().findReferences(E.fileName,E.pos)),(v,E)=>{E($P(v.definition));for(let A of v.references)E($P(A))});if(Mo(u))return u;let d=u.get(t);if(((l=(s=d?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(v=>{for(let E of v)for(let A of E.references)delete A.isDefinition});else{let v=CX(i);for(let A of d)for(let R of A.references)if(R.isDefinition){v.add(R);break}let E=new Set;for(;;){let A=!1;if(u.forEach((R,N)=>{if(E.has(N))return;N.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,v)&&(E.add(N),A=!0)}),!A)break}u.forEach((A,R)=>{if(!E.has(R))for(let N of A)for(let P of N.references)P.isDefinition=!1})}let g=[],_=CX(i);return u.forEach((v,E)=>{for(let A of v){let R=NX($P(A.definition),E),N=R===void 0?A.definition:{...A.definition,textSpan:Id(R.pos,A.definition.textSpan.length),fileName:R.fileName,contextSpan:Sat(A.definition,E)},P=hn(g,k=>Gq(k.definition,N,i));P||(P={definition:N,references:[]},g.push(P));for(let k of A.references)!_.has(k)&&!NX($P(k),E)&&(_.add(k),P.references.push(k))}}),g.filter(v=>v.references.length!==0)}function fwe(e,t,r){for(let i of Mo(e)?e:e.projects)r(i,t);!Mo(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function Kme(e,t,r,i,o,s,l){let u=new Map,d=aL();d.enqueue({project:t,location:r}),fwe(e,r.fileName,(N,P)=>{let k={fileName:P,pos:r.pos};d.enqueue({project:N,location:k})});let g=t.projectService,_=t.getCancellationToken(),v=Cu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(i)),E=Cu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetSourcePosition(i)),A=new Set;e:for(;!d.isEmpty();){for(;!d.isEmpty();){if(_.isCancellationRequested())break e;let{project:N,location:P}=d.dequeue();if(u.has(N)||_we(N,P)||(Em(N),!N.containsFile(Cs(P.fileName))))continue;let k=R(N,P);u.set(N,k??Xc),A.add(Tat(N))}i&&(g.loadAncestorProjectTree(A),g.forEachEnabledProject(N=>{if(_.isCancellationRequested()||u.has(N))return;let P=o(i,N,v,E);P&&d.enqueue({project:N,location:P})}))}if(u.size===1)return xz(u.values());return u;function R(N,P){let k=s(N,P);if(!k||!l)return k;for(let F of k)l(F,O=>{let G=g.getOriginalLocationEnsuringConfiguredProject(N,O);if(!G)return;let j=g.getScriptInfo(G.fileName);for(let Z of j.containingProjects)!Z.isOrphan()&&!u.has(Z)&&d.enqueue({project:Z,location:G});let J=g.getSymlinkedProjects(j);J&&J.forEach((Z,q)=>{for(let ye of Z)!ye.isOrphan()&&!u.has(ye)&&d.enqueue({project:ye,location:{fileName:q,pos:G.pos}})})});return k}}function mwe(e,t){if(t.containsFile(Cs(e.fileName))&&!_we(t,e))return e}function hwe(e,t,r,i){let o=mwe(e,t);if(o)return o;let s=r();if(s&&t.containsFile(Cs(s.fileName)))return s;let l=i();return l&&t.containsFile(Cs(l.fileName))?l:void 0}function _we(e,t){if(!t)return!1;let r=e.getLanguageService().getProgram();if(!r)return!1;let i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function Tat(e){return gv(e)?e.canonicalConfigFilePath:e.getProjectName()}function $P({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function NX(e,t){return DP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function gwe(e,t){return h7(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Sat(e,t){return Uq(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}var ywe=["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","getPasteEdits","copilotRelated"],Eat=[...ywe,"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","preparePasteEdits"],vwe=class kQ{constructor(t){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let s={version:Me};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=>{let l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(d=>d.projectErrors&&d.projectErrors.length!==0))return this.requiredResponse(l);let u=Vt(l,d=>!d.projectErrors||d.projectErrors.length===0?d:{info:d.info,changes:d.changes,files:d.files,projectErrors:this.convertToDiagnosticsWithLinePosition(d.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&za(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&za(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:nh(Az(l.textChanges),u=>{let d=C.checkDefined(this.projectService.getScriptInfo(l.fileName)),g=d.lineOffsetToPosition(u.start.line,u.start.offset),_=d.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:_-g},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&za(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:Az(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),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(Cs(s.arguments.file),s.arguments.fileContent,SX(s.arguments.scriptKindName),s.arguments.projectRootPath?Cs(s.arguments.projectRootPath):void 0),this.notRequired(s)),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(void 0)),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired(void 0)),change:s=>(this.change(s.arguments),this.notRequired(s)),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.notRequired(s)),reload:s=>(this.reload(s.arguments),this.requiredResponse({reloadFinished:!0})),saveto:s=>{let l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired(s)},close:s=>{let l=s.arguments;return this.closeClientFile(l.file),this.notRequired(s)},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:s=>(this.projectService.reloadProjects(),this.notRequired(s)),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)),preparePasteEdits:s=>this.requiredResponse(this.preparePasteEdits(s.arguments)),getPasteEdits:s=>this.requiredResponse(this.getPasteEdits(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.notRequired(s)),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)),mapCode:s=>this.requiredResponse(this.mapCode(s.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||A5,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;let i={executeWithRequestId:(s,l,u)=>this.executeWithRequestId(s,l,u),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:(s,l)=>this.sendRequestCompletedEvent(s,l),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new gat(i);let 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 Gme(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new ume(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:ywe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Eat.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:C.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t,r){this.event({request_seq:t,performanceData:r&&bwe(r)},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}addDiagnosticsPerformanceData(t,r,i){var o,s;this.performanceData||(this.performanceData={});let l=(o=this.performanceData.diagnosticsDuration)==null?void 0:o.get(t);l||((s=this.performanceData).diagnosticsDuration??(s.diagnosticsDuration=new Map)).set(t,l={}),l[r]=i}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 S5:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case pX:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case fX:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case mX:case yX:case vX:case bX:this.event(t.data,t.eventName);break;case hX:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Vt(t.data.diagnostics,r=>s4(r,!0))},t.eventName);break;case _X:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case gX:{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},S5))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`:
`+TP(t.message),t.stack&&(o+=`
`+TP(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){let d=rx(u.getSnapshot());o+=`
File text of ${i.file}:${TP(d)}
`}}catch{}if(t.ProgramFiles){o+=`
Program files: ${JSON.stringify(t.ProgramFiles)}
`,o+=`
Projects::
`;let s=0,l=u=>{o+=`
Project '${u.projectName}' (${YP[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: ${iT(t)}`);return}this.writeMessage(t)}writeMessage(t){let r=qme(t,this.logger,this.byteLength,this.host.newLine);this.host.write(r)}event(t,r){this.send(Jme(r,t))}doOutput(t,r,i,o,s,l){let u={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:s&&bwe(s)};if(o){let d;if(Mo(t))u.body=t,d=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:g,..._}=t;u.body=_,d=g}else u.body=t;else u.body=t;d&&(u.metadata=d)}else C.assert(t===void 0);l&&(u.message=l),this.send(u)}semanticCheck(t,r){var i,o;let s=Ls();(i=xr)==null||i.push(xr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let l=cwe(r,t)?Xc:r.getLanguageService().getSemanticDiagnostics(t).filter(u=>!!u.file);this.sendDiagnosticsEvent(t,r,l,"semanticDiag",s),(o=xr)==null||o.pop()}syntacticCheck(t,r){var i,o;let s=Ls();(i=xr)==null||i.push(xr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag",s),(o=xr)==null||o.pop()}suggestionCheck(t,r){var i,o;let s=Ls();(i=xr)==null||i.push(xr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag",s),(o=xr)==null||o.pop()}regionSemanticCheck(t,r,i){var o,s,l;let u=Ls();(o=xr)==null||o.push(xr.Phase.Session,"regionSemanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let d;if(!this.shouldDoRegionCheck(t)||!(d=r.getLanguageService().getRegionSemanticDiagnostics(t,i))){(s=xr)==null||s.pop();return}this.sendDiagnosticsEvent(t,r,d.diagnostics,"regionSemanticDiag",u,d.spans),(l=xr)==null||l.pop()}shouldDoRegionCheck(t){var r;let i=(r=this.projectService.getScriptInfoForNormalizedPath(t))==null?void 0:r.textStorage.getLineInfo().getLineCount();return!!(i&&i>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(t,r,i,o,s,l){try{let u=C.checkDefined(r.getScriptInfo(t)),d=Ls()-s,g={file:t,diagnostics:i.map(_=>dwe(t,r,_)),spans:l?.map(_=>d_(_,u))};this.event(g,o),this.addDiagnosticsPerformanceData(t,o,d)}catch(u){this.logError(u,o)}}updateErrorCheck(t,r,i,o=!0){if(r.length===0)return;C.assert(!this.suppressDiagnosticEvents);let s=this.changeSeq,l=Math.min(i,200),u=0,d=()=>{if(u++,r.length>u)return t.delay("checkOne",l,_)},g=(v,E)=>{if(this.semanticCheck(v,E),this.changeSeq===s){if(this.getPreferences(v).disableSuggestions)return d();t.immediate("suggestionCheck",()=>{this.suggestionCheck(v,E),d()})}},_=()=>{if(this.changeSeq!==s)return;let v,E=r[u];if(Bo(E)?E=this.toPendingErrorCheck(E):"ranges"in E&&(v=E.ranges,E=this.toPendingErrorCheck(E.file)),!E)return d();let{fileName:A,project:R}=E;if(Em(R),!!R.containsFile(A,o)&&(this.syntacticCheck(A,R),this.changeSeq===s)){if(R.projectService.serverMode!==0)return d();if(v)return t.immediate("regionSemanticCheck",()=>{let N=this.projectService.getScriptInfoForNormalizedPath(A);N&&this.regionSemanticCheck(A,R,v.map(P=>this.getRange({file:A,...P},N))),this.changeSeq===s&&t.immediate("semanticCheck",()=>g(A,R))});t.immediate("semanticCheck",()=>g(A,R))}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,_)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(let i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Co(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){let{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){let r=this.getProject(t.projectFileName),i=Cs(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){let o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=Un(so(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Vt(l,u=>s4(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:o_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:kS(r),code:r.code,source:r.source,startLocation:r.file&&cC(ca(r.file,r.start)),endLocation:r.file&&cC(ca(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Vt(r.relatedInformation,DX)}))}getCompilerOptionsDiagnostics(t){let r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Un(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:kS(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:Vt(i.relatedInformation,DX)}))}getDiagnosticsWorker(t,r,i,o){let{project:s,file:l}=this.getFileAndProject(t);if(r&&cwe(s,l))return Xc;let u=s.getScriptInfoForNormalizedPath(l),d=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(d,u):d.map(g=>dwe(l,s,g))}getDefinition(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||Xc,o);return r?this.mapDefinitionInfo(l,o):l.map(kQ.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=gwe(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){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=C.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:Xc,textSpan:void 0};let d=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:g}=u;return r?{definitions:this.mapDefinitionInfo(d,o),textSpan:d_(g,l)}:{definitions:d.map(kQ.mapToOriginalLocation),textSpan:g}}findSourceDefinition(t){var r;let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s),u=this.mapDefinitionInfoLocations(l||Xc,o).slice();if(this.projectService.serverMode===0&&(!vt(u,A=>Cs(A.fileName)!==i&&!A.isAmbient)||vt(u,A=>!!A.failedAliasResolution))){let A=Pz(k=>k.textSpan.start,Vq(this.host.useCaseSensitiveFileNames));u?.forEach(k=>A.add(k));let R=o.getNoDtsResolutionProject(i),N=R.getLanguageService(),P=(r=N.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(k=>Cs(k.fileName)!==i);if(vt(P))for(let k of P){if(k.unverified){let F=v(k,o.getLanguageService().getProgram(),N.getProgram());if(vt(F)){for(let O of F)A.add(O);continue}}A.add(k)}else{let k=u.filter(F=>Cs(F.fileName)!==i&&F.isAmbient);for(let F of vt(k)?k:_()){let O=g(F.fileName,i,R);if(!O)continue;let G=this.projectService.getOrCreateScriptInfoNotOpenedByClient(O,R.currentDirectory,R.directoryStructureHost,!1);if(!G)continue;R.containsScriptInfo(G)||(R.addRoot(G),R.updateGraph());let j=N.getProgram(),J=C.checkDefined(j.getSourceFile(O));for(let Z of E(F.name,J,j))A.add(Z)}}u=Co(A.values())}return u=u.filter(A=>!A.isAmbient&&!A.failedAliasResolution),this.mapDefinitionInfo(u,o);function g(A,R,N){var P,k,F;let O=VW(A);if(O&&A.lastIndexOf(xg)===O.topLevelNodeModulesIndex){let G=A.substring(0,O.packageRootIndex),j=(P=o.getModuleResolutionCache())==null?void 0:P.getPackageJsonInfoCache(),J=o.getCompilationSettings(),Z=nP(To(G,o.getCurrentDirectory()),tP(j,o,J));if(!Z)return;let q=dU(Z,{moduleResolution:2},o,o.getModuleResolutionCache()),ye=A.substring(O.topLevelPackageNameIndex+1,O.packageRootIndex),ie=rP(Mw(ye)),K=o.toPath(A);if(q&&vt(q,pe=>o.toPath(pe)===K))return(k=N.resolutionCache.resolveSingleModuleNameWithoutWatching(ie,R).resolvedModule)==null?void 0:k.resolvedFileName;{let pe=A.substring(O.packageRootIndex+1),de=`${ie}/${bu(pe)}`;return(F=N.resolutionCache.resolveSingleModuleNameWithoutWatching(de,R).resolvedModule)==null?void 0:F.resolvedFileName}}}function _(){let A=o.getLanguageService(),R=A.getProgram(),N=np(R.getSourceFile(i),s);return(cs(N)||He(N))&&Ks(N.parent)&&Yne(N,P=>{var k;if(P===N)return;let F=(k=A.getDefinitionAtPosition(i,P.getStart(),!0,!1))==null?void 0:k.filter(O=>Cs(O.fileName)!==i&&O.isAmbient).map(O=>({fileName:O.fileName,name:Wf(N)}));if(vt(F))return F})||Xc}function v(A,R,N){var P;let k=N.getSourceFile(A.fileName);if(!k)return;let F=np(R.getSourceFile(i),s),O=R.getTypeChecker().getSymbolAtLocation(F),G=O&&al(O,277);if(!G)return;let j=((P=G.propertyName)==null?void 0:P.text)||G.name.text;return E(j,k,N)}function E(A,R,N){let P=Ys.Core.getTopMostDeclarationNamesInFile(A,R);return Ui(P,k=>{let F=N.getTypeChecker().getSymbolAtLocation(k),O=ZN(k);if(F&&O)return iC.createDefinitionInfo(O,N.getTypeChecker(),F,O,!0)})}}getEmitOutput(t){let{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>s4(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?(C.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){let o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Dl(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){let 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){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||Xc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=gwe(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||Xc,o);return r?l.map(({fileName:u,textSpan:d,contextSpan:g})=>this.toFileSpanWithContext(u,d,g,o)):l.map(kQ.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?Xc:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{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){let{configFile:r}=this.getConfigFileAndProject(t);return r?Xc:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){let{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){let{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 Iat(s,l)}getDocumentHighlights(t,r){let{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:d})=>{let g=o.getScriptInfo(u);return{file:u,highlightSpans:d.map(({textSpan:_,kind:v,contextSpan:E})=>({...Xme(_,E,g),kind:v}))}}):l:Xc}provideInlayHints(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{let{position:u,displayParts:d}=l;return{...l,position:o.positionToLineOffset(u),displayParts:d?.map(({text:g,span:_,file:v})=>{if(_){C.assertIsDefined(v,"Target file should be defined together with its span.");let E=this.projectService.getScriptInfo(v);return{text:g,span:{start:E.positionToLineOffset(_.start),end:E.positionToLineOffset(_.start+_.length),file:v}}}else return{text:g}})}})}mapCode(t){var r;let i=this.getHostFormatOptions(),o=this.getHostPreferences(),{file:s,languageService:l}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.projectService.getScriptInfoForNormalizedPath(s),d=(r=t.mapping.focusLocations)==null?void 0:r.map(_=>_.map(v=>{let E=u.lineOffsetToPosition(v.start.line,v.start.offset),A=u.lineOffsetToPosition(v.end.line,v.end.offset);return{start:E,length:A-E}})),g=l.mapCode(s,t.mapping.contents,d,i,o);return this.mapTextChangesToCodeEdits(g)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,t.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(t,r,i,o,s){let{project:l}=this.getFileAndProjectWorker(t,r);return Em(l),{configFileName:l.getProjectName(),languageServiceDisabled:!l.languageServiceEnabled,fileNames:i?l.getFileNames(!1,s):void 0,configuredProjectInfo:o?this.getDefaultConfiguredProjectInfo(t):void 0}}getDefaultConfiguredProjectInfo(t){var r;let i=this.projectService.getScriptInfo(t);if(!i)return;let o=this.projectService.findDefaultConfiguredProjectWorker(i,3);if(!o)return;let s,l;return o.seenProjects.forEach((u,d)=>{d!==o.defaultProject&&(u!==3?(s??(s=[])).push(Cs(d.getConfigFilePath())):(l??(l=[])).push(Cs(d.getConfigFilePath())))}),(r=o.seenConfigs)==null||r.forEach(u=>(s??(s=[])).push(u)),{notMatchedByConfig:s,notInProject:l,defaultProject:o.defaultProject&&Cs(o.defaultProject.getConfigFilePath())}}getRenameInfo(t){let{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){let l=this.getProject(t.projectFileName);l&&(o=[l])}else{let l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?Xc:(this.projectService.logErrorForScriptInfoNotFound(t.file),by.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=Un(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),by.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return by.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=Cs(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),d=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),C.checkDefined(this.projectService.getScriptInfo(i)));if(!d.canRename)return r?{info:d,locs:[]}:[];let g=vat(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:d,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,r){if(t.canRename){let{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:d,triggerSpan:g}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:d,triggerSpan:d_(g,r)}}else return t}toSpanGroups(t){let r=new Map;for(let{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:d,...g}of t){let _=r.get(i);_||r.set(i,_={file:i,locs:[]});let v=C.checkDefined(this.projectService.getScriptInfo(i));_.locs.push({...Xme(o,s,v),...g})}return Co(r.values())}getReferences(t,r){let i=Cs(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=bat(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;let u=this.getPreferences(i),d=this.getDefaultProject(t),g=d.getScriptInfoForNormalizedPath(i),_=d.getLanguageService().getQuickInfoAtPosition(i,s),v=_?MO(_.displayParts):"",E=_&&_.textSpan,A=E?g.positionToLineOffset(E.start).offset:0,R=E?g.getSnapshot().getText(E.start,Dl(E)):"";return{refs:Ki(l,P=>P.references.map(k=>Swe(this.projectService,k,u))),symbolName:R,symbolStartOffset:A,symbolDisplayString:v}}getFileReferences(t,r){let i=this.getProjects(t),o=Cs(t.file),s=this.getPreferences(o),l={fileName:o,pos:0},u=Kme(i,this.getDefaultProject(t),l,l,mwe,_=>(this.logger.info(`Finding references to file ${o} in project ${_.getProjectName()}`),_.getLanguageService().getFileReferences(o))),d;if(Mo(u))d=u;else{d=[];let _=CX(this.host.useCaseSensitiveFileNames);u.forEach(v=>{for(let E of v)_.has(E)||(d.push(E),_.add(E))})}return r?{refs:d.map(_=>Swe(this.projectService,_,s)),symbolName:`"${t.file}"`}:d}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){let i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){let i=Cs(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){let l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:d_(u.textSpan,l),hintSpan:d_(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){let{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){let{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){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?lC(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPreferences(i),u=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s),l.maximumHoverLength,t.verbosityLevel);if(!u)return;let d=!!l.displayPartsForJSDoc;if(r){let g=MO(u.displayParts);return{kind:u.kind,kindModifiers:u.kindModifiers,start:s.positionToLineOffset(u.textSpan.start),end:s.positionToLineOffset(Dl(u.textSpan)),displayString:g,documentation:d?this.mapDisplayParts(u.documentation,o):MO(u.documentation),tags:this.mapJSDocTagInfo(u.tags,o,d),canIncreaseVerbosityLevel:u.canIncreaseVerbosityLevel}}else return d?u:{...u,tags:this.mapJSDocTagInfo(u.tags,o,!1)}}getFormattingEditsForRange(t){let{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(d=>this.convertTextChangeToCodeEdit(d,o))}getFormattingEditsForRangeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?lC(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?lC(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?lC(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){let{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||_at(u,s))){let{lineText:d,absolutePosition:g}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(d&&d.search("\\S")<0){let _=i.getIndentationAtPosition(r,s,l),v=0,E,A;for(E=0,A=d.length;E<A;E++)if(d.charAt(E)===" ")v++;else if(d.charAt(E)===" ")v+=l.tabSize;else break;if(_!==v){let R=g+E;u.push({span:ic(g,R),newText:Mc.getIndentationString(_,l)})}}}if(u)return u.map(d=>({start:o.positionToLineOffset(d.span.start),end:o.positionToLineOffset(Dl(d.span)),newText:d.newText?d.newText:""}))}getCompletions(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{...Nme(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;let d=t.prefix||"",g=Ui(u.entries,v=>{if(u.isMemberCompletion||po(v.name.toLowerCase(),d.toLowerCase())){let E=v.replacementSpan?d_(v.replacementSpan,s):void 0;return{...v,replacementSpan:E,hasAction:v.hasAction||void 0,symbol:void 0}}});return r==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&d_(u.optionalReplacementSpan,s),entries:g}}getCompletionEntryDetails(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),d=!!this.getPreferences(i).displayPartsForJSDoc,g=Ui(t.entryNames,_=>{let{name:v,source:E,data:A}=typeof _=="string"?{name:_,source:void 0,data:void 0}:_;return o.getLanguageService().getCompletionEntryDetails(i,l,v,u,E,this.getPreferences(i),A?ma(A,Nat):void 0)});return r?d?g:g.map(_=>({..._,tags:this.mapJSDocTagInfo(_.tags,o,!1)})):g.map(_=>({..._,codeActions:Vt(_.codeActions,v=>this.mapCodeAction(v)),documentation:this.mapDisplayParts(_.documentation,o),tags:this.mapJSDocTagInfo(_.tags,o,d)}))}getCompileOnSaveAffectedFileList(t){let r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?yat(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||ad(s.fileName)&&!hat(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!l.outFile}}):Xc}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||by.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,d,g)=>this.host.writeFile(u,d,g));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>s4(u,!0))}:!s}getSignatureHelpItems(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),d=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){let g=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(g.start),end:s.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,o,d)}}else return d||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,o,!1)}))}}toPendingErrorCheck(t){let r=Cs(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){let r=this.projectService.getScriptInfo(t.file);C.assert(!!r),r.textStorage.switchToScriptVersionCache();let i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,R8({span:{start:i,length:o-i},newText:t.insertString})))}reload(t){let r=Cs(t.file),i=t.tmpfile===void 0?void 0:Cs(t.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(r);o&&(this.changeSeq++,o.reloadFromFile(i))}saveToTmp(t,r){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;let r=ya(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Vt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>d_(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){let{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=>d_(i,r)),nameSpan:t.nameSpan&&d_(t.nameSpan,r),childItems:Vt(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){let{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){let i=this.getFullNavigateToItems(t);return r?Ki(i,({project:o,navigateToItems:s})=>s.map(l=>{let u=o.getScriptInfo(l.fileName),d={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(Dl(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(d.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(d.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(d.containerKind=l.containerKind),d})):Ki(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){let{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){C.assertIsDefined(t.file);let{file:E,project:A}=this.getFileAndProject(t);return[{project:A,navigateToItems:A.getLanguageService().getNavigateToItems(i,o,E)}]}let l=this.getHostPreferences(),u=[],d=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(E=>g(E));else{let E=this.getProjects(t);fwe(E,void 0,A=>g(A))}return u;function g(E){let A=E.getLanguageService().getNavigateToItems(i,o,void 0,E.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=Un(A,N=>_(N)&&!NX($P(N),E));R.length&&u.push({project:E,navigateToItems:R})}function _(E){let A=E.name;if(!d.has(A))return d.set(A,[E]),!0;let R=d.get(A);for(let N of R)if(v(N,E))return!1;return R.push(E),!0}function v(E,A){return E===A?!0:!E||!A?!1:E.containerKind===A.containerKind&&E.containerName===A.containerName&&E.fileName===A.fileName&&E.isCaseSensitive===A.isCaseSensitive&&E.kind===A.kind&&E.kindModifiers===A.kindModifiers&&E.matchKind===A.matchKind&&E.name===A.name&&E.textSpan.start===A.textSpan.start&&E.textSpan.length===A.textSpan.length}}getSupportedCodeFixes(t){if(!t)return JJ();if(t.file){let{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}let r=this.getProject(t.projectFileName);return r||by.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),C.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){let{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){let{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).map(l=>({...l,actions:l.actions.map(u=>({...u,range:u.range?{start:cC({line:u.range.start.line,character:u.range.start.offset}),end:cC({line:u.range.end.line,character:u.range.end.offset})}:void 0}))}))}getEditsForRefactor(t,r){let{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){let{renameFilename:u,renameLocation:d,edits:g}=l,_;if(u!==void 0&&d!==void 0){let v=o.getScriptInfoForNormalizedPath(Cs(u));_=Yme(rx(v.getSnapshot()),u,d,g)}return{renameLocation:_,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}preparePasteEdits(t){let{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().preparePasteEditsForFile(r,t.copiedTextSpan.map(o=>this.getRange({file:r,startLine:o.start.line,startOffset:o.start.offset,endLine:o.end.line,endOffset:o.end.offset},this.projectService.getScriptInfoForNormalizedPath(r))))}getPasteEdits(t){let{file:r,project:i}=this.getFileAndProject(t);if(XP(r))return;let o=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(l=>this.getRange({file:t.copiedFrom.file,startLine:l.start.line,startOffset:l.start.offset,endLine:l.end.line,endOffset:l.end.offset},i.getScriptInfoForNormalizedPath(Cs(t.copiedFrom.file))))}:void 0,s=i.getLanguageService().getPasteEdits({targetFile:r,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(l=>this.getRange({file:r,startLine:l.start.line,startOffset:l.start.offset,endLine:l.end.line,endOffset:l.end.offset},i.getScriptInfoForNormalizedPath(r))),copiedFrom:o,preferences:this.getPreferences(r)},this.getFormatOptions(r));return s&&this.mapPasteEditsAction(s)}organizeImports(t,r){C.assert(t.scope.type==="file");let{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){let i=Cs(t.oldFilePath),o=Cs(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,d=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{let _=g.getLanguageService().getEditsForFileRename(i,o,s,l),v=[];for(let E of _)u.has(E.fileName)||(d.push(E),v.push(E.fileName));for(let E of v)u.add(E)}),r?d.map(g=>this.mapTextChangeToCodeEdit(g)):d}getCodeFixes(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s),d;try{d=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){let _=g instanceof Error?g:new Error(g),v=o.getLanguageService(),E=[...v.getSyntacticDiagnostics(i),...v.getSemanticDiagnostics(i),...v.getSuggestionDiagnostics(i)].filter(R=>TL(l,u-l,R.start,R.length)).map(R=>R.code),A=t.errorCodes.find(R=>!E.includes(R));throw A!==void 0&&(_.message+=`
Additional information: BADCLIENT: Bad error code, ${A} not found in range ${l}..${u} (found: ${E.join(", ")})`),_}return r?d.map(g=>this.mapCodeFixAction(g)):d}getCombinedCodeFix({scope:t,fixId:r},i){C.assert(t.type==="file");let{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){let r=t.command;for(let i of VA(r)){let{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}}mapPasteEditsAction({edits:t,fixId:r}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:r}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){let r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),C.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Aat(i,r))}:Rat(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){let{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(d=>d_(d,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;let{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,void 0,!0);if(s)return;let l=o.filter(N=>!N.includes("lib.d.ts"));if(l.length===0)return;let u=[],d=[],g=[],_=[],v=Cs(i),E=this.projectService.ensureDefaultProjectForFile(v);for(let N of l)this.getCanonicalFileName(N)===this.getCanonicalFileName(i)?u.push(N):this.projectService.getScriptInfo(N).isScriptOpen()?d.push(N):ad(N)?_.push(N):g.push(N);let R=[...u,...d,...g,..._].map(N=>({fileName:N,project:E}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){let{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=C.checkDefined(this.projectService.getScriptInfo(o));return Vt(i,u=>{let d=this.getPosition(u,l),g=s.getSmartSelectionRange(o,d);return r?this.mapSelectionRange(g,l):g})}toggleLineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){let d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,d))}return u}toggleMultilineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){let d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,d))}return u}commentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){let d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,d))}return u}uncommentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){let d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,d))}return u}mapSelectionRange(t,r){let i={textSpan:d_(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=Cs(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),by.ThrowNoProject())}toProtocolCallHierarchyItem(t){let r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:d_(t.span,r),selectionSpan:d_(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>d_(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>d_(i,r))}}prepareCallHierarchy(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){let s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&rJ(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){let{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){let{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){let r=this.host.useCaseSensitiveFileNames?t:Qv(t);return ya(r)}exit(){}notRequired(t){return t&&this.doOutput(void 0,t.command,t.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(t){return{response:t,responseRequired:!0,performanceData:this.performanceData}}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){C.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){C.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r,i){let o=this.performanceData;try{return this.performanceData=i,this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t),this.performanceData=o}}executeCommand(t){let r=this.handlers.get(t.command);if(r){let i=this.executeWithRequestId(t.seq,()=>r(t),void 0);return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${iT(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,void 0,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,d;this.gcTimer.scheduleCollect();let g,_=this.performanceData;this.logger.hasLevel(2)&&(g=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${TP(this.toStringMessage(t))}`));let v,E;try{v=this.parseMessage(t),E=v.arguments&&v.arguments.file?v.arguments:void 0,(r=xr)==null||r.instant(xr.Phase.Session,"request",{seq:v.seq,command:v.command}),(i=xr)==null||i.push(xr.Phase.Session,"executeCommand",{seq:v.seq,command:v.command},!0);let{response:A,responseRequired:R,performanceData:N}=this.executeCommand(v);if((o=xr)==null||o.pop(),this.logger.hasLevel(2)){let P=mat(this.hrtime(g)).toFixed(4);R?this.logger.perftrc(`${v.seq}::${v.command}: elapsed time (in milliseconds) ${P}`):this.logger.perftrc(`${v.seq}::${v.command}: async elapsed time (in milliseconds) ${P}`)}(s=xr)==null||s.instant(xr.Phase.Session,"response",{seq:v.seq,command:v.command,success:!!A}),A?this.doOutput(A,v.command,v.seq,!0,N):R&&this.doOutput(void 0,v.command,v.seq,!1,N,"No content available.")}catch(A){if((l=xr)==null||l.popAll(),A instanceof yN){(u=xr)==null||u.instant(xr.Phase.Session,"commandCanceled",{seq:v?.seq,command:v?.command}),this.doOutput({canceled:!0},v.command,v.seq,!0,this.performanceData);return}this.logErrorWorker(A,this.toStringMessage(t),E),(d=xr)==null||d.instant(xr.Phase.Session,"commandError",{seq:v?.seq,command:v?.command,message:A.message}),this.doOutput(void 0,v?v.command:"unknown",v?v.seq:0,!1,this.performanceData,"Error processing request. "+A.message+`
`+A.stack)}finally{this.performanceData=_}}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()}};function bwe(e){let t=e.diagnosticsDuration&&Co(e.diagnosticsDuration,([r,i])=>({...i,file:r}));return{...e,diagnosticsDuration:t}}function d_(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Dl(e))}}function Xme(e,t,r){let i=d_(e,r),o=t&&d_(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Aat(e,t){return{start:Twe(t,e.span.start),end:Twe(t,Dl(e.span)),newText:e.newText}}function Twe(e,t){return Vme(e)?xat(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Iat(e,t){let 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 xat(e){return{line:e.line+1,offset:e.character+1}}function Rat(e){C.assert(e.textChanges.length===1);let t=$a(e.textChanges);return C.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 Yme(e,t,r,i){let o=Dat(e,t,i),{line:s,character:l}=AR(KA(o),r);return{line:s+1,offset:l+1}}function Dat(e,t,r){for(let{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){let{newText:l,span:{start:u,length:d}}=o[s];e=e.slice(0,u)+l+e.slice(u+d)}return e}function Swe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let u=C.checkDefined(e.getScriptInfo(t)),d=Xme(r,i,u),g=l?void 0:Cat(u,d);return{file:t,...d,lineText:g,isWriteAccess:o,isDefinition:s}}function Cat(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Dl(r)).replace(/\r|\n/g,"")}function Nat(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 dC=4,$me=(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))($me||{}),Mat=class{constructor(){this.goSubtree=!0,this.lineIndex=new l4,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new uC,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;let i=l4.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);let 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),d=l;for(let v=1;v<i.length;v++)u[v-1]=new I5(i[v]);let g=this.startPath.length-2;for(;g>=0;){let v=this.startPath[g];u=v.insertAt(d,u),g--,d=v}let _=u.length;for(;_>0;){let v=new uC;v.add(this.lineIndex.root),u=v.insertAt(this.lineIndex.root,u),_=u.length,this.lineIndex.root=v}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let d=this.startPath.length-2;d>=0;d--)this.startPath[d].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){let 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(d){return d.isLeaf()?new I5(""):new uC}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)}},Pat=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return SL(Id(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},MX=class WA{constructor(){this.changes=[],this.versions=new Array(WA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%WA.maxVersions}currentVersionToIndex(){return this.currentVersion%WA.maxVersions}edit(t,r,i){this.changes.push(new Pat(t,r,i)),(this.changes.length>WA.changeNumberThreshold||r>WA.changeLengthThreshold||i&&i.length>WA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(let i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new Ewe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=WA.maxVersions&&(this.minVersion=this.currentVersion-WA.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){let r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return Id(o,s)}getTextChangesBetweenVersions(t,r){if(t<r)if(t>=this.minVersion){let i=[];for(let o=t+1;o<=r;o++){let s=this.versions[this.versionToIndex(o)];for(let l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Lee(i)}else return;else return $8}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new WA,i=new Ewe(0,r,new l4);r.versions[r.currentVersion]=i;let o=l4.linesFromText(t);return i.index.load(o.lines),r}};MX.changeNumberThreshold=8,MX.changeLengthThreshold=256,MX.maxVersions=8;var PX=MX,Ewe=class d9e{constructor(t,r,i,o=Xc){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 d9e&&this.cache===t.cache)return this.version<=t.version?$8:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},l4=class Xve{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{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){let r=this.getLineCount();if(t<=r){let{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){let r=[];for(let i=0;i<t.length;i++)r[i]=new I5(t[i]);this.root=Xve.buildTreeFromBottom(r)}else this.root=new uC}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());let 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 C.assert(r===0),i!==void 0?(this.load(Xve.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){let u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}let s=new Mat,l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){let u=t+r,{zeroBasedColumn:d,lineText:g}=this.positionToColumnAndLineText(u);d===0&&(r+=g.length,i=i?i+g:g)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){let u=s.lineIndex.getText(0,s.lineIndex.getLength());C.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length<dC)return new uC(t);let r=new Array(Math.ceil(t.length/dC)),i=0;for(let o=0;o<r.length;o++){let s=Math.min(i+dC,t.length);r[o]=new uC(t.slice(i,s)),i=s}return this.buildTreeFromBottom(r)}static linesFromText(t){let r=KA(t);if(r.length===0)return{lines:[],lineMap:r};let 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]);let s=t.substring(r[o]);return s.length>0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},uC=class Yve{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(let 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){if(this.children.length===0)return;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){let u=this.children.length;if(o<u-1)for(let d=o+1;d<u;d++)this.skipChild(0,0,d,i,5)}}charOffsetToLineInfo(t,r){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:r,lineText:void 0};for(let 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()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let o=C.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(let i of this.children){let 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,i=this.children.length;t++;let o=t;if(t<i){for(r=new Yve;t<i;)r.add(this.children[t]),t++;r.updateCounts()}return this.children.length=o,r}remove(t){let 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){let r=this.children.indexOf(t);return C.assert(r!==-1),r}insertAt(t,r){let i=this.findChildIndex(t),o=this.children.length,s=r.length;if(o<dC&&i===o-1&&s===1)return this.add(r[0]),this.updateCounts(),[];{let l=this.splitAfter(i),u=0;for(i++;i<dC&&u<s;)this.children[i]=r[u],i++,u++;let d=[],g=0;if(u<s){g=Math.ceil((s-u)/dC),d=new Array(g);let _=0;for(let E=0;E<g;E++)d[E]=new Yve;let v=d[0];for(;u<s;)v.add(r[u]),u++,v.children.length===dC&&(_++,v=d[_]);for(let E=d.length-1;E>=0;E--)d[E].children.length===0&&d.pop()}l&&d.push(l),this.updateCounts();for(let _=0;_<g;_++)d[_].updateCounts();return d}}add(t){this.children.push(t),C.assert(this.children.length<=dC)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},I5=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}},Awe=class u9e{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=aL(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var r;return Fb.validatePackageName(t)!==Fb.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((r=this.typesRegistryCache)!=null&&r.has(t)))}installPackage(t){this.packageInstallId++;let 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){let o=ime(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${iT(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:${iT(t)}`),t.kind){case nq:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case UF:{let o=(r=this.packageInstalledPromise)==null?void 0:r.get(t.id);C.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 dle:{let o={message:t.message};this.event(o,"typesInstallerInitializationFailed");break}case rq:{let o={eventId:t.eventId,packages:t.packagesToInstall};this.event(o,"beginInstallTypes");break}case iq:{if(this.telemetryEnabled){let l={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}};this.event(l,"telemetry")}let o={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess};this.event(o,"endInstallTypes");break}case jF:{this.projectService.updateTypingsForProject(t);break}case VF:{for(this.activeRequestCount>0?this.activeRequestCount--:C.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let 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 rO: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:${iT(t)}`),this.installer.send(t)},u9e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};Awe.requestDelayMillis=100;var Iwe=Awe,xwe={};x(xwe,{ActionInvalidate:()=>jF,ActionPackageInstalled:()=>UF,ActionSet:()=>VF,ActionWatchTypingLocations:()=>rO,Arguments:()=>oq,AutoImportProviderProject:()=>Ime,AuxiliaryProject:()=>Eme,CharRangeSection:()=>$me,CloseFileWatcherEvent:()=>bX,CommandNames:()=>uwe,ConfigFileDiagEvent:()=>hX,ConfiguredProject:()=>xme,ConfiguredProjectLoadKind:()=>Pme,CreateDirectoryWatcherEvent:()=>vX,CreateFileWatcherEvent:()=>yX,Errors:()=>by,EventBeginInstallTypes:()=>rq,EventEndInstallTypes:()=>iq,EventInitializationFailed:()=>dle,EventTypesRegistry:()=>nq,ExternalProject:()=>cX,GcTimer:()=>ume,InferredProject:()=>Sme,LargeFileReferencedEvent:()=>mX,LineIndex:()=>l4,LineLeaf:()=>I5,LineNode:()=>uC,LogLevel:()=>nme,Msg:()=>rme,OpenFileInfoTelemetryEvent:()=>Rme,Project:()=>gx,ProjectInfoTelemetryEvent:()=>gX,ProjectKind:()=>YP,ProjectLanguageServiceStateEvent:()=>_X,ProjectLoadingFinishEvent:()=>fX,ProjectLoadingStartEvent:()=>pX,ProjectService:()=>Gme,ProjectsUpdatedInBackgroundEvent:()=>S5,ScriptInfo:()=>hme,ScriptVersionCache:()=>PX,Session:()=>vwe,TextStorage:()=>mme,ThrottledOperations:()=>dme,TypingsInstallerAdapter:()=>Iwe,allFilesAreJsOrDts:()=>vme,allRootFilesAreJsOrDts:()=>yme,asNormalizedPath:()=>Wke,convertCompilerOptions:()=>E5,convertFormatOptions:()=>lC,convertScriptKindName:()=>SX,convertTypeAcquisition:()=>Cme,convertUserPreferences:()=>Nme,convertWatchOptions:()=>a4,countEachFileTypes:()=>n4,createInstallTypingsRequest:()=>ime,createModuleSpecifierCache:()=>Ume,createNormalizedPathMap:()=>Fke,createPackageJsonCache:()=>Hme,createSortedArray:()=>cme,emptyArray:()=>Xc,findArgument:()=>FAe,formatDiagnosticToProtocol:()=>s4,formatMessage:()=>qme,getBaseConfigFileName:()=>lX,getDetailWatchInfo:()=>xX,getLocationInNewDocument:()=>Yme,hasArgument:()=>WAe,hasNoTypeScriptSource:()=>bme,indent:()=>TP,isBackgroundProject:()=>i4,isConfigFile:()=>Vme,isConfiguredProject:()=>gv,isDynamicFileName:()=>XP,isExternalProject:()=>r4,isInferredProject:()=>sC,isInferredProjectName:()=>ome,isProjectDeferredClose:()=>o4,makeAutoImportProviderProjectName:()=>sme,makeAuxiliaryProjectName:()=>lme,makeInferredProjectName:()=>ame,maxFileSize:()=>uX,maxProgramSizeForNonTsFiles:()=>dX,normalizedPathToPath:()=>aC,nowString:()=>zAe,nullCancellationToken:()=>lwe,nullTypingsInstaller:()=>A5,protocol:()=>pme,scriptInfoIsContainedByBackgroundProject:()=>_me,scriptInfoIsContainedByDeferredClosedProject:()=>gme,stringifyIndented:()=>iT,toEvent:()=>Jme,toNormalizedPath:()=>Cs,tryConvertScriptKindName:()=>TX,typingsInstaller:()=>tme,updateProjectIfDirty:()=>Em}),typeof console<"u"&&(C.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return e1},set exports(m){e1=m}});var zbt=e1.createClassifier,$ve=e1.createLanguageService,Bbt=e1.displayPartsToString,Gbt=e1.EndOfLineState,Vbt=e1.flattenDiagnosticMessageText,jbt=e1.IndentStyle,cN=e1.ScriptKind,Ubt=e1.ScriptTarget,Hbt=e1.TokenClass,Qve=e1;var Bi={};Bi["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" />
`;Bi["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 after static methods are defined but 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 after static methods are defined but 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 after static methods are defined but 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 immediately after the auto \`accessor\` being
* decorated is initialized (regardless if the \`accessor\` is \`static\` or not).
*/
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 immediately after the field being decorated
* is initialized (regardless if the field is \`static\` or not).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
`;Bi["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;
`;Bi["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 FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
}
interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
}
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
}
interface ReadableStream<R = any> {
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
}
`;Bi["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 AddressErrors {
addressLine?: string;
city?: string;
country?: string;
dependentLocality?: string;
organization?: string;
phone?: string;
postalCode?: string;
recipient?: string;
region?: string;
sortingCode?: string;
}
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 AudioDataCopyToOptions {
format?: AudioSampleFormat;
frameCount?: number;
frameOffset?: number;
planeIndex: number;
}
interface AudioDataInit {
data: BufferSource;
format: AudioSampleFormat;
numberOfChannels: number;
numberOfFrames: number;
sampleRate: number;
timestamp: number;
transfer?: ArrayBuffer[];
}
interface AudioDecoderConfig {
codec: string;
description?: AllowSharedBufferSource;
numberOfChannels: number;
sampleRate: number;
}
interface AudioDecoderInit {
error: WebCodecsErrorCallback;
output: AudioDataOutputCallback;
}
interface AudioDecoderSupport {
config?: AudioDecoderConfig;
supported?: boolean;
}
interface AudioEncoderConfig {
bitrate?: number;
bitrateMode?: BitrateMode;
codec: string;
numberOfChannels: number;
opus?: OpusEncoderConfig;
sampleRate: number;
}
interface AudioEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedAudioChunkOutputCallback;
}
interface AudioEncoderSupport {
config?: AudioEncoderConfig;
supported?: boolean;
}
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;
credentialProtectionPolicy?: string;
enforceCredentialProtectionPolicy?: boolean;
hmacCreateSecret?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobInputs;
minPinLength?: boolean;
prf?: AuthenticationExtensionsPRFInputs;
}
interface AuthenticationExtensionsClientInputsJSON {
appid?: string;
credProps?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
prf?: AuthenticationExtensionsPRFInputsJSON;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
hmacCreateSecret?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
prf?: AuthenticationExtensionsPRFOutputs;
}
interface AuthenticationExtensionsLargeBlobInputs {
read?: boolean;
support?: string;
write?: BufferSource;
}
interface AuthenticationExtensionsLargeBlobInputsJSON {
read?: boolean;
support?: string;
write?: Base64URLString;
}
interface AuthenticationExtensionsLargeBlobOutputs {
blob?: ArrayBuffer;
supported?: boolean;
written?: boolean;
}
interface AuthenticationExtensionsPRFInputs {
eval?: AuthenticationExtensionsPRFValues;
evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
}
interface AuthenticationExtensionsPRFInputsJSON {
eval?: AuthenticationExtensionsPRFValuesJSON;
evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;
}
interface AuthenticationExtensionsPRFOutputs {
enabled?: boolean;
results?: AuthenticationExtensionsPRFValues;
}
interface AuthenticationExtensionsPRFValues {
first: BufferSource;
second?: BufferSource;
}
interface AuthenticationExtensionsPRFValuesJSON {
first: Base64URLString;
second?: Base64URLString;
}
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 extends EventInit {
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 CaretPositionFromPointOptions {
shadowRoots?: ShadowRoot[];
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface CheckVisibilityOptions {
checkOpacity?: boolean;
checkVisibilityCSS?: boolean;
contentVisibilityAuto?: boolean;
opacityProperty?: boolean;
visibilityProperty?: 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 ContentVisibilityAutoStateChangeEventInit extends EventInit {
skipped?: boolean;
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CookieChangeEventInit extends EventInit {
changed?: CookieList;
deleted?: CookieList;
}
interface CookieInit {
domain?: string | null;
expires?: DOMHighResTimeStamp | null;
name: string;
partitioned?: boolean;
path?: string;
sameSite?: CookieSameSite;
value: string;
}
interface CookieListItem {
name?: string;
value?: string;
}
interface CookieStoreDeleteOptions {
domain?: string | null;
name: string;
partitioned?: boolean;
path?: string;
}
interface CookieStoreGetOptions {
name?: string;
url?: string;
}
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 {
customElementRegistry?: CustomElementRegistry;
is?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
interface EncodedAudioChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
transfer?: ArrayBuffer[];
type: EncodedAudioChunkType;
}
interface EncodedAudioChunkMetadata {
decoderConfig?: AudioDecoderConfig;
}
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;
leftTrigger?: number;
rightTrigger?: number;
startDelay?: number;
strongMagnitude?: number;
weakMagnitude?: number;
}
interface GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
interface GetAnimationsOptions {
subtree?: boolean;
}
interface GetComposedRangesOptions {
shadowRoots?: ShadowRoot[];
}
interface GetHTMLOptions {
serializableShadowRoots?: boolean;
shadowRoots?: ShadowRoot[];
}
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 ImageDecodeOptions {
completeFramesOnly?: boolean;
frameIndex?: number;
}
interface ImageDecodeResult {
complete: boolean;
image: VideoFrame;
}
interface ImageDecoderInit {
colorSpaceConversion?: ColorSpaceConversion;
data: ImageBufferSource;
desiredHeight?: number;
desiredWidth?: number;
preferAnimation?: boolean;
transfer?: ArrayBuffer[];
type: string;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImportNodeOptions {
customElementRegistry?: CustomElementRegistry;
selfOnly?: boolean;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
targetRanges?: StaticRange[];
}
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 KeySystemTrackConfiguration {
robustness?: 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<ArrayBuffer>;
}
interface MIDIOptions {
software?: boolean;
sysex?: boolean;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
keySystemAccess: MediaKeySystemAccess | null;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaCapabilitiesKeySystemConfiguration {
audio?: KeySystemTrackConfiguration;
distinctiveIdentifier?: MediaKeysRequirement;
initDataType?: string;
keySystem: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
video?: KeySystemTrackConfiguration;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
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 MediaKeysPolicy {
minHdcpVersion?: 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 MediaSettingsRange {
max?: number;
min?: number;
step?: 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[];
backgroundBlur?: 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;
backgroundBlur?: 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;
backgroundBlur?: boolean;
channelCount?: number;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
noiseSuppression?: boolean;
sampleRate?: number;
sampleSize?: number;
torch?: boolean;
whiteBalanceMode?: string;
width?: number;
zoom?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
backgroundBlur?: 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 OpusEncoderConfig {
complexity?: number;
format?: OpusBitstreamFormat;
frameDuration?: number;
packetlossperc?: number;
usedtx?: boolean;
useinbandfec?: boolean;
}
interface OscillatorOptions extends AudioNodeOptions {
detune?: number;
frequency?: number;
periodicWave?: PeriodicWave;
type?: OscillatorType;
}
interface PageRevealEventInit extends EventInit {
viewTransition?: ViewTransition | null;
}
interface PageSwapEventInit extends EventInit {
activation?: NavigationActivation | null;
viewTransition?: ViewTransition | null;
}
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 PayerErrors {
email?: string;
name?: string;
phone?: string;
}
interface PaymentCurrencyAmount {
currency: string;
value: string;
}
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
shippingOptions?: PaymentShippingOption[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
id?: string;
total: PaymentItem;
}
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
supportedMethods: string;
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
error?: string;
paymentMethodErrors?: any;
shippingAddressErrors?: AddressErrors;
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 PaymentOptions {
requestPayerEmail?: boolean;
requestPayerName?: boolean;
requestPayerPhone?: boolean;
requestShipping?: boolean;
shippingType?: PaymentShippingType;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
interface PaymentShippingOption {
amount: PaymentCurrencyAmount;
id: string;
label: string;
selected?: boolean;
}
interface PaymentValidationErrors {
error?: string;
payer?: PayerErrors;
shippingAddress?: AddressErrors;
}
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 PhotoCapabilities {
fillLightMode?: FillLightMode[];
imageHeight?: MediaSettingsRange;
imageWidth?: MediaSettingsRange;
redEyeReduction?: RedEyeReduction;
}
interface PhotoSettings {
fillLightMode?: FillLightMode;
imageHeight?: number;
imageWidth?: number;
redEyeReduction?: boolean;
}
interface PictureInPictureEventInit extends EventInit {
pictureInPictureWindow: PictureInPictureWindow;
}
interface PlaneLayout {
offset: number;
stride: number;
}
interface PointerEventInit extends MouseEventInit {
altitudeAngle?: number;
azimuthAngle?: number;
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 PointerLockOptions {
unadjustedMovement?: boolean;
}
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 PublicKeyCredentialCreationOptionsJSON {
attestation?: string;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: Base64URLString;
excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
extensions?: AuthenticationExtensionsClientInputsJSON;
hints?: string[];
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntityJSON;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialDescriptorJSON {
id: Base64URLString;
transports?: string[];
type: string;
}
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 PublicKeyCredentialRequestOptionsJSON {
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
challenge: Base64URLString;
extensions?: AuthenticationExtensionsClientInputsJSON;
hints?: string[];
rpId?: string;
timeout?: number;
userVerification?: string;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
displayName: string;
id: BufferSource;
}
interface PublicKeyCredentialUserEntityJSON {
displayName: string;
id: Base64URLString;
name: string;
}
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 extends RTCEncodedFrameMetadata {
sequenceNumber?: number;
}
interface RTCEncodedFrameMetadata {
contributingSources?: number[];
mimeType?: string;
payloadType?: number;
rtpTimestamp?: number;
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
dependencies?: number[];
frameId?: number;
height?: number;
spatialIndex?: 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 RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
bytesDiscardedOnSend?: number;
bytesReceived?: number;
bytesSent?: number;
consentRequestsSent?: number;
currentRoundTripTime?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
lastPacketSentTimestamp?: DOMHighResTimeStamp;
localCandidateId: string;
nominated?: boolean;
packetsDiscardedOnSend?: number;
packetsReceived?: number;
packetsSent?: number;
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;
fecBytesReceived?: number;
fecPacketsDiscarded?: number;
fecPacketsReceived?: number;
fecSsrc?: number;
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesAssembledFromMultiplePackets?: number;
framesDecoded?: number;
framesDropped?: number;
framesPerSecond?: number;
framesReceived?: number;
framesRendered?: number;
freezeCount?: number;
headerBytesReceived?: number;
insertedSamplesForDeceleration?: number;
jitterBufferDelay?: number;
jitterBufferEmittedCount?: number;
jitterBufferMinimumDelay?: number;
jitterBufferTargetDelay?: number;
keyFramesDecoded?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
mid?: string;
nackCount?: number;
packetsDiscarded?: number;
pauseCount?: number;
playoutId?: string;
pliCount?: number;
qpSum?: number;
remoteId?: string;
removedSamplesForAcceleration?: number;
retransmittedBytesReceived?: number;
retransmittedPacketsReceived?: number;
rtxSsrc?: number;
silentConcealedSamples?: number;
totalAssemblyTime?: number;
totalAudioEnergy?: number;
totalDecodeTime?: number;
totalFreezesDuration?: number;
totalInterFrameDelay?: number;
totalPausesDuration?: number;
totalProcessingDelay?: number;
totalSamplesDuration?: number;
totalSamplesReceived?: number;
totalSquaredInterFrameDelay?: number;
trackIdentifier: string;
}
interface RTCLocalIceCandidateInit extends RTCIceCandidateInit {
}
interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
}
interface RTCOfferAnswerOptions {
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
iceRestart?: boolean;
offerToReceiveAudio?: boolean;
offerToReceiveVideo?: boolean;
}
interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
active?: boolean;
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesEncoded?: number;
framesPerSecond?: number;
framesSent?: number;
headerBytesSent?: number;
hugeFramesSent?: number;
keyFramesEncoded?: number;
mediaSourceId?: string;
mid?: string;
nackCount?: number;
pliCount?: number;
qpSum?: number;
qualityLimitationDurations?: Record<string, number>;
qualityLimitationReason?: RTCQualityLimitationReason;
qualityLimitationResolutionChanges?: number;
remoteId?: string;
retransmittedBytesSent?: number;
retransmittedPacketsSent?: number;
rid?: string;
rtxSsrc?: number;
scalabilityMode?: string;
targetBitrate?: number;
totalEncodeTime?: number;
totalEncodedBytesTarget?: number;
totalPacketSendDelay?: number;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
address?: string | null;
errorCode: number;
errorText?: string;
port?: number | null;
url?: string;
}
interface RTCPeerConnectionIceEventInit extends EventInit {
candidate?: RTCIceCandidate | null;
}
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
jitter?: number;
packetsLost?: number;
packetsReceived?: number;
}
interface RTCRtcpParameters {
cname?: string;
reducedSize?: boolean;
}
interface RTCRtpCapabilities {
codecs: RTCRtpCodec[];
headerExtensions: RTCRtpHeaderExtensionCapability[];
}
interface RTCRtpCodec {
channels?: number;
clockRate: number;
mimeType: string;
sdpFmtpLine?: string;
}
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;
dtlsRole?: RTCDtlsRole;
dtlsState: RTCDtlsTransportState;
iceLocalUsernameFragment?: string;
iceRole?: RTCIceRole;
iceState?: RTCIceTransportState;
localCertificateId?: string;
packetsReceived?: number;
packetsSent?: number;
remoteCertificateId?: string;
selectedCandidatePairChanges?: number;
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 ReadableStreamIteratorOptions {
/**
* Asynchronously iterates over the chunks in the stream's internal queue.
*
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
*
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
*/
preventCancel?: boolean;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value: T | undefined;
}
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 {
clonable?: boolean;
customElementRegistry?: CustomElementRegistry;
delegatesFocus?: boolean;
mode: ShadowRootMode;
serializable?: boolean;
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 StartViewTransitionOptions {
types?: string[] | null;
update?: ViewTransitionUpdateCallback | null;
}
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;
hasAlphaChannel?: boolean;
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;
contentHint?: string;
displayHeight?: number;
displayWidth?: number;
framerate?: number;
hardwareAcceleration?: HardwareAcceleration;
height: number;
latencyMode?: LatencyMode;
scalabilityMode?: string;
width: number;
}
interface VideoEncoderEncodeOptions {
avc?: VideoEncoderEncodeOptionsForAvc;
keyFrame?: boolean;
}
interface VideoEncoderEncodeOptionsForAvc {
quantizer?: number | null;
}
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 {
colorSpace?: PredefinedColorSpace;
format?: VideoPixelFormat;
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 WebTransportSendOptions {
sendOrder?: number;
}
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
}
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 {
/**
* The **\`ANGLE_instanced_arrays.drawArraysInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)
*/
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
/**
* The **\`ANGLE_instanced_arrays.drawElementsInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method.
*
* [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;
/**
* The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE().
*
* [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/ariaActiveDescendantElement) */
ariaActiveDescendantElement: Element | null;
/** [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/ariaBrailleLabel) */
ariaBrailleLabel: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */
ariaBrailleRoleDescription: 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/ariaColIndexText) */
ariaColIndexText: 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/ariaControlsElements) */
ariaControlsElements: ReadonlyArray<Element> | 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/ariaDescribedByElements) */
ariaDescribedByElements: ReadonlyArray<Element> | 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/ariaDetailsElements) */
ariaDetailsElements: ReadonlyArray<Element> | 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/ariaErrorMessageElements) */
ariaErrorMessageElements: ReadonlyArray<Element> | 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/ariaFlowToElements) */
ariaFlowToElements: ReadonlyArray<Element> | 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid) */
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/ariaLabelledByElements) */
ariaLabelledByElements: ReadonlyArray<Element> | 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/ariaOwnsElements) */
ariaOwnsElements: ReadonlyArray<Element> | 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/ariaRelevant) */
ariaRelevant: 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/ariaRowIndexText) */
ariaRowIndexText: 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/role) */
role: string | null;
}
/**
* The **\`AbortController\`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
*/
interface AbortController {
/**
* The **\`signal\`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
*/
readonly signal: AbortSignal;
/**
* The **\`abort()\`** method of the AbortController interface aborts an asynchronous operation before it has completed.
*
* [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;
}
/**
* The **\`AbortSignal\`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
*/
interface AbortSignal extends EventTarget {
/**
* The **\`aborted\`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (\`true\`) or not (\`false\`).
*
* [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;
/**
* The **\`reason\`** read-only property returns a JavaScript value that indicates the abort reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)
*/
readonly reason: any;
/**
* The **\`throwIfAborted()\`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
*
* [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;
/**
* The **\`AbortSignal.abort()\`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
*/
abort(reason?: any): AbortSignal;
/**
* The **\`AbortSignal.any()\`** static method takes an iterable of abort signals and returns an AbortSignal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
*/
any(signals: AbortSignal[]): AbortSignal;
/**
* The **\`AbortSignal.timeout()\`** static method returns an AbortSignal that will automatically abort after a specified time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static)
*/
timeout(milliseconds: number): AbortSignal;
};
/**
* The **\`AbstractRange\`** abstract interface is the base class upon which all DOM range types are defined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange)
*/
interface AbstractRange {
/**
* The read-only **\`collapsed\`** property of the AbstractRange interface returns \`true\` if the range's start position and end position are the same.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed)
*/
readonly collapsed: boolean;
/**
* The read-only **\`endContainer\`** property of the AbstractRange interface returns the Node in which the end of the range is located.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer)
*/
readonly endContainer: Node;
/**
* The **\`endOffset\`** property of the AbstractRange interface returns the offset into the end node of the range's end position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset)
*/
readonly endOffset: number;
/**
* The read-only **\`startContainer\`** property of the AbstractRange interface returns the start Node for the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)
*/
readonly startContainer: Node;
/**
* The read-only **\`startOffset\`** property of the AbstractRange interface returns the offset into the start node of the range's start position.
*
* [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;
}
/**
* The **\`AnalyserNode\`** interface represents a node able to provide real-time frequency and time-domain analysis information.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode)
*/
interface AnalyserNode extends AudioNode {
/**
* The **\`fftSize\`** property of the AnalyserNode interface is an unsigned long value and represents the window size in samples that is used when performing a Fast Fourier Transform (FFT) to get frequency domain data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize)
*/
fftSize: number;
/**
* The **\`frequencyBinCount\`** read-only property of the AnalyserNode interface contains the total number of data points available to AudioContext BaseAudioContext.sampleRate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount)
*/
readonly frequencyBinCount: number;
/**
* The **\`maxDecibels\`** property of the AnalyserNode interface is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values \u2014 basically, this specifies the maximum value for the range of results when using \`getByteFrequencyData()\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels)
*/
maxDecibels: number;
/**
* The **\`minDecibels\`** property of the AnalyserNode interface is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values \u2014 basically, this specifies the minimum value for the range of results when using \`getByteFrequencyData()\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels)
*/
minDecibels: number;
/**
* The **\`smoothingTimeConstant\`** property of the AnalyserNode interface is a double value representing the averaging constant with the last analysis frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant)
*/
smoothingTimeConstant: number;
/**
* The **\`getByteFrequencyData()\`** method of the AnalyserNode interface copies the current frequency data into a Uint8Array (unsigned byte array) passed into it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData)
*/
getByteFrequencyData(array: Uint8Array<ArrayBuffer>): void;
/**
* The **\`getByteTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData)
*/
getByteTimeDomainData(array: Uint8Array<ArrayBuffer>): void;
/**
* The **\`getFloatFrequencyData()\`** method of the AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData)
*/
getFloatFrequencyData(array: Float32Array<ArrayBuffer>): void;
/**
* The **\`getFloatTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Float32Array array passed into it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData)
*/
getFloatTimeDomainData(array: Float32Array<ArrayBuffer>): 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": AnimationPlaybackEvent;
}
/**
* The **\`Animation\`** interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation)
*/
interface Animation extends EventTarget {
/**
* The **\`Animation.currentTime\`** property of the Web Animations API returns and sets the current time value of the animation in milliseconds, whether running or paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime)
*/
currentTime: CSSNumberish | null;
/**
* The **\`Animation.effect\`** property of the Web Animations API gets and sets the target effect of an animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect)
*/
effect: AnimationEffect | null;
/**
* The **\`Animation.finished\`** read-only property of the Web Animations API returns a Promise which resolves once the animation has finished playing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished)
*/
readonly finished: Promise<Animation>;
/**
* The **\`Animation.id\`** property of the Web Animations API returns or sets a string used to identify the 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: AnimationPlaybackEvent) => any) | null;
/**
* The read-only **\`Animation.pending\`** property of the Web Animations API indicates whether the animation is currently waiting for an asynchronous operation such as initiating playback or pausing a running animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending)
*/
readonly pending: boolean;
/**
* The read-only **\`Animation.playState\`** property of the Web Animations API returns an enumerated value describing the playback state of an animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState)
*/
readonly playState: AnimationPlayState;
/**
* The **\`Animation.playbackRate\`** property of the Web Animations API returns or sets the playback rate of the animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate)
*/
playbackRate: number;
/**
* The read-only **\`Animation.ready\`** property of the Web Animations API returns a Promise which resolves when the animation is ready to play.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready)
*/
readonly ready: Promise<Animation>;
/**
* The read-only **\`Animation.replaceState\`** property of the Web Animations API indicates whether the animation has been removed by the browser automatically after being replaced by another animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState)
*/
readonly replaceState: AnimationReplaceState;
/**
* The **\`Animation.startTime\`** property of the Animation interface is a double-precision floating-point value which indicates the scheduled time when an animation's playback should begin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime)
*/
startTime: CSSNumberish | null;
/**
* The **\`Animation.timeline\`** property of the Animation interface returns or sets the AnimationTimeline associated with this animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline)
*/
timeline: AnimationTimeline | null;
/**
* The Web Animations API's **\`cancel()\`** method of the Animation interface clears all KeyframeEffects caused by this animation and aborts its playback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel)
*/
cancel(): void;
/**
* The \`commitStyles()\` method of the Web Animations API's Animation interface writes the computed values of the animation's current styles into its target element's \`style\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles)
*/
commitStyles(): void;
/**
* The **\`finish()\`** method of the Web Animations API's Animation Interface sets the current playback time to the end of the animation corresponding to the current playback direction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish)
*/
finish(): void;
/**
* The **\`pause()\`** method of the Web Animations API's Animation interface suspends playback of the animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause)
*/
pause(): void;
/**
* The \`persist()\` method of the Web Animations API's Animation interface explicitly persists an animation, preventing it from being automatically removed when it is replaced by another animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist)
*/
persist(): void;
/**
* The **\`play()\`** method of the Web Animations API's Animation Interface starts or resumes playing of an animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play)
*/
play(): void;
/**
* The **\`Animation.reverse()\`** method of the Animation Interface reverses the playback direction, meaning the animation ends at its beginning.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse)
*/
reverse(): void;
/**
* The **\`updatePlaybackRate()\`** method of the Web Animations API's synchronizing its playback position.
*
* [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;
};
/**
* The \`AnimationEffect\` interface of the Web Animations API is an interface representing animation effects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect)
*/
interface AnimationEffect {
/**
* The \`getComputedTiming()\` method of the AnimationEffect interface returns the calculated timing properties for this animation effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming)
*/
getComputedTiming(): ComputedEffectTiming;
/**
* The \`AnimationEffect.getTiming()\` method of the AnimationEffect interface returns an object containing the timing properties for the Animation Effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming)
*/
getTiming(): EffectTiming;
/**
* The \`updateTiming()\` method of the AnimationEffect interface updates the specified timing properties for an animation effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming)
*/
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/**
* The **\`AnimationEvent\`** interface represents events providing information related to animations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)
*/
interface AnimationEvent extends Event {
/**
* The **\`AnimationEvent.animationName\`** read-only property is a string containing the value of the animation-name CSS property associated with the transition.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName)
*/
readonly animationName: string;
/**
* The **\`AnimationEvent.elapsedTime\`** read-only property is a \`float\` giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime)
*/
readonly elapsedTime: number;
/**
* The **\`AnimationEvent.pseudoElement\`** read-only property is a string, starting with \`'::'\`, containing the name of the pseudo-element the animation runs on.
*
* [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;
}
/**
* The AnimationPlaybackEvent interface of the Web Animations API represents animation events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent)
*/
interface AnimationPlaybackEvent extends Event {
/**
* The **\`currentTime\`** read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime)
*/
readonly currentTime: CSSNumberish | null;
/**
* The **\`timelineTime\`** read-only property of the AnimationPlaybackEvent interface represents the time value of the animation's AnimationTimeline at the moment the event is queued.
*
* [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;
};
/**
* The \`AnimationTimeline\` interface of the Web Animations API represents the timeline of an animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline)
*/
interface AnimationTimeline {
/**
* The **\`currentTime\`** read-only property of the Web Animations API's AnimationTimeline interface returns the timeline's current time in milliseconds, or \`null\` if the timeline is inactive.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
*/
readonly currentTime: CSSNumberish | null;
}
declare var AnimationTimeline: {
prototype: AnimationTimeline;
new(): AnimationTimeline;
};
/**
* The **\`Attr\`** interface represents one of an element's attributes as an object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr)
*/
interface Attr extends Node {
/**
* The read-only **\`localName\`** property of the Attr interface returns the _local part_ of the _qualified name_ of an attribute, that is the name of the attribute, stripped from any namespace in front of it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName)
*/
readonly localName: string;
/**
* The read-only **\`name\`** property of the Attr interface returns the _qualified name_ of an attribute, that is the name of the attribute, with the namespace prefix, if any, in front of it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name)
*/
readonly name: string;
/**
* The read-only **\`namespaceURI\`** property of the Attr interface returns the namespace URI of the attribute, or \`null\` if the element is not in a namespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI)
*/
readonly namespaceURI: string | null;
readonly ownerDocument: Document;
/**
* The read-only **\`ownerElement\`** property of the Attr interface returns the Element the attribute belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement)
*/
readonly ownerElement: Element | null;
/**
* The read-only **\`prefix\`** property of the Attr returns the namespace prefix of the attribute, or \`null\` if no prefix is specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix)
*/
readonly prefix: string | null;
/**
* The read-only **\`specified\`** property of the Attr interface always returns \`true\`.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified)
*/
readonly specified: boolean;
/**
* The **\`value\`** property of the Attr interface contains the value of the attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)
*/
value: string;
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
get textContent(): string;
set textContent(value: string | null);
}
declare var Attr: {
prototype: Attr;
new(): Attr;
};
/**
* The **\`AudioBuffer\`** interface represents a short audio asset residing in memory, created from an audio file using the BaseAudioContext/decodeAudioData method, or from raw data using BaseAudioContext/createBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer)
*/
interface AudioBuffer {
/**
* The **\`duration\`** property of the AudioBuffer interface returns a double representing the duration, in seconds, of the PCM data stored in the buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration)
*/
readonly duration: number;
/**
* The **\`length\`** property of the AudioBuffer interface returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length)
*/
readonly length: number;
/**
* The \`numberOfChannels\` property of the AudioBuffer interface returns an integer representing the number of discrete audio channels described by the PCM data stored in the buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels)
*/
readonly numberOfChannels: number;
/**
* The **\`sampleRate\`** property of the AudioBuffer interface returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate)
*/
readonly sampleRate: number;
/**
* The **\`copyFromChannel()\`** method of the channel of the \`AudioBuffer\` to a specified \`\`\`js-nolint copyFromChannel(destination, channelNumber, startInChannel) \`\`\` - \`destination\` - : A Float32Array to copy the channel's samples to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel)
*/
copyFromChannel(destination: Float32Array<ArrayBuffer>, channelNumber: number, bufferOffset?: number): void;
/**
* The \`copyToChannel()\` method of the AudioBuffer interface copies the samples to the specified channel of the \`AudioBuffer\`, from the source array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel)
*/
copyToChannel(source: Float32Array<ArrayBuffer>, channelNumber: number, bufferOffset?: number): void;
/**
* The **\`getChannelData()\`** method of the AudioBuffer Interface returns a Float32Array containing the PCM data associated with the channel, defined by the channel parameter (with 0 representing the first channel).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData)
*/
getChannelData(channel: number): Float32Array<ArrayBuffer>;
}
declare var AudioBuffer: {
prototype: AudioBuffer;
new(options: AudioBufferOptions): AudioBuffer;
};
/**
* The **\`AudioBufferSourceNode\`** interface is an AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)
*/
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
/**
* The **\`buffer\`** property of the AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer)
*/
buffer: AudioBuffer | null;
/**
* The **\`detune\`** property of the representing detuning of oscillation in cents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune)
*/
readonly detune: AudioParam;
/**
* The \`loop\` property of the AudioBufferSourceNode interface is a Boolean indicating if the audio asset must be replayed when the end of the AudioBuffer is reached.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop)
*/
loop: boolean;
/**
* The \`loopEnd\` property of the AudioBufferSourceNode interface specifies is a floating point number specifying, in seconds, at what offset into playing the AudioBuffer playback should loop back to the time indicated by the AudioBufferSourceNode.loopStart property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd)
*/
loopEnd: number;
/**
* The **\`loopStart\`** property of the AudioBufferSourceNode interface is a floating-point value indicating, in seconds, where in the AudioBuffer the restart of the play must happen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart)
*/
loopStart: number;
/**
* The **\`playbackRate\`** property of the AudioBufferSourceNode interface Is a k-rate AudioParam that defines the speed at which the audio asset will be played.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate)
*/
readonly playbackRate: AudioParam;
/**
* The \`start()\` method of the AudioBufferSourceNode Interface is used to schedule playback of the audio data contained in the buffer, or to begin playback immediately.
*
* [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;
};
/**
* The \`AudioContext\` interface represents 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 {
/**
* The **\`baseLatency\`** read-only property of the seconds of processing latency incurred by the \`AudioContext\` passing an audio buffer from the AudioDestinationNode \u2014 i.e., the end of the audio graph \u2014 into the host system's audio subsystem ready for playing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency)
*/
readonly baseLatency: number;
/**
* The **\`outputLatency\`** read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency)
*/
readonly outputLatency: number;
/**
* The \`close()\` method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close)
*/
close(): Promise<void>;
/**
* The \`createMediaElementSource()\` method of the AudioContext Interface is used to create a new MediaElementAudioSourceNode object, given an existing HTML audio or video element, the audio from which can then be played and manipulated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource)
*/
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
/**
* The \`createMediaStreamDestination()\` method of the AudioContext Interface is used to create a new MediaStreamAudioDestinationNode object associated with a WebRTC MediaStream representing an audio stream, which may be stored in a local file or sent to another computer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination)
*/
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
/**
* The \`createMediaStreamSource()\` method of the AudioContext Interface is used to create a new MediaStreamAudioSourceNode object, given a media stream (say, from a MediaDevices.getUserMedia instance), the audio from which can then be played and manipulated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource)
*/
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
/**
* The **\`getOutputTimestamp()\`** method of the containing two audio timestamp values relating to the current audio context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp)
*/
getOutputTimestamp(): AudioTimestamp;
/**
* The **\`resume()\`** method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume)
*/
resume(): Promise<void>;
/**
* The \`suspend()\` method of the AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process \u2014 this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.
*
* [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;
};
/**
* The **\`AudioData\`** interface of the WebCodecs API represents an audio sample.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData)
*/
interface AudioData {
/**
* The **\`duration\`** read-only property of the AudioData interface returns the duration in microseconds of this \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration)
*/
readonly duration: number;
/**
* The **\`format\`** read-only property of the AudioData interface returns the sample format of the \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format)
*/
readonly format: AudioSampleFormat | null;
/**
* The **\`numberOfChannels\`** read-only property of the AudioData interface returns the number of channels in the \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels)
*/
readonly numberOfChannels: number;
/**
* The **\`numberOfFrames\`** read-only property of the AudioData interface returns the number of frames in the \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames)
*/
readonly numberOfFrames: number;
/**
* The **\`sampleRate\`** read-only property of the AudioData interface returns the sample rate in Hz.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate)
*/
readonly sampleRate: number;
/**
* The **\`timestamp\`** read-only property of the AudioData interface returns the timestamp of this \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp)
*/
readonly timestamp: number;
/**
* The **\`allocationSize()\`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize)
*/
allocationSize(options: AudioDataCopyToOptions): number;
/**
* The **\`clone()\`** method of the AudioData interface creates a new \`AudioData\` object with reference to the same media resource as the original.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone)
*/
clone(): AudioData;
/**
* The **\`close()\`** method of the AudioData interface clears all states and releases the reference to the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close)
*/
close(): void;
/**
* The **\`copyTo()\`** method of the AudioData interface copies a plane of an \`AudioData\` object to a destination buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo)
*/
copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void;
}
declare var AudioData: {
prototype: AudioData;
new(init: AudioDataInit): AudioData;
};
interface AudioDecoderEventMap {
"dequeue": Event;
}
/**
* The **\`AudioDecoder\`** interface of the WebCodecs API decodes chunks of audio.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)
*/
interface AudioDecoder extends EventTarget {
/**
* The **\`decodeQueueSize\`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize)
*/
readonly decodeQueueSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */
ondequeue: ((this: AudioDecoder, ev: Event) => any) | null;
/**
* The **\`state\`** read-only property of the AudioDecoder interface returns the current state of the underlying codec.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state)
*/
readonly state: CodecState;
/**
* The **\`close()\`** method of the AudioDecoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close)
*/
close(): void;
/**
* The **\`configure()\`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure)
*/
configure(config: AudioDecoderConfig): void;
/**
* The **\`decode()\`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode)
*/
decode(chunk: EncodedAudioChunk): void;
/**
* The **\`flush()\`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush)
*/
flush(): Promise<void>;
/**
* The **\`reset()\`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset)
*/
reset(): void;
addEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioDecoder: {
prototype: AudioDecoder;
new(init: AudioDecoderInit): AudioDecoder;
/**
* The **\`isConfigSupported()\`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static)
*/
isConfigSupported(config: AudioDecoderConfig): Promise<AudioDecoderSupport>;
};
/**
* The \`AudioDestinationNode\` interface represents the end destination of an audio graph in a given context \u2014 usually the speakers of your device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode)
*/
interface AudioDestinationNode extends AudioNode {
/**
* The \`maxChannelCount\` property of the AudioDestinationNode interface is an \`unsigned long\` defining the maximum amount of channels that the physical device can handle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount)
*/
readonly maxChannelCount: number;
}
declare var AudioDestinationNode: {
prototype: AudioDestinationNode;
new(): AudioDestinationNode;
};
interface AudioEncoderEventMap {
"dequeue": Event;
}
/**
* The **\`AudioEncoder\`** interface of the WebCodecs API encodes AudioData objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)
*/
interface AudioEncoder extends EventTarget {
/**
* The **\`encodeQueueSize\`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize)
*/
readonly encodeQueueSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */
ondequeue: ((this: AudioEncoder, ev: Event) => any) | null;
/**
* The **\`state\`** read-only property of the AudioEncoder interface returns the current state of the underlying codec.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state)
*/
readonly state: CodecState;
/**
* The **\`close()\`** method of the AudioEncoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close)
*/
close(): void;
/**
* The **\`configure()\`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure)
*/
configure(config: AudioEncoderConfig): void;
/**
* The **\`encode()\`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode)
*/
encode(data: AudioData): void;
/**
* The **\`flush()\`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush)
*/
flush(): Promise<void>;
/**
* The **\`reset()\`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset)
*/
reset(): void;
addEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioEncoder: {
prototype: AudioEncoder;
new(init: AudioEncoderInit): AudioEncoder;
/**
* The **\`isConfigSupported()\`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static)
*/
isConfigSupported(config: AudioEncoderConfig): Promise<AudioEncoderSupport>;
};
/**
* The \`AudioListener\` interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener)
*/
interface AudioListener {
/**
* The \`forwardX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the forward direction the listener is pointing in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX)
*/
readonly forwardX: AudioParam;
/**
* The \`forwardY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the forward direction the listener is pointing in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY)
*/
readonly forwardY: AudioParam;
/**
* The \`forwardZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the forward direction the listener is pointing in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ)
*/
readonly forwardZ: AudioParam;
/**
* The \`positionX\` read-only property of the AudioListener interface is an AudioParam representing the x position of the listener in 3D cartesian space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX)
*/
readonly positionX: AudioParam;
/**
* The \`positionY\` read-only property of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY)
*/
readonly positionY: AudioParam;
/**
* The \`positionZ\` read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ)
*/
readonly positionZ: AudioParam;
/**
* The \`upX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the up direction the listener is pointing in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX)
*/
readonly upX: AudioParam;
/**
* The \`upY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the up direction the listener is pointing in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY)
*/
readonly upY: AudioParam;
/**
* The \`upZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the up direction the listener is pointing in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ)
*/
readonly upZ: AudioParam;
/**
* The \`setOrientation()\` method of the AudioListener interface defines the orientation of the listener.
* @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;
/**
* The \`setPosition()\` method of the AudioListener Interface defines the position of the listener.
* @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;
};
/**
* The **\`AudioNode\`** interface is a generic interface for representing an audio processing module.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode)
*/
interface AudioNode extends EventTarget {
/**
* The **\`channelCount\`** property of the AudioNode interface represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount)
*/
channelCount: number;
/**
* The \`channelCountMode\` property of the AudioNode interface represents an enumerated value describing the way channels must be matched between the node's inputs and outputs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode)
*/
channelCountMode: ChannelCountMode;
/**
* The **\`channelInterpretation\`** property of the AudioNode interface represents an enumerated value describing how input channels are mapped to output channels when the number of inputs/outputs is different.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation)
*/
channelInterpretation: ChannelInterpretation;
/**
* The read-only \`context\` property of the the node is participating in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context)
*/
readonly context: BaseAudioContext;
/**
* The \`numberOfInputs\` property of the AudioNode interface returns the number of inputs feeding the node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs)
*/
readonly numberOfInputs: number;
/**
* The \`numberOfOutputs\` property of the AudioNode interface returns the number of outputs coming out of the node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs)
*/
readonly numberOfOutputs: number;
/**
* The \`connect()\` method of the AudioNode interface lets you connect one of the node's outputs to a target, which may be either another \`AudioNode\` (thereby directing the sound data to the specified node) or an change the value of that parameter over time.
*
* [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;
/**
* The **\`disconnect()\`** method of the AudioNode interface lets you disconnect one or more nodes from the node on which the method is called.
*
* [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 {
automationRate: AutomationRate;
/**
* The **\`defaultValue\`** read-only property of the AudioParam interface represents the initial value of the attributes as defined by the specific AudioNode creating the \`AudioParam\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue)
*/
readonly defaultValue: number;
/**
* The **\`maxValue\`** read-only property of the AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue)
*/
readonly maxValue: number;
/**
* The **\`minValue\`** read-only property of the AudioParam interface represents the minimum possible value for the parameter's nominal (effective) range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue)
*/
readonly minValue: number;
/**
* The **\`value\`** property of the AudioParam interface gets or sets the value of this \`AudioParam\` at the current time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value)
*/
value: number;
/**
* The **\`cancelAndHoldAtTime()\`** method of the \`AudioParam\` but holds its value at a given time until further changes are made using other methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime)
*/
cancelAndHoldAtTime(cancelTime: number): AudioParam;
/**
* The \`cancelScheduledValues()\` method of the AudioParam Interface cancels all scheduled future changes to the \`AudioParam\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues)
*/
cancelScheduledValues(cancelTime: number): AudioParam;
/**
* The **\`exponentialRampToValueAtTime()\`** method of the AudioParam Interface schedules a gradual exponential change in the value of the AudioParam.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime)
*/
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
/**
* The \`linearRampToValueAtTime()\` method of the AudioParam Interface schedules a gradual linear change in the value of the \`AudioParam\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime)
*/
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
/**
* The \`setTargetAtTime()\` method of the \`AudioParam\` value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime)
*/
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
/**
* The \`setValueAtTime()\` method of the \`AudioParam\` value at a precise time, as measured against \`\`\`js-nolint setValueAtTime(value, startTime) \`\`\` - \`value\` - : A floating point number representing the value the AudioParam will change to at the given time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime)
*/
setValueAtTime(value: number, startTime: number): AudioParam;
/**
* The **\`setValueCurveAtTime()\`** method of the following a curve defined by a list of values.
*
* [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;
};
/**
* The **\`AudioParamMap\`** interface of the Web Audio API represents an iterable and read-only set of multiple audio parameters.
*
* [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 \`AudioProcessingEvent\` interface of the Web Audio API represents 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 {
/**
* The **\`inputBuffer\`** read-only property of the AudioProcessingEvent interface represents the input buffer of an audio processing event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer)
*/
readonly inputBuffer: AudioBuffer;
/**
* The **\`outputBuffer\`** read-only property of the AudioProcessingEvent interface represents the output buffer of an audio processing event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer)
*/
readonly outputBuffer: AudioBuffer;
/**
* The **\`playbackTime\`** read-only property of the AudioProcessingEvent interface represents the time when the audio will be played.
* @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;
}
/**
* The \`AudioScheduledSourceNode\` interface\u2014part of the Web Audio API\u2014is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times.
*
* [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;
/**
* The \`start()\` method on AudioScheduledSourceNode schedules a sound to begin playback at the specified time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start)
*/
start(when?: number): void;
/**
* The \`stop()\` method on AudioScheduledSourceNode schedules a sound to cease playback at the specified time.
*
* [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;
};
/**
* The **\`AudioWorklet\`** interface of the Web Audio API is used to supply custom audio processing scripts that execute in a separate thread to provide very low latency audio processing.
* 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": ErrorEvent;
}
/**
* The **\`AudioWorkletNode\`** interface of the Web Audio API represents a base class for a user-defined AudioNode, which can be connected to an audio routing graph along with other nodes.
* 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: ErrorEvent) => any) | null;
/**
* The read-only **\`parameters\`** property of the underlying AudioWorkletProcessor according to its getter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters)
*/
readonly parameters: AudioParamMap;
/**
* The read-only **\`port\`** property of the associated AudioWorkletProcessor.
*
* [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;
};
/**
* The **\`AuthenticatorAssertionResponse\`** interface of the Web Authentication API contains a digital signature from the private key of a particular WebAuthn credential.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)
*/
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
/**
* The **\`authenticatorData\`** property of the AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData)
*/
readonly authenticatorData: ArrayBuffer;
/**
* The **\`signature\`** read-only property of the object which is the signature of the authenticator for both the client data (AuthenticatorResponse.clientDataJSON).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature)
*/
readonly signature: ArrayBuffer;
/**
* The **\`userHandle\`** read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object providing an opaque identifier for the given user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle)
*/
readonly userHandle: ArrayBuffer | null;
}
declare var AuthenticatorAssertionResponse: {
prototype: AuthenticatorAssertionResponse;
new(): AuthenticatorAssertionResponse;
};
/**
* The **\`AuthenticatorAttestationResponse\`** interface of the Web Authentication API is the result of a WebAuthn credential registration.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)
*/
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
/**
* The **\`attestationObject\`** property of the entire \`attestationObject\` with a private key that is stored in the authenticator when it is manufactured.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject)
*/
readonly attestationObject: ArrayBuffer;
/**
* The **\`getAuthenticatorData()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the authenticator data contained within the AuthenticatorAttestationResponse.attestationObject property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData)
*/
getAuthenticatorData(): ArrayBuffer;
/**
* The **\`getPublicKey()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the DER \`SubjectPublicKeyInfo\` of the new credential (see Subject Public Key Info), or \`null\` if this is not available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey)
*/
getPublicKey(): ArrayBuffer | null;
/**
* The **\`getPublicKeyAlgorithm()\`** method of the AuthenticatorAttestationResponse interface returns a number that is equal to a COSE Algorithm Identifier, representing the cryptographic algorithm used for the new credential.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm)
*/
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
/**
* The **\`getTransports()\`** method of the AuthenticatorAttestationResponse interface returns an array of strings describing the different transports which may be used by the authenticator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports)
*/
getTransports(): string[];
}
declare var AuthenticatorAttestationResponse: {
prototype: AuthenticatorAttestationResponse;
new(): AuthenticatorAttestationResponse;
};
/**
* The **\`AuthenticatorResponse\`** interface of the Web Authentication API is the base interface for interfaces that provide a cryptographic root of trust for a key pair.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)
*/
interface AuthenticatorResponse {
/**
* The **\`clientDataJSON\`** property of the AuthenticatorResponse interface stores a JSON string in an An ArrayBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON)
*/
readonly clientDataJSON: ArrayBuffer;
}
declare var AuthenticatorResponse: {
prototype: AuthenticatorResponse;
new(): AuthenticatorResponse;
};
/**
* The **\`BarProp\`** interface of the Document Object Model represents the web browser user interface elements that are exposed to scripts in web pages.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp)
*/
interface BarProp {
/**
* The **\`visible\`** read-only property of the BarProp interface returns \`true\` if the user interface element it represents is visible.
*
* [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;
}
/**
* The \`BaseAudioContext\` interface of the Web Audio API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext)
*/
interface BaseAudioContext extends EventTarget {
/**
* The \`audioWorklet\` read-only property of the processing.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet)
*/
readonly audioWorklet: AudioWorklet;
/**
* The \`currentTime\` read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime)
*/
readonly currentTime: number;
/**
* The \`destination\` property of the BaseAudioContext interface returns an AudioDestinationNode representing the final destination of all audio in the context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination)
*/
readonly destination: AudioDestinationNode;
/**
* The \`listener\` property of the BaseAudioContext interface returns an AudioListener object that can then be used for implementing 3D audio spatialization.
*
* [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;
/**
* The \`sampleRate\` property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate)
*/
readonly sampleRate: number;
/**
* The \`state\` read-only property of the BaseAudioContext interface returns the current state of the \`AudioContext\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state)
*/
readonly state: AudioContextState;
/**
* The \`createAnalyser()\` method of the can be used to expose audio time and frequency data and create data visualizations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser)
*/
createAnalyser(): AnalyserNode;
/**
* The \`createBiquadFilter()\` method of the BaseAudioContext interface creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter types.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter)
*/
createBiquadFilter(): BiquadFilterNode;
/**
* The \`createBuffer()\` method of the BaseAudioContext Interface is used to create a new, empty AudioBuffer object, which can then be populated by data, and played via an AudioBufferSourceNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer)
*/
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
/**
* The \`createBufferSource()\` method of the BaseAudioContext Interface is used to create a new AudioBufferSourceNode, which can be used to play audio data contained within an AudioBuffer object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource)
*/
createBufferSource(): AudioBufferSourceNode;
/**
* The \`createChannelMerger()\` method of the BaseAudioContext interface creates a ChannelMergerNode, which combines channels from multiple audio streams into a single audio stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger)
*/
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
/**
* The \`createChannelSplitter()\` method of the BaseAudioContext Interface is used to create a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them separately.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter)
*/
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
/**
* The **\`createConstantSource()\`** property of the BaseAudioContext interface creates a outputs a monaural (one-channel) sound signal whose samples all have the same value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource)
*/
createConstantSource(): ConstantSourceNode;
/**
* The \`createConvolver()\` method of the BaseAudioContext interface creates a ConvolverNode, which is commonly used to apply reverb effects to your audio.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver)
*/
createConvolver(): ConvolverNode;
/**
* The \`createDelay()\` method of the which is used to delay the incoming audio signal by a certain amount of time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay)
*/
createDelay(maxDelayTime?: number): DelayNode;
/**
* The \`createDynamicsCompressor()\` method of the BaseAudioContext Interface is used to create a DynamicsCompressorNode, which can be used to apply compression to an audio signal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor)
*/
createDynamicsCompressor(): DynamicsCompressorNode;
/**
* The \`createGain()\` method of the BaseAudioContext interface creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain)
*/
createGain(): GainNode;
/**
* The **\`createIIRFilter()\`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
*/
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
/**
* The \`createOscillator()\` method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator)
*/
createOscillator(): OscillatorNode;
/**
* The \`createPanner()\` method of the BaseAudioContext Interface is used to create a new PannerNode, which is used to spatialize an incoming audio stream in 3D space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner)
*/
createPanner(): PannerNode;
/**
* The \`createPeriodicWave()\` method of the BaseAudioContext interface is used to create a PeriodicWave.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)
*/
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
/**
* The \`createScriptProcessor()\` method of the BaseAudioContext interface creates a ScriptProcessorNode used for direct audio processing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor)
*/
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
/**
* The \`createStereoPanner()\` method of the BaseAudioContext interface creates a StereoPannerNode, which can be used to apply stereo panning to an audio source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner)
*/
createStereoPanner(): StereoPannerNode;
/**
* The \`createWaveShaper()\` method of the BaseAudioContext interface creates a WaveShaperNode, which represents a non-linear distortion.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper)
*/
createWaveShaper(): WaveShaperNode;
/**
* The \`decodeAudioData()\` method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an rate, then passed to a callback or promise.
*
* [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 **\`BeforeUnloadEvent\`** interface represents the event object for the Window/beforeunload_event event, which is fired when the current window, contained document, and associated resources are about to be unloaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)
*/
interface BeforeUnloadEvent extends Event {
/**
* The **\`returnValue\`** property of the \`returnValue\` is initialized to an empty string (\`''\`) value.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue)
*/
returnValue: any;
}
declare var BeforeUnloadEvent: {
prototype: BeforeUnloadEvent;
new(): BeforeUnloadEvent;
};
/**
* The \`BiquadFilterNode\` interface represents a simple low-order filter, and is created using the BaseAudioContext/createBiquadFilter method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)
*/
interface BiquadFilterNode extends AudioNode {
/**
* The \`Q\` property of the BiquadFilterNode interface is an a-rate AudioParam, a double representing a Q factor, or _quality factor_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q)
*/
readonly Q: AudioParam;
/**
* The \`detune\` property of the BiquadFilterNode interface is an a-rate AudioParam representing detuning of the frequency in cents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune)
*/
readonly detune: AudioParam;
/**
* The \`frequency\` property of the BiquadFilterNode interface is an a-rate AudioParam \u2014 a double representing a frequency in the current filtering algorithm measured in hertz (Hz).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency)
*/
readonly frequency: AudioParam;
/**
* The \`gain\` property of the BiquadFilterNode interface is an a-rate AudioParam \u2014 a double representing the gain used in the current filtering algorithm.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain)
*/
readonly gain: AudioParam;
/**
* The \`type\` property of the BiquadFilterNode interface is a string (enum) value defining the kind of filtering algorithm the node is implementing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type)
*/
type: BiquadFilterType;
/**
* The \`getFrequencyResponse()\` method of the BiquadFilterNode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse)
*/
getFrequencyResponse(frequencyHz: Float32Array<ArrayBuffer>, magResponse: Float32Array<ArrayBuffer>, phaseResponse: Float32Array<ArrayBuffer>): void;
}
declare var BiquadFilterNode: {
prototype: BiquadFilterNode;
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
};
/**
* The **\`Blob\`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
*/
interface Blob {
/**
* The **\`size\`** read-only property of the Blob interface returns the size of the Blob or File in bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)
*/
readonly size: number;
/**
* The **\`type\`** read-only property of the Blob interface returns the MIME type of the file.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)
*/
readonly type: string;
/**
* The **\`arrayBuffer()\`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)
*/
arrayBuffer(): Promise<ArrayBuffer>;
/**
* The **\`bytes()\`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)
*/
bytes(): Promise<Uint8Array<ArrayBuffer>>;
/**
* The **\`slice()\`** method of the Blob interface creates and returns a new \`Blob\` object which contains data from a subset of the blob on which it's called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)
*/
slice(start?: number, end?: number, contentType?: string): Blob;
/**
* The **\`stream()\`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the \`Blob\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)
*/
stream(): ReadableStream<Uint8Array<ArrayBuffer>>;
/**
* The **\`text()\`** method of the string containing the contents of the blob, interpreted as UTF-8.
*
* [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;
};
/**
* The **\`BlobEvent\`** interface of the MediaStream Recording API represents events associated with a Blob.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent)
*/
interface BlobEvent extends Event {
/**
* The **\`data\`** read-only property of the BlobEvent interface represents a Blob associated with the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data)
*/
readonly data: Blob;
/**
* The **\`timecode\`** read-only property of the BlobEvent interface indicates the difference between the timestamp of the first chunk of data, and the timestamp of the first chunk in the first \`BlobEvent\` produced by this recorder.
*
* [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<ArrayBuffer>> | 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/bytes) */
bytes(): Promise<Uint8Array<ArrayBuffer>>;
/** [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;
}
/**
* The **\`BroadcastChannel\`** interface represents a named channel that any browsing context of a given origin can subscribe to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel)
*/
interface BroadcastChannel extends EventTarget {
/**
* The **\`name\`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name.
*
* [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;
/**
* The **\`close()\`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
*/
close(): void;
/**
* The **\`postMessage()\`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.
*
* [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;
};
/**
* The **\`ByteLengthQueuingStrategy\`** interface of the Streams API 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> {
/**
* The read-only **\`ByteLengthQueuingStrategy.highWaterMark\`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
*
* [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;
};
/**
* The **\`CDATASection\`** interface represents a CDATA section that can be used within XML to include extended portions of unescaped text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection)
*/
interface CDATASection extends Text {
}
declare var CDATASection: {
prototype: CDATASection;
new(): CDATASection;
};
/**
* The \`CSPViolationReportBody\` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody)
*/
interface CSPViolationReportBody extends ReportBody {
/**
* The **\`blockedURL\`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL)
*/
readonly blockedURL: string | null;
/**
* The **\`columnNumber\`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber)
*/
readonly columnNumber: number | null;
/**
* The **\`disposition\`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition)
*/
readonly disposition: SecurityPolicyViolationEventDisposition;
/**
* The **\`documentURL\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL)
*/
readonly documentURL: string;
/**
* The **\`effectiveDirective\`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective)
*/
readonly effectiveDirective: string;
/**
* The **\`lineNumber\`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber)
*/
readonly lineNumber: number | null;
/**
* The **\`originalPolicy\`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy)
*/
readonly originalPolicy: string;
/**
* The **\`referrer\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer)
*/
readonly referrer: string | null;
/**
* The **\`sample\`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample)
*/
readonly sample: string | null;
/**
* The **\`sourceFile\`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile)
*/
readonly sourceFile: string | null;
/**
* The **\`statusCode\`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode)
*/
readonly statusCode: number;
/**
* The **\`toJSON()\`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the \`CSPViolationReportBody\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON)
*/
toJSON(): any;
}
declare var CSPViolationReportBody: {
prototype: CSPViolationReportBody;
new(): CSPViolationReportBody;
};
/**
* The **\`CSSAnimation\`** interface of the Web Animations API represents an Animation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation)
*/
interface CSSAnimation extends Animation {
/**
* The **\`animationName\`** property of the specifies one or more keyframe at-rules which describe the animation applied to the element.
*
* [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;
};
/**
* An object implementing the **\`CSSConditionRule\`** interface represents a single condition CSS at-rule, which consists of a condition and a statement block.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule)
*/
interface CSSConditionRule extends CSSGroupingRule {
/**
* The read-only **\`conditionText\`** property of the CSSConditionRule interface returns or sets the text of the CSS rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText)
*/
readonly conditionText: string;
}
declare var CSSConditionRule: {
prototype: CSSConditionRule;
new(): CSSConditionRule;
};
/**
* The **\`CSSContainerRule\`** interface represents a single CSS @container rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule)
*/
interface CSSContainerRule extends CSSConditionRule {
/**
* The read-only **\`containerName\`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName)
*/
readonly containerName: string;
/**
* The read-only **\`containerQuery\`** property of the CSSContainerRule interface returns a string representing the container conditions that are evaluated when the container changes size in order to determine if the styles in the associated @container are applied.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery)
*/
readonly containerQuery: string;
}
declare var CSSContainerRule: {
prototype: CSSContainerRule;
new(): CSSContainerRule;
};
/**
* The **\`CSSCounterStyleRule\`** interface represents an @counter-style at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule)
*/
interface CSSCounterStyleRule extends CSSRule {
/**
* The **\`additiveSymbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/additive-symbols descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols)
*/
additiveSymbols: string;
/**
* The **\`fallback\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/fallback descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback)
*/
fallback: string;
/**
* The **\`name\`** property of the CSSCounterStyleRule interface gets and sets the &lt;custom-ident&gt; defined as the \`name\` for the associated rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name)
*/
name: string;
/**
* The **\`negative\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/negative descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative)
*/
negative: string;
/**
* The **\`pad\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/pad descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad)
*/
pad: string;
/**
* The **\`prefix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/prefix descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix)
*/
prefix: string;
/**
* The **\`range\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/range descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range)
*/
range: string;
/**
* The **\`speakAs\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/speak-as descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs)
*/
speakAs: string;
/**
* The **\`suffix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/suffix descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix)
*/
suffix: string;
/**
* The **\`symbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/symbols descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols)
*/
symbols: string;
/**
* The **\`system\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/system descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system)
*/
system: string;
}
declare var CSSCounterStyleRule: {
prototype: CSSCounterStyleRule;
new(): CSSCounterStyleRule;
};
/**
* The **\`CSSFontFaceRule\`** interface represents an @font-face at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule)
*/
interface CSSFontFaceRule extends CSSRule {
/**
* The read-only **\`style\`** property of the CSSFontFaceRule interface returns the style information from the @font-face at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
*/
get style(): CSSStyleDeclaration;
set style(cssText: string);
}
declare var CSSFontFaceRule: {
prototype: CSSFontFaceRule;
new(): CSSFontFaceRule;
};
/**
* The **\`CSSFontFeatureValuesRule\`** interface represents an @font-feature-values at-rule, letting developers assign for each font face a common name to specify features indices to be used in font-variant-alternates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule)
*/
interface CSSFontFeatureValuesRule extends CSSRule {
/**
* The **\`fontFamily\`** property of the CSSConditionRule interface represents the name of the font family it applies to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)
*/
fontFamily: string;
}
declare var CSSFontFeatureValuesRule: {
prototype: CSSFontFeatureValuesRule;
new(): CSSFontFeatureValuesRule;
};
/**
* The **\`CSSFontPaletteValuesRule\`** interface represents an @font-palette-values at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule)
*/
interface CSSFontPaletteValuesRule extends CSSRule {
/**
* The read-only **\`basePalette\`** property of the CSSFontPaletteValuesRule interface indicates the base palette associated with the rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette)
*/
readonly basePalette: string;
/**
* The read-only **\`fontFamily\`** property of the CSSFontPaletteValuesRule interface lists the font families the rule can be applied to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily)
*/
readonly fontFamily: string;
/**
* The read-only **\`name\`** property of the CSSFontPaletteValuesRule interface represents the name identifying the associated @font-palette-values at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name)
*/
readonly name: string;
/**
* The read-only **\`overrideColors\`** property of the CSSFontPaletteValuesRule interface is a string containing a list of color index and color pair that are to be used instead.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors)
*/
readonly overrideColors: string;
}
declare var CSSFontPaletteValuesRule: {
prototype: CSSFontPaletteValuesRule;
new(): CSSFontPaletteValuesRule;
};
/**
* The **\`CSSGroupingRule\`** interface of the CSS Object Model represents 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 {
/**
* The **\`cssRules\`** property of the a collection of CSSRule objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules)
*/
readonly cssRules: CSSRuleList;
/**
* The **\`deleteRule()\`** method of the rules.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule)
*/
deleteRule(index: number): void;
/**
* The **\`insertRule()\`** method of the \`\`\`js-nolint insertRule(rule) insertRule(rule, index) \`\`\` - \`rule\` - : A string - \`index\` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule)
*/
insertRule(rule: string, index?: number): number;
}
declare var CSSGroupingRule: {
prototype: CSSGroupingRule;
new(): CSSGroupingRule;
};
/**
* The **\`CSSImageValue\`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue)
*/
interface CSSImageValue extends CSSStyleValue {
}
declare var CSSImageValue: {
prototype: CSSImageValue;
new(): CSSImageValue;
};
/**
* The **\`CSSImportRule\`** interface represents an @import at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule)
*/
interface CSSImportRule extends CSSRule {
/**
* The read-only **\`href\`** property of the The resolved URL will be the \`href\` attribute of the associated stylesheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href)
*/
readonly href: string;
/**
* The read-only **\`layerName\`** property of the CSSImportRule interface returns the name of the cascade layer created by the @import at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName)
*/
readonly layerName: string | null;
/**
* The read-only **\`media\`** property of the containing the value of the \`media\` attribute of the associated stylesheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media)
*/
get media(): MediaList;
set media(mediaText: string);
/**
* The read-only **\`styleSheet\`** property of the in the form of a CSSStyleSheet object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet)
*/
readonly styleSheet: CSSStyleSheet | null;
/**
* The read-only **\`supportsText\`** property of the CSSImportRule interface returns the supports condition specified by the @import at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText)
*/
readonly supportsText: string | null;
}
declare var CSSImportRule: {
prototype: CSSImportRule;
new(): CSSImportRule;
};
/**
* The **\`CSSKeyframeRule\`** interface describes an object representing a set of styles for a given keyframe.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule)
*/
interface CSSKeyframeRule extends CSSRule {
/**
* The **\`keyText\`** property of the CSSKeyframeRule interface represents the keyframe selector as a comma-separated list of percentage values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText)
*/
keyText: string;
/**
* The read-only **\`CSSKeyframeRule.style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSKeyframeRule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
*/
get style(): CSSStyleDeclaration;
set style(cssText: string);
}
declare var CSSKeyframeRule: {
prototype: CSSKeyframeRule;
new(): CSSKeyframeRule;
};
/**
* The **\`CSSKeyframesRule\`** interface describes an object representing a complete set of keyframes for a CSS animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule)
*/
interface CSSKeyframesRule extends CSSRule {
/**
* The read-only **\`cssRules\`** property of the CSSKeyframeRule interface returns a CSSRuleList containing the rules in the keyframes at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules)
*/
readonly cssRules: CSSRuleList;
/**
* The read-only **\`length\`** property of the CSSKeyframeRule interface returns the number of CSSKeyframeRule objects in its list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length)
*/
readonly length: number;
/**
* The **\`name\`** property of the CSSKeyframeRule interface gets and sets the name of the animation as used by the animation-name property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name)
*/
name: string;
/**
* The **\`appendRule()\`** method of the CSSKeyframeRule interface appends a CSSKeyFrameRule to the end of the rules.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule)
*/
appendRule(rule: string): void;
/**
* The **\`deleteRule()\`** method of the CSSKeyframeRule interface deletes the CSSKeyFrameRule that matches the specified keyframe selector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule)
*/
deleteRule(select: string): void;
/**
* The **\`findRule()\`** method of the CSSKeyframeRule interface finds the CSSKeyFrameRule that matches the specified keyframe selector.
*
* [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;
};
/**
* The **\`CSSKeywordValue\`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue)
*/
interface CSSKeywordValue extends CSSStyleValue {
/**
* The **\`value\`** property of the \`CSSKeywordValue\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value)
*/
value: string;
}
declare var CSSKeywordValue: {
prototype: CSSKeywordValue;
new(value: string): CSSKeywordValue;
};
/**
* The **\`CSSLayerBlockRule\`** represents a @layer block rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule)
*/
interface CSSLayerBlockRule extends CSSGroupingRule {
/**
* The read-only **\`name\`** property of the CSSLayerBlockRule interface represents the name of the associated cascade layer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name)
*/
readonly name: string;
}
declare var CSSLayerBlockRule: {
prototype: CSSLayerBlockRule;
new(): CSSLayerBlockRule;
};
/**
* The **\`CSSLayerStatementRule\`** represents a @layer statement rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule)
*/
interface CSSLayerStatementRule extends CSSRule {
/**
* The read-only **\`nameList\`** property of the CSSLayerStatementRule interface return the list of associated cascade layer names.
*
* [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;
};
/**
* The **\`CSSMathInvert\`** interface of the CSS Typed Object Model API represents a CSS calc used as \`calc(1 / <value>)\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
*/
interface CSSMathInvert extends CSSMathValue {
/**
* The CSSMathInvert.value read-only property of the A CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value)
*/
readonly value: CSSNumericValue;
}
declare var CSSMathInvert: {
prototype: CSSMathInvert;
new(arg: CSSNumberish): CSSMathInvert;
};
/**
* The **\`CSSMathMax\`** interface of the CSS Typed Object Model API represents the CSS max function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax)
*/
interface CSSMathMax extends CSSMathValue {
/**
* The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values)
*/
readonly values: CSSNumericArray;
}
declare var CSSMathMax: {
prototype: CSSMathMax;
new(...args: CSSNumberish[]): CSSMathMax;
};
/**
* The **\`CSSMathMin\`** interface of the CSS Typed Object Model API represents the CSS min function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin)
*/
interface CSSMathMin extends CSSMathValue {
/**
* The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values)
*/
readonly values: CSSNumericArray;
}
declare var CSSMathMin: {
prototype: CSSMathMin;
new(...args: CSSNumberish[]): CSSMathMin;
};
/**
* The **\`CSSMathNegate\`** interface of the CSS Typed Object Model API negates the value passed into it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate)
*/
interface CSSMathNegate extends CSSMathValue {
/**
* The CSSMathNegate.value read-only property of the A CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value)
*/
readonly value: CSSNumericValue;
}
declare var CSSMathNegate: {
prototype: CSSMathNegate;
new(arg: CSSNumberish): CSSMathNegate;
};
/**
* The **\`CSSMathProduct\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct)
*/
interface CSSMathProduct extends CSSMathValue {
/**
* The **\`CSSMathProduct.values\`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values)
*/
readonly values: CSSNumericArray;
}
declare var CSSMathProduct: {
prototype: CSSMathProduct;
new(...args: CSSNumberish[]): CSSMathProduct;
};
/**
* The **\`CSSMathSum\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum)
*/
interface CSSMathSum extends CSSMathValue {
/**
* The **\`CSSMathSum.values\`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values)
*/
readonly values: CSSNumericArray;
}
declare var CSSMathSum: {
prototype: CSSMathSum;
new(...args: CSSNumberish[]): CSSMathSum;
};
/**
* The **\`CSSMathValue\`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue)
*/
interface CSSMathValue extends CSSNumericValue {
/**
* The **\`CSSMathValue.operator\`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator)
*/
readonly operator: CSSMathOperator;
}
declare var CSSMathValue: {
prototype: CSSMathValue;
new(): CSSMathValue;
};
/**
* The **\`CSSMatrixComponent\`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent)
*/
interface CSSMatrixComponent extends CSSTransformComponent {
/**
* The **\`matrix\`** property of the See the matrix() and matrix3d() pages for examples.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix)
*/
matrix: DOMMatrix;
}
declare var CSSMatrixComponent: {
prototype: CSSMatrixComponent;
new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};
/**
* The **\`CSSMediaRule\`** interface represents a single CSS @media rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule)
*/
interface CSSMediaRule extends CSSConditionRule {
/**
* The read-only **\`media\`** property of the destination medium for style information.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media)
*/
get media(): MediaList;
set media(mediaText: string);
}
declare var CSSMediaRule: {
prototype: CSSMediaRule;
new(): CSSMediaRule;
};
/**
* The **\`CSSNamespaceRule\`** interface describes an object representing a single CSS @namespace at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule)
*/
interface CSSNamespaceRule extends CSSRule {
/**
* The read-only **\`namespaceURI\`** property of the CSSNamespaceRule returns a string containing the text of the URI of the given namespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI)
*/
readonly namespaceURI: string;
/**
* The read-only **\`prefix\`** property of the CSSNamespaceRule returns a string with the name of the prefix associated to this namespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix)
*/
readonly prefix: string;
}
declare var CSSNamespaceRule: {
prototype: CSSNamespaceRule;
new(): CSSNamespaceRule;
};
/**
* The **\`CSSNestedDeclarations\`** interface of the CSS Rule API is used to group nested CSSRules.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations)
*/
interface CSSNestedDeclarations extends CSSRule {
/**
* The read-only **\`style\`** property of the CSSNestedDeclarations interface represents the styles associated with the nested rules.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
*/
get style(): CSSStyleDeclaration;
set style(cssText: string);
}
declare var CSSNestedDeclarations: {
prototype: CSSNestedDeclarations;
new(): CSSNestedDeclarations;
};
/**
* The **\`CSSNumericArray\`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray)
*/
interface CSSNumericArray {
/**
* The read-only **\`length\`** property of the An integer representing the number of CSSNumericValue objects in the list.
*
* [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;
};
/**
* The **\`CSSNumericValue\`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue)
*/
interface CSSNumericValue extends CSSStyleValue {
/**
* The **\`add()\`** method of the \`CSSNumericValue\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add)
*/
add(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`div()\`** method of the supplied value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div)
*/
div(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`equals()\`** method of the value are strictly equal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals)
*/
equals(...value: CSSNumberish[]): boolean;
/**
* The **\`max()\`** method of the passed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max)
*/
max(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`min()\`** method of the values passed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min)
*/
min(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`mul()\`** method of the the supplied value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul)
*/
mul(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`sub()\`** method of the \`CSSNumericValue\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub)
*/
sub(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`to()\`** method of the another.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to)
*/
to(unit: string): CSSUnitValue;
/**
* The **\`toSum()\`** method of the \`\`\`js-nolint toSum(units) \`\`\` - \`units\` - : The units to convert to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum)
*/
toSum(...units: string[]): CSSMathSum;
/**
* The **\`type()\`** method of the \`CSSNumericValue\`, one of \`angle\`, \`flex\`, \`frequency\`, \`length\`, \`resolution\`, \`percent\`, \`percentHint\`, or \`time\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type)
*/
type(): CSSNumericType;
}
declare var CSSNumericValue: {
prototype: CSSNumericValue;
new(): CSSNumericValue;
/**
* The **\`parse()\`** static method of the members are value and the units.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static)
*/
parse(cssText: string): CSSNumericValue;
};
/**
* **\`CSSPageRule\`** represents a single CSS @page rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule)
*/
interface CSSPageRule extends CSSGroupingRule {
/**
* The **\`selectorText\`** property of the CSSPageRule interface gets and sets the selectors associated with the \`CSSPageRule\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText)
*/
selectorText: string;
/**
* The **\`style\`** read-only property of the CSSPageRule interface returns a CSSPageDescriptors object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style)
*/
get style(): CSSStyleDeclaration;
set style(cssText: string);
}
declare var CSSPageRule: {
prototype: CSSPageRule;
new(): CSSPageRule;
};
/**
* The **\`CSSPerspective\`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective)
*/
interface CSSPerspective extends CSSTransformComponent {
/**
* The **\`length\`** property of the It is used to apply a perspective transform to the element and its content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length)
*/
length: CSSPerspectiveValue;
}
declare var CSSPerspective: {
prototype: CSSPerspective;
new(length: CSSPerspectiveValue): CSSPerspective;
};
/**
* The **\`CSSPropertyRule\`** interface of the CSS Properties and Values API represents a single CSS @property rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule)
*/
interface CSSPropertyRule extends CSSRule {
/**
* The read-only **\`inherits\`** property of the CSSPropertyRule interface returns the inherit flag of the custom property registration represented by the @property rule, a boolean describing whether or not the property inherits by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits)
*/
readonly inherits: boolean;
/**
* The read-only **\`initialValue\`** nullable property of the CSSPropertyRule interface returns the initial value of the custom property registration represented by the @property rule, controlling the property's initial value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue)
*/
readonly initialValue: string | null;
/**
* The read-only **\`name\`** property of the CSSPropertyRule interface represents the property name, this being the serialization of the name given to the custom property in the @property rule's prelude.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name)
*/
readonly name: string;
/**
* The read-only **\`syntax\`** property of the CSSPropertyRule interface returns the literal syntax of the custom property registration represented by the @property rule, controlling how the property's value is parsed at computed-value time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax)
*/
readonly syntax: string;
}
declare var CSSPropertyRule: {
prototype: CSSPropertyRule;
new(): CSSPropertyRule;
};
/**
* The **\`CSSRotate\`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate)
*/
interface CSSRotate extends CSSTransformComponent {
/**
* The **\`angle\`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle)
*/
angle: CSSNumericValue;
/**
* The **\`x\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x)
*/
x: CSSNumberish;
/**
* The **\`y\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y)
*/
y: CSSNumberish;
/**
* The **\`z\`** property of the vector.
*
* [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;
};
/**
* The **\`CSSRule\`** interface represents a single CSS rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule)
*/
interface CSSRule {
/**
* The **\`cssText\`** property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText)
*/
cssText: string;
/**
* The **\`parentRule\`** property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule)
*/
readonly parentRule: CSSRule | null;
/**
* The **\`parentStyleSheet\`** property of the the current rule is defined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet)
*/
readonly parentStyleSheet: CSSStyleSheet | null;
/**
* The read-only **\`type\`** property of the indicating which type of rule the CSSRule represents.
* @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\` represents an ordered collection of read-only CSSRule objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList)
*/
interface CSSRuleList {
/**
* The **\`length\`** property of the CSSRuleList interface returns the number of CSSRule objects in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length)
*/
readonly length: number;
/**
* The **\`item()\`** method of the CSSRuleList interface returns the CSSRule object at the specified \`index\` or \`null\` if the specified \`index\` doesn't exist.
*
* [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;
};
/**
* The **\`CSSScale\`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale)
*/
interface CSSScale extends CSSTransformComponent {
/**
* The **\`x\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x)
*/
x: CSSNumberish;
/**
* The **\`y\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y)
*/
y: CSSNumberish;
/**
* The **\`z\`** property of the vector.
*
* [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;
};
/**
* The **\`CSSScopeRule\`** interface of the CSS Object Model represents a CSS @scope at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule)
*/
interface CSSScopeRule extends CSSGroupingRule {
/**
* The **\`end\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope limit.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end)
*/
readonly end: string | null;
/**
* The **\`start\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope root.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start)
*/
readonly start: string | null;
}
declare var CSSScopeRule: {
prototype: CSSScopeRule;
new(): CSSScopeRule;
};
/**
* The **\`CSSSkew\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew)
*/
interface CSSSkew extends CSSTransformComponent {
/**
* The **\`ax\`** property of the along the x-axis (or abscissa).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax)
*/
ax: CSSNumericValue;
/**
* The **\`ay\`** property of the along the y-axis (or ordinate).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay)
*/
ay: CSSNumericValue;
}
declare var CSSSkew: {
prototype: CSSSkew;
new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};
/**
* The **\`CSSSkewX\`** interface of the CSS Typed Object Model API represents the \`skewX()\` value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX)
*/
interface CSSSkewX extends CSSTransformComponent {
/**
* The **\`ax\`** property of the along the x-axis (or abscissa).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax)
*/
ax: CSSNumericValue;
}
declare var CSSSkewX: {
prototype: CSSSkewX;
new(ax: CSSNumericValue): CSSSkewX;
};
/**
* The **\`CSSSkewY\`** interface of the CSS Typed Object Model API represents the \`skewY()\` value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY)
*/
interface CSSSkewY extends CSSTransformComponent {
/**
* The **\`ay\`** property of the along the y-axis (or ordinate).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay)
*/
ay: CSSNumericValue;
}
declare var CSSSkewY: {
prototype: CSSSkewY;
new(ay: CSSNumericValue): CSSSkewY;
};
/**
* The **\`CSSStartingStyleRule\`** interface of the CSS Object Model represents a CSS @starting-style at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule)
*/
interface CSSStartingStyleRule extends CSSGroupingRule {
}
declare var CSSStartingStyleRule: {
prototype: CSSStartingStyleRule;
new(): CSSStartingStyleRule;
};
/**
* The **\`CSSStyleDeclaration\`** interface represents 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/alignment-baseline) */
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;
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-decoration-break) */
boxDecorationBreak: 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */
clipRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
color: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */
colorInterpolation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */
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-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-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/content-visibility) */
contentVisibility: 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;
/**
* The **\`cssText\`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
*
* [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */
cx: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */
cy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */
dominantBaseline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */
emptyCells: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */
fill: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */
fillOpacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */
floodColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */
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;
/**
* @deprecated
*
* [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/hyphenate-limit-chars) */
hyphenateLimitChars: 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;
/**
* The read-only property returns an integer that represents the number of style declarations in this CSS declaration block.
*
* [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */
marker: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */
markerEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */
markerMid: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */
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-block) */
overflowBlock: 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-inline) */
overflowInline: 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;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after)
*/
pageBreakAfter: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before)
*/
pageBreakBefore: string;
/**
* @deprecated
*
* [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;
/**
* The **CSSStyleDeclaration.parentRule** read-only property returns a CSSRule that is the parent of this style block, e.g., a CSSStyleRule representing the style for a CSS selector.
*
* [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */
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-align) */
rubyAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */
rubyPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */
rx: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */
shapeRendering: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */
stopColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */
stopOpacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */
stroke: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */
strokeDasharray: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */
strokeDashoffset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */
strokeLinecap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */
strokeLinejoin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */
strokeMiterlimit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */
strokeOpacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */
textAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */
textBox: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */
textBoxEdge: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-trim) */
textBoxTrim: 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/text-wrap-mode) */
textWrapMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */
textWrapStyle: 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-behavior) */
transitionBehavior: 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */
vectorEffect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
verticalAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */
viewTransitionClass: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
viewTransitionName: 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/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/white-space-collapse) */
whiteSpaceCollapse: 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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap)
*/
wordWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */
writingMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */
x: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */
y: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
zIndex: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */
zoom: string;
/**
* The **CSSStyleDeclaration.getPropertyPriority()** method interface returns a string that provides all explicitly set priorities on the CSS property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority)
*/
getPropertyPriority(property: string): string;
/**
* The **CSSStyleDeclaration.getPropertyValue()** method interface returns a string containing the value of a specified CSS property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue)
*/
getPropertyValue(property: string): string;
/**
* The \`CSSStyleDeclaration.item()\` method interface returns a CSS property name from a CSSStyleDeclaration by index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item)
*/
item(index: number): string;
/**
* The **\`CSSStyleDeclaration.removeProperty()\`** method interface removes a property from a CSS style declaration object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty)
*/
removeProperty(property: string): string;
/**
* The **\`CSSStyleDeclaration.setProperty()\`** method interface sets a new value for a property on a CSS style declaration object.
*
* [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;
};
/**
* The **\`CSSStyleRule\`** interface represents a single CSS style rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)
*/
interface CSSStyleRule extends CSSGroupingRule {
/**
* The **\`selectorText\`** property of the CSSStyleRule interface gets and sets the selectors associated with the \`CSSStyleRule\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText)
*/
selectorText: string;
/**
* The read-only **\`style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
*/
get style(): CSSStyleDeclaration;
set style(cssText: string);
/**
* The **\`styleMap\`** read-only property of the which provides access to the rule's property-value pairs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap)
*/
readonly styleMap: StylePropertyMap;
}
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
};
/**
* The **\`CSSStyleSheet\`** interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet)
*/
interface CSSStyleSheet extends StyleSheet {
/**
* The read-only CSSStyleSheet property **\`cssRules\`** returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules)
*/
readonly cssRules: CSSRuleList;
/**
* The read-only CSSStyleSheet property **\`ownerRule\`** returns the CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule)
*/
readonly ownerRule: CSSRule | null;
/**
* **\`rules\`** is a _deprecated_ _legacy property_ of the CSSStyleSheet interface.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules)
*/
readonly rules: CSSRuleList;
/**
* The obsolete CSSStyleSheet interface's **\`addRule()\`** _legacy method_ adds a new rule to the stylesheet.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule)
*/
addRule(selector?: string, style?: string, index?: number): number;
/**
* The CSSStyleSheet method **\`deleteRule()\`** removes a rule from the stylesheet object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule)
*/
deleteRule(index: number): void;
/**
* The **\`CSSStyleSheet.insertRule()\`** method inserts a new CSS rule into the current style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule)
*/
insertRule(rule: string, index?: number): number;
/**
* The obsolete CSSStyleSheet method **\`removeRule()\`** removes a rule from the stylesheet object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule)
*/
removeRule(index?: number): void;
/**
* The **\`replace()\`** method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace)
*/
replace(text: string): Promise<CSSStyleSheet>;
/**
* The **\`replaceSync()\`** method of the CSSStyleSheet interface synchronously replaces the content of the stylesheet with the content passed into it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync)
*/
replaceSync(text: string): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/**
* The **\`CSSStyleValue\`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue)
*/
interface CSSStyleValue {
toString(): string;
}
declare var CSSStyleValue: {
prototype: CSSStyleValue;
new(): CSSStyleValue;
/**
* The **\`parse()\`** static method of the CSSStyleValue interface sets a specific CSS property to the specified values and returns the first value as a CSSStyleValue object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static)
*/
parse(property: string, cssText: string): CSSStyleValue;
/**
* The **\`parseAll()\`** static method of the CSSStyleValue interface sets all occurrences of a specific CSS property to the specified value and returns an array of CSSStyleValue objects, each containing one of the supplied values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static)
*/
parseAll(property: string, cssText: string): CSSStyleValue[];
};
/**
* The **\`CSSSupportsRule\`** interface represents a single CSS @supports at-rule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule)
*/
interface CSSSupportsRule extends CSSConditionRule {
}
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
};
/**
* The **\`CSSTransformComponent\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent)
*/
interface CSSTransformComponent {
/**
* The **\`is2D\`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D)
*/
is2D: boolean;
/**
* The **\`toMatrix()\`** method of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix)
*/
toMatrix(): DOMMatrix;
toString(): string;
}
declare var CSSTransformComponent: {
prototype: CSSTransformComponent;
new(): CSSTransformComponent;
};
/**
* The **\`CSSTransformValue\`** interface of the CSS Typed Object Model API represents \`transform-list\` values as used by the CSS transform property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue)
*/
interface CSSTransformValue extends CSSStyleValue {
/**
* The read-only **\`is2D\`** property of the In the case of the \`CSSTransformValue\` this property returns true unless any of the individual functions return false for \`Is2D\`, in which case it returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D)
*/
readonly is2D: boolean;
/**
* The read-only **\`length\`** property of the the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length)
*/
readonly length: number;
/**
* The **\`toMatrix()\`** method of the \`\`\`js-nolint toMatrix() \`\`\` None.
*
* [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;
};
/**
* The **\`CSSTransition\`** interface of the Web Animations API represents an Animation object used for a CSS Transition.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition)
*/
interface CSSTransition extends Animation {
/**
* The **\`transitionProperty\`** property of the name** of the transition.
*
* [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;
};
/**
* The **\`CSSTranslate\`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate)
*/
interface CSSTranslate extends CSSTransformComponent {
/**
* The **\`x\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x)
*/
x: CSSNumericValue;
/**
* The **\`y\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y)
*/
y: CSSNumericValue;
/**
* The **\`z\`** property of the vector.
*
* [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;
};
/**
* The **\`CSSUnitValue\`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
*/
interface CSSUnitValue extends CSSNumericValue {
/**
* The **\`CSSUnitValue.unit\`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
*/
readonly unit: string;
/**
* The **\`CSSUnitValue.value\`** property of the A double.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value)
*/
value: number;
}
declare var CSSUnitValue: {
prototype: CSSUnitValue;
new(value: number, unit: string): CSSUnitValue;
};
/**
* The **\`CSSUnparsedValue\`** interface of the CSS Typed Object Model API represents property values that reference custom properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue)
*/
interface CSSUnparsedValue extends CSSStyleValue {
/**
* The **\`length\`** read-only property of the An integer.
*
* [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;
};
/**
* The **\`CSSVariableReferenceValue\`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue)
*/
interface CSSVariableReferenceValue {
/**
* The **\`fallback\`** read-only property of the A CSSUnparsedValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback)
*/
readonly fallback: CSSUnparsedValue | null;
/**
* The **\`variable\`** property of the A string beginning with \`--\` (that is, a custom property name).
*
* [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;
};
interface CSSViewTransitionRule extends CSSRule {
readonly navigation: string;
readonly types: ReadonlyArray<string>;
}
declare var CSSViewTransitionRule: {
prototype: CSSViewTransitionRule;
new(): CSSViewTransitionRule;
};
/**
* The **\`Cache\`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
*/
interface Cache {
/**
* The **\`add()\`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add)
*/
add(request: RequestInfo | URL): Promise<void>;
/**
* The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
*/
addAll(requests: RequestInfo[]): Promise<void>;
/**
* The **\`delete()\`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to \`true\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete)
*/
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
/**
* The **\`keys()\`** method of the Cache interface returns a representing the keys of the Cache.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys)
*/
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
/**
* The **\`match()\`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match)
*/
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
/**
* The **\`matchAll()\`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll)
*/
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
/**
* The **\`put()\`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache.
*
* [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 **\`CacheStorage\`** interface represents the storage for Cache objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
*/
interface CacheStorage {
/**
* The **\`delete()\`** method of the CacheStorage interface finds the Cache object matching the \`cacheName\`, and if found, deletes the Cache object and returns a Promise that resolves to \`true\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)
*/
delete(cacheName: string): Promise<boolean>;
/**
* The **\`has()\`** method of the CacheStorage interface returns a Promise that resolves to \`true\` if a You can access \`CacheStorage\` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)
*/
has(cacheName: string): Promise<boolean>;
/**
* The **\`keys()\`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)
*/
keys(): Promise<string[]>;
/**
* The **\`match()\`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match)
*/
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
/**
* The **\`open()\`** method of the the Cache object matching the \`cacheName\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)
*/
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
/**
* The **\`CanvasCaptureMediaStreamTrack\`** interface of the Media Capture and Streams API represents the video track contained in a MediaStream being generated from a canvas following a call to HTMLCanvasElement.captureStream().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack)
*/
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
/**
* The **\`canvas\`** read-only property of the CanvasCaptureMediaStreamTrack interface returns the HTMLCanvasElement from which frames are being captured.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas)
*/
readonly canvas: HTMLCanvasElement;
/**
* The **\`requestFrame()\`** method of the CanvasCaptureMediaStreamTrack interface requests that a frame be captured from the canvas and sent to the stream.
*
* [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;
}
/**
* The **\`CanvasGradient\`** interface represents an opaque object describing a gradient.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
*/
interface CanvasGradient {
/**
* The **\`CanvasGradient.addColorStop()\`** method adds a new color stop, defined by an \`offset\` and a \`color\`, to a given canvas gradient.
*
* [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;
}
/**
* The **\`CanvasPattern\`** interface represents 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 {
/**
* The **\`CanvasPattern.setTransform()\`** method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D)
*/
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
/**
* The **\`CanvasRenderingContext2D.canvas\`** property, part of the Canvas API, is a read-only reference to the might be \`null\` if there is no associated canvas element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas)
*/
readonly canvas: HTMLCanvasElement;
}
declare var CanvasRenderingContext2D: {
prototype: CanvasRenderingContext2D;
new(): CanvasRenderingContext2D;
};
interface CanvasSettings {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */
getContextAttributes(): CanvasRenderingContext2DSettings;
}
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/isContextLost) */
isContextLost(): boolean;
/** [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 \`CaretPosition\` interface represents the caret position, an indicator for the text insertion point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition)
*/
interface CaretPosition {
readonly offset: number;
readonly offsetNode: Node;
getClientRect(): DOMRect | null;
}
declare var CaretPosition: {
prototype: CaretPosition;
new(): CaretPosition;
};
/**
* The \`ChannelMergerNode\` interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output.
*
* [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.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData)
*/
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
/**
* The **\`data\`** property of the CharacterData interface represent the value of the current object's data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data)
*/
data: string;
/**
* The read-only **\`CharacterData.length\`** property returns the number of characters in the contained data, as a positive integer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length)
*/
readonly length: number;
readonly ownerDocument: Document;
/**
* The **\`appendData()\`** method of the CharacterData interface adds the provided data to the end of the node's current data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData)
*/
appendData(data: string): void;
/**
* The **\`deleteData()\`** method of the CharacterData interface removes all or part of the data from this \`CharacterData\` node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData)
*/
deleteData(offset: number, count: number): void;
/**
* The **\`insertData()\`** method of the CharacterData interface inserts the provided data into this \`CharacterData\` node's current data, at the provided offset from the start of the existing data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData)
*/
insertData(offset: number, data: string): void;
/**
* The **\`replaceData()\`** method of the CharacterData interface removes a certain number of characters of the existing text in a given \`CharacterData\` node and replaces those characters with the text provided.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData)
*/
replaceData(offset: number, count: number, data: string): void;
/**
* The **\`substringData()\`** method of the CharacterData interface returns a portion of the existing data, starting at the specified index and extending for a given number of characters afterwards.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
*/
substringData(offset: number, count: number): string;
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
get textContent(): string;
set textContent(value: string | null);
}
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 {
}
/**
* The **\`Clipboard\`** interface of the Clipboard API provides read and write access to the contents of the system clipboard.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard)
*/
interface Clipboard extends EventTarget {
/**
* The **\`read()\`** method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read)
*/
read(): Promise<ClipboardItems>;
/**
* The **\`readText()\`** method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText)
*/
readText(): Promise<string>;
/**
* The **\`write()\`** method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write)
*/
write(data: ClipboardItems): Promise<void>;
/**
* The **\`writeText()\`** method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText)
*/
writeText(data: string): Promise<void>;
}
declare var Clipboard: {
prototype: Clipboard;
new(): Clipboard;
};
/**
* The **\`ClipboardEvent\`** interface of the Clipboard API represents events providing information related to modification of the clipboard, that is Element/cut_event, Element/copy_event, and Element/paste_event events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent)
*/
interface ClipboardEvent extends Event {
/**
* The **\`clipboardData\`** property of the ClipboardEvent interface holds a DataTransfer object, which can be used to: - specify what data should be put into the clipboard from the Element/cut_event and Element/copy_event event handlers, typically with a DataTransfer.setData call; - obtain the data to be pasted from the Element/paste_event event handler, typically with a DataTransfer.getData call.
*
* [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;
};
/**
* The **\`ClipboardItem\`** interface of the Clipboard API represents a single item format, used when reading or writing clipboard data using Clipboard.read() and Clipboard.write() respectively.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
*/
interface ClipboardItem {
/**
* The read-only **\`presentationStyle\`** property of the ClipboardItem interface returns a string indicating how an item should be presented.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle)
*/
readonly presentationStyle: PresentationStyle;
/**
* The read-only **\`types\`** property of the ClipboardItem interface returns an Array of MIME type available within the ClipboardItem.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types)
*/
readonly types: ReadonlyArray<string>;
/**
* The **\`getType()\`** method of the ClipboardItem interface returns a Promise that resolves with a Blob of the requested MIME type or an error if the MIME type is not found.
*
* [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;
/**
* The **\`supports()\`** static method of the ClipboardItem interface returns \`true\` if the given MIME type is supported by the clipboard, and \`false\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static)
*/
supports(type: string): boolean;
};
/**
* A \`CloseEvent\` is sent to clients using WebSockets when the connection is closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
*/
interface CloseEvent extends Event {
/**
* The **\`code\`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
*/
readonly code: number;
/**
* The **\`reason\`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
*/
readonly reason: string;
/**
* The **\`wasClean\`** read-only property of the CloseEvent interface returns \`true\` if the connection closed cleanly.
*
* [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;
};
/**
* The **\`Comment\`** interface represents 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 {
/**
* The **\`data\`** read-only property of the method that raised the event; its exact nature varies depending on the type of event that generated the \`CompositionEvent\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data)
*/
readonly data: string;
/**
* The **\`initCompositionEvent()\`** method of the CompositionEvent interface initializes the attributes of a \`CompositionEvent\` object instance.
* @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;
};
/**
* The **\`CompressionStream\`** interface of the Compression Streams API is an API for compressing a stream of data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
*/
interface CompressionStream extends GenericTransformStream {
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
readonly writable: WritableStream<BufferSource>;
}
declare var CompressionStream: {
prototype: CompressionStream;
new(format: CompressionFormat): CompressionStream;
};
/**
* The \`ConstantSourceNode\` interface\u2014part of the Web Audio API\u2014represents an audio source (based upon AudioScheduledSourceNode) whose output is single unchanging value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode)
*/
interface ConstantSourceNode extends AudioScheduledSourceNode {
/**
* The read-only \`offset\` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
*
* [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;
};
/**
* The **\`ContentVisibilityAutoStateChangeEvent\`** interface is the event object for the element/contentvisibilityautostatechange_event event, which fires on any element with content-visibility set on it when it starts or stops being relevant to the user and skipping its contents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent)
*/
interface ContentVisibilityAutoStateChangeEvent extends Event {
/**
* The \`skipped\` read-only property of the ContentVisibilityAutoStateChangeEvent interface returns \`true\` if the user agent skips the element's contents, or \`false\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped)
*/
readonly skipped: boolean;
}
declare var ContentVisibilityAutoStateChangeEvent: {
prototype: ContentVisibilityAutoStateChangeEvent;
new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent;
};
/**
* The \`ConvolverNode\` interface is an AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode)
*/
interface ConvolverNode extends AudioNode {
/**
* The **\`buffer\`** property of the ConvolverNode interface represents a mono, stereo, or 4-channel AudioBuffer containing the (possibly multichannel) impulse response used by the \`ConvolverNode\` to create the reverb effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer)
*/
buffer: AudioBuffer | null;
/**
* The \`normalize\` property of the ConvolverNode interface is a boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the \`buffer\` attribute is set, or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize)
*/
normalize: boolean;
}
declare var ConvolverNode: {
prototype: ConvolverNode;
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};
/**
* The **\`CookieChangeEvent\`** interface of the Cookie Store API is the event type of the CookieStore/change_event event fired at a CookieStore when any cookies are created or deleted.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent)
*/
interface CookieChangeEvent extends Event {
/**
* The **\`changed\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/changed)
*/
readonly changed: ReadonlyArray<CookieListItem>;
/**
* The **\`deleted\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been deleted by the given \`CookieChangeEvent\` instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/deleted)
*/
readonly deleted: ReadonlyArray<CookieListItem>;
}
declare var CookieChangeEvent: {
prototype: CookieChangeEvent;
new(type: string, eventInitDict?: CookieChangeEventInit): CookieChangeEvent;
};
interface CookieStoreEventMap {
"change": CookieChangeEvent;
}
/**
* The **\`CookieStore\`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore)
*/
interface CookieStore extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/change_event) */
onchange: ((this: CookieStore, ev: CookieChangeEvent) => any) | null;
/**
* The **\`delete()\`** method of the CookieStore interface deletes a cookie that matches the given \`name\` or \`options\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete)
*/
delete(name: string): Promise<void>;
delete(options: CookieStoreDeleteOptions): Promise<void>;
/**
* The **\`get()\`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given \`name\` or \`options\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get)
*/
get(name: string): Promise<CookieListItem | null>;
get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>;
/**
* The **\`getAll()\`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the \`name\` or \`options\` passed to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll)
*/
getAll(name: string): Promise<CookieList>;
getAll(options?: CookieStoreGetOptions): Promise<CookieList>;
/**
* The **\`set()\`** method of the CookieStore interface sets a cookie with the given \`name\` and \`value\` or \`options\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set)
*/
set(name: string, value: string): Promise<void>;
set(options: CookieInit): Promise<void>;
addEventListener<K extends keyof CookieStoreEventMap>(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof CookieStoreEventMap>(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CookieStore: {
prototype: CookieStore;
new(): CookieStore;
};
/**
* The **\`CookieStoreManager\`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
*/
interface CookieStoreManager {
/**
* The **\`getSubscriptions()\`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
*/
getSubscriptions(): Promise<CookieStoreGetOptions[]>;
/**
* The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
*/
subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
/**
* The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
*/
unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
}
declare var CookieStoreManager: {
prototype: CookieStoreManager;
new(): CookieStoreManager;
};
/**
* The **\`CountQueuingStrategy\`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
*/
interface CountQueuingStrategy extends QueuingStrategy {
/**
* The read-only **\`CountQueuingStrategy.highWaterMark\`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
*
* [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;
};
/**
* The **\`Credential\`** interface of the Credential Management API provides information about an entity (usually a user) normally as a prerequisite to a trust decision.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)
*/
interface Credential {
/**
* The **\`id\`** read-only property of the Credential interface returns a string containing the credential's identifier.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id)
*/
readonly id: string;
/**
* The **\`type\`** read-only property of the Credential interface returns a string containing the credential's type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type)
*/
readonly type: string;
}
declare var Credential: {
prototype: Credential;
new(): Credential;
};
/**
* The **\`CredentialsContainer\`** interface of the Credential Management API exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)
*/
interface CredentialsContainer {
/**
* The **\`create()\`** method of the CredentialsContainer interface creates a new credential, which can then be stored and later retrieved using the CredentialsContainer.get method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create)
*/
create(options?: CredentialCreationOptions): Promise<Credential | null>;
/**
* The **\`get()\`** method of the CredentialsContainer interface returns a Promise that fulfills with a single credential, which can then be used to authenticate a user to a website.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get)
*/
get(options?: CredentialRequestOptions): Promise<Credential | null>;
/**
* The **\`preventSilentAccess()\`** method of the CredentialsContainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns a Promise that resolves to \`undefined\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess)
*/
preventSilentAccess(): Promise<void>;
/**
* The **\`store()\`** method of the \`\`\`js-nolint store(credentials) \`\`\` - \`credentials\` - : A valid Credential instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store)
*/
store(credential: Credential): Promise<void>;
}
declare var CredentialsContainer: {
prototype: CredentialsContainer;
new(): CredentialsContainer;
};
/**
* The **\`Crypto\`** interface represents basic cryptography features available in the current context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
*/
interface Crypto {
/**
* The **\`Crypto.subtle\`** read-only property returns a cryptographic operations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
*/
readonly subtle: SubtleCrypto;
/**
* The **\`Crypto.getRandomValues()\`** method lets you get cryptographically strong random values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
*/
getRandomValues<T extends ArrayBufferView>(array: T): T;
/**
* The **\`randomUUID()\`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
* 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\`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
*/
interface CryptoKey {
/**
* The read-only **\`algorithm\`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)
*/
readonly algorithm: KeyAlgorithm;
/**
* The read-only **\`extractable\`** property of the CryptoKey interface indicates whether or not the key may be extracted using \`SubtleCrypto.exportKey()\` or \`SubtleCrypto.wrapKey()\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)
*/
readonly extractable: boolean;
/**
* The read-only **\`type\`** property of the CryptoKey interface indicates which kind of key is represented by the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)
*/
readonly type: KeyType;
/**
* The read-only **\`usages\`** property of the CryptoKey interface indicates what can be done with the key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)
*/
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/**
* The **\`CustomElementRegistry\`** interface provides methods for registering custom elements and querying registered elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry)
*/
interface CustomElementRegistry {
/**
* The **\`define()\`** method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define)
*/
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
/**
* The **\`get()\`** method of the previously-defined custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get)
*/
get(name: string): CustomElementConstructor | undefined;
/**
* The **\`getName()\`** method of the previously-defined custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
*/
getName(constructor: CustomElementConstructor): string | null;
/**
* The **\`upgrade()\`** method of the elements in a Node subtree, even before they are connected to the main document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade)
*/
upgrade(root: Node): void;
/**
* The **\`whenDefined()\`** method of the resolves when the named element is defined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined)
*/
whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
prototype: CustomElementRegistry;
new(): CustomElementRegistry;
};
/**
* The **\`CustomEvent\`** interface represents events initialized by an application for any purpose.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
*/
interface CustomEvent<T = any> extends Event {
/**
* The read-only **\`detail\`** property of the CustomEvent interface returns any data passed when initializing the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
*/
readonly detail: T;
/**
* The **\`CustomEvent.initCustomEvent()\`** method initializes a CustomEvent object.
* @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>;
};
/**
* The **\`CustomStateSet\`** interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet)
*/
interface CustomStateSet {
forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void;
}
declare var CustomStateSet: {
prototype: CustomStateSet;
new(): CustomStateSet;
};
/**
* The **\`DOMException\`** interface represents an abnormal event (called an **exception**) that 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 {
/**
* The **\`code\`** read-only property of the DOMException interface returns one of the legacy error code constants, or \`0\` if none match.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
*/
readonly code: number;
/**
* The **\`message\`** read-only property of the a message or description associated with the given error name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
*/
readonly message: string;
/**
* The **\`name\`** read-only property of the one of the strings associated with an error name.
*
* [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;
};
/**
* The **\`DOMImplementation\`** interface represents an object providing methods which are not dependent on any particular document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)
*/
interface DOMImplementation {
/**
* The **\`DOMImplementation.createDocument()\`** method creates and returns an XMLDocument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument)
*/
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
/**
* The **\`DOMImplementation.createDocumentType()\`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or \`\`\`js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) \`\`\` - \`qualifiedNameStr\` - : A string containing the qualified name, like \`svg:svg\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType)
*/
createDocumentType(name: string, publicId: string, systemId: string): DocumentType;
/**
* The **\`DOMImplementation.createHTMLDocument()\`** method creates a new HTML Document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument)
*/
createHTMLDocument(title?: string): Document;
/**
* The **\`DOMImplementation.hasFeature()\`** method returns a boolean flag indicating if a given feature is supported.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature)
*/
hasFeature(...args: any[]): true;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
};
/**
* The **\`DOMMatrix\`** interface represents 4\xD74 matrices, suitable for 2D and 3D operations including rotation and translation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix)
*/
interface DOMMatrix extends DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
f: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m44: number;
/**
* The **\`invertSelf()\`** method of the DOMMatrix interface inverts the original matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)
*/
invertSelf(): DOMMatrix;
/**
* The **\`multiplySelf()\`** method of the DOMMatrix interface multiplies a matrix by the \`otherMatrix\` parameter, computing the dot product of the original matrix and the specified matrix: \`A\u22C5B\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)
*/
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
/**
* The **\`preMultiplySelf()\`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified \`DOMMatrix\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)
*/
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
/**
* The \`rotateAxisAngleSelf()\` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)
*/
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/**
* The \`rotateFromVectorSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and \`(1, 0)\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf)
*/
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
/**
* The \`rotateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf)
*/
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/**
* The **\`scale3dSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of \`(0, 0, 0)\`, returning the 3D-scaled matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf)
*/
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* The **\`scaleSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of \`(0, 0)\`, returning the scaled matrix.
*
* [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;
/**
* The **\`setMatrixValue()\`** method of the DOMMatrix interface replaces the contents of the matrix with the matrix described by the specified transform or transforms, returning itself.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue)
*/
setMatrixValue(transformList: string): DOMMatrix;
/**
* The \`skewXSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf)
*/
skewXSelf(sx?: number): DOMMatrix;
/**
* The \`skewYSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf)
*/
skewYSelf(sy?: number): DOMMatrix;
/**
* The \`translateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf)
*/
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
type SVGMatrix = DOMMatrix;
declare var SVGMatrix: typeof DOMMatrix;
type WebKitCSSMatrix = DOMMatrix;
declare var WebKitCSSMatrix: typeof DOMMatrix;
/**
* The **\`DOMMatrixReadOnly\`** interface represents a read-only 4\xD74 matrix, suitable for 2D and 3D operations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)
*/
interface DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly f: number;
/**
* The readonly **\`is2D\`** property of the DOMMatrixReadOnly interface is a Boolean flag that is \`true\` when the matrix is 2D.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D)
*/
readonly is2D: boolean;
/**
* The readonly **\`isIdentity\`** property of the DOMMatrixReadOnly interface is a Boolean whose value is \`true\` if the matrix is the identity matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity)
*/
readonly isIdentity: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m44: number;
/**
* The **\`flipX()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)
*/
flipX(): DOMMatrix;
/**
* The **\`flipY()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY)
*/
flipY(): DOMMatrix;
/**
* The **\`inverse()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)
*/
inverse(): DOMMatrix;
/**
* The **\`multiply()\`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the \`otherMatrix\` parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)
*/
multiply(other?: DOMMatrixInit): DOMMatrix;
/**
* The \`rotate()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate)
*/
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/**
* The \`rotateAxisAngle()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)
*/
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/**
* The \`rotateFromVector()\` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and \`(1, 0)\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)
*/
rotateFromVector(x?: number, y?: number): DOMMatrix;
/**
* The **\`scale()\`** method of the original matrix with a scale transform applied.
*
* [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;
/**
* The **\`scale3d()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d)
*/
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
/**
* The \`skewX()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX)
*/
skewX(sx?: number): DOMMatrix;
/**
* The \`skewY()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY)
*/
skewY(sy?: number): DOMMatrix;
/**
* The **\`toFloat32Array()\`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)
*/
toFloat32Array(): Float32Array<ArrayBuffer>;
/**
* The **\`toFloat64Array()\`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)
*/
toFloat64Array(): Float64Array<ArrayBuffer>;
/**
* The **\`toJSON()\`** method of the DOMMatrixReadOnly interface creates and returns a JSON object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON)
*/
toJSON(): any;
/**
* The **\`transformPoint\`** method of the You can also create a new \`DOMPoint\` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint)
*/
transformPoint(point?: DOMPointInit): DOMPoint;
/**
* The \`translate()\` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.
*
* [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<ArrayBuffer>): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/**
* The **\`DOMParser\`** interface 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 {
/**
* The **\`parseFromString()\`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
}
declare var DOMParser: {
prototype: DOMParser;
new(): DOMParser;
};
/**
* A **\`DOMPoint\`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint)
*/
interface DOMPoint extends DOMPointReadOnly {
/**
* The **\`DOMPoint\`** interface's **\`w\`** property holds the point's perspective value, w, for a point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w)
*/
w: number;
/**
* The **\`DOMPoint\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x)
*/
x: number;
/**
* The **\`DOMPoint\`** interface's **\`y\`** property holds the vertical coordinate, _y_, for a point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y)
*/
y: number;
/**
* The **\`DOMPoint\`** interface's **\`z\`** property specifies the depth coordinate of a point in space.
*
* [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;
/**
* The **\`fromPoint()\`** static method of the DOMPoint interface creates and returns a new mutable \`DOMPoint\` object given a source point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static)
*/
fromPoint(other?: DOMPointInit): DOMPoint;
};
type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;
/**
* The **\`DOMPointReadOnly\`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly)
*/
interface DOMPointReadOnly {
/**
* The **\`DOMPointReadOnly\`** interface's **\`w\`** property holds the point's perspective value, \`w\`, for a read-only point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w)
*/
readonly w: number;
/**
* The **\`DOMPointReadOnly\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a read-only point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x)
*/
readonly x: number;
/**
* The **\`DOMPointReadOnly\`** interface's **\`y\`** property holds the vertical coordinate, y, for a read-only point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y)
*/
readonly y: number;
/**
* The **\`DOMPointReadOnly\`** interface's **\`z\`** property holds the depth coordinate, z, for a read-only point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z)
*/
readonly z: number;
/**
* The **\`matrixTransform()\`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new \`DOMPointReadOnly\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform)
*/
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/**
* The DOMPointReadOnly method \`toJSON()\` returns an object giving the \`\`\`js-nolint toJSON() \`\`\` None.
*
* [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;
/**
* The static **DOMPointReadOnly** method \`fromPoint()\` creates and returns a new \`DOMPointReadOnly\` object given a source point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)
*/
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
/**
* A \`DOMQuad\` is a collection of four \`DOMPoint\`s defining the corners of an arbitrary quadrilateral.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad)
*/
interface DOMQuad {
/**
* The **\`DOMQuad\`** interface's **\`p1\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1)
*/
readonly p1: DOMPoint;
/**
* The **\`DOMQuad\`** interface's **\`p2\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2)
*/
readonly p2: DOMPoint;
/**
* The **\`DOMQuad\`** interface's **\`p3\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3)
*/
readonly p3: DOMPoint;
/**
* The **\`DOMQuad\`** interface's **\`p4\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4)
*/
readonly p4: DOMPoint;
/**
* The DOMQuad method \`getBounds()\` returns a DOMRect object representing the smallest rectangle that fully contains the \`DOMQuad\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)
*/
getBounds(): DOMRect;
/**
* The DOMQuad method \`toJSON()\` returns a \`\`\`js-nolint toJSON() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)
*/
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;
};
/**
* A **\`DOMRect\`** describes the size and position of a rectangle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect)
*/
interface DOMRect extends DOMRectReadOnly {
/**
* The **\`height\`** property of the DOMRect interface represents the height of the rectangle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height)
*/
height: number;
/**
* The **\`width\`** property of the DOMRect interface represents the width of the rectangle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width)
*/
width: number;
/**
* The **\`x\`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x)
*/
x: number;
/**
* The **\`y\`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y)
*/
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
/**
* The **\`fromRect()\`** static method of the object with a given location and dimensions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)
*/
fromRect(other?: DOMRectInit): DOMRect;
};
type SVGRect = DOMRect;
declare var SVGRect: typeof DOMRect;
/**
* The **\`DOMRectList\`** interface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as Element.getClientRects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList)
*/
interface DOMRectList {
/**
* The read-only **\`length\`** property of the DOMRectList interface returns the number of DOMRect objects in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length)
*/
readonly length: number;
/**
* The DOMRectList method \`item()\` returns the DOMRect at the specified index within the list, or \`null\` if the index is out of range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item)
*/
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
declare var DOMRectList: {
prototype: DOMRectList;
new(): DOMRectList;
};
/**
* The **\`DOMRectReadOnly\`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly)
*/
interface DOMRectReadOnly {
/**
* The **\`bottom\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the bottom coordinate value of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom)
*/
readonly bottom: number;
/**
* The **\`height\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the height of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height)
*/
readonly height: number;
/**
* The **\`left\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the left coordinate value of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left)
*/
readonly left: number;
/**
* The **\`right\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the right coordinate value of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right)
*/
readonly right: number;
/**
* The **\`top\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the top coordinate value of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top)
*/
readonly top: number;
/**
* The **\`width\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the width of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width)
*/
readonly width: number;
/**
* The **\`x\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the x coordinate of the \`DOMRect\`'s origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x)
*/
readonly x: number;
/**
* The **\`y\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the y coordinate of the \`DOMRect\`'s origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y)
*/
readonly y: number;
/**
* The DOMRectReadOnly method \`toJSON()\` returns a JSON representation of the \`DOMRectReadOnly\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON)
*/
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
/**
* The **\`fromRect()\`** static method of the object with a given location and dimensions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)
*/
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/**
* The **\`DOMStringList\`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (\`DOMString\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
*/
interface DOMStringList {
/**
* The read-only **\`length\`** property indicates the number of strings in the DOMStringList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
*/
readonly length: number;
/**
* The **\`contains()\`** method returns a boolean indicating whether the given string is in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
*/
contains(string: string): boolean;
/**
* The **\`item()\`** method returns a string from a \`DOMStringList\` by index.
*
* [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;
};
/**
* The **\`DOMStringMap\`** interface is used for the HTMLElement.dataset 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;
};
/**
* The **\`DOMTokenList\`** interface represents a set of space-separated tokens.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList)
*/
interface DOMTokenList {
/**
* The read-only **\`length\`** property of the DOMTokenList interface is an \`integer\` representing the number of objects stored in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length)
*/
readonly length: number;
/**
* The **\`value\`** property of the DOMTokenList interface is a stringifier that returns the value of the list serialized as a string, or clears and sets the list to the given value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value)
*/
value: string;
toString(): string;
/**
* The **\`add()\`** method of the DOMTokenList interface adds the given tokens to the list, omitting any that are already present.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)
*/
add(...tokens: string[]): void;
/**
* The **\`contains()\`** method of the DOMTokenList interface returns a boolean value \u2014 \`true\` if the underlying list contains the given token, otherwise \`false\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)
*/
contains(token: string): boolean;
/**
* The **\`item()\`** method of the DOMTokenList interface returns an item in the list, determined by its position in the list, its index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)
*/
item(index: number): string | null;
/**
* The **\`remove()\`** method of the DOMTokenList interface removes the specified _tokens_ from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)
*/
remove(...tokens: string[]): void;
/**
* The **\`replace()\`** method of the DOMTokenList interface replaces an existing token with a new token.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)
*/
replace(token: string, newToken: string): boolean;
/**
* The **\`supports()\`** method of the DOMTokenList interface returns \`true\` if a given \`token\` is in the associated attribute's supported tokens.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)
*/
supports(token: string): boolean;
/**
* The **\`toggle()\`** method of the DOMTokenList interface removes an existing token from the list and returns \`false\`.
*
* [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;
};
/**
* The **\`DataTransfer\`** object is used to hold any data transferred between contexts, such as a drag and drop operation, or clipboard read/write.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)
*/
interface DataTransfer {
/**
* The **\`DataTransfer.dropEffect\`** property controls the feedback (typically visual) the user is given during a drag and drop operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect)
*/
dropEffect: "none" | "copy" | "link" | "move";
/**
* The **\`DataTransfer.effectAllowed\`** property specifies the effect that is allowed for a drag operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed)
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
/**
* The **\`files\`** read-only property of \`DataTransfer\` objects is a list of the files in the drag operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files)
*/
readonly files: FileList;
/**
* The read-only \`items\` property of the DataTransfer interface is a A DataTransferItemList object containing DataTransferItem objects representing the items being dragged in a drag operation, one list item for each object being dragged.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items)
*/
readonly items: DataTransferItemList;
/**
* The **\`DataTransfer.types\`** read-only property returns the available types that exist in the DataTransfer.items.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types)
*/
readonly types: ReadonlyArray<string>;
/**
* The **\`DataTransfer.clearData()\`** method removes the drag operation's drag data for the given type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)
*/
clearData(format?: string): void;
/**
* The **\`DataTransfer.getData()\`** method retrieves drag data (as a string) for the specified type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)
*/
getData(format: string): string;
/**
* The **\`DataTransfer.setData()\`** method sets the drag operation's drag data to the specified data and type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)
*/
setData(format: string, data: string): void;
/**
* When a drag occurs, a translucent image is generated from the drag target (the element the HTMLElement/dragstart_event event is fired at), and follows the mouse pointer during the drag.
*
* [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;
};
/**
* The **\`DataTransferItem\`** object represents one drag data item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem)
*/
interface DataTransferItem {
/**
* The read-only **\`DataTransferItem.kind\`** property returns the kind\u2013a string or a file\u2013of the DataTransferItem object representing the _drag data item_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind)
*/
readonly kind: string;
/**
* The read-only **\`DataTransferItem.type\`** property returns the type (format) of the DataTransferItem object representing the drag data item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type)
*/
readonly type: string;
/**
* If the item is a file, the **\`DataTransferItem.getAsFile()\`** method returns the drag data item's File object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)
*/
getAsFile(): File | null;
/**
* The **\`DataTransferItem.getAsString()\`** method invokes the given callback with the drag data item's string data as the argument if the item's DataTransferItem.kind is a _Plain unicode string_ (i.e., \`kind\` is \`string\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)
*/
getAsString(callback: FunctionStringCallback | null): void;
/**
* If the item described by the DataTransferItem is a file, \`webkitGetAsEntry()\` returns a FileSystemFileEntry or FileSystemDirectoryEntry representing it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry)
*/
webkitGetAsEntry(): FileSystemEntry | null;
}
declare var DataTransferItem: {
prototype: DataTransferItem;
new(): DataTransferItem;
};
/**
* The **\`DataTransferItemList\`** object is a list of DataTransferItem objects representing items being dragged.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList)
*/
interface DataTransferItemList {
/**
* The read-only **\`length\`** property of the the drag item list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length)
*/
readonly length: number;
/**
* The **\`DataTransferItemList.add()\`** method creates a new list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)
*/
add(data: string, type: string): DataTransferItem | null;
add(data: File): DataTransferItem | null;
/**
* The DataTransferItemList method **\`clear()\`** removes all DataTransferItem objects from the drag data items list, leaving the list empty.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)
*/
clear(): void;
/**
* The **\`DataTransferItemList.remove()\`** method removes the less than zero or greater than one less than the length of the list, the list will not be changed.
*
* [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;
};
/**
* The **\`DecompressionStream\`** interface of the Compression Streams API is an API for decompressing a stream of data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
*/
interface DecompressionStream extends GenericTransformStream {
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
readonly writable: WritableStream<BufferSource>;
}
declare var DecompressionStream: {
prototype: DecompressionStream;
new(format: CompressionFormat): DecompressionStream;
};
/**
* The **\`DelayNode\`** interface represents 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 {
/**
* The \`delayTime\` property of the DelayNode interface is an a-rate AudioParam representing the amount of delay to apply.
*
* [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\`** interface of the Device Orientation Events 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 {
/**
* The **\`acceleration\`** read-only property of the DeviceMotionEvent interface returns the acceleration recorded by the device, in meters per second squared (m/s\xB2).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration)
*/
readonly acceleration: DeviceMotionEventAcceleration | null;
/**
* The **\`accelerationIncludingGravity\`** read-only property of the DeviceMotionEvent interface returns the amount of acceleration recorded by the device, in meters per second squared (m/s\xB2).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity)
*/
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
/**
* The **\`interval\`** read-only property of the DeviceMotionEvent interface returns the interval, in milliseconds, at which data is obtained from the underlying hardware.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval)
*/
readonly interval: number;
/**
* The **\`rotationRate\`** read-only property of the DeviceMotionEvent interface returns the rate at which the device is rotating around each of its axes in degrees per second.
*
* [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;
};
/**
* The **\`DeviceMotionEventAcceleration\`** interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)
*/
interface DeviceMotionEventAcceleration {
/**
* The **\`x\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the X axis in a \`DeviceMotionEventAcceleration\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x)
*/
readonly x: number | null;
/**
* The **\`y\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Y axis in a \`DeviceMotionEventAcceleration\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y)
*/
readonly y: number | null;
/**
* The **\`z\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Z axis in a \`DeviceMotionEventAcceleration\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z)
*/
readonly z: number | null;
}
/**
* A **\`DeviceMotionEventRotationRate\`** interface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)
*/
interface DeviceMotionEventRotationRate {
/**
* The **\`alpha\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Z axis, in degrees per second.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha)
*/
readonly alpha: number | null;
/**
* The **\`beta\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the X axis, in degrees per second.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta)
*/
readonly beta: number | null;
/**
* The **\`gamma\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Y axis, in degrees per second.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma)
*/
readonly gamma: number | null;
}
/**
* The **\`DeviceOrientationEvent\`** interface of the Device Orientation Events 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 {
/**
* The **\`absolute\`** read-only property of the DeviceOrientationEvent interface indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute)
*/
readonly absolute: boolean;
/**
* The **\`alpha\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha)
*/
readonly alpha: number | null;
/**
* The **\`beta\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180, by which the device is tipped forward or backward.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta)
*/
readonly beta: number | null;
/**
* The **\`gamma\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between \`-90\` and \`90\`, by which the device is tilted left or right.
*
* [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;
}
/**
* The **\`Document\`** interface represents 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 {
/**
* The **\`URL\`** read-only property of the Document interface returns the document location as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
*/
readonly URL: string;
/**
* Returns or sets the color of an active link in the document body.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor)
*/
alinkColor: string;
/**
* The Document interface's read-only **\`all\`** property returns an HTMLAllCollection rooted at the document node.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all)
*/
readonly all: HTMLAllCollection;
/**
* The **\`anchors\`** read-only property of the An HTMLCollection.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors)
*/
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* The **\`applets\`** property of the Document returns an empty HTMLCollection.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets)
*/
readonly applets: HTMLCollection;
/**
* The deprecated \`bgColor\` property gets or sets the background color of the current document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor)
*/
bgColor: string;
/**
* The **\`Document.body\`** property represents the \`null\` if no such element exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body)
*/
body: HTMLElement;
/**
* The **\`Document.characterSet\`** read-only property returns the character encoding of the document that it's currently rendered with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly characterSet: string;
/**
* @deprecated This is a legacy alias of \`characterSet\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly charset: string;
/**
* The **\`Document.compatMode\`** read-only property indicates whether the document is rendered in Quirks mode or Standards mode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode)
*/
readonly compatMode: string;
/**
* The **\`Document.contentType\`** read-only property returns the MIME type that the document is being rendered as.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType)
*/
readonly contentType: string;
/**
* The Document property \`cookie\` lets you read and write cookies associated with the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie)
*/
cookie: string;
/**
* The **\`Document.currentScript\`** property returns the script element whose script is currently being processed and isn't a JavaScript module.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript)
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
/**
* In browsers, **\`document.defaultView\`** returns the This property is read-only.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView)
*/
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/**
* **\`document.designMode\`** controls whether the entire document is editable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode)
*/
designMode: string;
/**
* The **\`Document.dir\`** property is a string representing the directionality of the text of the document, whether left to right (default) or right to left.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir)
*/
dir: string;
/**
* The **\`doctype\`** read-only property of the Document interface is a DocumentType object representing the Doctype associated with the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype)
*/
readonly doctype: DocumentType | null;
/**
* The **\`documentElement\`** read-only property of the Document interface returns the example, the html element for HTML documents).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement)
*/
readonly documentElement: HTMLElement;
/**
* The **\`documentURI\`** read-only property of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI)
*/
readonly documentURI: string;
/**
* The **\`domain\`** property of the Document interface gets/sets the domain portion of the origin of the current document, as used by the same-origin policy.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain)
*/
domain: string;
/**
* The **\`embeds\`** read-only property of the An HTMLCollection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds)
*/
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* **\`fgColor\`** gets/sets the foreground color, or text color, of the current document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor)
*/
fgColor: string;
/**
* The **\`forms\`** read-only property of the Document interface returns an HTMLCollection listing all the form elements contained in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)
*/
readonly forms: HTMLCollectionOf<HTMLFormElement>;
/**
* The **\`fragmentDirective\`** read-only property of the Document interface returns the FragmentDirective for the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective)
*/
readonly fragmentDirective: FragmentDirective;
/**
* The obsolete Document interface's **\`fullscreen\`** read-only property reports whether or not the document is currently displaying content in fullscreen mode.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen)
*/
readonly fullscreen: boolean;
/**
* The read-only **\`fullscreenEnabled\`** property on the Document interface indicates whether or not fullscreen mode is available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled)
*/
readonly fullscreenEnabled: boolean;
/**
* The **\`head\`** read-only property of the Document interface returns the head element of the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head)
*/
readonly head: HTMLHeadElement;
/**
* The **\`Document.hidden\`** read-only property returns a Boolean value indicating if the page is considered hidden or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden)
*/
readonly hidden: boolean;
/**
* The **\`images\`** read-only property of the Document interface returns a collection of the images in the current HTML document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images)
*/
readonly images: HTMLCollectionOf<HTMLImageElement>;
/**
* The **\`Document.implementation\`** property returns a A DOMImplementation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation)
*/
readonly implementation: DOMImplementation;
/**
* @deprecated This is a legacy alias of \`characterSet\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly inputEncoding: string;
/**
* The **\`lastModified\`** property of the Document interface returns a string containing the date and local time on which the current document was last modified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified)
*/
readonly lastModified: string;
/**
* The **\`Document.linkColor\`** property gets/sets the color of links within the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor)
*/
linkColor: string;
/**
* The **\`links\`** read-only property of the Document interface returns a collection of all area elements and a elements in a document with a value for the href attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links)
*/
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
/**
* The **\`Document.location\`** read-only property returns a and provides methods for changing that URL and loading another URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)
*/
get location(): Location;
set location(href: string);
/** [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;
/** [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;
/**
* The read-only **\`pictureInPictureEnabled\`** property of the available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled)
*/
readonly pictureInPictureEnabled: boolean;
/**
* The **\`plugins\`** read-only property of the containing one or more HTMLEmbedElements representing the An HTMLCollection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins)
*/
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
/**
* The **\`Document.readyState\`** property describes the loading state of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState)
*/
readonly readyState: DocumentReadyState;
/**
* The **\`Document.referrer\`** property returns the URI of the page that linked to this page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer)
*/
readonly referrer: string;
/**
* **\`Document.rootElement\`** returns the Element that is the root element of the document if it is an documents.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement)
*/
readonly rootElement: SVGSVGElement | null;
/**
* The **\`scripts\`** property of the Document interface returns a list of the script elements in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts)
*/
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
/**
* The **\`scrollingElement\`** read-only property of the scrolls the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement)
*/
readonly scrollingElement: Element | null;
/**
* The \`timeline\` readonly property of the Document interface represents the default timeline of the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline)
*/
readonly timeline: DocumentTimeline;
/**
* The **\`document.title\`** property gets or sets the current title of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title)
*/
title: string;
/**
* The **\`Document.visibilityState\`** read-only property returns the visibility of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState)
*/
readonly visibilityState: DocumentVisibilityState;
/**
* The **\`Document.vlinkColor\`** property gets/sets the color of links that the user has visited in the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor)
*/
vlinkColor: string;
/**
* **\`Document.adoptNode()\`** transfers a node/dom from another Document into the method's document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)
*/
adoptNode<T extends Node>(node: T): T;
/** @deprecated */
captureEvents(): void;
/**
* The **\`caretPositionFromPoint()\`** method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint)
*/
caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
/**
* The **\`Document.clear()\`** method does nothing, but doesn't raise any error.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear)
*/
clear(): void;
/**
* The **\`Document.close()\`** method finishes writing to a document, opened with Document.open().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close)
*/
close(): void;
/**
* The **\`Document.createAttribute()\`** method creates a new attribute node, and returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)
*/
createAttribute(localName: string): Attr;
/**
* The **\`Document.createAttributeNS()\`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS)
*/
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
/**
* **\`createCDATASection()\`** creates a new CDATA section node, and returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)
*/
createCDATASection(data: string): CDATASection;
/**
* **\`createComment()\`** creates a new comment node, and returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment)
*/
createComment(data: string): Comment;
/**
* Creates a new empty DocumentFragment into which DOM nodes can be added to build an offscreen DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)
*/
createDocumentFragment(): DocumentFragment;
/**
* In an HTML document, the **\`document.createElement()\`** method creates the HTML element specified by \`localName\`, or an HTMLUnknownElement if \`localName\` isn't recognized.
*
* [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;
/**
* Creates an element with the specified namespace URI and qualified name.
*
* [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;
/**
* Creates an event of the type specified.
* @deprecated
*
* [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: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
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: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
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: "TextEvent"): TextEvent;
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;
/**
* The **\`Document.createNodeIterator()\`** method returns a new \`NodeIterator\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator)
*/
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
/**
* \`createProcessingInstruction()\` generates a new processing instruction node and returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction)
*/
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/**
* The **\`Document.createRange()\`** method returns a new \`\`\`js-nolint createRange() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
*/
createRange(): Range;
/**
* Creates a new Text node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)
*/
createTextNode(data: string): Text;
/**
* The **\`Document.createTreeWalker()\`** creator method returns a newly created TreeWalker object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker)
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
/**
* The **\`execCommand\`** method implements multiple different commands.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand)
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/**
* The Document method **\`exitFullscreen()\`** requests that the element on this document which is currently being presented in fullscreen mode be taken out of fullscreen mode, restoring the previous state of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)
*/
exitFullscreen(): Promise<void>;
/**
* The **\`exitPictureInPicture()\`** method of the Document interface requests that a video contained in this document, which is currently floating, be taken out of picture-in-picture mode, restoring the previous state of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture)
*/
exitPictureInPicture(): Promise<void>;
/**
* The **\`exitPointerLock()\`** method of the Document interface asynchronously releases a pointer lock previously requested through Element.requestPointerLock.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
*/
exitPointerLock(): void;
getElementById(elementId: string): HTMLElement | null;
/**
* The **\`getElementsByClassName\`** method of of all child elements which have all of the given class name(s).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/**
* The **\`getElementsByName()\`** method of the Document object returns a NodeList Collection of elements with a given \`name\` attribute in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)
*/
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
/**
* The **\`getElementsByTagName\`** method of The complete document is searched, including the root node.
*
* [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>;
/**
* Returns a list of elements with the given tag name belonging to the given namespace.
*
* [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>;
/**
* The **\`getSelection()\`** method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection)
*/
getSelection(): Selection | null;
/**
* The **\`hasFocus()\`** method of the Document interface returns a boolean value indicating whether the document or any element inside the document has focus.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)
*/
hasFocus(): boolean;
/**
* The **\`hasStorageAccess()\`** method of the Document interface returns a Promise that resolves with a boolean value indicating whether the document has access to third-party, unpartitioned cookies.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess)
*/
hasStorageAccess(): Promise<boolean>;
/**
* The Document object's **\`importNode()\`** method creates a copy of a inserted into the current document later.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)
*/
importNode<T extends Node>(node: T, options?: boolean | ImportNodeOptions): T;
/**
* The **\`Document.open()\`** method opens a document for This does come with some side effects.
*
* [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;
/**
* The **\`Document.queryCommandEnabled()\`** method reports whether or not the specified editor command is enabled by the browser.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled)
*/
queryCommandEnabled(commandId: string): boolean;
/** @deprecated */
queryCommandIndeterm(commandId: string): boolean;
/**
* The **\`queryCommandState()\`** method will tell you if the current selection has a certain Document.execCommand() command applied.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState)
*/
queryCommandState(commandId: string): boolean;
/**
* The **\`Document.queryCommandSupported()\`** method reports whether or not the specified editor command is supported by the browser.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported)
*/
queryCommandSupported(commandId: string): boolean;
/** @deprecated */
queryCommandValue(commandId: string): string;
/** @deprecated */
releaseEvents(): void;
/**
* The **\`requestStorageAccess()\`** method of the Document interface allows content loaded in a third-party context (i.e., embedded in an iframe) to request access to third-party cookies and unpartitioned state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess)
*/
requestStorageAccess(): Promise<void>;
/**
* The **\`startViewTransition()\`** method of the Document interface starts a new same-document (SPA) view transition and returns a ViewTransition object to represent it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition)
*/
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition;
/**
* The **\`write()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open().
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write)
*/
write(...text: string[]): void;
/**
* The **\`writeln()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(), followed by a newline character.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
*/
writeln(...text: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
get textContent(): null;
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;
/**
* The **\`parseHTMLUnsafe()\`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
*/
parseHTMLUnsafe(html: string): Document;
};
/**
* The **\`DocumentFragment\`** interface represents a minimal document object that has no parent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment)
*/
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
getElementById(elementId: string): HTMLElement | null;
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
get textContent(): string;
set textContent(value: string | 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */
readonly styleSheets: StyleSheetList;
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[];
}
/**
* The **\`DocumentTimeline\`** interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline)
*/
interface DocumentTimeline extends AnimationTimeline {
}
declare var DocumentTimeline: {
prototype: DocumentTimeline;
new(options?: DocumentTimelineOptions): DocumentTimeline;
};
/**
* The **\`DocumentType\`** interface represents a Node containing a doctype.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType)
*/
interface DocumentType extends Node, ChildNode {
/**
* The read-only **\`name\`** property of the DocumentType returns the type of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name)
*/
readonly name: string;
readonly ownerDocument: Document;
/**
* The read-only **\`publicId\`** property of the DocumentType returns a formal identifier of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId)
*/
readonly publicId: string;
/**
* The read-only **\`systemId\`** property of the DocumentType returns the URL of the associated DTD.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)
*/
readonly systemId: string;
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
get textContent(): null;
}
declare var DocumentType: {
prototype: DocumentType;
new(): DocumentType;
};
/**
* The **\`DragEvent\`** interface is a DOM event that represents a drag and drop interaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent)
*/
interface DragEvent extends MouseEvent {
/**
* The **\`DragEvent.dataTransfer\`** read-only property holds the drag operation's data (as a DataTransfer object).
*
* [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;
};
/**
* The \`DynamicsCompressorNode\` interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)
*/
interface DynamicsCompressorNode extends AudioNode {
/**
* The \`attack\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the amount of time, in seconds, required to reduce the gain by 10 dB.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack)
*/
readonly attack: AudioParam;
/**
* The \`knee\` property of the DynamicsCompressorNode interface is a k-rate AudioParam containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee)
*/
readonly knee: AudioParam;
/**
* The \`ratio\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of change, in dB, needed in the input for a 1 dB change in the output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio)
*/
readonly ratio: AudioParam;
/**
* The **\`reduction\`** read-only property of the DynamicsCompressorNode interface is a float representing the amount of gain reduction currently applied by the compressor to the signal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction)
*/
readonly reduction: number;
/**
* The \`release\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of time, in seconds, required to increase the gain by 10 dB.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release)
*/
readonly release: AudioParam;
/**
* The \`threshold\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the decibel value above which the compression will start taking effect.
*
* [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;
};
/**
* The **\`EXT_blend_minmax\`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax)
*/
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
/**
* The **\`EXT_color_buffer_float\`** extension is part of WebGL and adds the ability to render a variety of floating point formats.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float)
*/
interface EXT_color_buffer_float {
}
/**
* The **\`EXT_color_buffer_half_float\`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.
*
* [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;
}
/**
* The WebGL API's \`EXT_float_blend\` extension allows blending and draw buffers with 32-bit floating-point components.
*
* [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 {
}
/**
* The **\`EXT_sRGB\`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.
*
* [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;
}
/**
* The **\`EXT_shader_texture_lod\`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod)
*/
interface EXT_shader_texture_lod {
}
/**
* The \`EXT_texture_compression_bptc\` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats.
*
* [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;
}
/**
* The \`EXT_texture_compression_rgtc\` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats.
*
* [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;
}
/**
* The **\`EXT_texture_norm16\`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer).
*
* [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 element objects (i.e., objects that represent elements) in a Document inherit.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
*/
interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable {
/**
* The **\`Element.attributes\`** property returns a live collection of all attribute nodes registered to the specified node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes)
*/
readonly attributes: NamedNodeMap;
/**
* The **\`Element.classList\`** is a read-only property that returns a live DOMTokenList collection of the \`class\` attributes of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)
*/
get classList(): DOMTokenList;
set classList(value: string);
/**
* The **\`className\`** property of the of the specified element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)
*/
className: string;
/**
* The **\`clientHeight\`** read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight)
*/
readonly clientHeight: number;
/**
* The **\`clientLeft\`** read-only property of the Element interface returns the width of the left border of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft)
*/
readonly clientLeft: number;
/**
* The **\`clientTop\`** read-only property of the Element interface returns the width of the top border of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop)
*/
readonly clientTop: number;
/**
* The **\`clientWidth\`** read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth)
*/
readonly clientWidth: number;
/**
* The **\`currentCSSZoom\`** read-only property of the Element interface provides the 'effective' CSS \`zoom\` of an element, taking into account the zoom applied to the element and all its parent elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
*/
readonly currentCSSZoom: number;
/**
* The **\`id\`** property of the Element interface represents the element's identifier, reflecting the **\`id\`** global attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
*/
id: string;
/**
* The **\`innerHTML\`** property of the Element interface gets or sets the HTML or XML markup contained within the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML)
*/
innerHTML: string;
/**
* The **\`Element.localName\`** read-only property returns the local part of the qualified name of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)
*/
readonly localName: string;
/**
* The **\`Element.namespaceURI\`** read-only property returns the namespace URI of the element, or \`null\` if the element is not in a 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;
/**
* The **\`outerHTML\`** attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML)
*/
outerHTML: string;
readonly ownerDocument: Document;
/**
* The **\`part\`** property of the Element interface represents the part identifier(s) of the element (i.e., set using the \`part\` attribute), returned as a DOMTokenList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part)
*/
get part(): DOMTokenList;
set part(value: string);
/**
* The **\`Element.prefix\`** read-only property returns the namespace prefix of the specified element, or \`null\` if no prefix is specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix)
*/
readonly prefix: string | null;
/**
* The **\`scrollHeight\`** read-only property of the Element interface is a measurement of the height of an element's content, including content not visible on the screen due to overflow.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight)
*/
readonly scrollHeight: number;
/**
* The **\`scrollLeft\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its left edge.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft)
*/
scrollLeft: number;
/**
* The **\`scrollTop\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop)
*/
scrollTop: number;
/**
* The **\`scrollWidth\`** read-only property of the Element interface is a measurement of the width of an element's content, including content not visible on the screen due to overflow.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth)
*/
readonly scrollWidth: number;
/**
* The \`Element.shadowRoot\` read-only property represents the shadow root hosted by the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot)
*/
readonly shadowRoot: ShadowRoot | null;
/**
* The **\`slot\`** property of the Element interface returns the name of the shadow DOM slot the element is inserted in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)
*/
slot: string;
/**
* The **\`tagName\`** read-only property of the Element interface returns the tag name of the element on which it's called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)
*/
readonly tagName: string;
/**
* The **\`Element.attachShadow()\`** method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)
*/
attachShadow(init: ShadowRootInit): ShadowRoot;
/**
* The **\`checkVisibility()\`** method of the Element interface checks whether the element is visible.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility)
*/
checkVisibility(options?: CheckVisibilityOptions): boolean;
/**
* The **\`closest()\`** method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector.
*
* [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;
/**
* The **\`computedStyleMap()\`** method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap)
*/
computedStyleMap(): StylePropertyMapReadOnly;
/**
* The **\`getAttribute()\`** method of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)
*/
getAttribute(qualifiedName: string): string | null;
/**
* The **\`getAttributeNS()\`** method of the Element interface returns the string value of the attribute with the specified namespace and name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)
*/
getAttributeNS(namespace: string | null, localName: string): string | null;
/**
* The **\`getAttributeNames()\`** method of the array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)
*/
getAttributeNames(): string[];
/**
* Returns the specified attribute of the specified element, as an Attr node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode)
*/
getAttributeNode(qualifiedName: string): Attr | null;
/**
* The **\`getAttributeNodeNS()\`** method of the Element interface returns the namespaced Attr node of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS)
*/
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
/**
* The **\`Element.getBoundingClientRect()\`** method returns a position relative to the viewport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect)
*/
getBoundingClientRect(): DOMRect;
/**
* The **\`getClientRects()\`** method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects)
*/
getClientRects(): DOMRectList;
/**
* The Element method **\`getElementsByClassName()\`** returns a live specified class name or names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/**
* The **\`Element.getElementsByTagName()\`** method returns a live All descendants of the specified element are searched, but not the element itself.
*
* [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>;
/**
* The **\`Element.getElementsByTagNameNS()\`** method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace.
*
* [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>;
/**
* The **\`getHTML()\`** method of the Element interface is used to serialize an element's DOM to an HTML string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML)
*/
getHTML(options?: GetHTMLOptions): string;
/**
* The **\`Element.hasAttribute()\`** method returns a **Boolean** value indicating whether the specified element has the specified attribute or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)
*/
hasAttribute(qualifiedName: string): boolean;
/**
* The **\`hasAttributeNS()\`** method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)
*/
hasAttributeNS(namespace: string | null, localName: string): boolean;
/**
* The **\`hasAttributes()\`** method of the Element interface returns a boolean value indicating whether the current element has any attributes or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)
*/
hasAttributes(): boolean;
/**
* The **\`hasPointerCapture()\`** method of the pointer capture for the pointer identified by the given pointer ID.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture)
*/
hasPointerCapture(pointerId: number): boolean;
/**
* The **\`insertAdjacentElement()\`** method of the relative to the element it is invoked upon.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement)
*/
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
/**
* The **\`insertAdjacentHTML()\`** method of the the resulting nodes into the DOM tree at a specified position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML)
*/
insertAdjacentHTML(position: InsertPosition, string: string): void;
/**
* The **\`insertAdjacentText()\`** method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText)
*/
insertAdjacentText(where: InsertPosition, data: string): void;
/**
* The **\`matches()\`** method of the Element interface tests whether the element would be selected by the specified CSS selector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
*/
matches(selectors: string): boolean;
/**
* The **\`releasePointerCapture()\`** method of the previously set for a specific (PointerEvent) _pointer_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture)
*/
releasePointerCapture(pointerId: number): void;
/**
* The Element method **\`removeAttribute()\`** removes the attribute with the specified name from the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)
*/
removeAttribute(qualifiedName: string): void;
/**
* The **\`removeAttributeNS()\`** method of the If you are working with HTML and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)
*/
removeAttributeNS(namespace: string | null, localName: string): void;
/**
* The **\`removeAttributeNode()\`** method of the Element interface removes the specified Attr node from the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode)
*/
removeAttributeNode(attr: Attr): Attr;
/**
* The **\`Element.requestFullscreen()\`** method issues an asynchronous request to make the element be displayed in fullscreen mode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
/**
* The **\`requestPointerLock()\`** method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock)
*/
requestPointerLock(options?: PointerLockOptions): Promise<void>;
/**
* The **\`scroll()\`** method of the Element interface scrolls the element to a particular set of coordinates inside a given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
*/
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **\`scrollBy()\`** method of the Element interface scrolls an element by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
*/
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* The Element interface's **\`scrollIntoView()\`** method scrolls the element's ancestor containers such that the element on which \`scrollIntoView()\` is called is visible to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
*/
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
/**
* The **\`scrollTo()\`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
*/
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **\`setAttribute()\`** method of the Element interface sets the value of an attribute on the specified element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)
*/
setAttribute(qualifiedName: string, value: string): void;
/**
* \`setAttributeNS\` adds a new attribute or changes the value of an attribute with the given namespace and name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)
*/
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
/**
* The **\`setAttributeNode()\`** method of the Element interface adds a new Attr node to the specified element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode)
*/
setAttributeNode(attr: Attr): Attr | null;
/**
* The **\`setAttributeNodeNS()\`** method of the Element interface adds a new namespaced Attr node to an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
*/
setAttributeNodeNS(attr: Attr): Attr | null;
/**
* The **\`setHTMLUnsafe()\`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
*/
setHTMLUnsafe(html: string): void;
/**
* The **\`setPointerCapture()\`** method of the _capture target_ of future pointer events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture)
*/
setPointerCapture(pointerId: number): void;
/**
* The **\`toggleAttribute()\`** method of the present and adding it if it is not present) on the given element.
*
* [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;
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
get textContent(): string;
set textContent(value: string | null);
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
readonly attributeStyleMap: StylePropertyMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
get style(): CSSStyleDeclaration;
set style(cssText: string);
}
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;
}
/**
* The **\`ElementInternals\`** interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals)
*/
interface ElementInternals extends ARIAMixin {
/**
* The **\`form\`** read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`labels\`** read-only property of the ElementInternals interface returns the labels associated with the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels)
*/
readonly labels: NodeList;
/**
* The **\`shadowRoot\`** read-only property of the ElementInternals interface returns the ShadowRoot for this element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
*/
readonly shadowRoot: ShadowRoot | null;
/**
* The **\`states\`** read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states)
*/
readonly states: CustomStateSet;
/**
* The **\`validationMessage\`** read-only property of the ElementInternals interface returns the validation message for the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage)
*/
readonly validationMessage: string;
/**
* The **\`validity\`** read-only property of the ElementInternals interface returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity)
*/
readonly validity: ValidityState;
/**
* The **\`willValidate\`** read-only property of the ElementInternals interface returns \`true\` if the element is a submittable element that is a candidate for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate)
*/
readonly willValidate: boolean;
/**
* The **\`checkValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`reportValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)
*/
reportValidity(): boolean;
/**
* The **\`setFormValue()\`** method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue)
*/
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
/**
* The **\`setValidity()\`** method of the ElementInternals interface sets the validity of the element.
*
* [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;
};
/**
* The **\`EncodedAudioChunk\`** interface of the WebCodecs API represents a chunk of encoded audio data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk)
*/
interface EncodedAudioChunk {
/**
* The **\`byteLength\`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength)
*/
readonly byteLength: number;
/**
* The **\`duration\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration)
*/
readonly duration: number | null;
/**
* The **\`timestamp\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp)
*/
readonly timestamp: number;
/**
* The **\`type\`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type)
*/
readonly type: EncodedAudioChunkType;
/**
* The **\`copyTo()\`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo)
*/
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedAudioChunk: {
prototype: EncodedAudioChunk;
new(init: EncodedAudioChunkInit): EncodedAudioChunk;
};
/**
* The **\`EncodedVideoChunk\`** interface of the WebCodecs API represents a chunk of encoded video data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk)
*/
interface EncodedVideoChunk {
/**
* The **\`byteLength\`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength)
*/
readonly byteLength: number;
/**
* The **\`duration\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration)
*/
readonly duration: number | null;
/**
* The **\`timestamp\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp)
*/
readonly timestamp: number;
/**
* The **\`type\`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type)
*/
readonly type: EncodedVideoChunkType;
/**
* The **\`copyTo()\`** method of the EncodedVideoChunk interface copies the encoded chunk of video data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo)
*/
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedVideoChunk: {
prototype: EncodedVideoChunk;
new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};
/**
* The **\`ErrorEvent\`** interface represents 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 {
/**
* The **\`colno\`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)
*/
readonly colno: number;
/**
* The **\`error\`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)
*/
readonly error: any;
/**
* The **\`filename\`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)
*/
readonly filename: string;
/**
* The **\`lineno\`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)
*/
readonly lineno: number;
/**
* The **\`message\`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
*
* [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;
};
/**
* The **\`Event\`** interface represents an event which takes place on an \`EventTarget\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
*/
interface Event {
/**
* The **\`bubbles\`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
*/
readonly bubbles: boolean;
/**
* The **\`cancelBubble\`** property of the Event interface is deprecated.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
*/
cancelBubble: boolean;
/**
* The **\`cancelable\`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
*/
readonly cancelable: boolean;
/**
* The read-only **\`composed\`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
*/
readonly composed: boolean;
/**
* The **\`currentTarget\`** read-only property of the Event interface identifies the element to which the event handler has been attached.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
*/
readonly currentTarget: EventTarget | null;
/**
* The **\`defaultPrevented\`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
*/
readonly defaultPrevented: boolean;
/**
* The **\`eventPhase\`** read-only property of the being evaluated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
*/
readonly eventPhase: number;
/**
* The **\`isTrusted\`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and \`false\` when the event was dispatched via The only exception is the \`click\` event, which initializes the \`isTrusted\` property to \`false\` in user agents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
readonly isTrusted: boolean;
/**
* The Event property **\`returnValue\`** indicates whether the default action for this event has been prevented or not.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
*/
returnValue: boolean;
/**
* The deprecated **\`Event.srcElement\`** is an alias for the Event.target property.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
*/
readonly srcElement: EventTarget | null;
/**
* The read-only **\`target\`** property of the dispatched.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
*/
readonly target: EventTarget | null;
/**
* The **\`timeStamp\`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* The **\`type\`** read-only property of the Event interface returns a string containing the event's type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
*/
readonly type: string;
/**
* The **\`composedPath()\`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
*/
composedPath(): EventTarget[];
/**
* The **\`Event.initEvent()\`** method is used to initialize the value of an event created using Document.createEvent().
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
*/
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* The **\`preventDefault()\`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
*/
preventDefault(): void;
/**
* The **\`stopImmediatePropagation()\`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
*/
stopImmediatePropagation(): void;
/**
* The **\`stopPropagation()\`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
*
* [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;
};
/**
* The **\`EventCounts\`** interface of the Performance API provides the number of events that have been dispatched for each event type.
*
* [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;
}
/**
* The **\`EventSource\`** interface is web content's interface to server-sent events.
*
* [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;
/**
* The **\`readyState\`** read-only property of the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
*/
readonly readyState: number;
/**
* The **\`url\`** read-only property of the URL of the source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
*/
readonly url: string;
/**
* The **\`withCredentials\`** read-only property of the the \`EventSource\` object was instantiated with CORS credentials set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
*/
readonly withCredentials: boolean;
/**
* The **\`close()\`** method of the EventSource interface closes the connection, if one is made, and sets the \`\`\`js-nolint close() \`\`\` None.
*
* [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;
};
/**
* The **\`EventTarget\`** interface is 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 {
/**
* The **\`addEventListener()\`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
dispatchEvent(event: Event): boolean;
/**
* The **\`removeEventListener()\`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
*
* [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 */
interface External {
/** @deprecated */
AddSearchProvider(): void;
/** @deprecated */
IsSearchProviderInstalled(): void;
}
/** @deprecated */
declare var External: {
prototype: External;
new(): External;
};
/**
* The **\`File\`** interface 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 {
/**
* The **\`lastModified\`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
*/
readonly lastModified: number;
/**
* The **\`name\`** read-only property of the File interface returns the name of the file represented by a File object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
*/
readonly name: string;
/**
* The **\`webkitRelativePath\`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its \`webkitdirectory\` attribute set.
*
* [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;
};
/**
* The **\`FileList\`** interface represents an object of this type 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
*/
interface FileList {
/**
* The **\`length\`** read-only property of the FileList interface returns the number of files in the \`FileList\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length)
*/
readonly length: number;
/**
* The **\`item()\`** method of the FileList interface returns a File object representing the file at the specified index in the file list.
*
* [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>;
}
/**
* The **\`FileReader\`** interface 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 {
/**
* The **\`error\`** read-only property of the FileReader interface returns the error that occurred while reading the file.
*
* [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;
/**
* The **\`readyState\`** read-only property of the FileReader interface provides the current state of the reading operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
*/
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
/**
* The **\`result\`** read-only property of the FileReader interface returns the file's contents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result)
*/
readonly result: string | ArrayBuffer | null;
/**
* The **\`abort()\`** method of the FileReader interface aborts the read operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort)
*/
abort(): void;
/**
* The **\`readAsArrayBuffer()\`** method of the FileReader interface is used to start reading the contents of a specified Blob or File.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer)
*/
readAsArrayBuffer(blob: Blob): void;
/**
* The **\`readAsBinaryString()\`** method of the FileReader interface is used to start reading the contents of the specified Blob or File.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): void;
/**
* The **\`readAsDataURL()\`** method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL)
*/
readAsDataURL(blob: Blob): void;
/**
* The **\`readAsText()\`** method of the FileReader interface is used to read the contents of the specified Blob or File.
*
* [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;
};
/**
* The File and Directory Entries API interface **\`FileSystem\`** is used to represent a file system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem)
*/
interface FileSystem {
/**
* The read-only **\`name\`** property of the string is unique among all file systems currently exposed by the File and Directory Entries API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name)
*/
readonly name: string;
/**
* The read-only **\`root\`** property of the object representing the root directory of the file system, for use with the File and Directory Entries API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root)
*/
readonly root: FileSystemDirectoryEntry;
}
declare var FileSystem: {
prototype: FileSystem;
new(): FileSystem;
};
/**
* The **\`FileSystemDirectoryEntry\`** interface of the File and Directory Entries API represents a directory in a file system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry)
*/
interface FileSystemDirectoryEntry extends FileSystemEntry {
/**
* The FileSystemDirectoryEntry interface's method **\`createReader()\`** returns a the directory.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader)
*/
createReader(): FileSystemDirectoryReader;
/**
* The FileSystemDirectoryEntry interface's method **\`getDirectory()\`** returns a somewhere within the directory subtree rooted at the directory on which it's called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory)
*/
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
/**
* The FileSystemDirectoryEntry interface's method **\`getFile()\`** returns a within the directory subtree rooted at the directory on which it's called.
*
* [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;
};
/**
* The **\`FileSystemDirectoryHandle\`** interface of the File System API provides a handle to a file system directory.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
*/
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
/**
* The **\`getDirectoryHandle()\`** method of the within the directory handle on which the method is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)
*/
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
/**
* The **\`getFileHandle()\`** method of the directory the method is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)
*/
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
/**
* The **\`removeEntry()\`** method of the directory handle contains a file or directory called the name specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry)
*/
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
/**
* The **\`resolve()\`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve)
*/
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/**
* The \`FileSystemDirectoryReader\` interface of the File and Directory Entries API lets you access the FileSystemFileEntry-based objects (generally FileSystemFileEntry or FileSystemDirectoryEntry) representing each entry in a directory.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader)
*/
interface FileSystemDirectoryReader {
/**
* The FileSystemDirectoryReader interface's **\`readEntries()\`** method retrieves the directory entries within the directory being read and delivers them in an array to a provided callback function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries)
*/
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryReader: {
prototype: FileSystemDirectoryReader;
new(): FileSystemDirectoryReader;
};
/**
* The **\`FileSystemEntry\`** interface of the File and Directory Entries API represents a single entry in a file system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry)
*/
interface FileSystemEntry {
/**
* The read-only **\`filesystem\`** property of the FileSystemEntry interface contains a resides.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem)
*/
readonly filesystem: FileSystem;
/**
* The read-only **\`fullPath\`** property of the FileSystemEntry interface returns a string specifying the full, absolute path from the file system's root to the file represented by the entry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath)
*/
readonly fullPath: string;
/**
* The read-only **\`isDirectory\`** property of the FileSystemEntry interface is \`true\` if the entry represents a directory (meaning it's a FileSystemDirectoryEntry) and \`false\` if it's not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory)
*/
readonly isDirectory: boolean;
/**
* The read-only **\`isFile\`** property of the FileSystemEntry interface is \`true\` if the entry represents a file (meaning it's a FileSystemFileEntry) and \`false\` if it's not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile)
*/
readonly isFile: boolean;
/**
* The read-only **\`name\`** property of the FileSystemEntry interface returns a string specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the FileSystemEntry.fullPath property).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name)
*/
readonly name: string;
/**
* The FileSystemEntry interface's method **\`getParent()\`** obtains a \`\`\`js-nolint getParent(successCallback, errorCallback) getParent(successCallback) \`\`\` - \`successCallback\` - : A function which is called when the parent directory entry has been retrieved.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent)
*/
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemEntry: {
prototype: FileSystemEntry;
new(): FileSystemEntry;
};
/**
* The **\`FileSystemFileEntry\`** interface of the File and Directory Entries API represents a file in a file system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry)
*/
interface FileSystemFileEntry extends FileSystemEntry {
/**
* The FileSystemFileEntry interface's method **\`file()\`** returns a the directory entry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file)
*/
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemFileEntry: {
prototype: FileSystemFileEntry;
new(): FileSystemFileEntry;
};
/**
* The **\`FileSystemFileHandle\`** interface of the File System API represents a handle to a file system entry.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
*/
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
/**
* The **\`createWritable()\`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable)
*/
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
/**
* The **\`getFile()\`** method of the If the file on disk changes or is removed after this method is called, the returned \`\`\`js-nolint getFile() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile)
*/
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/**
* The **\`FileSystemHandle\`** interface of the File System API is an object which represents a file or directory entry.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
*/
interface FileSystemHandle {
/**
* The **\`kind\`** read-only property of the \`'file'\` if the associated entry is a file or \`'directory'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind)
*/
readonly kind: FileSystemHandleKind;
/**
* The **\`name\`** read-only property of the handle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name)
*/
readonly name: string;
/**
* The **\`isSameEntry()\`** method of the \`\`\`js-nolint isSameEntry(fileSystemHandle) \`\`\` - FileSystemHandle - : The \`FileSystemHandle\` to match against the handle on which the method is invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry)
*/
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/**
* The **\`FileSystemWritableFileStream\`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
*/
interface FileSystemWritableFileStream extends WritableStream {
/**
* The **\`seek()\`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek)
*/
seek(position: number): Promise<void>;
/**
* The **\`truncate()\`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate)
*/
truncate(size: number): Promise<void>;
/**
* The **\`write()\`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write)
*/
write(data: FileSystemWriteChunkType): Promise<void>;
}
declare var FileSystemWritableFileStream: {
prototype: FileSystemWritableFileStream;
new(): FileSystemWritableFileStream;
};
/**
* The **\`FocusEvent\`** interface represents focus-related events, including Element/focus_event, Element/blur_event, Element/focusin_event, and Element/focusout_event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent)
*/
interface FocusEvent extends UIEvent {
/**
* The **\`relatedTarget\`** read-only property of the FocusEvent interface is the secondary target, depending on the type of event: <table class='no-markdown'> <thead> <tr> <th scope='col'>Event name</th> <th scope='col'><code>target</code></th> <th scope='col'><code>relatedTarget</code></th> </tr> </thead> <tbody> <tr> <td>Element/blur_event</td> <td>The EventTarget losing focus</td> <td>The EventTarget receiving focus (if any).</td> </tr> <tr> <td>Element/focus_event</td> <td>The EventTarget receiving focus</td> <td>The EventTarget losing focus (if any)</td> </tr> <tr> <td>Element/focusin_event</td> <td>The EventTarget receiving focus</td> <td>The EventTarget losing focus (if any)</td> </tr> <tr> <td>Element/focusout_event</td> <td>The EventTarget losing focus</td> <td>The EventTarget receiving focus (if any)</td> </tr> </tbody> </table> Note that many elements can't have focus, which is a common reason for \`relatedTarget\` to be \`null\`.
*
* [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;
};
/**
* The **\`FontFace\`** interface of the CSS Font Loading API represents a single usable font face.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace)
*/
interface FontFace {
/**
* The **\`ascentOverride\`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride)
*/
ascentOverride: string;
/**
* The **\`descentOverride\`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride)
*/
descentOverride: string;
/**
* The **\`display\`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display)
*/
display: FontDisplay;
/**
* The **\`FontFace.family\`** property allows the author to get or set the font family of a FontFace object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family)
*/
family: string;
/**
* The **\`featureSettings\`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font's variant properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings)
*/
featureSettings: string;
/**
* The **\`lineGapOverride\`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride)
*/
lineGapOverride: string;
/**
* The **\`loaded\`** read-only property of the FontFace interface returns a Promise that resolves with the current \`FontFace\` object when the font specified in the object's constructor is done loading or rejects with a \`SyntaxError\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded)
*/
readonly loaded: Promise<FontFace>;
/**
* The **\`status\`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of \`'unloaded'\`, \`'loading'\`, \`'loaded'\`, or \`'error'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status)
*/
readonly status: FontFaceLoadStatus;
/**
* The **\`stretch\`** property of the FontFace interface retrieves or sets how the font stretches.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch)
*/
stretch: string;
/**
* The **\`style\`** property of the FontFace interface retrieves or sets the font's style.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style)
*/
style: string;
/**
* The **\`unicodeRange\`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
*/
unicodeRange: string;
/**
* The **\`weight\`** property of the FontFace interface retrieves or sets the weight of the font.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight)
*/
weight: string;
/**
* The **\`load()\`** method of the FontFace interface requests and loads a font whose \`source\` was specified as a URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load)
*/
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": FontFaceSetLoadEvent;
"loadingdone": FontFaceSetLoadEvent;
"loadingerror": FontFaceSetLoadEvent;
}
/**
* The **\`FontFaceSet\`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.
*
* [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: FontFaceSetLoadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
/**
* The \`ready\` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready)
*/
readonly ready: Promise<FontFaceSet>;
/**
* The **\`status\`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status)
*/
readonly status: FontFaceSetLoadStatus;
/**
* The \`check()\` method of the FontFaceSet returns \`true\` if you can render some text using the given font specification without attempting to use any fonts in this \`FontFaceSet\` that are not yet fully loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)
*/
check(font: string, text?: string): boolean;
/**
* The \`load()\` method of the FontFaceSet forces all the fonts given in parameters to be loaded.
*
* [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(): FontFaceSet;
};
/**
* The **\`FontFaceSetLoadEvent\`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent)
*/
interface FontFaceSetLoadEvent extends Event {
/**
* The **\`fontfaces\`** read-only property of the An array of FontFace instance.
*
* [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;
}
/**
* The **\`FormData\`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
*/
interface FormData {
/**
* The **\`append()\`** method of the FormData interface appends a new value onto an existing key inside a \`FormData\` object, or adds the key if it does not already exist.
*
* [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;
/**
* The **\`delete()\`** method of the FormData interface deletes a key and its value(s) from a \`FormData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)
*/
delete(name: string): void;
/**
* The **\`get()\`** method of the FormData interface returns the first value associated with a given key from within a \`FormData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)
*/
get(name: string): FormDataEntryValue | null;
/**
* The **\`getAll()\`** method of the FormData interface returns all the values associated with a given key from within a \`FormData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
*/
getAll(name: string): FormDataEntryValue[];
/**
* The **\`has()\`** method of the FormData interface returns whether a \`FormData\` object contains a certain key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
*/
has(name: string): boolean;
/**
* The **\`set()\`** method of the FormData interface sets a new value for an existing key inside a \`FormData\` object, or adds the key/value if it does not already exist.
*
* [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;
};
/**
* The **\`FormDataEvent\`** interface represents a \`formdata\` event \u2014 such an event is fired on an HTMLFormElement object after the entry list representing the form's data is constructed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent)
*/
interface FormDataEvent extends Event {
/**
* The \`formData\` read-only property of the FormDataEvent interface contains the FormData object representing the data contained in the form when the event was fired.
*
* [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;
};
/**
* The **\`FragmentDirective\`** interface is an object exposed to allow code to check whether or not a browser supports text fragments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective)
*/
interface FragmentDirective {
}
declare var FragmentDirective: {
prototype: FragmentDirective;
new(): FragmentDirective;
};
/**
* The **\`GPUError\`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
*/
interface GPUError {
/**
* The **\`message\`** read-only property of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message)
*/
readonly message: string;
}
/**
* The \`GainNode\` interface represents a change in volume.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode)
*/
interface GainNode extends AudioNode {
/**
* The \`gain\` property of the GainNode interface is an a-rate AudioParam representing the amount of gain to apply.
*
* [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;
};
/**
* The **\`Gamepad\`** interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
*/
interface Gamepad {
/**
* The **\`Gamepad.axes\`** property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g., analog thumb sticks).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes)
*/
readonly axes: ReadonlyArray<number>;
/**
* The **\`buttons\`** property of the Gamepad interface returns an array of GamepadButton objects representing the buttons present on the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons)
*/
readonly buttons: ReadonlyArray<GamepadButton>;
/**
* The **\`Gamepad.connected\`** property of the still connected to the system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected)
*/
readonly connected: boolean;
/**
* The **\`Gamepad.id\`** property of the Gamepad interface returns a string containing some information about the controller.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id)
*/
readonly id: string;
/**
* The **\`Gamepad.index\`** property of the Gamepad interface returns an integer that is auto-incremented to be unique for each device currently connected to the system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index)
*/
readonly index: number;
/**
* The **\`Gamepad.mapping\`** property of the remapped the controls on the device to a known layout.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping)
*/
readonly mapping: GamepadMappingType;
/**
* The **\`Gamepad.timestamp\`** property of the representing the last time the data for this gamepad was updated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp)
*/
readonly timestamp: DOMHighResTimeStamp;
/**
* The **\`vibrationActuator\`** read-only property of the Gamepad interface returns a GamepadHapticActuator object, which represents haptic feedback hardware available on the controller.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator)
*/
readonly vibrationActuator: GamepadHapticActuator;
}
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
};
/**
* The **\`GamepadButton\`** interface defines 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
*/
interface GamepadButton {
/**
* The **\`GamepadButton.pressed\`** property of the the button is currently pressed (\`true\`) or unpressed (\`false\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed)
*/
readonly pressed: boolean;
/**
* The **\`touched\`** property of the a button capable of detecting touch is currently touched (\`true\`) or not touched (\`false\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched)
*/
readonly touched: boolean;
/**
* The **\`GamepadButton.value\`** property of the current state of analog buttons on many modern gamepads, such as the triggers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value)
*/
readonly value: number;
}
declare var GamepadButton: {
prototype: GamepadButton;
new(): GamepadButton;
};
/**
* The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected_event and Window.gamepaddisconnected_event are fired in response to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
*/
interface GamepadEvent extends Event {
/**
* The **\`GamepadEvent.gamepad\`** property of the **GamepadEvent interface** returns a Gamepad object, providing access to the associated gamepad data for fired A Gamepad object.
*
* [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;
};
/**
* The **\`GamepadHapticActuator\`** interface of the Gamepad API 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 {
/**
* The **\`playEffect()\`** method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect)
*/
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
/**
* The **\`reset()\`** method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset)
*/
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;
}
/**
* The **\`Geolocation\`** interface represents an object able to obtain the position of the device programmatically.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation)
*/
interface Geolocation {
/**
* The **\`clearWatch()\`** method of the Geolocation interface is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch)
*/
clearWatch(watchId: number): void;
/**
* The **\`getCurrentPosition()\`** method of the Geolocation interface is used to get the current position of the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition)
*/
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
/**
* The **\`watchPosition()\`** method of the Geolocation interface is used to register a handler function that will be called automatically each time the position of the device changes.
*
* [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;
};
/**
* The **\`GeolocationCoordinates\`** interface represents the position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates)
*/
interface GeolocationCoordinates {
/**
* The **\`accuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the GeolocationCoordinates.latitude and GeolocationCoordinates.longitude properties expressed in meters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy)
*/
readonly accuracy: number;
/**
* The **\`altitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the altitude of the position in meters above the WGS84 ellipsoid (which defines the nominal sea level surface).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude)
*/
readonly altitude: number | null;
/**
* The **\`altitudeAccuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the \`altitude\` expressed in meters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy)
*/
readonly altitudeAccuracy: number | null;
/**
* The **\`heading\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the direction in which the device is traveling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading)
*/
readonly heading: number | null;
/**
* The **\`latitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the latitude of the position in decimal degrees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude)
*/
readonly latitude: number;
/**
* The **\`longitude\`** read-only property of the GeolocationCoordinates interface is a number which represents the longitude of a geographical position, specified in decimal degrees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude)
*/
readonly longitude: number;
/**
* The **\`speed\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the velocity of the device in meters per second.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed)
*/
readonly speed: number | null;
/**
* The **\`toJSON()\`** method of the GeolocationCoordinates interface is a Serialization; it returns a JSON representation of the GeolocationCoordinates object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON)
*/
toJSON(): any;
}
declare var GeolocationCoordinates: {
prototype: GeolocationCoordinates;
new(): GeolocationCoordinates;
};
/**
* The **\`GeolocationPosition\`** interface represents the position of the concerned device at a given time.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)
*/
interface GeolocationPosition {
/**
* The **\`coords\`** read-only property of the GeolocationPosition interface returns a GeolocationCoordinates object representing a geographic position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords)
*/
readonly coords: GeolocationCoordinates;
/**
* The **\`timestamp\`** read-only property of the GeolocationPosition interface represents the date and time that the position was acquired by the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp)
*/
readonly timestamp: EpochTimeStamp;
/**
* The **\`toJSON()\`** method of the GeolocationPosition interface is a Serialization; it returns a JSON representation of the GeolocationPosition object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON)
*/
toJSON(): any;
}
declare var GeolocationPosition: {
prototype: GeolocationPosition;
new(): GeolocationPosition;
};
/**
* The **\`GeolocationPositionError\`** interface represents the reason of an error occurring when using the geolocating device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError)
*/
interface GeolocationPositionError {
/**
* The **\`code\`** read-only property of the GeolocationPositionError interface is an \`unsigned short\` representing the error code.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code)
*/
readonly code: number;
/**
* The **\`message\`** read-only property of the GeolocationPositionError interface returns a human-readable string describing the details of the error.
*
* [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": PointerEvent;
"beforeinput": InputEvent;
"beforematch": Event;
"beforetoggle": ToggleEvent;
"blur": FocusEvent;
"cancel": Event;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": PointerEvent;
"close": Event;
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextlost": Event;
"contextmenu": PointerEvent;
"contextrestored": Event;
"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;
"pointerrawupdate": Event;
"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": ToggleEvent;
"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 {
/** [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: PointerEvent) => 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/Element/beforematch_event) */
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
/** [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;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */
onerror: OnErrorEventHandler;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [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/Element/lostpointercapture_event) */
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [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;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
*/
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [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;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [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;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [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/HTMLElement/toggle_event) */
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [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;
}
/**
* The **\`HTMLAllCollection\`** interface represents a collection of _all_ of the document's elements, accessible by index (like an array) and by the element's \`id\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection)
*/
interface HTMLAllCollection {
/**
* The **\`HTMLAllCollection.length\`** property returns the number of items in this HTMLAllCollection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length)
*/
readonly length: number;
/**
* The **\`item()\`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its \`id\` or \`name\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item)
*/
item(nameOrIndex?: string): HTMLCollection | Element | null;
/**
* The **\`namedItem()\`** method of the HTMLAllCollection interface returns the first Element in the collection whose \`id\` or \`name\` attribute matches the specified name, or \`null\` if no element matches.
*
* [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;
};
/**
* The **\`HTMLAnchorElement\`** interface represents 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 {
/** @deprecated */
charset: string;
/** @deprecated */
coords: string;
/**
* The **\`HTMLAnchorElement.download\`** property is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download)
*/
download: string;
/**
* The **\`hreflang\`** property of the HTMLAnchorElement interface is a string that is the language of the linked resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang)
*/
hreflang: string;
/** @deprecated */
name: string;
/**
* The **\`ping\`** property of the HTMLAnchorElement interface is a space-separated list of URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping)
*/
ping: string;
/**
* The **\`HTMLAnchorElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the A string; one of the following: - \`no-referrer\` - : The Referer header will be omitted entirely.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy)
*/
referrerPolicy: string;
/**
* The **\`HTMLAnchorElement.rel\`** property reflects the \`rel\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel)
*/
rel: string;
/**
* The **\`HTMLAnchorElement.relList\`** read-only property reflects the \`rel\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList)
*/
get relList(): DOMTokenList;
set relList(value: string);
/** @deprecated */
rev: string;
/** @deprecated */
shape: string;
/**
* The **\`target\`** property of the HTMLAnchorElement interface is a string that indicates where to display the linked resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target)
*/
target: string;
/**
* The **\`text\`** property of the HTMLAnchorElement represents the text inside the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text)
*/
text: string;
/**
* The **\`type\`** property of the HTMLAnchorElement interface is a string that indicates the MIME type of the linked resource.
*
* [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;
};
/**
* The **\`HTMLAreaElement\`** interface 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 {
/**
* The **\`alt\`** property of the HTMLAreaElement interface specifies the text of the hyperlink, defining the textual label for an image map's link.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)
*/
alt: string;
/**
* The **\`coords\`** property of the HTMLAreaElement interface specifies the coordinates of the element's shape as a list of floating-point numbers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)
*/
coords: string;
/**
* The **\`download\`** property of the HTMLAreaElement interface is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download)
*/
download: string;
/** @deprecated */
noHref: boolean;
/**
* The **\`ping\`** property of the HTMLAreaElement interface is a space-separated list of URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping)
*/
ping: string;
/**
* The **\`HTMLAreaElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy)
*/
referrerPolicy: string;
/**
* The **\`HTMLAreaElement.rel\`** property reflects the \`rel\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel)
*/
rel: string;
/**
* The **\`HTMLAreaElement.relList\`** read-only property reflects the \`rel\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList)
*/
get relList(): DOMTokenList;
set relList(value: string);
/**
* The **\`shape\`** property of the HTMLAreaElement interface specifies the shape of an image map area.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)
*/
shape: string;
/**
* The **\`target\`** property of the HTMLAreaElement interface is a string that indicates where to display the linked resource.
*
* [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;
};
/**
* The **\`HTMLAudioElement\`** interface provides access to the properties of audio elements, as well as methods to manipulate them.
*
* [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;
};
/**
* The **\`HTMLBRElement\`** interface represents an HTML line break element (br).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement)
*/
interface HTMLBRElement extends HTMLElement {
/** @deprecated */
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBRElement: {
prototype: HTMLBRElement;
new(): HTMLBRElement;
};
/**
* The **\`HTMLBaseElement\`** interface contains the base URI for a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)
*/
interface HTMLBaseElement extends HTMLElement {
/**
* The **\`href\`** property of the HTMLBaseElement interface contains a string that is the URL to use as the base for relative URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)
*/
href: string;
/**
* The \`target\` property of the HTMLBaseElement interface is a string that represents the default target tab to show the resulting output for hyperlinks and form elements.
*
* [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 {
}
/**
* The **\`HTMLBodyElement\`** interface 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 */
aLink: string;
/** @deprecated */
background: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
link: string;
/** @deprecated */
text: string;
/** @deprecated */
vLink: string;
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBodyElement: {
prototype: HTMLBodyElement;
new(): HTMLBodyElement;
};
/**
* The **\`HTMLButtonElement\`** interface 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 {
/**
* The **\`HTMLButtonElement.disabled\`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled)
*/
disabled: boolean;
/**
* The **\`form\`** read-only property of the HTMLButtonElement interface returns an HTMLFormElement object that owns this button, or \`null\` if this button is not owned by any form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`formAction\`** property of the HTMLButtonElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)
*/
formAction: string;
/**
* The **\`formEnctype\`** property of the HTMLButtonElement interface is the MIME_type of the content sent to the server when the form is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)
*/
formEnctype: string;
/**
* The **\`formMethod\`** property of the HTMLButtonElement interface is the HTTP method used to submit the form if the button element is the control that submits the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
*/
formMethod: string;
/**
* The **\`formNoValidate\`** property of the HTMLButtonElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
*/
formNoValidate: boolean;
/**
* The **\`formTarget\`** property of the HTMLButtonElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
*/
formTarget: string;
/**
* The **\`HTMLButtonElement.labels\`** read-only property returns a A NodeList containing the \`<label>\` elements associated with the \`<button>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels)
*/
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* The **\`name\`** property of the HTMLButtonElement interface indicates the name of the button element or the empty string if the element has no name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)
*/
name: string;
/**
* The **\`type\`** property of the HTMLButtonElement interface is a string that indicates the behavior type of the button element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)
*/
type: "submit" | "reset" | "button";
/**
* The **\`validationMessage\`** read-only property of the HTMLButtonElement interface returns a string representing a localized message that describes the validation constraints that the button control does not satisfy (if any).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)
*/
readonly validationMessage: string;
/**
* The **\`validity\`** read-only property of the HTMLButtonElement interface returns a ValidityState object that represents the validity states this element is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)
*/
readonly validity: ValidityState;
/**
* The **\`value\`** property of the HTMLButtonElement interface represents the value of the button element as a string, or the empty string if no value is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
*/
value: string;
/**
* The **\`willValidate\`** read-only property of the HTMLButtonElement interface indicates whether the button element is a candidate for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)
*/
readonly willValidate: boolean;
/**
* The **\`checkValidity()\`** method of the HTMLButtonElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`reportValidity()\`** method of the HTMLButtonElement interface performs the same validity checking steps as the HTMLButtonElement.checkValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity)
*/
reportValidity(): boolean;
/**
* The **\`setCustomValidity()\`** method of the HTMLButtonElement interface sets the custom validity message for the button element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/setCustomValidity)
*/
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;
};
/**
* The **\`HTMLCanvasElement\`** interface provides properties and methods for manipulating the layout and presentation of canvas elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement)
*/
interface HTMLCanvasElement extends HTMLElement {
/**
* The **\`HTMLCanvasElement.height\`** property is a positive \`integer\` reflecting the \`height\` HTML attribute of the canvas element interpreted in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height)
*/
height: number;
/**
* The **\`HTMLCanvasElement.width\`** property is a positive \`integer\` reflecting the \`width\` HTML attribute of the canvas element interpreted in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width)
*/
width: number;
/**
* The **\`captureStream()\`** method of the HTMLCanvasElement interface returns a MediaStream which includes a CanvasCaptureMediaStreamTrack containing a real-time video capture of the canvas's contents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream)
*/
captureStream(frameRequestRate?: number): MediaStream;
/**
* The **\`HTMLCanvasElement.getContext()\`** method returns a drawing context on the canvas, or \`null\` if the context identifier is not supported, or the canvas has already been set to a different context mode.
*
* [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;
/**
* The **\`HTMLCanvasElement.toBlob()\`** method creates a Blob object representing the image contained in the canvas.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob)
*/
toBlob(callback: BlobCallback, type?: string, quality?: number): void;
/**
* The **\`HTMLCanvasElement.toDataURL()\`** method returns a data URL containing a representation of the image in the format specified by the \`type\` parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)
*/
toDataURL(type?: string, quality?: number): string;
/**
* The **\`HTMLCanvasElement.transferControlToOffscreen()\`** method transfers control to an OffscreenCanvas object, either on the main thread or on a worker.
*
* [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;
};
/**
* The **\`HTMLCollection\`** interface represents a generic collection (array-like object similar to Functions/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 {
/**
* The **\`HTMLCollection.length\`** property returns the number of items in a HTMLCollection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)
*/
readonly length: number;
/**
* The HTMLCollection method \`item()\` returns the element located at the specified offset into the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)
*/
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/**
* The **\`namedItem()\`** method of the HTMLCollection interface returns the first Element in the collection whose \`id\` or \`name\` attribute match the specified name, or \`null\` if no element matches.
*
* [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;
}
/**
* The **\`HTMLDListElement\`** interface 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 */
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;
};
/**
* The **\`HTMLDataElement\`** interface 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 {
/**
* The **\`value\`** property of the HTMLDataElement interface returns a string reflecting the \`value\` HTML attribute.
*
* [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;
};
/**
* The **\`HTMLDataListElement\`** interface 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 {
/**
* The **\`options\`** read-only property of the HTMLDataListElement interface returns an HTMLCollection of HTMLOptionElement elements contained in a datalist.
*
* [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;
};
/**
* The **\`HTMLDetailsElement\`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating details elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement)
*/
interface HTMLDetailsElement extends HTMLElement {
/**
* The **\`name\`** property of the HTMLDetailsElement interface reflects the \`name\` attribute of details elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/name)
*/
name: string;
/**
* The **\`open\`** property of the \`open\` HTML attribute, indicating whether the details's contents (not counting the summary) is to be shown to the user.
*
* [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;
};
/**
* The **\`HTMLDialogElement\`** interface provides methods to manipulate dialog elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement)
*/
interface HTMLDialogElement extends HTMLElement {
/**
* The **\`open\`** property of the \`open\` HTML attribute, indicating whether the dialog is available for interaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open)
*/
open: boolean;
/**
* The **\`returnValue\`** property of the HTMLDialogElement interface is a string representing the return value for a dialog element when it's closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue)
*/
returnValue: string;
/**
* The **\`close()\`** method of the HTMLDialogElement interface closes the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)
*/
close(returnValue?: string): void;
/**
* The **\`requestClose()\`** method of the HTMLDialogElement interface requests to close the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/requestClose)
*/
requestClose(returnValue?: string): void;
/**
* The **\`show()\`** method of the HTMLDialogElement interface displays the dialog modelessly, i.e., still allowing interaction with content outside of the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)
*/
show(): void;
/**
* The **\`showModal()\`** method of the of any other dialogs that might be present.
*
* [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;
};
/**
* The **\`HTMLDivElement\`** interface 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 {
/** @deprecated */
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDivElement: {
prototype: HTMLDivElement;
new(): HTMLDivElement;
};
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;
}
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/**
* The **\`HTMLElement\`** interface represents any HTML element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
*/
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
/**
* The **\`HTMLElement.accessKey\`** property sets the keystroke which a user can press to jump to a given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey)
*/
accessKey: string;
/**
* The **\`HTMLElement.accessKeyLabel\`** read-only property returns a string containing the element's browser-assigned access key (if any); otherwise it returns an empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel)
*/
readonly accessKeyLabel: string;
/**
* The **\`autocapitalize\`** property of the HTMLElement interface represents the element's capitalization behavior for user input.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize)
*/
autocapitalize: string;
/**
* The **\`autocorrect\`** property of the HTMLElement interface controls whether or not autocorrection of editable text is enabled for spelling and/or punctuation errors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocorrect)
*/
autocorrect: boolean;
/**
* The **\`HTMLElement.dir\`** property indicates the text writing directionality of the content of the current element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir)
*/
dir: string;
/**
* The **\`draggable\`** property of the HTMLElement interface gets and sets a Boolean primitive indicating if the element is draggable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable)
*/
draggable: boolean;
/**
* The HTMLElement property **\`hidden\`** reflects the value of the element's \`hidden\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden)
*/
hidden: boolean;
/**
* The HTMLElement property **\`inert\`** reflects the value of the element's \`inert\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert)
*/
inert: boolean;
/**
* The **\`innerText\`** property of the HTMLElement interface represents the rendered text content of a node and its descendants.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText)
*/
innerText: string;
/**
* The **\`lang\`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
*/
lang: string;
/**
* The **\`offsetHeight\`** read-only property of the HTMLElement interface returns the height of an element, including vertical padding and borders, as an integer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight)
*/
readonly offsetHeight: number;
/**
* The **\`offsetLeft\`** read-only property of the HTMLElement interface returns the number of pixels that the _upper left corner_ of the current element is offset to the left within the HTMLElement.offsetParent node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft)
*/
readonly offsetLeft: number;
/**
* The **\`HTMLElement.offsetParent\`** read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent)
*/
readonly offsetParent: Element | null;
/**
* The **\`offsetTop\`** read-only property of the HTMLElement interface returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the _closest positioned_ ancestor element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop)
*/
readonly offsetTop: number;
/**
* The **\`offsetWidth\`** read-only property of the HTMLElement interface returns the layout width of an element as an integer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth)
*/
readonly offsetWidth: number;
/**
* The **\`outerText\`** property of the HTMLElement interface returns the same value as HTMLElement.innerText.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText)
*/
outerText: string;
/**
* The **\`popover\`** property of the HTMLElement interface gets and sets an element's popover state via JavaScript (\`'auto'\`, \`'hint'\`, or \`'manual'\`), and can be used for feature detection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover)
*/
popover: string | null;
/**
* The **\`spellcheck\`** property of the HTMLElement interface represents a boolean value that controls the spell-checking hint.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck)
*/
spellcheck: boolean;
/**
* The **\`HTMLElement.title\`** property represents the title of the element: the text usually displayed in a 'tooltip' popup when the mouse is over the node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title)
*/
title: string;
/**
* The **\`translate\`** property of the HTMLElement interface indicates whether an element's attribute values and the values of its Text node children are to be translated when the page is localized, or whether to leave them unchanged.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate)
*/
translate: boolean;
/**
* The **\`writingSuggestions\`** property of the HTMLElement interface is a string indicating if browser-provided writing suggestions should be enabled under the scope of the element or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/writingSuggestions)
*/
writingSuggestions: string;
/**
* The **\`HTMLElement.attachInternals()\`** method returns an ElementInternals object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals)
*/
attachInternals(): ElementInternals;
/**
* The **\`HTMLElement.click()\`** method simulates a mouse click on an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click)
*/
click(): void;
/**
* The **\`hidePopover()\`** method of the HTMLElement interface hides a popover element (i.e., one that has a valid \`popover\` attribute) by removing it from the top layer and styling it with \`display: none\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover)
*/
hidePopover(): void;
/**
* The **\`showPopover()\`** method of the HTMLElement interface shows a Popover_API element (i.e., one that has a valid \`popover\` attribute) by adding it to the top layer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover)
*/
showPopover(): void;
/**
* The **\`togglePopover()\`** method of the HTMLElement interface toggles a Popover_API element (i.e., one that has a valid \`popover\` attribute) between the hidden and showing states.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover)
*/
togglePopover(options?: 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;
};
/**
* The **\`HTMLEmbedElement\`** interface 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;
/**
* The **\`height\`** property of the HTMLEmbedElement interface returns a string that reflects the \`height\` attribute of the embed element, indicating the displayed height of the resource in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height)
*/
height: string;
/** @deprecated */
name: string;
/**
* The **\`src\`** property of the HTMLEmbedElement interface returns a string that indicates the URL of the resource being embedded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src)
*/
src: string;
/**
* The **\`type\`** property of the HTMLEmbedElement interface returns a string that reflects the \`type\` attribute of the embed element, indicating the MIME type of the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/type)
*/
type: string;
/**
* The **\`width\`** property of the HTMLEmbedElement interface returns a string that reflects the \`width\` attribute of the embed element, indicating the displayed width of the resource in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width)
*/
width: string;
/**
* The **\`getSVGDocument()\`** method of the HTMLEmbedElement interface returns the Document object of the embedded SVG.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/getSVGDocument)
*/
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;
};
/**
* The **\`HTMLFieldSetElement\`** interface 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 {
/**
* The **\`disabled\`** property of the HTMLFieldSetElement interface is a boolean value that reflects the fieldset element's \`disabled\` attribute, which indicates whether the control is disabled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled)
*/
disabled: boolean;
/**
* The **\`elements\`** read-only property of the HTMLFieldSetElement interface returns an HTMLCollection object containing all form control elements (button, fieldset, input, object, output, select, and textarea) that are descendants of this field set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)
*/
readonly elements: HTMLCollection;
/**
* The **\`form\`** read-only property of the HTMLFieldSetElement interface returns an HTMLFormElement object that owns this fieldset, or \`null\` if this fieldset is not owned by any form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`name\`** property of the HTMLFieldSetElement interface indicates the name of the fieldset element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name)
*/
name: string;
/**
* The **\`type\`** read-only property of the HTMLFieldSetElement interface returns the string \`'fieldset'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)
*/
readonly type: string;
/**
* The **\`validationMessage\`** read-only property of the HTMLFieldSetElement interface returns a string representing a localized message that describes the validation constraints that the fieldset control does not satisfy (if any).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)
*/
readonly validationMessage: string;
/**
* The **\`validity\`** read-only property of the HTMLFieldSetElement interface returns a ValidityState object that represents the validity states this element is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)
*/
readonly validity: ValidityState;
/**
* The **\`willValidate\`** read-only property of the HTMLFieldSetElement interface returns \`false\`, because fieldset elements are not candidates for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)
*/
readonly willValidate: boolean;
/**
* The **\`checkValidity()\`** method of the HTMLFieldSetElement interface checks if the element is valid, but always returns true because fieldset elements are never candidates for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`reportValidity()\`** method of the HTMLFieldSetElement interface performs the same validity checking steps as the HTMLFieldSetElement.checkValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity)
*/
reportValidity(): boolean;
/**
* The **\`setCustomValidity()\`** method of the HTMLFieldSetElement interface sets the custom validity message for the fieldset element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/setCustomValidity)
*/
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.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement)
*/
interface HTMLFontElement extends HTMLElement {
/**
* The obsolete **\`HTMLFontElement.color\`** property is a string that reflects the \`color\` HTML attribute, containing either a named color or a color specified in the hexadecimal #RRGGBB format.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color)
*/
color: string;
/**
* The obsolete **\`HTMLFontElement.face\`** property is a string that reflects the \`face\` HTML attribute, containing a comma-separated list of one or more font names.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face)
*/
face: string;
/**
* The obsolete **\`HTMLFontElement.size\`** property is a string that reflects the \`size\` HTML attribute.
* @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;
};
/**
* The **\`HTMLFormControlsCollection\`** interface represents a _collection_ of HTML _form control elements_, returned by the HTMLFormElement interface's HTMLFormElement.elements property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)
*/
interface HTMLFormControlsCollection extends HTMLCollectionBase {
/**
* The **\`HTMLFormControlsCollection.namedItem()\`** method returns the RadioNodeList or the Element in the collection whose \`name\` or \`id\` match the specified name, or \`null\` if no node matches.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem)
*/
namedItem(name: string): RadioNodeList | Element | null;
}
declare var HTMLFormControlsCollection: {
prototype: HTMLFormControlsCollection;
new(): HTMLFormControlsCollection;
};
/**
* The **\`HTMLFormElement\`** interface represents a form element in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement)
*/
interface HTMLFormElement extends HTMLElement {
/**
* The **\`HTMLFormElement.acceptCharset\`** property represents the character encoding for the given form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset)
*/
acceptCharset: string;
/**
* The **\`HTMLFormElement.action\`** property represents the action of the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)
*/
action: string;
/**
* The **\`autocomplete\`** property of the HTMLFormElement interface indicates whether the value of the form's controls can be automatically completed by the browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
*/
autocomplete: AutoFillBase;
/**
* The HTMLFormElement property **\`elements\`** returns an the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements)
*/
readonly elements: HTMLFormControlsCollection;
/**
* The **\`HTMLFormElement.encoding\`** property is an alternative name for the HTMLFormElement.enctype element on the DOM HTMLFormElement object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding)
*/
encoding: string;
/**
* The **\`HTMLFormElement.enctype\`** property is the MIME_type of content that is used to submit the form to the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype)
*/
enctype: string;
/**
* The **\`HTMLFormElement.length\`** read-only property returns the number of controls in the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length)
*/
readonly length: number;
/**
* The **\`HTMLFormElement.method\`** property represents the Unless explicitly specified, the default method is 'get'.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method)
*/
method: string;
/**
* The **\`HTMLFormElement.name\`** property represents the name of the current form element as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
*/
name: string;
/**
* The **\`noValidate\`** property of the HTMLFormElement interface is a boolean value indicating if the form will bypass constraint validation when submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
*/
noValidate: boolean;
/**
* The **\`rel\`** property of the HTMLFormElement interface reflects the \`rel\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/rel)
*/
rel: string;
/**
* The **\`relList\`** read-only property of the HTMLFormElement interface reflects the \`rel\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/relList)
*/
get relList(): DOMTokenList;
set relList(value: string);
/**
* The **\`target\`** property of the HTMLFormElement interface represents the target of the form's action (i.e., the frame in which to render its output).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)
*/
target: string;
/**
* The **\`checkValidity()\`** method of the HTMLFormElement interface returns a boolean value which indicates if all associated controls meet any constraint validation rules applied to them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`reportValidity()\`** method of the HTMLFormElement interface performs the same validity checking steps as the HTMLFormElement.checkValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity)
*/
reportValidity(): boolean;
/**
* The HTMLFormElement method **\`requestSubmit()\`** requests that the form be submitted using a specific submit button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit)
*/
requestSubmit(submitter?: HTMLElement | null): void;
/**
* The **\`HTMLFormElement.reset()\`** method restores a form element's default values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)
*/
reset(): void;
/**
* The **\`HTMLFormElement.submit()\`** method submits a given This method is similar, but not identical to, activating a form's submit - No HTMLFormElement/submit_event event is raised.
*
* [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 */
interface HTMLFrameElement extends HTMLElement {
/** @deprecated */
readonly contentDocument: Document | null;
/** @deprecated */
readonly contentWindow: WindowProxy | null;
/** @deprecated */
frameBorder: string;
/** @deprecated */
longDesc: string;
/** @deprecated */
marginHeight: string;
/** @deprecated */
marginWidth: string;
/** @deprecated */
name: string;
/** @deprecated */
noResize: boolean;
/** @deprecated */
scrolling: string;
/** @deprecated */
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameElement: {
prototype: HTMLFrameElement;
new(): HTMLFrameElement;
};
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* The **\`HTMLFrameSetElement\`** interface 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 {
/** @deprecated */
cols: string;
/** @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;
};
/**
* The **\`HTMLHRElement\`** interface 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 {
/** @deprecated */
align: string;
/** @deprecated */
color: string;
/** @deprecated */
noShade: boolean;
/** @deprecated */
size: string;
/** @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;
};
/**
* The **\`HTMLHeadElement\`** interface contains the descriptive information, or metadata, for a document.
*
* [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 **\`HTMLHeadingElement\`** interface represents the different heading elements, \`<h1>\` through \`<h6>\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement)
*/
interface HTMLHeadingElement extends HTMLElement {
/** @deprecated */
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadingElement: {
prototype: HTMLHeadingElement;
new(): HTMLHeadingElement;
};
/**
* The **\`HTMLHtmlElement\`** interface serves as the root node for a given HTML document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement)
*/
interface HTMLHtmlElement extends HTMLElement {
/**
* Returns version information about the document type definition (DTD) of a 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;
}
/**
* The **\`HTMLIFrameElement\`** interface 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 {
/** @deprecated */
align: string;
/**
* The **\`allow\`** property of the HTMLIFrameElement interface indicates the Permissions Policy specified for this \`<iframe>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allow)
*/
allow: string;
/**
* The **\`allowFullscreen\`** property of the HTMLIFrameElement interface is a boolean value that reflects the \`allowfullscreen\` attribute of the iframe element, indicating whether to allow the iframe's contents to use Element.requestFullscreen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen)
*/
allowFullscreen: boolean;
/**
* If the iframe and the iframe's parent document are Same Origin, returns a \`Document\` (that is, the active document in the inline frame's nested browsing context), else returns \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* The **\`contentWindow\`** property returns the Window object of an HTMLIFrameElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/** @deprecated */
frameBorder: string;
/**
* The **\`height\`** property of the HTMLIFrameElement interface returns a string that reflects the \`height\` attribute of the iframe element, indicating the height of the frame in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
*/
height: string;
/**
* The **\`loading\`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading)
*/
loading: "eager" | "lazy";
/** @deprecated */
longDesc: string;
/** @deprecated */
marginHeight: string;
/** @deprecated */
marginWidth: string;
/**
* The **\`name\`** property of the HTMLIFrameElement interface is a string value that reflects the \`name\` attribute of the iframe element, indicating the specific name of the \`<iframe>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)
*/
name: string;
/**
* The **\`HTMLIFrameElement.referrerPolicy\`** property reflects the HTML \`referrerpolicy\` attribute of the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy)
*/
referrerPolicy: ReferrerPolicy;
/**
* The **\`sandbox\`** read-only property of the HTMLIFrameElement interface returns a DOMTokenList indicating extra restrictions on the behavior of the nested content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox)
*/
get sandbox(): DOMTokenList;
set sandbox(value: string);
/** @deprecated */
scrolling: string;
/**
* The **\`HTMLIFrameElement.src\`** A string that reflects the \`src\` HTML attribute, containing the address of the content to be embedded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)
*/
src: string;
/**
* The **\`srcdoc\`** property of the HTMLIFrameElement specifies the content of the page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)
*/
srcdoc: string;
/**
* The **\`width\`** property of the HTMLIFrameElement interface returns a string that reflects the \`width\` attribute of the iframe element, indicating the width of the frame in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)
*/
width: string;
/**
* The **\`getSVGDocument()\`** method of the HTMLIFrameElement interface returns the Document object of the embedded SVG.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/getSVGDocument)
*/
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;
};
/**
* The **\`HTMLImageElement\`** interface represents an HTML img element, providing the properties and methods used to manipulate image elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
*/
interface HTMLImageElement extends HTMLElement {
/**
* The _obsolete_ **\`align\`** property of the HTMLImageElement interface is a string which indicates how to position the image relative to its container.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)
*/
align: string;
/**
* The HTMLImageElement property **\`alt\`** provides fallback (alternate) text to display when the image specified by the img element is not loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)
*/
alt: string;
/**
* The obsolete HTMLImageElement property **\`border\`** specifies the number of pixels thick the border surrounding the image should be.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)
*/
border: string;
/**
* The read-only HTMLImageElement interface's **\`complete\`** attribute is a Boolean value which indicates whether or not the image has completely loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)
*/
readonly complete: boolean;
/**
* The HTMLImageElement interface's **\`crossOrigin\`** attribute is a string which specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin)
*/
crossOrigin: string | null;
/**
* The read-only HTMLImageElement property **\`currentSrc\`** indicates the URL of the image which is currently presented in the img element it represents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc)
*/
readonly currentSrc: string;
/**
* The **\`decoding\`** property of the HTMLImageElement interface provides a hint to the browser as to how it should decode the image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding)
*/
decoding: "async" | "sync" | "auto";
/**
* The **\`fetchPriority\`** property of the HTMLImageElement interface represents a hint to the browser indicating how it should prioritize fetching a particular image relative to other images.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority)
*/
fetchPriority: "high" | "low" | "auto";
/**
* The **\`height\`** property of the drawn, in CSS pixel if the image is being drawn or rendered to any visual medium such as the screen or a printer; otherwise, it's the natural, pixel density corrected height of the image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)
*/
height: number;
/**
* The _obsolete_ **\`hspace\`** property of the space to leave empty on the left and right sides of the img element when laying out the page.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)
*/
hspace: number;
/**
* The HTMLImageElement property **\`isMap\`** is a Boolean value which indicates that the image is to be used by a server-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)
*/
isMap: boolean;
/**
* The HTMLImageElement property **\`loading\`** is a string whose value provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)
*/
loading: "eager" | "lazy";
/**
* The _deprecated_ property **\`longDesc\`** on the HTMLImageElement interface specifies the URL of a text or HTML file which contains a long-form description of the image.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)
*/
longDesc: string;
/** @deprecated */
lowsrc: string;
/**
* The HTMLImageElement interface's _deprecated_ **\`name\`** property specifies a name for the element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)
*/
name: string;
/**
* The HTMLImageElement interface's **\`naturalHeight\`** property is a read-only value which returns the intrinsic (natural), density-corrected height of the image in This is the height the image is if drawn with nothing constraining its height; if you don't specify a height for the image, or place the image inside a container that either limits or expressly specifies the image height, it will be rendered this tall.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)
*/
readonly naturalHeight: number;
/**
* The HTMLImageElement interface's read-only **\`naturalWidth\`** property returns the intrinsic (natural), density-corrected width of the image in CSS pixel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)
*/
readonly naturalWidth: number;
/**
* The **\`HTMLImageElement.referrerPolicy\`** property reflects the HTML \`referrerpolicy\` attribute of the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy)
*/
referrerPolicy: string;
/**
* The HTMLImageElement property **\`sizes\`** allows you to specify the layout width of the image for each of a list of media conditions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes)
*/
sizes: string;
/**
* The HTMLImageElement property **\`src\`**, which reflects the HTML \`src\` attribute, specifies the image to display in the img element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)
*/
src: string;
/**
* The HTMLImageElement property **\`srcset\`** is a string which identifies one or more **image candidate strings**, separated using commas (\`,\`) each specifying image resources to use under given circumstances.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset)
*/
srcset: string;
/**
* The **\`useMap\`** property on the providing the name of the client-side image map to apply to the image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)
*/
useMap: string;
/**
* The _obsolete_ **\`vspace\`** property of the to leave empty on the top and bottom of the img element when laying out the page.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)
*/
vspace: number;
/**
* The **\`width\`** property of the drawn in CSS pixel if it's being drawn or rendered to any visual medium such as a screen or printer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)
*/
width: number;
/**
* The read-only HTMLImageElement property **\`x\`** indicates the x-coordinate of the origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x)
*/
readonly x: number;
/**
* The read-only HTMLImageElement property **\`y\`** indicates the y-coordinate of the origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y)
*/
readonly y: number;
/**
* The **\`decode()\`** method of the HTMLImageElement interface returns a it to the DOM.
*
* [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;
};
/**
* The **\`HTMLInputElement\`** interface 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 {
/**
* The **\`accept\`** property of the HTMLInputElement interface reflects the input element's \`accept\` attribute, generally a comma-separated list of unique file type specifiers providing a hint for the expected file type for an \`<input>\` of type \`file\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/accept)
*/
accept: string;
/** @deprecated */
align: string;
/**
* The **\`alt\`** property of the HTMLInputElement interface defines the textual label for the button for users and user agents who cannot use the image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/alt)
*/
alt: string;
/**
* The **\`autocomplete\`** property of the HTMLInputElement interface indicates whether the value of the control can be automatically completed by the browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
*/
autocomplete: AutoFill;
/**
* The **\`capture\`** property of the HTMLInputElement interface reflects the input element's \`capture\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/capture)
*/
capture: string;
/**
* The **\`checked\`** property of the HTMLInputElement interface specifies the current checkedness of the element; that is, whether the form control is checked or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)
*/
checked: boolean;
/**
* The **\`defaultChecked\`** property of the HTMLInputElement interface specifies the default checkedness state of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultChecked)
*/
defaultChecked: boolean;
/**
* The **\`defaultValue\`** property of the HTMLInputElement interface indicates the original (or default) value of the input element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
*/
defaultValue: string;
/**
* The **\`dirName\`** property of the HTMLInputElement interface is the directionality of the element and enables the submission of that value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/dirName)
*/
dirName: string;
/**
* The **\`HTMLInputElement.disabled\`** property is a boolean value that reflects the \`disabled\` HTML attribute, which indicates whether the control is disabled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled)
*/
disabled: boolean;
/**
* The **\`HTMLInputElement.files\`** property allows you to access the FileList selected with the \`<input type='file'>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)
*/
files: FileList | null;
/**
* The **\`form\`** read-only property of the HTMLInputElement interface returns an HTMLFormElement object that owns this input, or \`null\` if this input is not owned by any form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`formAction\`** property of the HTMLInputElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)
*/
formAction: string;
/**
* The **\`formEnctype\`** property of the HTMLInputElement interface is the MIME_type of the content sent to the server when the \`<input>\` with the \`formEnctype\` is the method of form submission.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)
*/
formEnctype: string;
/**
* The **\`formMethod\`** property of the HTMLInputElement interface is the HTTP method used to submit the form if the input element is the control that submits the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
*/
formMethod: string;
/**
* The **\`formNoValidate\`** property of the HTMLInputElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the input.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
*/
formNoValidate: boolean;
/**
* The **\`formTarget\`** property of the HTMLInputElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
*/
formTarget: string;
/**
* The **\`height\`** property of the HTMLInputElement interface specifies the height of a control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)
*/
height: number;
/**
* The **\`indeterminate\`** property of the HTMLInputElement interface returns a boolean value that indicates whether the checkbox is in the _indeterminate_ state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/indeterminate)
*/
indeterminate: boolean;
/**
* The **\`HTMLInputElement.labels\`** read-only property returns a type \`hidden\`, the property returns \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels)
*/
readonly labels: NodeListOf<HTMLLabelElement> | null;
/**
* The **\`list\`** read-only property of the HTMLInputElement interface returns the HTMLDataListElement pointed to by the \`list\` attribute of the element, or \`null\` if the \`list\` attribute is not defined or the \`list\` attribute's value is not associated with any \`<datalist>\` in the same tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
*/
readonly list: HTMLDataListElement | null;
/**
* The **\`max\`** property of the HTMLInputElement interface reflects the input element's \`max\` attribute, which generally defines the maximum valid value for a numeric or date-time input.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
*/
max: string;
/**
* The **\`maxLength\`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
*/
maxLength: number;
/**
* The **\`min\`** property of the HTMLInputElement interface reflects the input element's \`min\` attribute, which generally defines the minimum valid value for a numeric or date-time input.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
*/
min: string;
/**
* The **\`minLength\`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the input element to be valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength)
*/
minLength: number;
/**
* The **\`HTMLInputElement.multiple\`** property indicates if an input can have more than one value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)
*/
multiple: boolean;
/**
* The **\`name\`** property of the HTMLInputElement interface indicates the name of the input element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name)
*/
name: string;
/**
* The **\`pattern\`** property of the HTMLInputElement interface represents a regular expression a non-null input value should match.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)
*/
pattern: string;
/**
* The **\`placeholder\`** property of the HTMLInputElement interface represents a hint to the user of what can be entered in the control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)
*/
placeholder: string;
/**
* The **\`readOnly\`** property of the HTMLInputElement interface indicates that the user cannot modify the value of the input.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/readOnly)
*/
readOnly: boolean;
/**
* The **\`required\`** property of the HTMLInputElement interface specifies that the user must fill in a value before submitting a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)
*/
required: boolean;
/**
* The **\`selectionDirection\`** property of the HTMLInputElement interface is a string that indicates the direction in which the user is selecting the text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
*/
selectionDirection: "forward" | "backward" | "none" | null;
/**
* The **\`selectionEnd\`** property of the HTMLInputElement interface is a number that represents the end index of the selected text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd)
*/
selectionEnd: number | null;
/**
* The **\`selectionStart\`** property of the HTMLInputElement interface is a number that represents the beginning index of the selected text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)
*/
selectionStart: number | null;
/**
* The **\`size\`** property of the HTMLInputElement interface defines the number of visible characters displayed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/size)
*/
size: number;
/**
* The **\`src\`** property of the HTMLInputElement interface specifies the source of an image to display as the graphical submit button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/src)
*/
src: string;
/**
* The **\`step\`** property of the HTMLInputElement interface indicates the step by which numeric or date-time input elements can change.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/step)
*/
step: string;
/**
* The **\`type\`** property of the HTMLInputElement interface indicates the kind of data allowed in the input element, for example a number, a date, or an email.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type)
*/
type: string;
/** @deprecated */
useMap: string;
/**
* The **\`validationMessage\`** read-only property of the HTMLInputElement interface returns a string representing a localized message that describes the validation constraints that the input control does not satisfy (if any).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)
*/
readonly validationMessage: string;
/**
* The **\`validity\`** read-only property of the HTMLInputElement interface returns a ValidityState object that represents the validity states this element is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
*/
readonly validity: ValidityState;
/**
* The **\`value\`** property of the HTMLInputElement interface represents the current value of the input element as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
*/
value: string;
/**
* The **\`valueAsDate\`** property of the HTMLInputElement interface represents the current value of the input element as a Date, or \`null\` if conversion is not possible.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
*/
valueAsDate: Date | null;
/**
* The **\`valueAsNumber\`** property of the HTMLInputElement interface represents the current value of the input element as a number or \`NaN\` if converting to a numeric value is not possible.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
*/
valueAsNumber: number;
/**
* The read-only **\`webkitEntries\`** property of the HTMLInputElement interface contains an array of file system entries (as objects based on FileSystemEntry) representing files and/or directories selected by the user using an input element of type \`file\`, but only if that selection was made using drag-and-drop: selecting a file in the dialog will leave the property empty.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries)
*/
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
/**
* The **\`HTMLInputElement.webkitdirectory\`** is a property that reflects the \`webkitdirectory\` HTML attribute and indicates that the input element should let the user select directories instead of files.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)
*/
webkitdirectory: boolean;
/**
* The **\`width\`** property of the HTMLInputElement interface specifies the width of a control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)
*/
width: number;
/**
* The **\`willValidate\`** read-only property of the HTMLInputElement interface indicates whether the input element is a candidate for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)
*/
readonly willValidate: boolean;
/**
* The **\`checkValidity()\`** method of the HTMLInputElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`reportValidity()\`** method of the HTMLInputElement interface performs the same validity checking steps as the HTMLInputElement.checkValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity)
*/
reportValidity(): boolean;
/**
* The **\`HTMLInputElement.select()\`** method selects all the text in a textarea element or in an input element that includes a text field.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)
*/
select(): void;
/**
* The **\`HTMLInputElement.setCustomValidity()\`** method sets a custom validity message for the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/**
* The **\`HTMLInputElement.setRangeText()\`** method replaces a range of text in an input or textarea element with a new string.
*
* [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;
/**
* The **\`HTMLInputElement.setSelectionRange()\`** method sets the start and end positions of the current text selection in an input or textarea element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
/**
* The **\`HTMLInputElement.showPicker()\`** method displays the browser picker for an \`input\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker)
*/
showPicker(): void;
/**
* The **\`HTMLInputElement.stepDown()\`** method decrements the value of a numeric type of input element by the value of the \`step\` attribute or up to \`n\` multiples of the step attribute if a number is passed as the parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)
*/
stepDown(n?: number): void;
/**
* The **\`HTMLInputElement.stepUp()\`** method increments the value of a numeric type of input element by the value of the \`step\` attribute, or the default \`step\` value if the step attribute is not explicitly set.
*
* [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;
};
/**
* The **\`HTMLLIElement\`** interface 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;
/**
* The **\`value\`** property of the HTMLLIElement interface indicates the ordinal position of the _list element_ inside a given ol.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement/value)
*/
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;
};
/**
* The **\`HTMLLabelElement\`** interface gives access to properties specific to label elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement)
*/
interface HTMLLabelElement extends HTMLElement {
/**
* The read-only **\`HTMLLabelElement.control\`** property returns a reference to the control (in the form of an object of type HTMLElement or one of its derivatives) with which the label element is associated, or \`null\` if the label isn't associated with a control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control)
*/
readonly control: HTMLElement | null;
/**
* The **\`form\`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or \`null\` if this label is not associated with a control owned by a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`HTMLLabelElement.htmlFor\`** property reflects the value of the \`for\` content property.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement)
*/
interface HTMLLegendElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* The **\`form\`** read-only property of the HTMLLegendElement interface returns an HTMLFormElement object that owns the HTMLFieldSetElement associated with this legend, or \`null\` if this legend is not associated with a fieldset owned by a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement/form)
*/
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;
};
/**
* The **\`HTMLLinkElement\`** interface represents reference information for external resources and the relationship of those resources to a document and vice versa (corresponds to \`<link>\` element; not to be confused with \`<a>\`, which is represented by \`HTMLAnchorElement\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement)
*/
interface HTMLLinkElement extends HTMLElement, LinkStyle {
/**
* The **\`as\`** property of the HTMLLinkElement interface returns a string representing the type of content to be preloaded by a link element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as)
*/
as: string;
/**
* The **\`blocking\`** property of the HTMLLinkElement interface is a string indicating that certain operations should be blocked on the fetching of an external resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking)
*/
get blocking(): DOMTokenList;
set blocking(value: string);
/** @deprecated */
charset: string;
/**
* The **\`crossOrigin\`** property of the HTMLLinkElement interface specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin)
*/
crossOrigin: string | null;
/**
* The **\`disabled\`** property of the HTMLLinkElement interface is a boolean value that represents whether the link is disabled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled)
*/
disabled: boolean;
/**
* The **\`fetchPriority\`** property of the HTMLLinkElement interface represents a hint to the browser indicating how it should prioritize fetching a particular resource relative to other resources of the same type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority)
*/
fetchPriority: "high" | "low" | "auto";
/**
* The **\`href\`** property of the HTMLLinkElement interface contains a string that is the URL associated with the link.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)
*/
href: string;
/**
* The **\`hreflang\`** property of the HTMLLinkElement interface is used to indicate the language and the geographical targeting of a page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)
*/
hreflang: string;
/**
* The **\`imageSizes\`** property of the HTMLLinkElement interface indicates the size and conditions for the preloaded images defined by the HTMLLinkElement.imageSrcset property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSizes)
*/
imageSizes: string;
/**
* The **\`imageSrcset\`** property of the HTMLLinkElement interface is a string which identifies one or more comma-separated **image candidate strings**.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSrcset)
*/
imageSrcset: string;
/**
* The **\`integrity\`** property of the HTMLLinkElement interface is a string containing inline metadata that a browser can use to verify that a fetched resource has been delivered without unexpected manipulation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity)
*/
integrity: string;
/**
* The **\`media\`** property of the HTMLLinkElement interface is a string representing a list of one or more media formats to which the resource applies.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/media)
*/
media: string;
/**
* The **\`referrerPolicy\`** property of the HTMLLinkElement interface reflects the HTML \`referrerpolicy\` attribute of the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy)
*/
referrerPolicy: string;
/**
* The **\`rel\`** property of the HTMLLinkElement interface reflects the \`rel\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel)
*/
rel: string;
/**
* The **\`relList\`** read-only property of the HTMLLinkElement interface reflects the \`rel\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList)
*/
get relList(): DOMTokenList;
set relList(value: string);
/** @deprecated */
rev: string;
/**
* The **\`sizes\`** read-only property of the HTMLLinkElement interfaces defines the sizes of the icons for visual media contained in the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes)
*/
get sizes(): DOMTokenList;
set sizes(value: string);
/** @deprecated */
target: string;
/**
* The **\`type\`** property of the HTMLLinkElement interface is a string that reflects the MIME type of the linked resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type)
*/
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;
};
/**
* The **\`HTMLMapElement\`** interface 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 {
/**
* The **\`areas\`** read-only property of the HTMLMapElement interface returns a collection of area elements associated with the map element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)
*/
readonly areas: HTMLCollection;
/**
* The **\`name\`** property of the HTMLMapElement represents the unique name \`<map>\` element.
*
* [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;
};
/**
* The **\`HTMLMarqueeElement\`** interface 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;
}
/**
* The **\`HTMLMediaElement\`** interface 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 {
/**
* The **\`HTMLMediaElement.autoplay\`** property reflects the \`autoplay\` HTML attribute, indicating whether playback should automatically begin as soon as enough media is available to do so without interruption.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay)
*/
autoplay: boolean;
/**
* The **\`buffered\`** read-only property of HTMLMediaElement objects returns a new static normalized \`TimeRanges\` object that represents the ranges of the media resource, if any, that the user agent has buffered at the moment the \`buffered\` property is accessed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered)
*/
readonly buffered: TimeRanges;
/**
* The **\`HTMLMediaElement.controls\`** property reflects the \`controls\` HTML attribute, which controls whether user interface controls for playing the media item will be displayed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls)
*/
controls: boolean;
/**
* The **\`HTMLMediaElement.crossOrigin\`** property is the CORS setting for this media element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin)
*/
crossOrigin: string | null;
/**
* The **\`HTMLMediaElement.currentSrc\`** property contains the absolute URL of the chosen media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc)
*/
readonly currentSrc: string;
/**
* The HTMLMediaElement interface's **\`currentTime\`** property specifies the current playback time in seconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime)
*/
currentTime: number;
/**
* The **\`HTMLMediaElement.defaultMuted\`** property reflects the \`muted\` HTML attribute, which indicates whether the media element's audio output should be muted by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted)
*/
defaultMuted: boolean;
/**
* The **\`HTMLMediaElement.defaultPlaybackRate\`** property indicates the default playback rate for the media.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)
*/
defaultPlaybackRate: number;
/**
* The **\`disableRemotePlayback\`** property of the HTMLMediaElement interface determines whether the media element is allowed to have a remote playback UI.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback)
*/
disableRemotePlayback: boolean;
/**
* The _read-only_ HTMLMediaElement property **\`duration\`** indicates the length of the element's media in seconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration)
*/
readonly duration: number;
/**
* The **\`HTMLMediaElement.ended\`** property indicates whether the media element has ended playback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended)
*/
readonly ended: boolean;
/**
* The **\`HTMLMediaElement.error\`** property is the there has not been an error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error)
*/
readonly error: MediaError | null;
/**
* The **\`HTMLMediaElement.loop\`** property reflects the \`loop\` HTML attribute, which controls whether the media element should start over when it reaches the end.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop)
*/
loop: boolean;
/**
* The read-only **\`HTMLMediaElement.mediaKeys\`** property returns a MediaKeys object, that is a set of keys that the element can use for decryption of media data during playback.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys)
*/
readonly mediaKeys: MediaKeys | null;
/**
* The **\`HTMLMediaElement.muted\`** property indicates whether the media element is muted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted)
*/
muted: boolean;
/**
* The **\`HTMLMediaElement.networkState\`** property indicates the current state of the fetching of media over the network.
*
* [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;
/**
* The read-only **\`HTMLMediaElement.paused\`** property tells whether the media element is paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused)
*/
readonly paused: boolean;
/**
* The **\`HTMLMediaElement.playbackRate\`** property sets the rate at which the media is being played back.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)
*/
playbackRate: number;
/**
* The **\`played\`** read-only property of the HTMLMediaElement interface indicates the time ranges the resource, an audio or video media file, has played.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)
*/
readonly played: TimeRanges;
/**
* The **\`preload\`** property of the HTMLMediaElement interface is a string that provides a hint to the browser about what the author thinks will lead to the best user experience.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload)
*/
preload: "none" | "metadata" | "auto" | "";
/**
* The **\`HTMLMediaElement.preservesPitch\`** property determines whether or not the browser should adjust the pitch of the audio to compensate for changes to the playback rate made by setting HTMLMediaElement.playbackRate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch)
*/
preservesPitch: boolean;
/**
* The **\`HTMLMediaElement.readyState\`** property indicates the readiness state of the media.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState)
*/
readonly readyState: number;
/**
* The **\`remote\`** read-only property of the HTMLMediaElement interface returns the RemotePlayback object associated with the media element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote)
*/
readonly remote: RemotePlayback;
/**
* The **\`seekable\`** read-only property of HTMLMediaElement objects returns a new static normalized \`TimeRanges\` object that represents the ranges of the media resource, if any, that the user agent is able to seek to at the time \`seekable\` property is accessed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)
*/
readonly seekable: TimeRanges;
/**
* The **\`seeking\`** read-only property of the HTMLMediaElement interface is a Boolean indicating whether the resource, the audio or video, is in the process of seeking to a new position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)
*/
readonly seeking: boolean;
/**
* The **\`sinkId\`** read-only property of the HTMLMediaElement interface returns a string that is the unique ID of the device to be used for playing audio output.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId)
*/
readonly sinkId: string;
/**
* The **\`HTMLMediaElement.src\`** property reflects the value of the HTML media element's \`src\` attribute, which indicates the URL of a media resource to use in the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src)
*/
src: string;
/**
* The **\`srcObject\`** property of the the source of the media associated with the HTMLMediaElement, or \`null\` if not assigned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject)
*/
srcObject: MediaProvider | null;
/**
* The read-only **\`textTracks\`** property on HTMLMediaElement objects returns a objects representing the media element's text tracks, in the same order as in the list of text tracks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks)
*/
readonly textTracks: TextTrackList;
/**
* The **\`HTMLMediaElement.volume\`** property sets the volume at which the media will be played.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)
*/
volume: number;
/**
* The **\`addTextTrack()\`** method of the HTMLMediaElement interface creates a new TextTrack object and adds it to the media element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack)
*/
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/**
* The HTMLMediaElement method **\`canPlayType()\`** reports how likely it is that the current browser will be able to play media of a given MIME type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
*/
canPlayType(type: string): CanPlayTypeResult;
/**
* The **\`HTMLMediaElement.fastSeek()\`** method quickly seeks the media to the new time with precision tradeoff.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek)
*/
fastSeek(time: number): void;
/**
* The HTMLMediaElement method **\`load()\`** resets the media element to its initial state and begins the process of selecting a media source and loading the media in preparation for playback to begin at the beginning.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load)
*/
load(): void;
/**
* The **\`HTMLMediaElement.pause()\`** method will pause playback of the media, if the media is already in a paused state this method will have no effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause)
*/
pause(): void;
/**
* The HTMLMediaElement **\`play()\`** method attempts to begin playback of the media.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play)
*/
play(): Promise<void>;
/**
* The **\`setMediaKeys()\`** method of the HTMLMediaElement interface sets the MediaKeys that will be used to decrypt media during playback.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys)
*/
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
/**
* The **\`setSinkId()\`** method of the HTMLMediaElement interface sets the ID of the audio device to use for output and returns a Promise.
* 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;
};
/**
* The **\`HTMLMenuElement\`** interface provides additional properties (beyond those inherited from the HTMLElement interface) for manipulating a menu element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement)
*/
interface HTMLMenuElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMenuElement: {
prototype: HTMLMenuElement;
new(): HTMLMenuElement;
};
/**
* The **\`HTMLMetaElement\`** interface contains descriptive metadata about a document provided in HTML as \`<meta>\` elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
*/
interface HTMLMetaElement extends HTMLElement {
/**
* The **\`HTMLMetaElement.content\`** property gets or sets the \`content\` attribute of pragma directives and named meta data in conjunction with HTMLMetaElement.name or HTMLMetaElement.httpEquiv.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content)
*/
content: string;
/**
* The **\`HTMLMetaElement.httpEquiv\`** property gets or sets the pragma directive or an HTTP response header name for the HTMLMetaElement.content attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv)
*/
httpEquiv: string;
/**
* The **\`HTMLMetaElement.media\`** property enables specifying the media for \`theme-color\` metadata.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media)
*/
media: string;
/**
* The **\`HTMLMetaElement.name\`** property is used in combination with HTMLMetaElement.content to define the name-value pairs for the metadata of a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name)
*/
name: string;
/**
* The **\`HTMLMetaElement.scheme\`** property defines the scheme of the value in the HTMLMetaElement.content attribute.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme)
*/
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 {
/**
* The **\`high\`** property of the HTMLMeterElement interface represents the high boundary of the meter element as a floating-point number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high)
*/
high: number;
/**
* The **\`HTMLMeterElement.labels\`** read-only property returns a A NodeList containing the \`<label>\` elements associated with the \`<meter>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels)
*/
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* The **\`low\`** property of the HTMLMeterElement interface represents the low boundary of the meter element as a floating-point number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low)
*/
low: number;
/**
* The **\`max\`** property of the HTMLMeterElement interface represents the maximum value of the meter element as a floating-point number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max)
*/
max: number;
/**
* The **\`min\`** property of the HTMLMeterElement interface represents the minimum value of the meter element as a floating-point number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min)
*/
min: number;
/**
* The **\`optimum\`** property of the HTMLMeterElement interface represents the optimum boundary of the meter element as a floating-point number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum)
*/
optimum: number;
/**
* The **\`value\`** property of the HTMLMeterElement interface represents the current value of the meter element as a floating-point 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;
};
/**
* The **\`HTMLModElement\`** interface 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 {
/**
* The **\`cite\`** property of the HTMLModElement interface indicates the URL of the resource explaining the modification.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)
*/
cite: string;
/**
* The **\`dateTime\`** property of the HTMLModElement interface is a string containing a machine-readable date with an optional time value.
*
* [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;
};
/**
* The **\`HTMLOListElement\`** interface 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 */
compact: boolean;
/**
* The **\`reversed\`** property of the HTMLOListElement interface indicates order of a list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed)
*/
reversed: boolean;
/**
* The **\`start\`** property of the HTMLOListElement interface indicates starting value of the ordered list, with default value of 1.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start)
*/
start: number;
/**
* The **\`type\`** property of the HTMLOListElement interface indicates the kind of marker to be used to display ordered list.
*
* [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;
};
/**
* The **\`HTMLObjectElement\`** interface 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 */
align: string;
/** @deprecated */
archive: string;
/** @deprecated */
border: string;
/** @deprecated */
code: string;
/** @deprecated */
codeBase: string;
/** @deprecated */
codeType: string;
/**
* The **\`contentDocument\`** read-only property of the HTMLObjectElement interface Returns a Document representing the active document of the object element's nested browsing context, if any; otherwise null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* The **\`contentWindow\`** read-only property of the HTMLObjectElement interface returns a WindowProxy representing the window proxy of the object element's nested browsing context, if any; otherwise null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/**
* The **\`data\`** property of the reflects the \`data\` HTML attribute, specifying the address of a resource's data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)
*/
data: string;
/** @deprecated */
declare: boolean;
/**
* The **\`form\`** read-only property of the HTMLObjectElement interface returns an HTMLFormElement object that owns this object, or \`null\` if this object element is not owned by any form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`height\`** property of the reflects the \`height\` HTML attribute, specifying the displayed height of the resource in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)
*/
height: string;
/** @deprecated */
hspace: number;
/**
* The **\`name\`** property of the reflects the \`name\` HTML attribute, specifying the name of the browsing context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name)
*/
name: string;
/** @deprecated */
standby: string;
/**
* The **\`type\`** property of the reflects the \`type\` HTML attribute, specifying the MIME type of the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type)
*/
type: string;
/**
* The **\`useMap\`** property of the reflects the \`usemap\` HTML attribute, specifying a A string.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
*/
useMap: string;
/**
* The **\`validationMessage\`** read-only property of the HTMLObjectElement interface returns a string representing a localized message that describes the validation constraints that the control does not satisfy (if any).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage)
*/
readonly validationMessage: string;
/**
* The **\`validity\`** read-only property of the HTMLObjectElement interface returns a ValidityState object that represents the validity states this element is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)
*/
readonly validity: ValidityState;
/** @deprecated */
vspace: number;
/**
* The **\`width\`** property of the reflects the \`width\` HTML attribute, specifying the displayed width of the resource in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width)
*/
width: string;
/**
* The **\`willValidate\`** read-only property of the HTMLObjectElement interface returns \`false\`, because object elements are not candidates for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate)
*/
readonly willValidate: boolean;
/**
* The **\`checkValidity()\`** method of the HTMLObjectElement interface checks if the element is valid, but always returns true because object elements are never candidates for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`getSVGDocument()\`** method of the HTMLObjectElement interface returns the Document object of the embedded SVG.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument)
*/
getSVGDocument(): Document | null;
/**
* The **\`reportValidity()\`** method of the HTMLObjectElement interface performs the same validity checking steps as the HTMLObjectElement.checkValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity)
*/
reportValidity(): boolean;
/**
* The **\`setCustomValidity()\`** method of the element.
*
* [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;
};
/**
* The **\`HTMLOptGroupElement\`** interface 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 {
/**
* The **\`disabled\`** property of the HTMLOptGroupElement interface is a boolean value that reflects the optgroup element's \`disabled\` attribute, which indicates whether the control is disabled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled)
*/
disabled: boolean;
/**
* The **\`label\`** property of the HTMLOptGroupElement interface is a string value that reflects the optgroup element's \`label\` attribute, which provides a textual label to the group of options.
*
* [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;
};
/**
* The **\`HTMLOptionElement\`** interface represents option elements and inherits all properties and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)
*/
interface HTMLOptionElement extends HTMLElement {
/**
* The **\`defaultSelected\`** property of the HTMLOptionElement interface specifies the default selected state of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)
*/
defaultSelected: boolean;
/**
* The **\`disabled\`** property of the HTMLOptionElement is a boolean value that indicates whether the option element is unavailable to be selected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled)
*/
disabled: boolean;
/**
* The **\`form\`** read-only property of the HTMLOptionElement interface returns an HTMLFormElement object that owns the HTMLSelectElement associated with this option, or \`null\` if this option is not associated with a select owned by a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The read-only **\`index\`** property of the HTMLOptionElement interface specifies the 0-based index of the element; that is, the position of the option within the list of options it belongs to, in tree-order, as an integer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)
*/
readonly index: number;
/**
* The **\`label\`** property of the HTMLOptionElement represents the text displayed for an option in a select element or as part of a list of suggestions in a datalist element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)
*/
label: string;
/**
* The **\`selected\`** property of the HTMLOptionElement interface specifies the current selectedness of the element; that is, whether the option is selected or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)
*/
selected: boolean;
/**
* The **\`text\`** property of the HTMLOptionElement represents the text inside the option element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)
*/
text: string;
/**
* The **\`value\`** property of the HTMLOptionElement interface represents the value of the option element as a string, or the empty string if no value is set.
*
* [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;
};
/**
* The **\`HTMLOptionsCollection\`** interface represents a collection of \`<option>\` HTML elements (in document order) and offers methods and properties for selecting from the list as well as optionally altering its items.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection)
*/
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* The **\`length\`** property of the HTMLOptionsCollection interface returns the number of option elements in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)
*/
length: number;
/**
* The **\`selectedIndex\`** property of the HTMLOptionsCollection interface is the numeric index of the first selected option element, if any, or \`\u22121\` if no \`<option>\` is selected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)
*/
selectedIndex: number;
/**
* The **\`add()\`** method of the HTMLOptionsCollection interface adds an HTMLOptionElement or HTMLOptGroupElement to this \`HTMLOptionsCollection\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* The **\`remove()\`** method of the HTMLOptionsCollection interface removes the option element specified by the index from this 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;
}
/**
* The **\`HTMLOutputElement\`** interface 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 {
/**
* The **\`defaultValue\`** property of the HTMLOutputElement interface represents the default text content of this output element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue)
*/
defaultValue: string;
/**
* The **\`form\`** read-only property of the HTMLOutputElement interface returns an HTMLFormElement object that owns this output, or \`null\` if this output is not owned by any form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`htmlFor\`** property of the HTMLOutputElement interface is a string containing a space-separated list of other elements' \`id\`s, indicating that those elements contributed input values to (or otherwise affected) the calculation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor)
*/
get htmlFor(): DOMTokenList;
set htmlFor(value: string);
/**
* The **\`HTMLOutputElement.labels\`** read-only property returns a A NodeList containing the \`<label>\` elements associated with the \`<output>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels)
*/
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* The **\`name\`** property of the HTMLOutputElement interface indicates the name of the output element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name)
*/
name: string;
/**
* The **\`type\`** read-only property of the HTMLOutputElement interface returns the string \`'output'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)
*/
readonly type: string;
/**
* The **\`validationMessage\`** read-only property of the HTMLOutputElement interface returns a string representing a localized message that describes the validation constraints that the output control does not satisfy (if any).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage)
*/
readonly validationMessage: string;
/**
* The **\`validity\`** read-only property of the HTMLOutputElement interface returns a ValidityState object that represents the validity states this element is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity)
*/
readonly validity: ValidityState;
/**
* The **\`value\`** property of the HTMLOutputElement interface represents the value of the output element as a string, or the empty string if no value is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
*/
value: string;
/**
* The **\`willValidate\`** read-only property of the HTMLOutputElement interface returns \`false\`, because output elements are not candidates for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate)
*/
readonly willValidate: boolean;
/**
* The **\`checkValidity()\`** method of the HTMLOutputElement interface checks if the element is valid, but always returns true because output elements are never candidates for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`reportValidity()\`** method of the HTMLOutputElement interface performs the same validity checking steps as the HTMLOutputElement.checkValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity)
*/
reportValidity(): boolean;
/**
* The **\`setCustomValidity()\`** method of the HTMLOutputElement interface sets the custom validity message for the output element.
*
* [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;
};
/**
* The **\`HTMLParagraphElement\`** interface 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 {
/** @deprecated */
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParagraphElement: {
prototype: HTMLParagraphElement;
new(): HTMLParagraphElement;
};
/**
* The **\`HTMLParamElement\`** interface 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 {
/** @deprecated */
name: string;
/** @deprecated */
type: string;
/** @deprecated */
value: string;
/** @deprecated */
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLParamElement: {
prototype: HTMLParamElement;
new(): HTMLParamElement;
};
/**
* The **\`HTMLPictureElement\`** interface represents a picture HTML element.
*
* [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;
};
/**
* The **\`HTMLPreElement\`** interface 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 {
/** @deprecated */
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPreElement: {
prototype: HTMLPreElement;
new(): HTMLPreElement;
};
/**
* The **\`HTMLProgressElement\`** interface 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 {
/**
* The **\`HTMLProgressElement.labels\`** read-only property returns a NodeList of the label elements associated with the A NodeList containing the \`<label>\` elements associated with the \`<progress>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels)
*/
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* The **\`max\`** property of the HTMLProgressElement interface represents the upper bound of the progress element's range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max)
*/
max: number;
/**
* The **\`position\`** read-only property of the HTMLProgressElement interface returns current progress of the progress element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position)
*/
readonly position: number;
/**
* The **\`value\`** property of the HTMLProgressElement interface represents the current progress of the progress element.
*
* [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;
};
/**
* The **\`HTMLQuoteElement\`** interface 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 {
/**
* The **\`cite\`** property of the HTMLQuoteElement interface indicates the URL for the source of the quotation.
*
* [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 {
/**
* The **\`async\`** property of the HTMLScriptElement interface is a boolean value that controls how the script should be executed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async)
*/
async: boolean;
/**
* The **\`blocking\`** property of the HTMLScriptElement interface is a string indicating that certain operations should be blocked on the fetching of the script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking)
*/
get blocking(): DOMTokenList;
set blocking(value: string);
/** @deprecated */
charset: string;
/**
* The **\`crossOrigin\`** property of the HTMLScriptElement interface reflects the CORS settings for the script element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin)
*/
crossOrigin: string | null;
/**
* The **\`defer\`** property of the HTMLScriptElement interface is a boolean value that controls how the script should be executed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer)
*/
defer: boolean;
/** @deprecated */
event: string;
/**
* The **\`fetchPriority\`** property of the HTMLScriptElement interface represents a hint to the browser indicating how it should prioritize fetching an external script relative to other external scripts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority)
*/
fetchPriority: "high" | "low" | "auto";
/** @deprecated */
htmlFor: string;
/**
* The **\`integrity\`** property of the HTMLScriptElement interface is a string that contains inline metadata that a browser can use to verify that a fetched resource has been delivered without unexpected manipulation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity)
*/
integrity: string;
/**
* The **\`noModule\`** property of the HTMLScriptElement interface is a boolean value that indicates whether the script should be executed in browsers that support ES modules.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule)
*/
noModule: boolean;
/**
* The **\`referrerPolicy\`** property of the \`referrerpolicy\` of the script element, which defines how the referrer is set when fetching the script and any scripts it imports.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy)
*/
referrerPolicy: string;
/**
* The **\`src\`** property of the HTMLScriptElement interface is a string representing the URL of an external script; this can be used as an alternative to embedding a script directly within a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src)
*/
src: string;
/**
* The **\`text\`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
*/
text: string;
/**
* The **\`type\`** property of the HTMLScriptElement interface is a string that reflects the type of the script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type)
*/
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;
/**
* The **\`supports()\`** static method of the HTMLScriptElement interface provides a simple and consistent method to feature-detect what types of scripts are supported by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static)
*/
supports(type: string): boolean;
};
/**
* The **\`HTMLSelectElement\`** interface represents a select HTML Element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)
*/
interface HTMLSelectElement extends HTMLElement {
/**
* The **\`autocomplete\`** property of the HTMLSelectElement interface indicates whether the value of the control can be automatically completed by the browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete)
*/
autocomplete: AutoFill;
/**
* The **\`HTMLSelectElement.disabled\`** property is a boolean value that reflects the \`disabled\` HTML attribute, which indicates whether the control is disabled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled)
*/
disabled: boolean;
/**
* The **\`form\`** read-only property of the HTMLSelectElement interface returns an HTMLFormElement object that owns this select, or \`null\` if this select is not owned by any form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`HTMLSelectElement.labels\`** read-only property returns a A NodeList containing the \`<label>\` elements associated with the \`<select>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels)
*/
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* The **\`length\`** property of the HTMLSelectElement interface specifies the number of option elements in the select element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)
*/
length: number;
/**
* The **\`multiple\`** property of the HTMLSelectElement interface specifies that the user may select more than one option from the list of options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)
*/
multiple: boolean;
/**
* The **\`name\`** property of the HTMLSelectElement interface indicates the name of the select element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)
*/
name: string;
/**
* The **\`HTMLSelectElement.options\`** read-only property returns a HTMLOptionsCollection of the option elements contained by the select element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)
*/
readonly options: HTMLOptionsCollection;
/**
* The **\`required\`** property of the HTMLSelectElement interface specifies that the user must select an option with a non-empty string value before submitting a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)
*/
required: boolean;
/**
* The **\`selectedIndex\`** property of the HTMLSelectElement interface is the numeric index of the first selected option element in a select element, if any, or \`\u22121\` if no \`<option>\` is selected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex)
*/
selectedIndex: number;
/**
* The **read-only** HTMLSelectElement property **\`selectedOptions\`** contains a list of the element that are currently selected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions)
*/
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
/**
* The **\`size\`** property of the HTMLSelectElement interface specifies the number of options, or rows, that should be visible at one time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)
*/
size: number;
/**
* The **\`HTMLSelectElement.type\`** read-only property returns the form control's \`type\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
*/
readonly type: "select-one" | "select-multiple";
/**
* The **\`validationMessage\`** read-only property of the HTMLSelectElement interface returns a string representing a localized message that describes the validation constraints that the select control does not satisfy (if any).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)
*/
readonly validationMessage: string;
/**
* The **\`validity\`** read-only property of the HTMLSelectElement interface returns a ValidityState object that represents the validity states this element is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)
*/
readonly validity: ValidityState;
/**
* The **\`HTMLSelectElement.value\`** property contains the value of the first selected option element associated with this select element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)
*/
value: string;
/**
* The **\`willValidate\`** read-only property of the HTMLSelectElement interface indicates whether the select element is a candidate for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)
*/
readonly willValidate: boolean;
/**
* The **\`HTMLSelectElement.add()\`** method adds an element to the collection of \`option\` elements for this \`select\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* The **\`checkValidity()\`** method of the HTMLSelectElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`HTMLSelectElement.item()\`** method returns the position in the options list corresponds to the index given in the parameter, or \`null\` if there are none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)
*/
item(index: number): HTMLOptionElement | null;
/**
* The **\`HTMLSelectElement.namedItem()\`** method returns the whose \`name\` or \`id\` match the specified name, or \`null\` if no option matches.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)
*/
namedItem(name: string): HTMLOptionElement | null;
/**
* The **\`HTMLSelectElement.remove()\`** method removes the element at the specified index from the options collection for this select element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)
*/
remove(): void;
remove(index: number): void;
/**
* The **\`reportValidity()\`** method of the HTMLSelectElement interface performs the same validity checking steps as the HTMLSelectElement.checkValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity)
*/
reportValidity(): boolean;
/**
* The **\`HTMLSelectElement.setCustomValidity()\`** method sets the custom validity message for the selection element to the specified message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/**
* The **\`HTMLSelectElement.showPicker()\`** method displays the browser picker for a \`select\` element.
*
* [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;
};
/**
* The **\`HTMLSlotElement\`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML slot element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement)
*/
interface HTMLSlotElement extends HTMLElement {
/**
* The **\`name\`** property of the HTMLSlotElement interface returns or sets the slot name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name)
*/
name: string;
/**
* The **\`assign()\`** method of the HTMLSlotElement interface sets the slot's _manually assigned nodes_ to an ordered set of slottables.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign)
*/
assign(...nodes: (Element | Text)[]): void;
/**
* The **\`assignedElements()\`** method of the HTMLSlotElement interface returns a sequence of the elements assigned to this slot (and no other nodes).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements)
*/
assignedElements(options?: AssignedNodesOptions): Element[];
/**
* The **\`assignedNodes()\`** method of the HTMLSlotElement interface returns a sequence of the nodes assigned to this slot.
*
* [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;
};
/**
* The **\`HTMLSourceElement\`** interface 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 {
/**
* The **\`height\`** property of the HTMLSourceElement interface is a non-negative number indicating the height of the image resource in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height)
*/
height: number;
/**
* The **\`media\`** property of the HTMLSourceElement interface is a string representing the intended destination medium for the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)
*/
media: string;
/**
* The **\`sizes\`** property of the HTMLSourceElement interface is a string representing a list of one or more sizes, representing sizes between breakpoints, to which the resource applies.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes)
*/
sizes: string;
/**
* The **\`src\`** property of the HTMLSourceElement interface is a string indicating the URL of a media resource to use as the source for the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)
*/
src: string;
/**
* The **\`srcset\`** property of the HTMLSourceElement interface is a string containing a comma-separated list of candidate images.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset)
*/
srcset: string;
/**
* The **\`type\`** property of the HTMLSourceElement interface is a string representing the MIME type of the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
*/
type: string;
/**
* The **\`width\`** property of the HTMLSourceElement interface is a non-negative number indicating the width of the image resource in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width)
*/
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;
};
/**
* The **\`HTMLSpanElement\`** interface represents 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;
};
/**
* The **\`HTMLStyleElement\`** interface represents a style element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
*/
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/**
* The **\`blocking\`** property of the HTMLStyleElement interface is a string indicating that certain operations should be blocked on the fetching of critical subresources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking)
*/
get blocking(): DOMTokenList;
set blocking(value: string);
/**
* The **\`HTMLStyleElement.disabled\`** property can be used to get and set whether the stylesheet is disabled (\`true\`) or not (\`false\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled)
*/
disabled: boolean;
/**
* The **\`HTMLStyleElement.media\`** property specifies the intended destination medium for style information.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media)
*/
media: string;
/**
* The **\`HTMLStyleElement.type\`** property returns the type of the current style.
* @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;
};
/**
* The **\`HTMLTableCaptionElement\`** interface provides 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 {
/**
* The **\`align\`** property of the HTMLTableCaptionElement interface is a string indicating how to horizontally align text in the caption table element.
* @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;
};
/**
* The **\`HTMLTableCellElement\`** interface 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 cells (th) or data cells (td), in an HTML document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement)
*/
interface HTMLTableCellElement extends HTMLElement {
/**
* The **\`abbr\`** property of the HTMLTableCellElement interface indicates an abbreviation associated with the cell.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)
*/
abbr: string;
/**
* The **\`align\`** property of the HTMLTableCellElement interface is a string indicating how to horizontally align text in the th or td table cell.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align)
*/
align: string;
/** @deprecated */
axis: string;
/**
* The **\`HTMLTableCellElement.bgColor\`** property is used to set the background color of a cell or get the value of the obsolete \`bgColor\` attribute, if present.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor)
*/
bgColor: string;
/**
* The **\`cellIndex\`** read-only property of the HTMLTableCellElement interface represents the position of a cell within its row (tr).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex)
*/
readonly cellIndex: number;
/**
* The **\`ch\`** property of the HTMLTableCellElement interface does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch)
*/
ch: string;
/**
* The **\`chOff\`** property of the HTMLTableCellElement interface does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff)
*/
chOff: string;
/**
* The **\`colSpan\`** read-only property of the HTMLTableCellElement interface represents the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan)
*/
colSpan: number;
/**
* The **\`headers\`** property of the HTMLTableCellElement interface contains a list of IDs of th elements that are _headers_ for this specific cell.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers)
*/
headers: string;
/** @deprecated */
height: string;
/**
* The **\`noWrap\`** property of the HTMLTableCellElement interface returns a Boolean value indicating if the text of the cell may be wrapped on several lines or not.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap)
*/
noWrap: boolean;
/**
* The **\`rowSpan\`** read-only property of the HTMLTableCellElement interface represents the number of rows this cell must span; this lets the cell occupy space across multiple rows of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan)
*/
rowSpan: number;
/**
* The **\`scope\`** property of the HTMLTableCellElement interface indicates the scope of a th cell.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)
*/
scope: string;
/**
* The **\`vAlign\`** property of the HTMLTableCellElement interface is a string indicating how to vertically align text in a th or td table cell.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign)
*/
vAlign: string;
/** @deprecated */
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCellElement: {
prototype: HTMLTableCellElement;
new(): HTMLTableCellElement;
};
/**
* The **\`HTMLTableColElement\`** interface provides properties for manipulating single or grouped table column elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement)
*/
interface HTMLTableColElement extends HTMLElement {
/**
* The **\`align\`** property of the HTMLTableColElement interface is a string indicating how to horizontally align text in a table col column element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align)
*/
align: string;
/**
* The **\`ch\`** property of the HTMLTableColElement interface does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch)
*/
ch: string;
/**
* The **\`chOff\`** property of the HTMLTableColElement interface does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff)
*/
chOff: string;
/**
* The **\`span\`** read-only property of the HTMLTableColElement interface represents the number of columns this col or colgroup must span; this lets the column occupy space across multiple columns of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span)
*/
span: number;
/**
* The **\`vAlign\`** property of the HTMLTableColElement interface is a string indicating how to vertically align text in a table col column element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign)
*/
vAlign: string;
/** @deprecated */
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableColElement: {
prototype: HTMLTableColElement;
new(): HTMLTableColElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/**
* The **\`HTMLTableElement\`** interface 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 {
/**
* The **\`HTMLTableElement.align\`** property represents the alignment of the table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align)
*/
align: string;
/**
* The **\`bgcolor\`** property of the HTMLTableElement represents the background color of the table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor)
*/
bgColor: string;
/**
* The **\`HTMLTableElement.border\`** property represents the border width of the table element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border)
*/
border: string;
/**
* The **\`HTMLTableElement.caption\`** property represents the table caption.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption)
*/
caption: HTMLTableCaptionElement | null;
/**
* The **\`HTMLTableElement.cellPadding\`** property represents the padding around the individual cells of the table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding)
*/
cellPadding: string;
/**
* While you should instead use the CSS interface's **\`cellSpacing\`** property represents the spacing around the individual th and td elements representing a table's cells.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing)
*/
cellSpacing: string;
/**
* The HTMLTableElement interface's **\`frame\`** property is a string that indicates which of the table's exterior borders should be drawn.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame)
*/
frame: string;
/**
* The read-only HTMLTableElement property **\`rows\`** returns a live contained within any thead, tfoot, and Although the property itself is read-only, the returned object is live and allows the modification of its content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* The **\`HTMLTableElement.rules\`** property indicates which cell borders to render in the table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules)
*/
rules: string;
/**
* The **\`HTMLTableElement.summary\`** property represents the table description.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary)
*/
summary: string;
/**
* The **\`HTMLTableElement.tBodies\`** read-only property returns a live HTMLCollection of the bodies in a table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)
*/
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
/**
* The **\`HTMLTableElement.tFoot\`** property represents the \`null\` if there is no such element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot)
*/
tFoot: HTMLTableSectionElement | null;
/**
* The **\`HTMLTableElement.tHead\`** represents the \`null\` if there is no such element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead)
*/
tHead: HTMLTableSectionElement | null;
/**
* The **\`HTMLTableElement.width\`** property represents the desired width of the table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width)
*/
width: string;
/**
* The **\`HTMLTableElement.createCaption()\`** method returns the If no \`<caption>\` element exists on the table, this method creates it, and then returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)
*/
createCaption(): HTMLTableCaptionElement;
/**
* The **\`createTBody()\`** method of \`\`\`js-nolint createTBody() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)
*/
createTBody(): HTMLTableSectionElement;
/**
* The **\`createTFoot()\`** method of associated with a given table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)
*/
createTFoot(): HTMLTableSectionElement;
/**
* The **\`createTHead()\`** method of associated with a given table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)
*/
createTHead(): HTMLTableSectionElement;
/**
* The **\`HTMLTableElement.deleteCaption()\`** method removes the \`<caption>\` element associated with the table, this method does nothing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)
*/
deleteCaption(): void;
/**
* The **\`HTMLTableElement.deleteRow()\`** method removes a specific row (tr) from a given table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)
*/
deleteRow(index: number): void;
/**
* The **\`HTMLTableElement.deleteTFoot()\`** method removes the \`\`\`js-nolint deleteTFoot() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)
*/
deleteTFoot(): void;
/**
* The **\`HTMLTableElement.deleteTHead()\`** removes the \`\`\`js-nolint deleteTHead() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)
*/
deleteTHead(): void;
/**
* The **\`insertRow()\`** method of the HTMLTableElement interface inserts a new row (tr) in a given table, and returns a reference to the new row.
*
* [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;
}
/**
* The **\`HTMLTableRowElement\`** interface 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 {
/**
* The **\`align\`** property of the HTMLTableRowElement interface is a string indicating how to horizontally align text in the tr table row.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)
*/
align: string;
/**
* The **\`HTMLTableRowElement.bgColor\`** property is used to set the background color of a row or retrieve the value of the obsolete \`bgColor\` attribute, if present.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor)
*/
bgColor: string;
/**
* The **\`cells\`** read-only property of the HTMLTableRowElement interface returns a live HTMLCollection containing the cells in the row.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells)
*/
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/**
* The **\`ch\`** property of the HTMLTableRowElement interface does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch)
*/
ch: string;
/**
* The **\`chOff\`** property of the HTMLTableRowElement interface does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff)
*/
chOff: string;
/**
* The **\`rowIndex\`** read-only property of the HTMLTableRowElement interface represents the position of a row within the whole table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex)
*/
readonly rowIndex: number;
/**
* The **\`sectionRowIndex\`** read-only property of the HTMLTableRowElement interface represents the position of a row within the current section (thead, tbody, or tfoot).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)
*/
readonly sectionRowIndex: number;
/**
* The **\`vAlign\`** property of the HTMLTableRowElement interface is a string indicating how to vertically align text in a tr table row.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)
*/
vAlign: string;
/**
* The **\`deleteCell()\`** method of the HTMLTableRowElement interface removes a specific row cell from a given tr.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)
*/
deleteCell(index: number): void;
/**
* The **\`insertCell()\`** method of the HTMLTableRowElement interface inserts a new cell (td) into a table row (tr) and returns a reference to the cell.
*
* [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;
};
/**
* The **\`HTMLTableSectionElement\`** interface 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 (thead, tfoot, and tbody, respectively) in an HTML table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement)
*/
interface HTMLTableSectionElement extends HTMLElement {
/**
* The **\`align\`** property of the HTMLTableSectionElement interface is a string indicating how to horizontally align text in a thead, tbody or tfoot table section.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)
*/
align: string;
/**
* The **\`ch\`** property of the HTMLTableSectionElement interface does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch)
*/
ch: string;
/**
* The **\`chOff\`** property of the HTMLTableSectionElement interface does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff)
*/
chOff: string;
/**
* The **\`rows\`** read-only property of the HTMLTableSectionElement interface returns a live HTMLCollection containing the rows in the section.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* The **\`vAlign\`** property of the HTMLTableSectionElement interface is a string indicating how to vertically align text in a thead, tbody or tfoot table section.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)
*/
vAlign: string;
/**
* The **\`deleteRow()\`** method of the HTMLTableSectionElement interface removes a specific row (tr) from a given section.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)
*/
deleteRow(index: number): void;
/**
* The **\`insertRow()\`** method of the HTMLTableSectionElement interface inserts a new row (tr) in the given table sectioning element (thead, tfoot, or \`\`\`js-nolint insertRow() insertRow(index) \`\`\` - \`index\` [MISSING: optional_inline] - : The row index of the new row.
*
* [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;
};
/**
* The **\`HTMLTemplateElement\`** interface enables access to the contents of an HTML template element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement)
*/
interface HTMLTemplateElement extends HTMLElement {
/**
* The **\`HTMLTemplateElement.content\`** property returns a \`<template>\` element's template contents (a A DocumentFragment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
*/
readonly content: DocumentFragment;
/**
* The **\`shadowRootClonable\`** property reflects the value of the \`shadowrootclonable\` attribute of the associated \`<template>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
*/
shadowRootClonable: boolean;
/**
* The **\`shadowRootDelegatesFocus\`** property of the HTMLTemplateElement interface reflects the value of the \`shadowrootdelegatesfocus\` attribute of the associated \`<template>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus)
*/
shadowRootDelegatesFocus: boolean;
/**
* The **\`shadowRootMode\`** property of the HTMLTemplateElement interface reflects the value of the \`shadowrootmode\` attribute of the associated \`<template>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode)
*/
shadowRootMode: string;
/**
* The **\`shadowRootSerializable\`** property reflects the value of the \`shadowrootserializable\` attribute of the associated \`<template>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable)
*/
shadowRootSerializable: boolean;
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;
};
/**
* The **\`HTMLTextAreaElement\`** interface provides 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 {
/**
* The **\`autocomplete\`** property of the HTMLTextAreaElement interface indicates whether the value of the control can be automatically completed by the browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete)
*/
autocomplete: AutoFill;
/**
* The **\`cols\`** property of the HTMLTextAreaElement interface is a positive integer representing the visible width of the multi-line text control, in average character widths.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/cols)
*/
cols: number;
/**
* The **\`defaultValue\`** property of the HTMLTextAreaElement interface represents the default text content of this text area.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/defaultValue)
*/
defaultValue: string;
/**
* The **\`dirName\`** property of the HTMLTextAreaElement interface is the directionality of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/dirName)
*/
dirName: string;
/**
* The **\`disabled\`** property of the HTMLTextAreaElement interface indicates whether this multi-line text control is disabled and cannot be interacted with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/disabled)
*/
disabled: boolean;
/**
* The **\`form\`** read-only property of the HTMLTextAreaElement interface returns an HTMLFormElement object that owns this textarea, or \`null\` if this textarea is not owned by any form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* The **\`HTMLTextAreaElement.labels\`** read-only property returns a NodeList of the label elements associated with the A NodeList containing the \`<label>\` elements associated with the \`<textArea>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels)
*/
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* The **\`maxLength\`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength)
*/
maxLength: number;
/**
* The **\`minLength\`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the textarea element to be valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength)
*/
minLength: number;
/**
* The **\`name\`** property of the HTMLTextAreaElement interface indicates the name of the textarea element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name)
*/
name: string;
/**
* The **\`placeholder\`** property of the HTMLTextAreaElement interface represents a hint to the user of what can be entered in the control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/placeholder)
*/
placeholder: string;
/**
* The **\`readOnly\`** property of the HTMLTextAreaElement interface indicates that the user cannot modify the value of the control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/readOnly)
*/
readOnly: boolean;
/**
* The **\`required\`** property of the HTMLTextAreaElement interface specifies that the user must fill in a value before submitting a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/required)
*/
required: boolean;
/**
* The **\`rows\`** property of the HTMLTextAreaElement interface is a positive integer representing the visible text lines of the text control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/rows)
*/
rows: number;
/**
* <!-- --> The **\`selectionDirection\`** property of the HTMLTextAreaElement interface specifies the current direction of the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection)
*/
selectionDirection: "forward" | "backward" | "none";
/**
* The **\`selectionEnd\`** property of the HTMLTextAreaElement interface specifies the end position of the current text selection in a textarea element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionEnd)
*/
selectionEnd: number;
/**
* The **\`selectionStart\`** property of the HTMLTextAreaElement interface specifies the start position of the current text selection in a textarea element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionStart)
*/
selectionStart: number;
/**
* The **\`textLength\`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16 code units, of the textarea element's value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength)
*/
readonly textLength: number;
/**
* The **\`type\`** read-only property of the HTMLTextAreaElement interface returns the string \`'textarea'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type)
*/
readonly type: string;
/**
* The **\`validationMessage\`** read-only property of the HTMLTextAreaElement interface returns a string representing a localized message that describes the validation constraints that the textarea control does not satisfy (if any).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validationMessage)
*/
readonly validationMessage: string;
/**
* The **\`validity\`** read-only property of the HTMLTextAreaElement interface returns a ValidityState object that represents the validity states this element is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validity)
*/
readonly validity: ValidityState;
/**
* The **\`value\`** property of the HTMLTextAreaElement interface represents the value of the textarea element as a string, which is an empty string if the widget contains no content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value)
*/
value: string;
/**
* The **\`willValidate\`** read-only property of the HTMLTextAreaElement interface indicates whether the textarea element is a candidate for constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/willValidate)
*/
readonly willValidate: boolean;
/**
* The **\`wrap\`** property of the HTMLTextAreaElement interface indicates how the control should wrap the value for form submission.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/wrap)
*/
wrap: string;
/**
* The **\`checkValidity()\`** method of the HTMLTextAreaElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity)
*/
checkValidity(): boolean;
/**
* The **\`reportValidity()\`** method of the HTMLTextAreaElement interface performs the same validity checking steps as the HTMLTextAreaElement.checkValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity)
*/
reportValidity(): boolean;
/**
* The **\`select()\`** method of the HTMLTextAreaElement interface selects the entire contents of the textarea element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/select)
*/
select(): void;
/**
* The **\`setCustomValidity()\`** method of the HTMLTextAreaElement interface sets the custom validity message for the textarea element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/**
* The **\`setRangeText()\`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText)
*/
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* The **\`setSelectionRange()\`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
*/
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;
};
/**
* The **\`HTMLTimeElement\`** interface 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 {
/**
* The **\`dateTime\`** property of the HTMLTimeElement interface is a string that reflects the \`datetime\` HTML attribute, containing a machine-readable form of the element's date and time value.
*
* [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;
};
/**
* The **\`HTMLTitleElement\`** interface is implemented by a document's title.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement)
*/
interface HTMLTitleElement extends HTMLElement {
/**
* The **\`text\`** property of the HTMLTitleElement interface represents the child text content of the document's title 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\`** interface represents an HTML track element within the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)
*/
interface HTMLTrackElement extends HTMLElement {
/**
* The **\`default\`** property of the HTMLTrackElement interface represents whether the track will be enabled if the user's preferences do not indicate that another track would be more appropriate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default)
*/
default: boolean;
/**
* The **\`kind\`** property of the HTMLTrackElement interface represents the type of track, or how the text track is meant to be used.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind)
*/
kind: string;
/**
* The **\`label\`** property of the HTMLTrackElement represents the user-readable title displayed when listing subtitle, caption, and audio descriptions for a track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label)
*/
label: string;
/**
* The **\`readyState\`** read-only property of the HTMLTrackElement interface returns a number representing the track element's text track readiness state: 0.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState)
*/
readonly readyState: number;
/**
* The **\`src\`** property of the HTMLTrackElement interface reflects the value of the track element's \`src\` attribute, which indicates the URL of the text track's data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src)
*/
src: string;
/**
* The **\`srclang\`** property of the HTMLTrackElement interface reflects the value of the track element's \`srclang\` attribute or the empty string if not defined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang)
*/
srclang: string;
/**
* The **\`track\`** read-only property of the HTMLTrackElement interface returns a 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;
};
/**
* The **\`HTMLUListElement\`** interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list (ul) elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)
*/
interface HTMLUListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
/** @deprecated */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUListElement: {
prototype: HTMLUListElement;
new(): HTMLUListElement;
};
/**
* The **\`HTMLUnknownElement\`** interface represents 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": PictureInPictureEvent;
"leavepictureinpicture": PictureInPictureEvent;
}
/**
* Implemented by the video element, the **\`HTMLVideoElement\`** interface provides special properties and methods for manipulating video objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
*/
interface HTMLVideoElement extends HTMLMediaElement {
/**
* The HTMLVideoElement **\`disablePictureInPicture\`** property reflects the HTML attribute indicating whether the picture-in-picture feature is disabled for the current element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture)
*/
disablePictureInPicture: boolean;
/**
* The **\`height\`** property of the HTMLVideoElement interface returns an integer that reflects the \`height\` attribute of the video element, specifying the displayed height of the resource in CSS pixels.
*
* [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: PictureInPictureEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
playsInline: boolean;
/**
* The **\`poster\`** property of the HTMLVideoElement interface is a string that reflects the URL for an image to be shown while no video data is available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster)
*/
poster: string;
/**
* The HTMLVideoElement interface's read-only **\`videoHeight\`** property indicates the intrinsic height of the video, expressed in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight)
*/
readonly videoHeight: number;
/**
* The HTMLVideoElement interface's read-only **\`videoWidth\`** property indicates the intrinsic width of the video, expressed in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth)
*/
readonly videoWidth: number;
/**
* The **\`width\`** property of the HTMLVideoElement interface returns an integer that reflects the \`width\` attribute of the video element, specifying the displayed width of the resource in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
*/
width: number;
/**
* The **\`cancelVideoFrameCallback()\`** method of the HTMLVideoElement interface cancels a previously-registered video frame callback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback)
*/
cancelVideoFrameCallback(handle: number): void;
/**
* The **HTMLVideoElement** method **\`getVideoPlaybackQuality()\`** creates and returns a frames have been lost.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality)
*/
getVideoPlaybackQuality(): VideoPlaybackQuality;
/**
* The **HTMLVideoElement** method **\`requestPictureInPicture()\`** issues an asynchronous request to display the video in picture-in-picture mode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture)
*/
requestPictureInPicture(): Promise<PictureInPictureWindow>;
/**
* The **\`requestVideoFrameCallback()\`** method of the HTMLVideoElement interface registers a callback function that runs when a new video frame is sent to the compositor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback)
*/
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;
};
/**
* The **\`HashChangeEvent\`** interface represents 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 {
/**
* The **\`newURL\`** read-only property of the navigating.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL)
*/
readonly newURL: string;
/**
* The **\`oldURL\`** read-only property of the was navigated.
*
* [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;
};
/**
* The **\`Headers\`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
*/
interface Headers {
/**
* The **\`append()\`** method of the Headers interface appends a new value onto an existing header inside a \`Headers\` object, or adds the header if it does not already exist.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
*/
append(name: string, value: string): void;
/**
* The **\`delete()\`** method of the Headers interface deletes a header from the current \`Headers\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)
*/
delete(name: string): void;
/**
* The **\`get()\`** method of the Headers interface returns a byte string of all the values of a header within a \`Headers\` object with a given name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)
*/
get(name: string): string | null;
/**
* The **\`getSetCookie()\`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)
*/
getSetCookie(): string[];
/**
* The **\`has()\`** method of the Headers interface returns a boolean stating whether a \`Headers\` object contains a certain header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)
*/
has(name: string): boolean;
/**
* The **\`set()\`** method of the Headers interface sets a new value for an existing header inside a \`Headers\` object, or adds the header if it does not already exist.
*
* [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;
};
/**
* The **\`Highlight\`** interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight)
*/
interface Highlight {
/**
* It is possible to create Range objects that overlap in a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority)
*/
priority: number;
/**
* The \`type\` property of the Highlight interface is an enumerated String used to specify the meaning of the highlight.
*
* [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;
};
/**
* The **\`HighlightRegistry\`** interface of the CSS Custom Highlight API is used to register Highlight objects to be styled using the API.
*
* [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;
};
/**
* The **\`History\`** interface of the History API 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 {
/**
* The **\`length\`** read-only property of the History interface returns an integer representing the number of entries in the session history, including the currently loaded page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length)
*/
readonly length: number;
/**
* The **\`scrollRestoration\`** property of the History interface allows web applications to explicitly set default scroll restoration behavior on history navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration)
*/
scrollRestoration: ScrollRestoration;
/**
* The **\`state\`** read-only property of the History interface returns a value representing the state at the top of the history stack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state)
*/
readonly state: any;
/**
* The **\`back()\`** method of the History interface causes the browser to move back one page in the session history.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back)
*/
back(): void;
/**
* The **\`forward()\`** method of the History interface causes the browser to move forward one page in the session history.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward)
*/
forward(): void;
/**
* The **\`go()\`** method of the History interface loads a specific page from the session history.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go)
*/
go(delta?: number): void;
/**
* The **\`pushState()\`** method of the History interface adds an entry to the browser's session history stack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState)
*/
pushState(data: any, unused: string, url?: string | URL | null): void;
/**
* The **\`replaceState()\`** method of the History interface modifies the current history entry, replacing it with the state object and URL passed in the method parameters.
*
* [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;
};
/**
* The **\`IDBCursor\`** interface of the IndexedDB API 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 {
/**
* The **\`direction\`** read-only property of the direction of traversal of the cursor (set using section below for possible values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
*/
readonly direction: IDBCursorDirection;
/**
* The **\`key\`** read-only property of the position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
*/
readonly key: IDBValidKey;
/**
* The **\`primaryKey\`** read-only property of the cursor is currently being iterated or has iterated outside its range, this is set to undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
*/
readonly primaryKey: IDBValidKey;
/**
* The **\`request\`** read-only property of the IDBCursor interface returns the IDBRequest used to obtain the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request)
*/
readonly request: IDBRequest;
/**
* The **\`source\`** read-only property of the null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* The **\`advance()\`** method of the IDBCursor interface sets the number of times a cursor should move its position forward.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
*/
advance(count: number): void;
/**
* The **\`continue()\`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
*/
continue(key?: IDBValidKey): void;
/**
* The **\`continuePrimaryKey()\`** method of the matches the key parameter as well as whose primary key matches the primary key parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
*/
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* The **\`delete()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
*/
delete(): IDBRequest<undefined>;
/**
* The **\`update()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/**
* The **\`IDBCursorWithValue\`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
*/
interface IDBCursorWithValue extends IDBCursor {
/**
* The **\`value\`** read-only property of the whatever that is.
*
* [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;
}
/**
* The **\`IDBDatabase\`** interface of the IndexedDB API 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
*/
interface IDBDatabase extends EventTarget {
/**
* The **\`name\`** read-only property of the \`IDBDatabase\` interface is a string that contains the name of the connected database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
*/
readonly name: string;
/**
* The **\`objectStoreNames\`** read-only property of the list of the names of the object stores currently in the connected 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;
/**
* The **\`version\`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
*/
readonly version: number;
/**
* The **\`close()\`** method of the IDBDatabase interface returns immediately and closes the connection in a separate thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
*/
close(): void;
/**
* The **\`createObjectStore()\`** method of the The method takes the name of the store as well as a parameter object that lets you define important optional properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* The **\`deleteObjectStore()\`** method of the the connected database, along with any indexes that reference it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
*/
deleteObjectStore(name: string): void;
/**
* The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
*
* [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;
};
/**
* The **\`IDBFactory\`** interface of the IndexedDB API lets applications asynchronously access the indexed databases.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
*/
interface IDBFactory {
/**
* The **\`cmp()\`** method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
*/
cmp(first: any, second: any): number;
/**
* The **\`databases\`** method of the IDBFactory interface returns a Promise that fulfills with an array of objects containing the name and version of all the available databases.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases)
*/
databases(): Promise<IDBDatabaseInfo[]>;
/**
* The **\`deleteDatabase()\`** method of the returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
*/
deleteDatabase(name: string): IDBOpenDBRequest;
/**
* The **\`open()\`** method of the IDBFactory interface requests opening a connection to a database.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
*/
interface IDBIndex {
/**
* The **\`keyPath\`** property of the IDBIndex interface returns the key path of the current index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath)
*/
readonly keyPath: string | string[];
/**
* The **\`multiEntry\`** read-only property of the behaves when the result of evaluating the index's key path yields an array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry)
*/
readonly multiEntry: boolean;
/**
* The **\`name\`** property of the IDBIndex interface contains a string which names the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
*/
name: string;
/**
* The **\`objectStore\`** property of the IDBIndex interface returns the object store referenced by the current index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
*/
readonly objectStore: IDBObjectStore;
/**
* The **\`unique\`** read-only property returns a boolean that states whether the index allows duplicate keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique)
*/
readonly unique: boolean;
/**
* The **\`count()\`** method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* The **\`get()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if \`key\` is set to an If a value is found, then a structured clone of it is created and set as the \`result\` of the request object: this returns the record the key is associated with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* The **\`getAll()\`** method of the IDBIndex interface retrieves all objects that are inside the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* The **\`getAllKeys()\`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the \`result\` of the request object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* The **\`getKey()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if \`key\` is set to an If a primary key is found, it is set as the \`result\` of the request object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* The **\`openCursor()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* The **\`openKeyCursor()\`** method of the a separate thread, creates a cursor over the specified key range, as arranged by this index.
*
* [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;
};
/**
* The **\`IDBKeyRange\`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
*/
interface IDBKeyRange {
/**
* The **\`lower\`** read-only property of the The lower bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
*/
readonly lower: any;
/**
* The **\`lowerOpen\`** read-only property of the lower-bound value is included in the key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
*/
readonly lowerOpen: boolean;
/**
* The **\`upper\`** read-only property of the The upper bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
*/
readonly upper: any;
/**
* The **\`upperOpen\`** read-only property of the upper-bound value is included in the key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
*/
readonly upperOpen: boolean;
/**
* The \`includes()\` method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
*/
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/**
* The **\`bound()\`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
*/
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/**
* The **\`lowerBound()\`** static method of the By default, it includes the lower endpoint value and is closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* The **\`only()\`** static method of the IDBKeyRange interface creates a new key range containing a single value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
*/
only(value: any): IDBKeyRange;
/**
* The **\`upperBound()\`** static method of the it includes the upper endpoint value and is closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
*/
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/**
* The **\`IDBObjectStore\`** interface of the IndexedDB API represents an object store in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
*/
interface IDBObjectStore {
/**
* The **\`autoIncrement\`** read-only property of the for this object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
*/
readonly autoIncrement: boolean;
/**
* The **\`indexNames\`** read-only property of the in this object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
*/
readonly indexNames: DOMStringList;
/**
* The **\`keyPath\`** read-only property of the If this property is null, the application must provide a key for each modification operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
*/
readonly keyPath: string | string[] | null;
/**
* The **\`name\`** property of the IDBObjectStore interface indicates the name of this object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
*/
name: string;
/**
* The **\`transaction\`** read-only property of the object store belongs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
*/
readonly transaction: IDBTransaction;
/**
* The **\`add()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* The **\`clear()\`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
*/
clear(): IDBRequest<undefined>;
/**
* The **\`count()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or of records in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* The **\`delete()\`** method of the and, in a separate thread, deletes the specified record or records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* The **\`deleteIndex()\`** method of the the connected database, used during a version upgrade.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
*/
deleteIndex(name: string): void;
/**
* The **\`get()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* The **\`getAll()\`** method of the containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* The \`getAllKeys()\` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* The **\`getKey()\`** method of the and, in a separate thread, returns the key selected by the specified query.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* The **\`index()\`** method of the IDBObjectStore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index)
*/
index(name: string): IDBIndex;
/**
* The **\`openCursor()\`** method of the and, in a separate thread, returns a new IDBCursorWithValue object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* The **\`openKeyCursor()\`** method of the whose result will be set to an IDBCursor that can be used to iterate through matching results.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* The **\`put()\`** method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.
*
* [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;
}
/**
* The **\`IDBOpenDBRequest\`** interface of the IndexedDB API provides access to the results of requests to open or delete databases (performed using IDBFactory.open and IDBFactory.deleteDatabase), using specific event handler attributes.
*
* [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 **\`IDBRequest\`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
*/
interface IDBRequest<T = any> extends EventTarget {
/**
* The **\`error\`** read-only property of the request.
*
* [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;
/**
* The **\`readyState\`** read-only property of the Every request starts in the \`pending\` state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
*/
readonly readyState: IDBRequestReadyState;
/**
* The **\`result\`** read-only property of the any - \`InvalidStateError\` DOMException - : Thrown when attempting to access the property if the request is not completed, and therefore the result is not available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
*/
readonly result: T;
/**
* The **\`source\`** read-only property of the Index or an object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
*/
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* The **\`transaction\`** read-only property of the IDBRequest interface returns the transaction for the request, that is, the transaction the request is being made inside.
*
* [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;
}
/**
* The **\`IDBTransaction\`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction)
*/
interface IDBTransaction extends EventTarget {
/**
* The **\`db\`** read-only property of the IDBTransaction interface returns the database connection with which this transaction is associated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
*/
readonly db: IDBDatabase;
/**
* The **\`durability\`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability)
*/
readonly durability: IDBTransactionDurability;
/**
* The **\`IDBTransaction.error\`** property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
*/
readonly error: DOMException | null;
/**
* The **\`mode\`** read-only property of the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is \`readonly\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
*/
readonly mode: IDBTransactionMode;
/**
* The **\`objectStoreNames\`** read-only property of the of IDBObjectStore objects.
*
* [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;
/**
* The **\`abort()\`** method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
*/
abort(): void;
/**
* The **\`commit()\`** method of the IDBTransaction interface commits the transaction if it is called on an active transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit)
*/
commit(): void;
/**
* The **\`objectStore()\`** method of the added to the scope of this transaction.
*
* [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;
};
/**
* The **\`IDBVersionChangeEvent\`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.upgradeneeded_event event handler function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
*/
interface IDBVersionChangeEvent extends Event {
/**
* The **\`newVersion\`** read-only property of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion)
*/
readonly newVersion: number | null;
/**
* The **\`oldVersion\`** read-only property of the database.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
*/
interface IIRFilterNode extends AudioNode {
/**
* The \`getFrequencyResponse()\` method of the IIRFilterNode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse)
*/
getFrequencyResponse(frequencyHz: Float32Array<ArrayBuffer>, magResponse: Float32Array<ArrayBuffer>, phaseResponse: Float32Array<ArrayBuffer>): void;
}
declare var IIRFilterNode: {
prototype: IIRFilterNode;
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
/**
* The \`IdleDeadline\` interface is used as the data type of the input parameter to idle callbacks established by calling Window.requestIdleCallback().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline)
*/
interface IdleDeadline {
/**
* The read-only **\`didTimeout\`** property on the **IdleDeadline** interface is a Boolean value which indicates whether or not the idle callback is being invoked because the timeout interval specified when Window.requestIdleCallback() was called has expired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout)
*/
readonly didTimeout: boolean;
/**
* The **\`timeRemaining()\`** method on the IdleDeadline interface returns the estimated number of milliseconds remaining in the current idle period.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining)
*/
timeRemaining(): DOMHighResTimeStamp;
}
declare var IdleDeadline: {
prototype: IdleDeadline;
new(): IdleDeadline;
};
/**
* The **\`ImageBitmap\`** interface represents a bitmap image which can be drawn to a canvas without undue latency.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap)
*/
interface ImageBitmap {
/**
* The **\`ImageBitmap.height\`** read-only property returns the ImageBitmap object's height in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
*/
readonly height: number;
/**
* The **\`ImageBitmap.width\`** read-only property returns the ImageBitmap object's width in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
*/
readonly width: number;
/**
* The **\`ImageBitmap.close()\`** method disposes of all graphical resources associated with an \`ImageBitmap\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
/**
* The **\`ImageBitmapRenderingContext\`** interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)
*/
interface ImageBitmapRenderingContext {
/**
* The **\`ImageBitmapRenderingContext.canvas\`** property, part of the Canvas API, is a read-only reference to the A HTMLCanvasElement or OffscreenCanvas object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
*/
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
/**
* The **\`ImageBitmapRenderingContext.transferFromImageBitmap()\`** method displays the given ImageBitmap in the canvas associated with this rendering context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/**
* The **\`ImageCapture\`** interface of the MediaStream Image Capture API provides methods to enable the capture of images or photos from a camera or other photographic device.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture)
*/
interface ImageCapture {
/**
* The **\`track\`** read-only property of the A MediaStreamTrack object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/track)
*/
readonly track: MediaStreamTrack;
/**
* The **\`getPhotoCapabilities()\`** method of the ImageCapture interface returns a Promise that resolves with an object containing the ranges of available configuration options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoCapabilities)
*/
getPhotoCapabilities(): Promise<PhotoCapabilities>;
/**
* The **\`getPhotoSettings()\`** method of the ImageCapture interface returns a Promise that resolves with an object containing the current photo configuration settings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoSettings)
*/
getPhotoSettings(): Promise<PhotoSettings>;
/**
* The **\`takePhoto()\`** method of the device sourcing a MediaStreamTrack and returns a Promise that resolves with a Blob containing the data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/takePhoto)
*/
takePhoto(photoSettings?: PhotoSettings): Promise<Blob>;
}
declare var ImageCapture: {
prototype: ImageCapture;
new(videoTrack: MediaStreamTrack): ImageCapture;
};
/**
* The **\`ImageData\`** interface represents the underlying pixel data of an area of a canvas element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
*/
interface ImageData {
/**
* The read-only **\`ImageData.colorSpace\`** property is a string indicating the color space of the image data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace)
*/
readonly colorSpace: PredefinedColorSpace;
/**
* The readonly **\`ImageData.data\`** property returns a pixel data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: ImageDataArray;
/**
* The readonly **\`ImageData.height\`** property returns the number of rows in the ImageData object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
*/
readonly height: number;
/**
* The readonly **\`ImageData.width\`** property returns the number of pixels per row in the ImageData object.
*
* [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: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
/**
* The **\`ImageDecoder\`** interface of the WebCodecs API provides a way to unpack and decode encoded image data.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
*/
interface ImageDecoder {
/**
* The **\`complete\`** read-only property of the ImageDecoder interface returns true if encoded data has completed buffering.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete)
*/
readonly complete: boolean;
/**
* The **\`completed\`** read-only property of the ImageDecoder interface returns a promise that resolves once encoded data has finished buffering.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed)
*/
readonly completed: Promise<void>;
/**
* The **\`tracks\`** read-only property of the ImageDecoder interface returns a list of the tracks in the encoded image data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks)
*/
readonly tracks: ImageTrackList;
/**
* The **\`type\`** read-only property of the ImageDecoder interface reflects the MIME type configured during construction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type)
*/
readonly type: string;
/**
* The **\`close()\`** method of the ImageDecoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close)
*/
close(): void;
/**
* The **\`decode()\`** method of the ImageDecoder interface enqueues a control message to decode the frame of an image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode)
*/
decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;
/**
* The **\`reset()\`** method of the ImageDecoder interface aborts all pending \`decode()\` operations; rejecting all pending promises.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset)
*/
reset(): void;
}
declare var ImageDecoder: {
prototype: ImageDecoder;
new(init: ImageDecoderInit): ImageDecoder;
/**
* The **\`ImageDecoder.isTypeSupported()\`** static method checks if a given MIME type can be decoded by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static)
*/
isTypeSupported(type: string): Promise<boolean>;
};
/**
* The **\`ImageTrack\`** interface of the WebCodecs API represents an individual image track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
*/
interface ImageTrack {
/**
* The **\`animated\`** property of the ImageTrack interface returns \`true\` if the track is animated and therefore has multiple frames.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated)
*/
readonly animated: boolean;
/**
* The **\`frameCount\`** property of the ImageTrack interface returns the number of frames in the track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount)
*/
readonly frameCount: number;
/**
* The **\`repetitionCount\`** property of the ImageTrack interface returns the number of repetitions of this track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount)
*/
readonly repetitionCount: number;
/**
* The **\`selected\`** property of the ImageTrack interface returns \`true\` if the track is selected for decoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected)
*/
selected: boolean;
}
declare var ImageTrack: {
prototype: ImageTrack;
new(): ImageTrack;
};
/**
* The **\`ImageTrackList\`** interface of the WebCodecs API represents a list of image tracks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
*/
interface ImageTrackList {
/**
* The **\`length\`** property of the ImageTrackList interface returns the length of the \`ImageTrackList\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length)
*/
readonly length: number;
/**
* The **\`ready\`** property of the ImageTrackList interface returns a Promise that resolves when the \`ImageTrackList\` is populated with ImageTrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready)
*/
readonly ready: Promise<void>;
/**
* The **\`selectedIndex\`** property of the ImageTrackList interface returns the \`index\` of the selected track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex)
*/
readonly selectedIndex: number;
/**
* The **\`selectedTrack\`** property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack)
*/
readonly selectedTrack: ImageTrack | null;
[index: number]: ImageTrack;
}
declare var ImageTrackList: {
prototype: ImageTrackList;
new(): ImageTrackList;
};
interface ImportMeta {
url: string;
resolve(specifier: string): string;
}
/**
* The **\`InputDeviceInfo\`** interface of the Media Capture and Streams API gives access to the capabilities of the input device that it represents.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)
*/
interface InputDeviceInfo extends MediaDeviceInfo {
/**
* The **\`getCapabilities()\`** method of the InputDeviceInfo interface returns a \`MediaTrackCapabilities\` object describing the primary audio or video track of the device's MediaStream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities)
*/
getCapabilities(): MediaTrackCapabilities;
}
declare var InputDeviceInfo: {
prototype: InputDeviceInfo;
new(): InputDeviceInfo;
};
/**
* The **\`InputEvent\`** interface represents an event notifying the user of editable content changes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent)
*/
interface InputEvent extends UIEvent {
/**
* The **\`data\`** read-only property of the characters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data)
*/
readonly data: string | null;
/**
* The **\`dataTransfer\`** read-only property of the containing information about richtext or plaintext data being added to or removed from editable content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer)
*/
readonly dataTransfer: DataTransfer | null;
/**
* The **\`inputType\`** read-only property of the Possible changes include for example inserting, deleting, and formatting text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType)
*/
readonly inputType: string;
/**
* The **\`InputEvent.isComposing\`** read-only property returns a boolean value indicating if the event is fired after A boolean.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing)
*/
readonly isComposing: boolean;
/**
* The **\`getTargetRanges()\`** method of the InputEvent interface returns an array of StaticRange objects that will be affected by a change to the DOM if the input event is not canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges)
*/
getTargetRanges(): StaticRange[];
}
declare var InputEvent: {
prototype: InputEvent;
new(type: string, eventInitDict?: InputEventInit): InputEvent;
};
/**
* The **\`IntersectionObserver\`** interface of the Intersection Observer API 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 {
/**
* The IntersectionObserver interface's read-only **\`root\`** property identifies the Element or of the viewport for the element which is the observer's target.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root)
*/
readonly root: Element | Document | null;
/**
* The IntersectionObserver interface's read-only **\`rootMargin\`** property is a string with syntax similar to that of the CSS margin property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin)
*/
readonly rootMargin: string;
/**
* The IntersectionObserver interface's read-only **\`thresholds\`** property returns the list of intersection thresholds that was specified when the observer was instantiated with only one threshold ratio was provided when instantiating the object, this will be an array containing that single value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds)
*/
readonly thresholds: ReadonlyArray<number>;
/**
* The IntersectionObserver method **\`disconnect()\`** stops watching all of its target elements for visibility changes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect)
*/
disconnect(): void;
/**
* The IntersectionObserver method **\`observe()\`** adds an element to the set of target elements being watched by the \`IntersectionObserver\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe)
*/
observe(target: Element): void;
/**
* The IntersectionObserver method **\`takeRecords()\`** returns an array of has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords)
*/
takeRecords(): IntersectionObserverEntry[];
/**
* The IntersectionObserver method **\`unobserve()\`** instructs the \`IntersectionObserver\` to stop observing the specified target element.
*
* [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;
};
/**
* The **\`IntersectionObserverEntry\`** interface of the Intersection Observer API 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 {
/**
* The IntersectionObserverEntry interface's read-only **\`boundingClientRect\`** property returns a smallest rectangle that contains the entire target element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect)
*/
readonly boundingClientRect: DOMRectReadOnly;
/**
* The IntersectionObserverEntry interface's read-only **\`intersectionRatio\`** property tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio)
*/
readonly intersectionRatio: number;
/**
* The IntersectionObserverEntry interface's read-only **\`intersectionRect\`** property is a contains the entire portion of the target element which is currently visible within the intersection root.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect)
*/
readonly intersectionRect: DOMRectReadOnly;
/**
* The IntersectionObserverEntry interface's read-only **\`isIntersecting\`** property is a Boolean value which is \`true\` if the target element intersects with the intersection observer's root.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting)
*/
readonly isIntersecting: boolean;
/**
* The IntersectionObserverEntry interface's read-only **\`rootBounds\`** property is a rectangle, offset by the IntersectionObserver.rootMargin if one is specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds)
*/
readonly rootBounds: DOMRectReadOnly | null;
/**
* The IntersectionObserverEntry interface's read-only **\`target\`** property indicates which targeted root.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target)
*/
readonly target: Element;
/**
* The IntersectionObserverEntry interface's read-only **\`time\`** property is a change occurred relative to the time at which the document was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time)
*/
readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(): IntersectionObserverEntry;
};
/**
* The **\`KHR_parallel_shader_compile\`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (\`COMPLETION_STATUS_KHR\`) can be queried without potentially incurring stalls.
*
* [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 {
/**
* The **\`KeyboardEvent.altKey\`** read-only property is a boolean value that indicates if the <kbd>alt</kbd> key (<kbd>Option</kbd> or <kbd>\u2325</kbd> on macOS) was pressed (\`true\`) or not (\`false\`) when the event occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey)
*/
readonly altKey: boolean;
/**
* The **\`charCode\`** read-only property of the pressed during a Element/keypress_event event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode)
*/
readonly charCode: number;
/**
* The \`KeyboardEvent.code\` property represents a physical key on the keyboard (as opposed to the character generated by pressing the key).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code)
*/
readonly code: string;
/**
* The **\`KeyboardEvent.ctrlKey\`** read-only property returns a boolean value that indicates if the <kbd>control</kbd> key was pressed (\`true\`) or not (\`false\`) when the event occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey)
*/
readonly ctrlKey: boolean;
/**
* The **\`KeyboardEvent.isComposing\`** read-only property returns a boolean value indicating if the event is fired within a composition session, i.e., after Element/compositionstart_event and before Element/compositionend_event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing)
*/
readonly isComposing: boolean;
/**
* The KeyboardEvent interface's **\`key\`** read-only property returns the value of the key pressed by the user, taking into consideration the state of modifier keys such as <kbd>Shift</kbd> as well as the keyboard locale and layout.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key)
*/
readonly key: string;
/**
* The deprecated **\`KeyboardEvent.keyCode\`** read-only property represents a system and implementation dependent numerical code identifying the unmodified value of the pressed key.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode)
*/
readonly keyCode: number;
/**
* The **\`KeyboardEvent.location\`** read-only property returns an \`unsigned long\` representing the location of the key on the keyboard or other input device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location)
*/
readonly location: number;
/**
* The **\`KeyboardEvent.metaKey\`** read-only property returning a boolean value that indicates if the <kbd>Meta</kbd> key was pressed (\`true\`) or not (\`false\`) when the event occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey)
*/
readonly metaKey: boolean;
/**
* The **\`repeat\`** read-only property of the \`true\` if the given key is being held down such that it is automatically repeating.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat)
*/
readonly repeat: boolean;
/**
* The **\`KeyboardEvent.shiftKey\`** read-only property is a boolean value that indicates if the <kbd>shift</kbd> key was pressed (\`true\`) or not (\`false\`) when the event occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey)
*/
readonly shiftKey: boolean;
/**
* The **\`KeyboardEvent.getModifierState()\`** method returns the current state of the specified modifier key: \`true\` if the modifier is active (that is the modifier key is pressed or locked), otherwise, \`false\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState)
*/
getModifierState(keyArg: string): boolean;
/**
* The **\`KeyboardEvent.initKeyboardEvent()\`** method initializes the attributes of a keyboard event object.
* @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;
};
/**
* The **\`KeyframeEffect\`** interface of the Web Animations API lets us create sets of animatable properties and values, called **keyframes.** These can then be played using the Animation.Animation constructor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect)
*/
interface KeyframeEffect extends AnimationEffect {
/**
* The **\`composite\`** property of a KeyframeEffect resolves how an element's animation impacts its underlying property values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite)
*/
composite: CompositeOperation;
/**
* The **\`iterationComposite\`** property of a KeyframeEffect resolves how the animation's property value changes accumulate or override each other upon each of the animation's iterations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite)
*/
iterationComposite: IterationCompositeOperation;
/**
* The **\`pseudoElement\`** property of a KeyframeEffect interface is a string representing the pseudo-element being animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement)
*/
pseudoElement: string | null;
/**
* The **\`target\`** property of a KeyframeEffect interface represents the element or pseudo-element being animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target)
*/
target: Element | null;
/**
* The **\`getKeyframes()\`** method of a KeyframeEffect returns an Array of the computed keyframes that make up this animation along with their computed offsets.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes)
*/
getKeyframes(): ComputedKeyframe[];
/**
* The **\`setKeyframes()\`** method of the KeyframeEffect interface replaces the keyframes that make up the affected \`KeyframeEffect\` with a new set of keyframes.
*
* [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;
};
/**
* The \`LargestContentfulPaint\` interface provides timing information about the largest image or text paint before user input on a web page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)
*/
interface LargestContentfulPaint extends PerformanceEntry {
/**
* The **\`element\`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element)
*/
readonly element: Element | null;
/**
* The **\`id\`** read-only property of the LargestContentfulPaint interface returns the ID of the element that is the largest contentful paint.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id)
*/
readonly id: string;
/**
* The **\`loadTime\`** read-only property of the LargestContentfulPaint interface returns the time that the element was loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime)
*/
readonly loadTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */
readonly renderTime: DOMHighResTimeStamp;
/**
* The **\`size\`** read-only property of the LargestContentfulPaint interface returns the intrinsic size of the element that is the largest contentful paint.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size)
*/
readonly size: number;
/**
* The **\`url\`** read-only property of the LargestContentfulPaint interface returns the request URL of the element, if the element is an image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url)
*/
readonly url: string;
/**
* The **\`toJSON()\`** method of the LargestContentfulPaint interface is a Serialization; it returns a JSON representation of the LargestContentfulPaint object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON)
*/
toJSON(): any;
}
declare var LargestContentfulPaint: {
prototype: LargestContentfulPaint;
new(): LargestContentfulPaint;
};
interface LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
readonly sheet: CSSStyleSheet | null;
}
/**
* The **\`Location\`** interface represents the location (URL) of the object it is linked to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location)
*/
interface Location {
/**
* The **\`ancestorOrigins\`** read-only property of the Location interface is a static browsing contexts of the document associated with the given Location object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins)
*/
readonly ancestorOrigins: DOMStringList;
/**
* The **\`hash\`** property of the Location interface is a string containing a \`'#'\` followed by the fragment identifier of the location URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash)
*/
hash: string;
/**
* The **\`host\`** property of the Location interface is a string containing the host, which is the Location.hostname, and then, if the port of the URL is nonempty, a \`':'\`, followed by the Location.port of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host)
*/
host: string;
/**
* The **\`hostname\`** property of the Location interface is a string containing either the domain name or IP address of the location URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname)
*/
hostname: string;
/**
* The **\`href\`** property of the Location interface is a stringifier that returns a string containing the whole URL, and allows the href to be updated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href)
*/
href: string;
toString(): string;
/**
* The **\`origin\`** read-only property of the Location interface returns a string containing the Unicode serialization of the origin of the location's URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin)
*/
readonly origin: string;
/**
* The **\`pathname\`** property of the Location interface is a string containing the path of the URL for the location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)
*/
pathname: string;
/**
* The **\`port\`** property of the Location interface is a string containing the port number of the location's URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port)
*/
port: string;
/**
* The **\`protocol\`** property of the Location interface is a string containing the protocol or scheme of the location's URL, including the final \`':'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol)
*/
protocol: string;
/**
* The **\`search\`** property of the Location interface is a search string, also called a _query string_, that is a string containing a \`'?'\` followed by the parameters of the location's URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search)
*/
search: string;
/**
* The **\`assign()\`** method of the Location interface causes the window to load and display the document at the URL specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign)
*/
assign(url: string | URL): void;
/**
* The **\`reload()\`** method of the Location interface reloads the current URL, like the Refresh button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)
*/
reload(): void;
/**
* The **\`replace()\`** method of the Location interface replaces the current resource with the one at the provided URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace)
*/
replace(url: string | URL): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
/**
* The **\`Lock\`** interface of the Web Locks API provides the name and mode of a lock.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
*/
interface Lock {
/**
* The **\`mode\`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode)
*/
readonly mode: LockMode;
/**
* The **\`name\`** read-only property of the Lock interface returns the _name_ passed to The name of a lock is passed by script when the lock is requested.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name)
*/
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/**
* The **\`LockManager\`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing \`Lock\` object.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
*/
interface LockManager {
/**
* The **\`query()\`** method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query)
*/
query(): Promise<LockManagerSnapshot>;
/**
* The **\`request()\`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
*/
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
interface MIDIAccessEventMap {
"statechange": MIDIConnectionEvent;
}
/**
* The **\`MIDIAccess\`** interface of the Web MIDI API provides methods for listing MIDI input and output devices, and obtaining access to those devices.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess)
*/
interface MIDIAccess extends EventTarget {
/**
* The **\`inputs\`** read-only property of the MIDIAccess interface provides access to any available MIDI input ports.
*
* [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: MIDIConnectionEvent) => any) | null;
/**
* The **\`outputs\`** read-only property of the MIDIAccess interface provides access to any available MIDI output ports.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs)
*/
readonly outputs: MIDIOutputMap;
/**
* The **\`sysexEnabled\`** read-only property of the MIDIAccess interface indicates whether system exclusive support is enabled on the current MIDIAccess instance.
*
* [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;
};
/**
* The **\`MIDIConnectionEvent\`** interface of the Web MIDI API is the event passed to the MIDIAccess.statechange_event event of the MIDIAccess interface and the MIDIPort.statechange_event event of the MIDIPort interface.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)
*/
interface MIDIConnectionEvent extends Event {
/**
* The **\`port\`** read-only property of the MIDIConnectionEvent interface returns the port that has been disconnected or connected.
*
* [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;
}
/**
* The **\`MIDIInput\`** interface of the Web MIDI API receives messages from a MIDI input port.
* 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;
};
/**
* The **\`MIDIInputMap\`** read-only interface of the Web MIDI API provides the set of MIDI input ports that are currently available.
* 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;
};
/**
* The **\`MIDIMessageEvent\`** interface of the Web MIDI API represents the event passed to the MIDIInput.midimessage_event event of the MIDIInput interface.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent)
*/
interface MIDIMessageEvent extends Event {
/**
* The **\`data\`** read-only property of the MIDIMessageEvent interface returns the MIDI data bytes of a single MIDI message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data)
*/
readonly data: Uint8Array<ArrayBuffer> | null;
}
declare var MIDIMessageEvent: {
prototype: MIDIMessageEvent;
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
};
/**
* The **\`MIDIOutput\`** interface of the Web MIDI API provides methods to add messages to the queue of an output device, and to clear the queue of messages.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput)
*/
interface MIDIOutput extends MIDIPort {
/**
* The **\`send()\`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.
*
* [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;
};
/**
* The **\`MIDIOutputMap\`** read-only interface of the Web MIDI API provides the set of MIDI output ports that are currently available.
* 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;
}
/**
* The **\`MIDIPort\`** interface of the Web MIDI API represents a MIDI input or output port.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort)
*/
interface MIDIPort extends EventTarget {
/**
* The **\`connection\`** read-only property of the MIDIPort interface returns the connection state of the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection)
*/
readonly connection: MIDIPortConnectionState;
/**
* The **\`id\`** read-only property of the MIDIPort interface returns the unique ID of the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id)
*/
readonly id: string;
/**
* The **\`manufacturer\`** read-only property of the MIDIPort interface returns the manufacturer of the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer)
*/
readonly manufacturer: string | null;
/**
* The **\`name\`** read-only property of the MIDIPort interface returns the system name of the port.
*
* [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;
/**
* The **\`state\`** read-only property of the MIDIPort interface returns the state of the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state)
*/
readonly state: MIDIPortDeviceState;
/**
* The **\`type\`** read-only property of the MIDIPort interface returns the type of the port, indicating whether this is an input or output MIDI port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type)
*/
readonly type: MIDIPortType;
/**
* The **\`version\`** read-only property of the MIDIPort interface returns the version of the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version)
*/
readonly version: string | null;
/**
* The **\`close()\`** method of the MIDIPort interface makes the access to the MIDI device connected to this \`MIDIPort\` unavailable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close)
*/
close(): Promise<MIDIPort>;
/**
* The **\`open()\`** method of the MIDIPort interface makes the MIDI device connected to this \`MIDIPort\` explicitly available.
*
* [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 {
}
/**
* The **\`MathMLElement\`** interface represents any MathML element.
*
* [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;
};
/**
* The **\`MediaCapabilities\`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities)
*/
interface MediaCapabilities {
/**
* The **\`decodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfils with information about how well the user agent can decode/display media with a given configuration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo)
*/
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
/**
* The **\`encodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration's capabilities for encoding media.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo)
*/
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* The **\`MediaDeviceInfo\`** interface of the Media Capture and Streams API 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 {
/**
* The **\`deviceId\`** read-only property of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId)
*/
readonly deviceId: string;
/**
* The **\`groupId\`** read-only property of the MediaDeviceInfo interface returns a string that is a group identifier.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId)
*/
readonly groupId: string;
/**
* The **\`kind\`** read-only property of the MediaDeviceInfo interface returns an enumerated value, that is either \`'videoinput'\`, \`'audioinput'\` or \`'audiooutput'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind)
*/
readonly kind: MediaDeviceKind;
/**
* The **\`label\`** read-only property of the MediaDeviceInfo interface returns a string describing this device (for example 'External USB Webcam').
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label)
*/
readonly label: string;
/**
* The **\`toJSON()\`** method of the MediaDeviceInfo interface is a Serialization; it returns a JSON representation of the MediaDeviceInfo object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON)
*/
toJSON(): any;
}
declare var MediaDeviceInfo: {
prototype: MediaDeviceInfo;
new(): MediaDeviceInfo;
};
interface MediaDevicesEventMap {
"devicechange": Event;
}
/**
* The **\`MediaDevices\`** interface of the Media Capture and Streams API provides access to connected media input devices like cameras and microphones, as well as screen sharing.
* 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;
/**
* The **\`enumerateDevices()\`** method of the MediaDevices interface requests a list of the currently available media input and output devices, such as microphones, cameras, headsets, and so forth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices)
*/
enumerateDevices(): Promise<MediaDeviceInfo[]>;
/**
* The **\`getDisplayMedia()\`** method of the MediaDevices interface prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia)
*/
getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
/**
* The **\`getSupportedConstraints()\`** method of the MediaDevices interface returns an object based on the MediaTrackSupportedConstraints dictionary, whose member fields each specify one of the constrainable properties the user agent understands.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints)
*/
getSupportedConstraints(): MediaTrackSupportedConstraints;
/**
* The **\`getUserMedia()\`** method of the MediaDevices interface prompts the user for permission to use a media input which produces a MediaStream with tracks containing the requested types of media.
*
* [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;
};
/**
* The \`MediaElementAudioSourceNode\` interface represents an audio source consisting of an HTML audio or video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)
*/
interface MediaElementAudioSourceNode extends AudioNode {
/**
* The MediaElementAudioSourceNode interface's read-only **\`mediaElement\`** property indicates the receiving audio.
*
* [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;
};
/**
* The **\`MediaEncryptedEvent\`** interface of the Encrypted Media Extensions API contains the information associated with an HTMLMediaElement/encrypted_event event sent to a HTMLMediaElement when some initialization data is encountered in the media.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent)
*/
interface MediaEncryptedEvent extends Event {
/**
* The read-only **\`initData\`** property of the MediaKeyMessageEvent returns the initialization data contained in this event, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData)
*/
readonly initData: ArrayBuffer | null;
/**
* The read-only **\`initDataType\`** property of the MediaKeyMessageEvent returns a case-sensitive string describing the type of the initialization data associated with this event.
*
* [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;
};
/**
* The **\`MediaError\`** interface represents 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 {
/**
* The read-only property **\`MediaError.code\`** returns a numeric value which represents the kind of error that occurred on a media element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code)
*/
readonly code: number;
/**
* The read-only property **\`MediaError.message\`** returns a human-readable string offering specific diagnostic details related to the error described by the \`MediaError\` object, or an empty string (\`''\`) if no diagnostic information can be determined or provided.
*
* [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;
};
/**
* The **\`MediaKeyMessageEvent\`** interface of the Encrypted Media Extensions API 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 {
/**
* The **\`MediaKeyMessageEvent.message\`** read-only property returns an ArrayBuffer with a message from the content decryption module.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message)
*/
readonly message: ArrayBuffer;
/**
* The **\`MediaKeyMessageEvent.messageType\`** read-only property indicates the type of message.
*
* [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;
}
/**
* The **\`MediaKeySession\`** interface of the Encrypted Media Extensions API 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 {
/**
* The **\`closed\`** read-only property of the MediaKeySession interface returns a Promise signaling when a MediaKeySession closes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed)
*/
readonly closed: Promise<MediaKeySessionClosedReason>;
/**
* The **\`expiration\`** read-only property of the MediaKeySession interface returns the time after which the keys in the current session can no longer be used to decrypt media data, or NaN if no such time exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration)
*/
readonly expiration: number;
/**
* The **\`keyStatuses\`** read-only property of the MediaKeySession interface returns a reference to a read-only MediaKeyStatusMap of the current session's keys and their statuses.
*
* [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;
/**
* The **\`sessionId\`** read-only property of the MediaKeySession interface contains a unique string generated by the content decryption module (CDM) for the current media object and its associated keys or licenses.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId)
*/
readonly sessionId: string;
/**
* The \`close()\` method of the MediaKeySession interface notifies that the current media session is no longer needed, and that the content decryption module should release any resources associated with this object and close it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close)
*/
close(): Promise<void>;
/**
* The \`generateRequest()\` method of the MediaKeySession interface returns a Promise after generating a license request based on initialization data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest)
*/
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
/**
* The \`load()\` method of the MediaKeySession interface returns a Promise that resolves to a boolean value after loading data for a specified session object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load)
*/
load(sessionId: string): Promise<boolean>;
/**
* The \`remove()\` method of the MediaKeySession interface returns a Promise after removing any session data associated with the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove)
*/
remove(): Promise<void>;
/**
* The \`update()\` method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.
*
* [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;
};
/**
* The **\`MediaKeyStatusMap\`** interface of the Encrypted Media Extensions API 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 {
/**
* The **\`size\`** read-only property of the MediaKeyStatusMap interface returns the number of key/value paIrs in the status map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size)
*/
readonly size: number;
/**
* The **\`get()\`** method of the MediaKeyStatusMap interface returns the status value associated with the given key, or \`undefined\` if there is none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get)
*/
get(keyId: BufferSource): MediaKeyStatus | undefined;
/**
* The **\`has()\`** method of the whether a value has been associated with the given key.
*
* [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;
};
/**
* The **\`MediaKeySystemAccess\`** interface of the Encrypted Media Extensions API provides access to a Key System for decryption and/or a content protection provider.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess)
*/
interface MediaKeySystemAccess {
/**
* The **\`keySystem\`** read-only property of the MediaKeySystemAccess interface returns a string identifying the key system being used.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem)
*/
readonly keySystem: string;
/**
* The \`MediaKeySystemAccess.createMediaKeys()\` method returns a \`\`\`js-nolint createMediaKeys() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys)
*/
createMediaKeys(): Promise<MediaKeys>;
/**
* The **\`getConfiguration()\`** method of the MediaKeySystemAccess interface returns an object with the supported combination of the following configuration options: - \`initDataTypes\` [MISSING: ReadOnlyInline] - : Returns a list of supported initialization data type names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration)
*/
getConfiguration(): MediaKeySystemConfiguration;
}
declare var MediaKeySystemAccess: {
prototype: MediaKeySystemAccess;
new(): MediaKeySystemAccess;
};
/**
* The **\`MediaKeys\`** interface of Encrypted Media Extensions API 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 {
/**
* The \`createSession()\` method of the MediaKeys interface returns a new MediaKeySession object, which represents a context for message exchange with a content decryption module (CDM).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession)
*/
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
/**
* The \`getStatusForPolicy()\` method of the MediaKeys interface is used to check whether the Content Decryption Module (CDM) would allow the presentation of encrypted media data using the keys, based on the specified policy requirements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/getStatusForPolicy)
*/
getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
/**
* The **\`setServerCertificate()\`** method of the MediaKeys interface provides a server certificate to be used to encrypt messages to the license server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate)
*/
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
declare var MediaKeys: {
prototype: MediaKeys;
new(): MediaKeys;
};
/**
* The **\`MediaList\`** interface represents the media queries of a stylesheet, e.g., those set using a link element's \`media\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList)
*/
interface MediaList {
/**
* The read-only **\`length\`** property of the MediaList interface returns the number of media queries in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length)
*/
readonly length: number;
/**
* The **\`mediaText\`** property of the MediaList interface is a stringifier that returns a string representing the \`MediaList\` as text, and also allows you to set a new \`MediaList\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText)
*/
mediaText: string;
toString(): string;
/**
* The \`appendMedium()\` method of the MediaList interface adds a media query to the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium)
*/
appendMedium(medium: string): void;
/**
* The \`deleteMedium()\` method of the MediaList interface removes from this \`MediaList\` the given media query.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium)
*/
deleteMedium(medium: string): void;
/**
* The **\`item()\`** method of the MediaList interface returns the media query at the specified \`index\`, or \`null\` if the specified \`index\` doesn't exist.
*
* [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;
};
/**
* The **\`MediaMetadata\`** interface of the Media Session API allows a web page to provide rich media metadata for display in a platform UI.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata)
*/
interface MediaMetadata {
/**
* The **\`album\`** property of the collection containing the media to be played.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album)
*/
album: string;
/**
* The **\`artist\`** property of the creator, etc., of the media to be played.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist)
*/
artist: string;
/**
* The **\`artwork\`** property of the objects representing images associated with playing media.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork)
*/
artwork: ReadonlyArray<MediaImage>;
/**
* The **\`title\`** property of the played.
*
* [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;
}
/**
* A **\`MediaQueryList\`** object stores information on a media query applied to a document, with support for both immediate and event-driven matching against the state of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList)
*/
interface MediaQueryList extends EventTarget {
/**
* The **\`matches\`** read-only property of the \`true\` if the document currently matches the media query list, or \`false\` if not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches)
*/
readonly matches: boolean;
/**
* The **\`media\`** read-only property of the serialized media query.
*
* [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;
/**
* The deprecated **\`addListener()\`** method of the \`MediaQueryListener\` that will run a custom callback function in response to the media query status changing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener)
*/
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/**
* The **\`removeListener()\`** method of the \`MediaQueryListener\`.
* @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;
};
/**
* The \`MediaQueryListEvent\` object stores information on the changes that have happened to a MediaQueryList object \u2014 instances are available as the event object on a function referenced by a MediaQueryList.change_event event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent)
*/
interface MediaQueryListEvent extends Event {
/**
* The **\`matches\`** read-only property of the \`true\` if the document currently matches the media query list, or \`false\` if not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches)
*/
readonly matches: boolean;
/**
* The **\`media\`** read-only property of the a serialized media query.
*
* [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": ErrorEvent;
"pause": Event;
"resume": Event;
"start": Event;
"stop": Event;
}
/**
* The **\`MediaRecorder\`** interface of the MediaStream Recording API provides functionality to easily record media.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder)
*/
interface MediaRecorder extends EventTarget {
/**
* The **\`audioBitsPerSecond\`** read-only property of the MediaRecorder interface returns the audio encoding bit rate in use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond)
*/
readonly audioBitsPerSecond: number;
/**
* The **\`mimeType\`** read-only property of the MediaRecorder interface returns the MIME media type that was specified when creating the MediaRecorder object, or, if none was specified, which was chosen by the browser.
*
* [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: ErrorEvent) => 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;
/**
* The **\`state\`** read-only property of the MediaRecorder interface returns the current state of the current \`MediaRecorder\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state)
*/
readonly state: RecordingState;
/**
* The **\`stream\`** read-only property of the MediaRecorder interface returns the stream that was passed into the MediaRecorder.MediaRecorder constructor when the \`MediaRecorder\` was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream)
*/
readonly stream: MediaStream;
/**
* The **\`videoBitsPerSecond\`** read-only property of the MediaRecorder interface returns the video encoding bit rate in use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond)
*/
readonly videoBitsPerSecond: number;
/**
* The **\`pause()\`** method of the MediaRecorder interface is used to pause recording of media streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause)
*/
pause(): void;
/**
* The **\`requestData()\`** method of the MediaRecorder interface is used to raise a MediaRecorder.dataavailable_event event containing a called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData)
*/
requestData(): void;
/**
* The **\`resume()\`** method of the MediaRecorder interface is used to resume media recording when it has been previously paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume)
*/
resume(): void;
/**
* The **\`start()\`** method of the MediaRecorder interface begins recording media into one or more Blob objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start)
*/
start(timeslice?: number): void;
/**
* The **\`stop()\`** method of the MediaRecorder interface is used to stop media capture.
*
* [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;
/**
* The **\`isTypeSupported()\`** static method of the MediaRecorder interface returns a Boolean which is \`true\` if the MIME media type specified is one the user agent should be able to successfully record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static)
*/
isTypeSupported(type: string): boolean;
};
/**
* The **\`MediaSession\`** interface of the Media Session API allows a web page to provide custom behaviors for standard media playback interactions, and to report metadata that can be sent by the user agent to the device or operating system for presentation in standardized user interface elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession)
*/
interface MediaSession {
/**
* The **\`metadata\`** property of the MediaSession interface contains a MediaMetadata object providing descriptive information about the currently playing media, or \`null\` if the metadata has not been set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata)
*/
metadata: MediaMetadata | null;
/**
* The **\`playbackState\`** property of the playing or paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState)
*/
playbackState: MediaSessionPlaybackState;
/**
* The **\`setActionHandler()\`** method of the MediaSession interface sets a handler for a media session action.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler)
*/
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
/**
* The **\`setCameraActive()\`** method of the MediaSession interface is used to indicate to the user agent whether the user's camera is considered to be active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setCameraActive)
*/
setCameraActive(active: boolean): Promise<void>;
/**
* The **\`setMicrophoneActive()\`** method of the MediaSession interface is used to indicate to the user agent whether the user's microphone is considered to be currently muted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setMicrophoneActive)
*/
setMicrophoneActive(active: boolean): Promise<void>;
/**
* The **\`setPositionState()\`** method of the document's media playback position and speed for presentation by user's device in any kind of interface that provides details about ongoing media.
*
* [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;
}
/**
* The **\`MediaSource\`** interface of the Media Source Extensions API represents a source of media data for an HTMLMediaElement object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource)
*/
interface MediaSource extends EventTarget {
/**
* The **\`activeSourceBuffers\`** read-only property of the containing a subset of the SourceBuffer objects contained within providing the selected video track, enabled audio tracks, and shown/hidden text tracks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers)
*/
readonly activeSourceBuffers: SourceBufferList;
/**
* The **\`duration\`** property of the MediaSource interface gets and sets the duration of the current media being presented.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration)
*/
duration: number;
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
/**
* The **\`readyState\`** read-only property of the current \`MediaSource\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState)
*/
readonly readyState: ReadyState;
/**
* The **\`sourceBuffers\`** read-only property of the containing the list of SourceBuffer objects associated with this \`MediaSource\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers)
*/
readonly sourceBuffers: SourceBufferList;
/**
* The **\`addSourceBuffer()\`** method of the given MIME type and adds it to the \`MediaSource\`'s \`SourceBuffer\` is also returned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer)
*/
addSourceBuffer(type: string): SourceBuffer;
/**
* The **\`clearLiveSeekableRange()\`** method of the to MediaSource.setLiveSeekableRange().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange)
*/
clearLiveSeekableRange(): void;
/**
* The **\`endOfStream()\`** method of the \`\`\`js-nolint endOfStream() endOfStream(endOfStreamError) \`\`\` - \`endOfStreamError\` MISSING: optional_inline] - : A string representing an error to throw when the end of the stream is reached.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream)
*/
endOfStream(error?: EndOfStreamError): void;
/**
* The **\`removeSourceBuffer()\`** method of the MediaSource interface removes the given SourceBuffer from the SourceBufferList associated with this \`MediaSource\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer)
*/
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
/**
* The **\`setLiveSeekableRange()\`** method of the media element.
*
* [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;
/**
* The **\`canConstructInDedicatedWorker\`** static property of the MediaSource interface returns \`true\` if \`MediaSource\` worker support is implemented, providing a low-latency feature detection mechanism.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static)
*/
readonly canConstructInDedicatedWorker: boolean;
/**
* The **\`MediaSource.isTypeSupported()\`** static method returns a boolean value which is \`true\` if the given MIME type and (optional) codec are _likely_ to be supported by the current user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static)
*/
isTypeSupported(type: string): boolean;
};
/**
* The **\`MediaSourceHandle\`** interface of the Media Source Extensions API is a proxy for a MediaSource that can be transferred from a dedicated worker back to the main thread and attached to a media element via its HTMLMediaElement.srcObject property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle)
*/
interface MediaSourceHandle {
}
declare var MediaSourceHandle: {
prototype: MediaSourceHandle;
new(): MediaSourceHandle;
};
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
}
/**
* The **\`MediaStream\`** interface of the Media Capture and Streams API represents a stream of media content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream)
*/
interface MediaStream extends EventTarget {
/**
* The **\`active\`** read-only property of the \`true\` if the stream is currently active; otherwise, it returns \`false\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active)
*/
readonly active: boolean;
/**
* The **\`id\`** read-only property of the MediaStream interface is a string containing 36 characters denoting a unique identifier (GUID) for the object.
*
* [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;
/**
* The **\`addTrack()\`** method of the MediaStream interface adds a new track to the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack)
*/
addTrack(track: MediaStreamTrack): void;
/**
* The **\`clone()\`** method of the MediaStream interface creates a duplicate of the \`MediaStream\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone)
*/
clone(): MediaStream;
/**
* The **\`getAudioTracks()\`** method of the stream's track set where MediaStreamTrack.kind is \`audio\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks)
*/
getAudioTracks(): MediaStreamTrack[];
/**
* The **\`getTrackById()\`** method of the MediaStream interface returns a MediaStreamTrack object representing the track with the specified ID string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById)
*/
getTrackById(trackId: string): MediaStreamTrack | null;
/**
* The **\`getTracks()\`** method of the stream's track set, regardless of MediaStreamTrack.kind.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks)
*/
getTracks(): MediaStreamTrack[];
/**
* The **\`getVideoTracks()\`** method of the \`\`\`js-nolint getVideoTracks() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks)
*/
getVideoTracks(): MediaStreamTrack[];
/**
* The **\`removeTrack()\`** method of the MediaStream interface removes a \`\`\`js-nolint removeTrack(track) \`\`\` - \`track\` - : A MediaStreamTrack that will be removed from the stream.
*
* [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;
};
/**
* The \`MediaStreamAudioDestinationNode\` interface represents an audio destination consisting of a WebRTC MediaStream with a single \`AudioMediaStreamTrack\`, which can be used in a similar way to a \`MediaStream\` obtained from MediaDevices.getUserMedia.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode)
*/
interface MediaStreamAudioDestinationNode extends AudioNode {
/**
* The \`stream\` property of the AudioContext interface represents a MediaStream containing a single audio MediaStreamTrack with the same number of channels as the node itself.
*
* [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;
};
/**
* The **\`MediaStreamAudioSourceNode\`** interface is 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 {
/**
* The MediaStreamAudioSourceNode interface's read-only **\`mediaStream\`** property indicates the receiving audio.
*
* [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;
}
/**
* The **\`MediaStreamTrack\`** interface of the Media Capture and Streams API represents 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 {
/**
* The **\`contentHint\`** property of the MediaStreamTrack interface is a string that hints at the type of content the track contains.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint)
*/
contentHint: string;
/**
* The **\`enabled\`** property of the \`true\` if the track is allowed to render the source stream or \`false\` if it is not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled)
*/
enabled: boolean;
/**
* The **\`id\`** read-only property of the MediaStreamTrack interface returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id)
*/
readonly id: string;
/**
* The **\`kind\`** read-only property of the MediaStreamTrack interface returns a string set to \`'audio'\` if the track is an audio track and to \`'video'\` if it is a video track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind)
*/
readonly kind: string;
/**
* The **\`label\`** read-only property of the MediaStreamTrack interface returns a string containing a user agent-assigned label that identifies the track source, as in \`'internal microphone'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label)
*/
readonly label: string;
/**
* The **\`muted\`** read-only property of the indicating whether or not the track is currently unable to provide media output.
*
* [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;
/**
* The **\`readyState\`** read-only property of the MediaStreamTrack interface returns an enumerated value giving the status of the track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState)
*/
readonly readyState: MediaStreamTrackState;
/**
* The **\`applyConstraints()\`** method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the website or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancellation, and so forth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints)
*/
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
/**
* The **\`clone()\`** method of the MediaStreamTrack interface creates a duplicate of the \`MediaStreamTrack\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone)
*/
clone(): MediaStreamTrack;
/**
* The **\`getCapabilities()\`** method of the MediaStreamTrack interface returns an object detailing the accepted values or value range for each constrainable property of the associated \`MediaStreamTrack\`, based upon the platform and user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities)
*/
getCapabilities(): MediaTrackCapabilities;
/**
* The **\`getConstraints()\`** method of the MediaStreamTrack interface returns a recently established for the track using a prior call to constraints indicate values and ranges of values that the website or application has specified are required or acceptable for the included constrainable properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints)
*/
getConstraints(): MediaTrackConstraints;
/**
* The **\`getSettings()\`** method of the object containing the current values of each of the constrainable properties for the current \`MediaStreamTrack\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings)
*/
getSettings(): MediaTrackSettings;
/**
* The **\`stop()\`** method of the MediaStreamTrack interface stops the track.
*
* [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;
};
/**
* The **\`MediaStreamTrackEvent\`** interface of the Media Capture and Streams API represents events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Capture and Streams API methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent)
*/
interface MediaStreamTrackEvent extends Event {
/**
* The **\`track\`** read-only property of the MediaStreamTrackEvent interface returns the MediaStreamTrack associated with this 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;
};
/**
* The **\`MessageChannel\`** interface of the Channel Messaging API 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 {
/**
* The **\`port1\`** read-only property of the the port attached to the context that originated the channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
*/
readonly port1: MessagePort;
/**
* The **\`port2\`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/**
* The **\`MessageEvent\`** interface represents a message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
*/
interface MessageEvent<T = any> extends Event {
/**
* The **\`data\`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
*/
readonly data: T;
/**
* The **\`lastEventId\`** read-only property of the unique ID for the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* The **\`origin\`** read-only property of the origin of the message emitter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
*/
readonly origin: string;
/**
* The **\`ports\`** read-only property of the containing all MessagePort objects sent with the message, in order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* The **\`source\`** read-only property of the a WindowProxy, MessagePort, or a \`MessageEventSource\` (which can be a WindowProxy, message emitter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessageEventTargetEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface MessageEventTarget<T> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
onmessage: ((this: T, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
onmessageerror: ((this: T, ev: MessageEvent) => any) | null;
addEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface MessagePortEventMap extends MessageEventTargetEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The **\`MessagePort\`** interface of the Channel Messaging API 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, MessageEventTarget<MessagePort> {
/**
* The **\`close()\`** method of the MessagePort interface disconnects the port, so it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
*/
close(): void;
/**
* The **\`postMessage()\`** method of the transfers ownership of objects to other browsing contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* The **\`start()\`** method of the MessagePort interface starts the sending of messages queued 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;
};
/**
* The **\`MimeType\`** interface provides contains information about a MIME type associated with a particular plugin.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType)
*/
interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*/
readonly type: string;
}
/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
/**
* The **\`MimeTypeArray\`** interface returns an array of MimeType instances, each of which contains information about a supported browser plugins.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)
*/
interface MimeTypeArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var MimeTypeArray: {
prototype: MimeTypeArray;
new(): MimeTypeArray;
};
/**
* The **\`MouseEvent\`** interface represents events that occur due to the user interacting with a pointing device (such as a mouse).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent)
*/
interface MouseEvent extends UIEvent {
/**
* The **\`MouseEvent.altKey\`** read-only property is a boolean value that indicates whether the <kbd>alt</kbd> key was pressed or not when a given mouse event occurs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey)
*/
readonly altKey: boolean;
/**
* The **\`MouseEvent.button\`** read-only property indicates which button was pressed or released on the mouse to trigger the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button)
*/
readonly button: number;
/**
* The **\`MouseEvent.buttons\`** read-only property indicates which buttons are pressed on the mouse (or other input device) when a mouse event is triggered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons)
*/
readonly buttons: number;
/**
* The **\`clientX\`** read-only property of the MouseEvent interface provides the horizontal coordinate within the application's viewport at which the event occurred (as opposed to the coordinate within the page).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX)
*/
readonly clientX: number;
/**
* The **\`clientY\`** read-only property of the MouseEvent interface provides the vertical coordinate within the application's viewport at which the event occurred (as opposed to the coordinate within the page).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY)
*/
readonly clientY: number;
/**
* The **\`MouseEvent.ctrlKey\`** read-only property is a boolean value that indicates whether the <kbd>ctrl</kbd> key was pressed or not when a given mouse event occurs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey)
*/
readonly ctrlKey: boolean;
/**
* The **\`MouseEvent.layerX\`** read-only property returns the horizontal coordinate of the event relative to the current layer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX)
*/
readonly layerX: number;
/**
* The **\`MouseEvent.layerY\`** read-only property returns the vertical coordinate of the event relative to the current layer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY)
*/
readonly layerY: number;
/**
* The **\`MouseEvent.metaKey\`** read-only property is a boolean value that indicates whether the <kbd>meta</kbd> key was pressed or not when a given mouse event occurs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey)
*/
readonly metaKey: boolean;
/**
* The **\`movementX\`** read-only property of the MouseEvent interface provides the difference in the X coordinate of the mouse pointer between the given event and the previous Element/mousemove_event event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX)
*/
readonly movementX: number;
/**
* The **\`movementY\`** read-only property of the MouseEvent interface provides the difference in the Y coordinate of the mouse pointer between the given event and the previous Element/mousemove_event event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY)
*/
readonly movementY: number;
/**
* The **\`offsetX\`** read-only property of the MouseEvent interface provides the offset in the X coordinate of the mouse pointer between that event and the padding edge of the target node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX)
*/
readonly offsetX: number;
/**
* The **\`offsetY\`** read-only property of the MouseEvent interface provides the offset in the Y coordinate of the mouse pointer between that event and the padding edge of the target node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY)
*/
readonly offsetY: number;
/**
* The **\`pageX\`** read-only property of the MouseEvent interface returns the X (horizontal) coordinate (in pixels) at which the mouse was clicked, relative to the left edge of the entire document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX)
*/
readonly pageX: number;
/**
* The **\`pageY\`** read-only property of the MouseEvent interface returns the Y (vertical) coordinate (in pixels) at which the mouse was clicked, relative to the top edge of the entire document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY)
*/
readonly pageY: number;
/**
* The **\`MouseEvent.relatedTarget\`** read-only property is the secondary target for the mouse event, if there is one.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget)
*/
readonly relatedTarget: EventTarget | null;
/**
* The **\`screenX\`** read-only property of the MouseEvent interface provides the horizontal coordinate (offset) of the mouse pointer in screen coordinates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX)
*/
readonly screenX: number;
/**
* The **\`screenY\`** read-only property of the MouseEvent interface provides the vertical coordinate (offset) of the mouse pointer in screen coordinates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY)
*/
readonly screenY: number;
/**
* The **\`MouseEvent.shiftKey\`** read-only property is a boolean value that indicates whether the <kbd>shift</kbd> key was pressed or not when a given mouse event occurs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey)
*/
readonly shiftKey: boolean;
/**
* The **\`MouseEvent.x\`** property is an alias for the MouseEvent.clientX property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x)
*/
readonly x: number;
/**
* The **\`MouseEvent.y\`** property is an alias for the MouseEvent.clientY property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y)
*/
readonly y: number;
/**
* The **\`MouseEvent.getModifierState()\`** method returns the current state of the specified modifier key: \`true\` if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, \`false\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState)
*/
getModifierState(keyArg: string): boolean;
/**
* The **\`MouseEvent.initMouseEvent()\`** method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).
* @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;
};
/**
* The **\`MutationObserver\`** interface provides the ability to watch for changes being made to the DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver)
*/
interface MutationObserver {
/**
* The MutationObserver method **\`disconnect()\`** tells the observer to stop watching for mutations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect)
*/
disconnect(): void;
/**
* The MutationObserver method **\`observe()\`** configures the \`MutationObserver\` callback to begin receiving notifications of changes to the DOM that match the given options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe)
*/
observe(target: Node, options?: MutationObserverInit): void;
/**
* The MutationObserver method **\`takeRecords()\`** returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords)
*/
takeRecords(): MutationRecord[];
}
declare var MutationObserver: {
prototype: MutationObserver;
new(callback: MutationCallback): MutationObserver;
};
/**
* The **\`MutationRecord\`** is a read-only interface that represents an individual DOM mutation observed by a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord)
*/
interface MutationRecord {
/**
* The MutationRecord read-only property **\`addedNodes\`** is a NodeList of nodes added to a target node by a mutation observed with a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes)
*/
readonly addedNodes: NodeList;
/**
* The MutationRecord read-only property **\`attributeName\`** contains the name of a changed attribute belonging to a node that is observed by a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName)
*/
readonly attributeName: string | null;
/**
* The MutationRecord read-only property **\`attributeNamespace\`** is the namespace of the mutated attribute in the MutationRecord observed by a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace)
*/
readonly attributeNamespace: string | null;
/**
* The MutationRecord read-only property **\`nextSibling\`** is the next sibling of an added or removed child node of the \`target\` of a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling)
*/
readonly nextSibling: Node | null;
/**
* The MutationRecord read-only property **\`oldValue\`** contains the character data or attribute value of an observed node before it was changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue)
*/
readonly oldValue: string | null;
/**
* The MutationRecord read-only property **\`previousSibling\`** is the previous sibling of an added or removed child node of the \`target\` of a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling)
*/
readonly previousSibling: Node | null;
/**
* The MutationRecord read-only property **\`removedNodes\`** is a NodeList of nodes removed from a target node by a mutation observed with a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes)
*/
readonly removedNodes: NodeList;
/**
* The MutationRecord read-only property **\`target\`** is the target (i.e., the mutated/changed node) of a mutation observed with a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target)
*/
readonly target: Node;
/**
* The MutationRecord read-only property **\`type\`** is the type of the MutationRecord observed by a MutationObserver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type)
*/
readonly type: MutationRecordType;
}
declare var MutationRecord: {
prototype: MutationRecord;
new(): MutationRecord;
};
/**
* The **\`NamedNodeMap\`** interface represents a collection of Attr objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap)
*/
interface NamedNodeMap {
/**
* The read-only **\`length\`** property of the NamedNodeMap interface is the number of objects stored in the map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length)
*/
readonly length: number;
/**
* The **\`getNamedItem()\`** method of the NamedNodeMap interface returns the Attr corresponding to the given name, or \`null\` if there is no corresponding attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem)
*/
getNamedItem(qualifiedName: string): Attr | null;
/**
* The **\`getNamedItemNS()\`** method of the NamedNodeMap interface returns the Attr corresponding to the given local name in the given namespace, or \`null\` if there is no corresponding attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS)
*/
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
/**
* The **\`item()\`** method of the NamedNodeMap interface returns the item in the map matching the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item)
*/
item(index: number): Attr | null;
/**
* The **\`removeNamedItem()\`** method of the NamedNodeMap interface removes the Attr corresponding to the given name from the map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem)
*/
removeNamedItem(qualifiedName: string): Attr;
/**
* The **\`removeNamedItemNS()\`** method of the NamedNodeMap interface removes the Attr corresponding to the given namespace and local name from the map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS)
*/
removeNamedItemNS(namespace: string | null, localName: string): Attr;
/**
* The **\`setNamedItem()\`** method of the NamedNodeMap interface puts the Attr identified by its name in the map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem)
*/
setNamedItem(attr: Attr): Attr | null;
/**
* The **\`setNamedItemNS()\`** method of the NamedNodeMap interface puts the Attr identified by its name in the map.
*
* [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;
};
/**
* The **\`NavigationActivation\`** interface of the Navigation API represents a recent cross-document navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation)
*/
interface NavigationActivation {
/**
* The **\`entry\`** read-only property of the NavigationActivation interface contains a NavigationHistoryEntry object representing the history entry for the inbound ('to') document in the navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry)
*/
readonly entry: NavigationHistoryEntry;
/**
* The **\`from\`** read-only property of the NavigationActivation interface contains a NavigationHistoryEntry object representing the history entry for the outgoing ('from') document in the navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from)
*/
readonly from: NavigationHistoryEntry | null;
/**
* The **\`navigationType\`** read-only property of the NavigationActivation interface contains a string indicating the type of navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType)
*/
readonly navigationType: NavigationType;
}
declare var NavigationActivation: {
prototype: NavigationActivation;
new(): NavigationActivation;
};
interface NavigationHistoryEntryEventMap {
"dispose": Event;
}
/**
* The **\`NavigationHistoryEntry\`** interface of the Navigation API represents a single navigation history entry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry)
*/
interface NavigationHistoryEntry extends EventTarget {
/**
* The **\`id\`** read-only property of the NavigationHistoryEntry interface returns the \`id\` of the history entry, or an empty string if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id)
*/
readonly id: string;
/**
* The **\`index\`** read-only property of the NavigationHistoryEntry interface returns the index of the history entry in the history entries list (that is, the list returned by Navigation.entries()), or \`-1\` if the entry does not appear in the list or if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index)
*/
readonly index: number;
/**
* The **\`key\`** read-only property of the NavigationHistoryEntry interface returns the \`key\` of the history entry, or an empty string if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key)
*/
readonly key: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
/**
* The **\`sameDocument\`** read-only property of the NavigationHistoryEntry interface returns \`true\` if this history entry is for the same \`document\` as the current Document value and current document is fully active, or \`false\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument)
*/
readonly sameDocument: boolean;
/**
* The **\`url\`** read-only property of the NavigationHistoryEntry interface returns the absolute URL of this history entry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url)
*/
readonly url: string | null;
/**
* The **\`getState()\`** method of the NavigationHistoryEntry interface returns a clone of the developer-supplied state associated with this history entry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState)
*/
getState(): any;
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var NavigationHistoryEntry: {
prototype: NavigationHistoryEntry;
new(): NavigationHistoryEntry;
};
/**
* The **\`NavigationPreloadManager\`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
*/
interface NavigationPreloadManager {
/**
* The **\`disable()\`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using NavigationPreloadManager.enable() It returns a promise that resolves with \`undefined\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)
*/
disable(): Promise<void>;
/**
* The **\`enable()\`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)
*/
enable(): Promise<void>;
/**
* The **\`getState()\`** method of the NavigationPreloadManager interface returns a Promise that resolves to an object with properties that indicate whether preload is enabled and what value will be sent in the Service-Worker-Navigation-Preload HTTP header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState)
*/
getState(): Promise<NavigationPreloadState>;
/**
* The **\`setHeaderValue()\`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a Window/fetch operation made during service worker navigation preloading.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue)
*/
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/**
* The **\`Navigator\`** interface represents the state and the identity of the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
*/
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
/**
* The **\`clipboard\`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard)
*/
readonly clipboard: Clipboard;
/**
* The **\`credentials\`** read-only property of the Navigator interface returns the CredentialsContainer object associated with the current document, which exposes methods to request credentials.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials)
*/
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
/**
* The **\`Navigator.geolocation\`** read-only property returns a device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation)
*/
readonly geolocation: Geolocation;
/**
* The **\`login\`** read-only property of the Navigator interface provides access to the browser's NavigatorLogin object, which a federated identity provider (IdP) can use to set its login status when a user signs into or out of the IdP.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/login)
*/
readonly login: NavigatorLogin;
/**
* The **\`maxTouchPoints\`** read-only property of the contact points that are supported by the current device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints)
*/
readonly maxTouchPoints: number;
/**
* The **\`mediaCapabilities\`** read-only property of the Navigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given media format and output capabilities.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities)
*/
readonly mediaCapabilities: MediaCapabilities;
/**
* The **\`mediaDevices\`** read-only property of the Navigator interface returns a MediaDevices object, which provides access to connected media input devices like cameras and microphones, as well as screen sharing.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices)
*/
readonly mediaDevices: MediaDevices;
/**
* The **\`mediaSession\`** read-only property of the Navigator interface returns a MediaSession object that can be used to share with the browser metadata and other information about the current playback state of media being handled by a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession)
*/
readonly mediaSession: MediaSession;
/**
* The **\`permissions\`** read-only property of the Navigator interface returns a status of APIs covered by the Permissions API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions)
*/
readonly permissions: Permissions;
/**
* The **\`serviceWorker\`** read-only property of the Navigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker)
*/
readonly serviceWorker: ServiceWorkerContainer;
/**
* The read-only **\`userActivation\`** property of the Navigator interface returns a UserActivation object which contains information about the current window's user activation state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation)
*/
readonly userActivation: UserActivation;
/**
* The **\`wakeLock\`** read-only property of the Navigator interface returns a WakeLock interface that allows a document to acquire a screen wake lock.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock)
*/
readonly wakeLock: WakeLock;
/**
* The **\`canShare()\`** method of the Navigator interface returns \`true\` if the equivalent call to navigator.share() would succeed.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare)
*/
canShare(data?: ShareData): boolean;
/**
* The **\`Navigator.getGamepads()\`** method returns an array of Elements in the array may be \`null\` if a gamepad disconnects during a session, so that the remaining gamepads retain the same index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads)
*/
getGamepads(): (Gamepad | null)[];
/**
* The **\`requestMIDIAccess()\`** method of the Navigator interface returns a Promise representing a request for access to MIDI devices on a user's system.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess)
*/
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
/**
* The **\`requestMediaKeySystemAccess()\`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
*/
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
/**
* The **\`navigator.sendBeacon()\`** method Asynchronous sends an HTTP POST request containing a small amount of data to a web server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon)
*/
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
/**
* The **\`share()\`** method of the Navigator interface invokes the native sharing mechanism of the device to share data such as text, URLs, or files.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share)
*/
share(data?: ShareData): Promise<void>;
/**
* The **\`vibrate()\`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.
*
* [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;
}
/**
* The **\`NavigatorLogin\`** interface of the Federated Credential Management (FedCM) API defines login functionality for federated identity providers (IdPs).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorLogin)
*/
interface NavigatorLogin {
/**
* The **\`setStatus()\`** method of the NavigatorLogin interface sets the login status of a federated identity provider (IdP), when called from the IdP's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorLogin/setStatus)
*/
setStatus(status: LoginStatus): Promise<void>;
}
declare var NavigatorLogin: {
prototype: NavigatorLogin;
new(): NavigatorLogin;
};
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/Navigator/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;
}
/**
* The DOM **\`Node\`** interface is an abstract base class upon which many other DOM API objects are based, thus letting those object types to be used similarly and often interchangeably.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node)
*/
interface Node extends EventTarget {
/**
* The read-only **\`baseURI\`** property of the Node interface returns the absolute base URL of the document containing the node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)
*/
readonly baseURI: string;
/**
* The read-only **\`childNodes\`** property of the Node interface returns a live the first child node is assigned index \`0\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)
*/
readonly childNodes: NodeListOf<ChildNode>;
/**
* The read-only **\`firstChild\`** property of the Node interface returns the node's first child in the tree, or \`null\` if the node has no children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)
*/
readonly firstChild: ChildNode | null;
/**
* The read-only **\`isConnected\`** property of the Node interface returns a boolean indicating whether the node is connected (directly or indirectly) to a Document object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)
*/
readonly isConnected: boolean;
/**
* The read-only **\`lastChild\`** property of the Node interface returns the last child of the node, or \`null\` if there are no child nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)
*/
readonly lastChild: ChildNode | null;
/**
* The read-only **\`nextSibling\`** property of the Node interface returns the node immediately following the specified one in their parent's Node.childNodes, or returns \`null\` if the specified node is the last child in the parent element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)
*/
readonly nextSibling: ChildNode | null;
/**
* The read-only **\`nodeName\`** property of Node returns the name of the current node as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)
*/
readonly nodeName: string;
/**
* The read-only **\`nodeType\`** property of a Node interface is an integer that identifies what the node is.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)
*/
readonly nodeType: number;
/**
* The **\`nodeValue\`** property of the Node interface returns or sets the value of the current node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue)
*/
nodeValue: string | null;
/**
* The read-only **\`ownerDocument\`** property of the Node interface returns the top-level document object of the node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)
*/
readonly ownerDocument: Document | null;
/**
* The read-only **\`parentElement\`** property of Node interface returns the DOM node's parent Element, or \`null\` if the node either has no parent, or its parent isn't a DOM Element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)
*/
readonly parentElement: HTMLElement | null;
/**
* The read-only **\`parentNode\`** property of the Node interface returns the parent of the specified node in the DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)
*/
readonly parentNode: ParentNode | null;
/**
* The read-only **\`previousSibling\`** property of the Node interface returns the node immediately preceding the specified one in its parent's or \`null\` if the specified node is the first in that list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)
*/
readonly previousSibling: ChildNode | null;
/**
* The **\`textContent\`** property of the Node interface represents the text content of the node and its descendants.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent)
*/
textContent: string | null;
/**
* The **\`appendChild()\`** method of the Node interface adds a node to the end of the list of children of a specified parent node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild)
*/
appendChild<T extends Node>(node: T): T;
/**
* The **\`cloneNode()\`** method of the Node interface returns a duplicate of the node on which this method was called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)
*/
cloneNode(subtree?: boolean): Node;
/**
* The **\`compareDocumentPosition()\`** method of the Node interface reports the position of its argument node relative to the node on which it is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)
*/
compareDocumentPosition(other: Node): number;
/**
* The **\`contains()\`** method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (Node.childNodes), one of the children's direct children, and so on.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)
*/
contains(other: Node | null): boolean;
/**
* The **\`getRootNode()\`** method of the Node interface returns the context object's root, which optionally includes the shadow root if it is available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)
*/
getRootNode(options?: GetRootNodeOptions): Node;
/**
* The **\`hasChildNodes()\`** method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)
*/
hasChildNodes(): boolean;
/**
* The **\`insertBefore()\`** method of the Node interface inserts a node before a _reference node_ as a child of a specified _parent node_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore)
*/
insertBefore<T extends Node>(node: T, child: Node | null): T;
/**
* The **\`isDefaultNamespace()\`** method of the Node interface accepts a namespace URI as an argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace)
*/
isDefaultNamespace(namespace: string | null): boolean;
/**
* The **\`isEqualNode()\`** method of the Node interface tests whether two nodes are equal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)
*/
isEqualNode(otherNode: Node | null): boolean;
/**
* The **\`isSameNode()\`** method of the Node interface is a legacy alias the for the \`===\` strict equality operator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode)
*/
isSameNode(otherNode: Node | null): boolean;
/**
* The **\`lookupNamespaceURI()\`** method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (and \`null\` if not).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI)
*/
lookupNamespaceURI(prefix: string | null): string | null;
/**
* The **\`lookupPrefix()\`** method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and \`null\` if not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix)
*/
lookupPrefix(namespace: string | null): string | null;
/**
* The **\`normalize()\`** method of the Node interface puts the specified node and all of its sub-tree into a _normalized_ form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)
*/
normalize(): void;
/**
* The **\`removeChild()\`** method of the Node interface removes a child node from the DOM and returns the removed node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild)
*/
removeChild<T extends Node>(child: T): T;
/**
* The **\`replaceChild()\`** method of the Node interface replaces a child node within the given (parent) node.
*
* [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;
};
/**
* The **\`NodeIterator\`** interface represents an iterator to traverse nodes of a DOM subtree in document order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator)
*/
interface NodeIterator {
/**
* The **\`NodeIterator.filter\`** read-only property returns a \`NodeFilter\` object, that is an object which implements an \`acceptNode(node)\` method, used to screen nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter)
*/
readonly filter: NodeFilter | null;
/**
* The **\`NodeIterator.pointerBeforeReferenceNode\`** read-only property returns a boolean flag that indicates whether the \`NodeFilter\` is anchored before (if this value is \`true\`) or after (if this value is \`false\`) the anchor node indicated by the A boolean.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode)
*/
readonly pointerBeforeReferenceNode: boolean;
/**
* The **\`NodeIterator.referenceNode\`** read-only property returns the iterator remains anchored to the reference node as specified by this property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode)
*/
readonly referenceNode: Node;
/**
* The **\`NodeIterator.root\`** read-only property represents the traverses.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root)
*/
readonly root: Node;
/**
* The **\`NodeIterator.whatToShow\`** read-only property represents an \`unsigned integer\` representing a bitmask signifying what types of nodes should be returned by the NodeIterator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow)
*/
readonly whatToShow: number;
/**
* The **\`NodeIterator.detach()\`** method is a no-op, kept for backward compatibility only.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach)
*/
detach(): void;
/**
* The **\`NodeIterator.nextNode()\`** method returns the next node in the set represented by the NodeIterator and advances the position of the iterator within the set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode)
*/
nextNode(): Node | null;
/**
* The **\`NodeIterator.previousNode()\`** method returns the previous node in the set represented by the NodeIterator and moves the position of the iterator backwards within the set.
*
* [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 {
/**
* The **\`NodeList.length\`** property returns the number of items in a NodeList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)
*/
readonly length: number;
/**
* Returns a node from a \`NodeList\` by index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)
*/
item(index: number): Node | null;
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;
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;
}
/**
* The **\`Notification\`** interface of the Notifications API 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 {
/**
* The **\`badge\`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
*/
readonly badge: string;
/**
* The **\`body\`** read-only property of the specified in the \`body\` option of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body)
*/
readonly body: string;
/**
* The **\`data\`** read-only property of the data, as specified in the \`data\` option of the The notification's data can be any arbitrary data that you want associated with the notification.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data)
*/
readonly data: any;
/**
* The **\`dir\`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the \`dir\` option of the Notification.Notification constructor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir)
*/
readonly dir: NotificationDirection;
/**
* The **\`icon\`** read-only property of the part of the notification, as specified in the \`icon\` option of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon)
*/
readonly icon: string;
/**
* The **\`lang\`** read-only property of the as specified in the \`lang\` option of the The language itself is specified using a string representing a language tag according to MISSING: RFC(5646, 'Tags for Identifying Languages (also known as BCP 47)')].
*
* [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;
/**
* The **\`requireInteraction\`** read-only property of the Notification interface returns a boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction)
*/
readonly requireInteraction: boolean;
/**
* The **\`silent\`** read-only property of the silent, i.e., no sounds or vibrations should be issued regardless of the device settings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent)
*/
readonly silent: boolean | null;
/**
* The **\`tag\`** read-only property of the as specified in the \`tag\` option of the The idea of notification tags is that more than one notification can share the same tag, linking them together.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag)
*/
readonly tag: string;
/**
* The **\`title\`** read-only property of the specified in the \`title\` parameter of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title)
*/
readonly title: string;
/**
* The **\`close()\`** method of the Notification interface is used to close/remove a previously displayed notification.
*
* [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;
/**
* The **\`permission\`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static)
*/
readonly permission: NotificationPermission;
/**
* The **\`requestPermission()\`** static method of the Notification interface requests permission from the user for the current origin to display notifications.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static)
*/
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
/**
* The **\`OES_draw_buffers_indexed\`** extension is part of the WebGL API and enables the use of different blend options when writing to multiple color buffers simultaneously.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed)
*/
interface OES_draw_buffers_indexed {
/**
* The \`blendEquationSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets the RGB and alpha blend equations separately for a particular draw buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES)
*/
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
/**
* The \`blendEquationiOES()\` method of the \`OES_draw_buffers_indexed\` WebGL extension sets both the RGB blend and alpha blend equations for a particular draw buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES)
*/
blendEquationiOES(buf: GLuint, mode: GLenum): void;
/**
* The \`blendFuncSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for RGB and alpha components separately for a particular draw buffer.
*
* [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;
/**
* The \`blendFunciOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for a particular draw buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES)
*/
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
/**
* The \`colorMaskiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets which color components to enable or to disable when drawing or rendering for a particular draw buffer.
*
* [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;
/**
* The \`disableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES)
*/
disableiOES(target: GLenum, index: GLuint): void;
/**
* The \`enableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
*
* [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 {
}
/**
* The \`OES_fbo_render_mipmap\` extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.
*
* [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 {
}
/**
* The **OES_vertex_array_object** extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object)
*/
interface OES_vertex_array_object {
/**
* The **\`OES_vertex_array_object.bindVertexArrayOES()\`** method of the WebGL API binds a passed WebGLVertexArrayObject object to the buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)
*/
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/**
* The **\`OES_vertex_array_object.createVertexArrayOES()\`** method of the WebGL API creates and initializes a pointing to vertex array data and which provides names for different sets of vertex data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)
*/
createVertexArrayOES(): WebGLVertexArrayObjectOES;
/**
* The **\`OES_vertex_array_object.deleteVertexArrayOES()\`** method of the WebGL API deletes a given \`\`\`js-nolint deleteVertexArrayOES(arrayObject) \`\`\` - \`arrayObject\` - : A WebGLVertexArrayObject (VAO) object to delete.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)
*/
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/**
* The **\`OES_vertex_array_object.isVertexArrayOES()\`** method of the WebGL API returns \`true\` if the passed object is a WebGLVertexArrayObject object.
*
* [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;
}
/**
* The \`OVR_multiview2\` extension is part of the WebGL API and adds support for rendering into multiple views simultaneously.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2)
*/
interface OVR_multiview2 {
/**
* The **\`OVR_multiview2.framebufferTextureMultiviewOVR()\`** method of the WebGL API attaches a multiview texture to a WebGLFramebuffer.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)
*/
interface OfflineAudioCompletionEvent extends Event {
/**
* The **\`renderedBuffer\`** read-only property of the containing the result of processing an OfflineAudioContext.
*
* [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;
}
/**
* The \`OfflineAudioContext\` interface is an AudioContext interface representing an audio-processing graph built from linked together AudioNodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext)
*/
interface OfflineAudioContext extends BaseAudioContext {
/**
* The **\`length\`** property of the the buffer in sample-frames.
*
* [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;
/**
* The **\`resume()\`** method of the context that has been suspended.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume)
*/
resume(): Promise<void>;
/**
* The \`startRendering()\` method of the OfflineAudioContext Interface starts rendering the audio graph, taking into account the current connections and the current scheduled changes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering)
*/
startRendering(): Promise<AudioBuffer>;
/**
* The **\`suspend()\`** method of the OfflineAudioContext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise.
*
* [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;
}
/**
* When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
*/
interface OffscreenCanvas extends EventTarget {
/**
* The **\`height\`** property returns and sets the height of an OffscreenCanvas object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* The **\`width\`** property returns and sets the width of an OffscreenCanvas object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
*/
width: number;
/**
* The **\`OffscreenCanvas.convertToBlob()\`** method creates a Blob object representing the image contained in the canvas.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* The **\`OffscreenCanvas.getContext()\`** method returns a drawing context for an offscreen canvas, or \`null\` if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.
*
* [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;
/**
* The **\`OffscreenCanvas.transferToImageBitmap()\`** method creates an ImageBitmap object from the most recently rendered image of the \`OffscreenCanvas\`.
*
* [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;
};
/**
* The **\`OffscreenCanvasRenderingContext2D\`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an \`OffscreenCanvas\` object.
*
* [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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */
readonly canvas: OffscreenCanvas;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/**
* The **\`OscillatorNode\`** interface represents a periodic waveform, such as a sine wave.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode)
*/
interface OscillatorNode extends AudioScheduledSourceNode {
/**
* The \`detune\` property of the OscillatorNode interface is an a-rate AudioParam representing detuning of oscillation in cents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune)
*/
readonly detune: AudioParam;
/**
* The **\`frequency\`** property of the OscillatorNode interface is an a-rate AudioParam representing the frequency of oscillation in hertz.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency)
*/
readonly frequency: AudioParam;
/**
* The **\`type\`** property of the OscillatorNode interface specifies what shape of waveform the oscillator will output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type)
*/
type: OscillatorType;
/**
* The **\`setPeriodicWave()\`** method of the OscillatorNode interface is used to point to a PeriodicWave defining a periodic waveform that can be used to shape the oscillator's output, when \`\`\`js-nolint setPeriodicWave(wave) \`\`\` - \`wave\` - : A PeriodicWave object representing the waveform to use as the shape of the oscillator's output.
*
* [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;
};
/**
* The **\`OverconstrainedError\`** interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError)
*/
interface OverconstrainedError extends DOMException {
/**
* The **\`constraint\`** read-only property of the in the constructor, meaning the constraint that was not satisfied.
*
* [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 **\`PageRevealEvent\`** event object is made available inside handler functions for the Window.pagereveal_event event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent)
*/
interface PageRevealEvent extends Event {
/**
* The **\`viewTransition\`** read-only property of the PageRevealEvent interface contains a ViewTransition object representing the active view transition for the cross-document navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition)
*/
readonly viewTransition: ViewTransition | null;
}
declare var PageRevealEvent: {
prototype: PageRevealEvent;
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
};
/**
* The **\`PageSwapEvent\`** event object is made available inside handler functions for the Window.pageswap_event event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent)
*/
interface PageSwapEvent extends Event {
/**
* The **\`activation\`** read-only property of the PageSwapEvent interface contains a NavigationActivation object containing the navigation type and current and destination document history entries for a same-origin navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation)
*/
readonly activation: NavigationActivation | null;
/**
* The **\`viewTransition\`** read-only property of the PageRevealEvent interface contains a ViewTransition object representing the active view transition for the cross-document navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition)
*/
readonly viewTransition: ViewTransition | null;
}
declare var PageSwapEvent: {
prototype: PageSwapEvent;
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
};
/**
* The **\`PageTransitionEvent\`** event object is available inside handler functions for the \`pageshow\` and \`pagehide\` events, fired when a document is being loaded or unloaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent)
*/
interface PageTransitionEvent extends Event {
/**
* The **\`persisted\`** read-only property indicates if a webpage is loading from a cache.
*
* [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;
};
/**
* The \`PannerNode\` interface defines an audio-processing object that represents the location, direction, and behavior of an audio source signal in a simulated physical space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode)
*/
interface PannerNode extends AudioNode {
/**
* The \`coneInnerAngle\` property of the PannerNode interface is a double value describing the angle, in degrees, of a cone inside of which there will be no volume reduction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle)
*/
coneInnerAngle: number;
/**
* The \`coneOuterAngle\` property of the PannerNode interface is a double value describing the angle, in degrees, of a cone outside of which the volume will be reduced by a constant value, defined by the PannerNode.coneOuterGain property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle)
*/
coneOuterAngle: number;
/**
* The \`coneOuterGain\` property of the PannerNode interface is a double value, describing the amount of volume reduction outside the cone, defined by the PannerNode.coneOuterAngle attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain)
*/
coneOuterGain: number;
/**
* The \`distanceModel\` property of the PannerNode interface is an enumerated value determining which algorithm to use to reduce the volume of the audio source as it moves away from the listener.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel)
*/
distanceModel: DistanceModelType;
/**
* The \`maxDistance\` property of the PannerNode interface is a double value representing the maximum distance between the audio source and the listener, after which the volume is not reduced any further.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance)
*/
maxDistance: number;
/**
* The **\`orientationX\`** property of the PannerNode interface indicates the X (horizontal) component of the direction in which the audio source is facing, in a 3D Cartesian coordinate space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX)
*/
readonly orientationX: AudioParam;
/**
* The **\`orientationY\`** property of the PannerNode interface indicates the Y (vertical) component of the direction the audio source is facing, in 3D Cartesian coordinate space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY)
*/
readonly orientationY: AudioParam;
/**
* The **\`orientationZ\`** property of the PannerNode interface indicates the Z (depth) component of the direction the audio source is facing, in 3D Cartesian coordinate space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ)
*/
readonly orientationZ: AudioParam;
/**
* The \`panningModel\` property of the PannerNode interface is an enumerated value determining which spatialization algorithm to use to position the audio in 3D space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel)
*/
panningModel: PanningModelType;
/**
* The **\`positionX\`** property of the PannerNode interface specifies the X coordinate of the audio source's position in 3D Cartesian coordinates, corresponding to the _horizontal_ axis (left-right).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX)
*/
readonly positionX: AudioParam;
/**
* The **\`positionY\`** property of the PannerNode interface specifies the Y coordinate of the audio source's position in 3D Cartesian coordinates, corresponding to the _vertical_ axis (top-bottom).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY)
*/
readonly positionY: AudioParam;
/**
* The **\`positionZ\`** property of the PannerNode interface specifies the Z coordinate of the audio source's position in 3D Cartesian coordinates, corresponding to the _depth_ axis (behind-in front of the listener).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ)
*/
readonly positionZ: AudioParam;
/**
* The \`refDistance\` property of the PannerNode interface is a double value representing the reference distance for reducing volume as the audio source moves further from the listener \u2013 i.e., the distance at which the volume reduction starts taking effect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance)
*/
refDistance: number;
/**
* The \`rolloffFactor\` property of the PannerNode interface is a double value describing how quickly the volume is reduced as the source moves away from the listener.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor)
*/
rolloffFactor: number;
/**
* The \`setOrientation()\` method of the PannerNode Interface defines the direction the audio source is playing in.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation)
*/
setOrientation(x: number, y: number, z: number): void;
/**
* The \`setPosition()\` method of the PannerNode Interface defines the position of the audio source relative to the listener (represented by an AudioListener object stored in the BaseAudioContext.listener attribute.) The three parameters \`x\`, \`y\` and \`z\` are unitless and describe the source's position in 3D space using the right-hand Cartesian coordinate system.
* @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;
}
/**
* The **\`Path2D\`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
*/
interface Path2D extends CanvasPath {
/**
* The **\`Path2D.addPath()\`** method of the Canvas 2D API adds one Path2D object to another \`Path2D\` object.
*
* [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;
};
/**
* The **\`ContactAddress\`** interface of the Contact Picker API represents a physical address.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress)
*/
interface PaymentAddress {
/**
* The **\`addressLine\`** read-only property of the ContactAddress interface is an array of strings, each specifying a line of the address that is not covered by one of the other properties of \`ContactAddress\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine)
*/
readonly addressLine: ReadonlyArray<string>;
/**
* The **\`city\`** read-only property of the ContactAddress interface returns a string containing the city or town portion of the address.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city)
*/
readonly city: string;
/**
* The **\`country\`** read-only property of the ContactAddress interface is a string identifying the address's country using the ISO 3166-1 alpha-2 standard.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country)
*/
readonly country: string;
/**
* The read-only **\`dependentLocality\`** property of the ContactAddress interface is a string containing a locality or sublocality designation within a city, such as a neighborhood, borough, district, or, in the United Kingdom, a dependent locality.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality)
*/
readonly dependentLocality: string;
/**
* The **\`organization\`** read-only property of the ContactAddress interface returns a string containing the name of the organization, firm, company, or institution at the address.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization)
*/
readonly organization: string;
/**
* The read-only **\`phone\`** property of the ContactAddress interface returns a string containing the telephone number of the recipient or contact person at the address.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone)
*/
readonly phone: string;
/**
* The **\`postalCode\`** read-only property of the ContactAddress interface returns a string containing a code used by a jurisdiction for mail routing, for example, the ZIP Code in the United States or the Postal Index Number (PIN code) in India.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode)
*/
readonly postalCode: string;
/**
* The read-only **\`recipient\`** property of the ContactAddress interface returns a string containing the name of the recipient, purchaser, or contact person at the address.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient)
*/
readonly recipient: string;
/**
* The read-only **\`region\`** property of the ContactAddress interface returns a string containing the top-level administrative subdivision of the country in which the address is located.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region)
*/
readonly region: string;
/**
* The **\`sortingCode\`** read-only property of the ContactAddress interface returns a string containing a postal sorting code such as is used in France.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode)
*/
readonly sortingCode: string;
/**
* The **\`toJSON()\`** method of the ContactAddress interface is a standard serializer that returns a JSON representation of the \`ContactAddress\` object's properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON)
*/
toJSON(): any;
}
declare var PaymentAddress: {
prototype: PaymentAddress;
new(): PaymentAddress;
};
/**
* The **\`PaymentMethodChangeEvent\`** interface of the Payment Request API describes the PaymentRequest/paymentmethodchange_event event which is fired by some payment handlers when the user switches payment instruments (e.g., a user selects a 'store' card to make a purchase while using Apple Pay).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent)
*/
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
/**
* The read-only **\`methodDetails\`** property of the PaymentMethodChangeEvent interface is an object containing any data the payment handler may provide to describe the change the user has made to their payment method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails)
*/
readonly methodDetails: any;
/**
* The read-only **\`methodName\`** property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user.
*
* [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": PaymentMethodChangeEvent;
"shippingaddresschange": PaymentRequestUpdateEvent;
"shippingoptionchange": PaymentRequestUpdateEvent;
}
/**
* The Payment Request API's **\`PaymentRequest\`** interface is the primary access point into the API, and lets web content and apps accept payments from the end user on behalf of the operator of the site or the publisher of the app.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest)
*/
interface PaymentRequest extends EventTarget {
/**
* The **\`id\`** read-only attribute of the When constructing an instance of the PaymentRequest, you are able to supply an custom id.
*
* [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: PaymentMethodChangeEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
*/
onshippingaddresschange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
*/
onshippingoptionchange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;
/**
* The **\`shippingAddress\`** read-only property of the PaymentRequest interface returns the shipping address provided by the user.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress)
*/
readonly shippingAddress: PaymentAddress | null;
/**
* The **\`shippingOption\`** read-only attribute of the PaymentRequest interface returns either the id of a selected shipping option, null (if no shipping option was set to be selected) or a shipping option selected by the user.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption)
*/
readonly shippingOption: string | null;
/**
* The **\`shippingType\`** read-only property of the \`'delivery'\`, \`'pickup'\`, or \`null\` if one was not provided by the constructor.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType)
*/
readonly shippingType: PaymentShippingType | null;
/**
* The \`PaymentRequest.abort()\` method of the PaymentRequest interface causes the user agent to end the payment request and to remove any user interface that might be shown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort)
*/
abort(): Promise<void>;
/**
* The PaymentRequest method **\`canMakePayment()\`** determines whether or not the request is configured in a way that is compatible with at least one payment method supported by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment)
*/
canMakePayment(): Promise<boolean>;
/**
* The **PaymentRequest** interface's **\`show()\`** method instructs the user agent to begin the process of showing and handling the user interface for the payment request to the user.
*
* [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, options?: PaymentOptions): PaymentRequest;
};
/**
* The **\`PaymentRequestUpdateEvent\`** interface is used for events sent to a PaymentRequest instance when changes are made to shipping-related information for a pending PaymentRequest.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent)
*/
interface PaymentRequestUpdateEvent extends Event {
/**
* The **\`updateWith()\`** method of the \`\`\`js-nolint updateWith(details) \`\`\` - \`details\` - : Either an object or a Promise that resolves to an object, specifying the changes applied to the payment request: - \`displayItems\` MISSING: optional_inline] - : An array of objects, each describing one line item for the payment request.
*
* [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;
};
interface PaymentResponseEventMap {
"payerdetailchange": PaymentRequestUpdateEvent;
}
/**
* The **\`PaymentResponse\`** interface of the Payment Request API 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 {
/**
* The **\`details\`** read-only property of the provides a payment method specific message used by the merchant to process the transaction and determine a successful funds transfer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details)
*/
readonly details: any;
/**
* The **\`methodName\`** read-only property of the PaymentResponse interface returns a string uniquely identifying the payment handler selected by the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName)
*/
readonly methodName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */
onpayerdetailchange: ((this: PaymentResponse, ev: PaymentRequestUpdateEvent) => any) | null;
/**
* The \`payerEmail\` read-only property of the PaymentResponse interface returns the email address supplied by the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
*/
readonly payerEmail: string | null;
/**
* The **\`payerName\`** read-only property of the option is only present when the \`requestPayerName\` option is set to \`true\` in the options parameter of the A string containing the payer name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
*/
readonly payerName: string | null;
/**
* The \`payerPhone\` read-only property of the PaymentResponse interface returns the phone number supplied by the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
*/
readonly payerPhone: string | null;
/**
* The **\`requestId\`** read-only property of the the \`PaymentResponse()\` constructor by details.id.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId)
*/
readonly requestId: string;
/**
* The **\`shippingAddress\`** read-only property of the \`PaymentRequest\` interface returns a PaymentAddress object containing the shipping address provided by the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
*/
readonly shippingAddress: PaymentAddress | null;
/**
* The **\`shippingOption\`** read-only property of the \`PaymentRequest\` interface returns the ID attribute of the shipping option selected by the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
*/
readonly shippingOption: string | null;
/**
* The PaymentRequest method **\`complete()\`** of the Payment Request API notifies the user interface to be closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete)
*/
complete(result?: PaymentComplete): Promise<void>;
/**
* The PaymentResponse interface's **\`retry()\`** method makes it possible to ask the user to retry a payment after an error occurs during processing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry)
*/
retry(errorFields?: PaymentValidationErrors): Promise<void>;
/**
* The **\`toJSON()\`** method of the PaymentResponse interface is a Serialization; it returns a JSON representation of the PaymentResponse object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON)
*/
toJSON(): any;
addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentResponse: {
prototype: PaymentResponse;
new(): PaymentResponse;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/**
* The **\`Performance\`** interface provides access to performance-related information for the current page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
*/
interface Performance extends EventTarget {
/**
* The read-only \`performance.eventCounts\` property is an EventCounts map containing the number of events which have been dispatched per event type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
*/
readonly eventCounts: EventCounts;
/**
* The legacy **\`Performance.navigation\`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
* @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;
/**
* The **\`timeOrigin\`** read-only property of the Performance interface returns the high resolution timestamp that is used as the baseline for performance-related timestamps.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin)
*/
readonly timeOrigin: DOMHighResTimeStamp;
/**
* The legacy **\`Performance.timing\`** read-only property returns a PerformanceTiming object containing latency-related performance information.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing)
*/
readonly timing: PerformanceTiming;
/**
* The **\`clearMarks()\`** method removes all or specific PerformanceMark objects from the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks)
*/
clearMarks(markName?: string): void;
/**
* The **\`clearMeasures()\`** method removes all or specific PerformanceMeasure objects from the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures)
*/
clearMeasures(measureName?: string): void;
/**
* The **\`clearResourceTimings()\`** method removes all performance entries with an PerformanceEntry.entryType of \`'resource'\` from the browser's performance timeline and sets the size of the performance resource data buffer to zero.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings)
*/
clearResourceTimings(): void;
/**
* The **\`getEntries()\`** method returns an array of all PerformanceEntry objects currently present in the performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries)
*/
getEntries(): PerformanceEntryList;
/**
* The **\`getEntriesByName()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given _name_ and _type_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)
*/
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/**
* The **\`getEntriesByType()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given _type_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)
*/
getEntriesByType(type: string): PerformanceEntryList;
/**
* The **\`mark()\`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark)
*/
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
/**
* The **\`measure()\`** method creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure)
*/
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
/**
* The **\`performance.now()\`** method returns a high resolution timestamp in milliseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now)
*/
now(): DOMHighResTimeStamp;
/**
* The **\`setResourceTimingBufferSize()\`** method sets the desired size of the browser's resource timing buffer which stores the \`'resource'\` performance entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize)
*/
setResourceTimingBufferSize(maxSize: number): void;
/**
* The **\`toJSON()\`** method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object.
*
* [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;
};
/**
* The **\`PerformanceEntry\`** object encapsulates a single performance metric that is part of the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
*/
interface PerformanceEntry {
/**
* The read-only **\`duration\`** property returns a DOMHighResTimeStamp that is the duration of the PerformanceEntry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration)
*/
readonly duration: DOMHighResTimeStamp;
/**
* The read-only **\`entryType\`** property returns a string representing the type of performance metric that this entry represents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType)
*/
readonly entryType: string;
/**
* The read-only **\`name\`** property of the PerformanceEntry interface is a string representing the name for a performance entry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name)
*/
readonly name: string;
/**
* The read-only **\`startTime\`** property returns the first DOMHighResTimeStamp recorded for this PerformanceEntry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime)
*/
readonly startTime: DOMHighResTimeStamp;
/**
* The **\`toJSON()\`** method is a Serialization; it returns a JSON representation of the PerformanceEntry object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON)
*/
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/**
* The \`PerformanceEventTiming\` interface of the Event Timing API provides insights into the latency of certain event types triggered by user interaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming)
*/
interface PerformanceEventTiming extends PerformanceEntry {
/**
* The read-only **\`cancelable\`** property returns the associated event's \`cancelable\` property, indicating whether the event can be canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)
*/
readonly cancelable: boolean;
/**
* The read-only **\`processingEnd\`** property returns the time the last event handler finished executing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd)
*/
readonly processingEnd: DOMHighResTimeStamp;
/**
* The read-only **\`processingStart\`** property returns the time at which event dispatch started.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart)
*/
readonly processingStart: DOMHighResTimeStamp;
/**
* The read-only **\`target\`** property returns the associated event's last \`target\` which is the node onto which the event was last dispatched.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target)
*/
readonly target: Node | null;
/**
* The **\`toJSON()\`** method of the PerformanceEventTiming interface is a Serialization; it returns a JSON representation of the PerformanceEventTiming object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON)
*/
toJSON(): any;
}
declare var PerformanceEventTiming: {
prototype: PerformanceEventTiming;
new(): PerformanceEventTiming;
};
/**
* **\`PerformanceMark\`** is an interface for PerformanceEntry objects with an PerformanceEntry.entryType of \`'mark'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
*/
interface PerformanceMark extends PerformanceEntry {
/**
* The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (either when using Performance.mark or the PerformanceMark.PerformanceMark constructor).
*
* [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 PerformanceEntry.entryType of \`'measure'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
*/
interface PerformanceMeasure extends PerformanceEntry {
/**
* The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (when using Performance.measure.
*
* [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 {
/**
* The legacy **\`PerformanceNavigation.redirectCount\`** read-only property returns an \`unsigned short\` representing the number of REDIRECTs done before reaching the page.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount)
*/
readonly redirectCount: number;
/**
* The legacy **\`PerformanceNavigation.type\`** read-only property returns an \`unsigned short\` containing a constant describing how the navigation to this page was done.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type)
*/
readonly type: number;
/**
* The **\`toJSON()\`** method of the PerformanceNavigation interface is a Serialization; it returns a JSON representation of the PerformanceNavigation object.
* @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;
};
/**
* The **\`PerformanceNavigationTiming\`** interface provides methods and properties to store and retrieve metrics regarding the browser's document navigation events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming)
*/
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
/**
* The **\`domComplete\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document's \`readyState\` to \`'complete'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete)
*/
readonly domComplete: DOMHighResTimeStamp;
/**
* The **\`domContentLoadedEventEnd\`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's \`DOMContentLoaded\` event handler completes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd)
*/
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
/**
* The **\`domContentLoadedEventStart\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's \`DOMContentLoaded\` event handler starts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart)
*/
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
/**
* The **\`domInteractive\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document's \`readyState\` to \`'interactive'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive)
*/
readonly domInteractive: DOMHighResTimeStamp;
/**
* The **\`loadEventEnd\`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's \`load\` event handler completes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd)
*/
readonly loadEventEnd: DOMHighResTimeStamp;
/**
* The **\`loadEventStart\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's \`load\` event handler starts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart)
*/
readonly loadEventStart: DOMHighResTimeStamp;
/**
* The **\`redirectCount\`** read-only property returns a number representing the number of redirects since the last non-redirect navigation in the current browsing context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount)
*/
readonly redirectCount: number;
/**
* The **\`type\`** read-only property returns the type of navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type)
*/
readonly type: NavigationTimingType;
/**
* The **\`unloadEventEnd\`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's \`unload\` event handler completes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)
*/
readonly unloadEventEnd: DOMHighResTimeStamp;
/**
* The **\`unloadEventStart\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's \`unload\` event handler starts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)
*/
readonly unloadEventStart: DOMHighResTimeStamp;
/**
* The **\`toJSON()\`** method of the PerformanceNavigationTiming interface is a Serialization; it returns a JSON representation of the PerformanceNavigationTiming object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON)
*/
toJSON(): any;
}
declare var PerformanceNavigationTiming: {
prototype: PerformanceNavigationTiming;
new(): PerformanceNavigationTiming;
};
/**
* The **\`PerformanceObserver\`** interface is used to observe performance measurement events and be notified of new PerformanceEntry as they are recorded in the browser's _performance timeline_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver)
*/
interface PerformanceObserver {
/**
* The **\`disconnect()\`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any PerformanceEntry events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect)
*/
disconnect(): void;
/**
* The **\`observe()\`** method of the **PerformanceObserver** interface is used to specify the set of performance entry types to observe.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe)
*/
observe(options?: PerformanceObserverInit): void;
/**
* The **\`takeRecords()\`** method of the PerformanceObserver interface returns the current list of PerformanceEntry objects stored in the performance observer, emptying it out.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords)
*/
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
/**
* The static **\`supportedEntryTypes\`** read-only property of the PerformanceObserver interface returns an array of the PerformanceEntry.entryType values supported by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static)
*/
readonly supportedEntryTypes: ReadonlyArray<string>;
};
/**
* The **\`PerformanceObserverEntryList\`** interface is a list of PerformanceEntry that were explicitly observed via the PerformanceObserver.observe method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList)
*/
interface PerformanceObserverEntryList {
/**
* The **\`getEntries()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries)
*/
getEntries(): PerformanceEntryList;
/**
* The **\`getEntriesByName()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given PerformanceEntry.name and PerformanceEntry.entryType.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)
*/
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/**
* The **\`getEntriesByType()\`** method of the PerformanceObserverEntryList returns a list of explicitly _observed_ PerformanceEntry objects for a given PerformanceEntry.entryType.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)
*/
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/**
* The **\`PerformancePaintTiming\`** interface provides timing information about 'paint' (also called 'render') operations during web page construction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
*/
interface PerformancePaintTiming extends PerformanceEntry {
}
declare var PerformancePaintTiming: {
prototype: PerformancePaintTiming;
new(): PerformancePaintTiming;
};
/**
* The **\`PerformanceResourceTiming\`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
*/
interface PerformanceResourceTiming extends PerformanceEntry {
/**
* The **\`connectEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd)
*/
readonly connectEnd: DOMHighResTimeStamp;
/**
* The **\`connectStart\`** read-only property returns the DOMHighResTimeStamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
*/
readonly connectStart: DOMHighResTimeStamp;
/**
* The **\`decodedBodySize\`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
*/
readonly decodedBodySize: number;
/**
* The **\`domainLookupEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes the domain-name lookup for the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)
*/
readonly domainLookupEnd: DOMHighResTimeStamp;
/**
* The **\`domainLookupStart\`** read-only property returns the DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart)
*/
readonly domainLookupStart: DOMHighResTimeStamp;
/**
* The **\`encodedBodySize\`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize)
*/
readonly encodedBodySize: number;
/**
* The **\`fetchStart\`** read-only property represents a DOMHighResTimeStamp immediately before the browser starts to fetch the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
*/
readonly fetchStart: DOMHighResTimeStamp;
/**
* The **\`initiatorType\`** read-only property is a string representing web platform feature that initiated the resource load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType)
*/
readonly initiatorType: string;
/**
* The **\`nextHopProtocol\`** read-only property is a string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)
*/
readonly nextHopProtocol: string;
/**
* The **\`redirectEnd\`** read-only property returns a DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd)
*/
readonly redirectEnd: DOMHighResTimeStamp;
/**
* The **\`redirectStart\`** read-only property returns a DOMHighResTimeStamp representing the start time of the fetch which that initiates the redirect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart)
*/
readonly redirectStart: DOMHighResTimeStamp;
/**
* The **\`requestStart\`** read-only property returns a DOMHighResTimeStamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
*/
readonly requestStart: DOMHighResTimeStamp;
/**
* The **\`responseEnd\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd)
*/
readonly responseEnd: DOMHighResTimeStamp;
/**
* The **\`responseStart\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart)
*/
readonly responseStart: DOMHighResTimeStamp;
/**
* The **\`responseStatus\`** read-only property represents the HTTP response status code returned when fetching the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus)
*/
readonly responseStatus: number;
/**
* The **\`secureConnectionStart\`** read-only property returns a DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)
*/
readonly secureConnectionStart: DOMHighResTimeStamp;
/**
* The **\`serverTiming\`** read-only property returns an array of PerformanceServerTiming entries containing server timing metrics.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming)
*/
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
/**
* The **\`transferSize\`** read-only property represents the size (in octets) of the fetched resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
*/
readonly transferSize: number;
/**
* The **\`workerStart\`** read-only property of the PerformanceResourceTiming interface returns a The \`workerStart\` property can have the following values: - A DOMHighResTimeStamp.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart)
*/
readonly workerStart: DOMHighResTimeStamp;
/**
* The **\`toJSON()\`** method of the PerformanceResourceTiming interface is a Serialization; it returns a JSON representation of the PerformanceResourceTiming object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON)
*/
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/**
* The **\`PerformanceServerTiming\`** interface surfaces server metrics that are sent with the response in the Server-Timing HTTP header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming)
*/
interface PerformanceServerTiming {
/**
* The **\`description\`** read-only property returns a string value of the server-specified metric description, or an empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description)
*/
readonly description: string;
/**
* The **\`duration\`** read-only property returns a double that contains the server-specified metric duration, or the value \`0.0\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
*/
readonly duration: DOMHighResTimeStamp;
/**
* The **\`name\`** read-only property returns a string value of the server-specified metric name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name)
*/
readonly name: string;
/**
* The **\`toJSON()\`** method of the PerformanceServerTiming interface is a Serialization; it returns a JSON representation of the PerformanceServerTiming object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON)
*/
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
/**
* The **\`PerformanceTiming\`** interface is 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.
* @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 {
/**
* The legacy **\`PerformanceTiming.connectEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the connection is opened network.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd)
*/
readonly connectEnd: number;
/**
* The legacy **\`PerformanceTiming.connectStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the request to open a connection is sent to the network.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart)
*/
readonly connectStart: number;
/**
* The legacy **\`PerformanceTiming.domComplete\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to \`'complete'\` and the corresponding Document/readystatechange_event event is thrown.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete)
*/
readonly domComplete: number;
/**
* The legacy **\`PerformanceTiming.domContentLoadedEventEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, right after all the scripts that need to be executed as soon as possible, in order or not, has been executed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)
*/
readonly domContentLoadedEventEnd: number;
/**
* The legacy **\`PerformanceTiming.domContentLoadedEventStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, right before the parser sent the executed right after parsing has been executed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)
*/
readonly domContentLoadedEventStart: number;
/**
* The legacy **\`PerformanceTiming.domInteractive\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to \`'interactive'\` and the corresponding Document/readystatechange_event event is thrown.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive)
*/
readonly domInteractive: number;
/**
* The legacy **\`PerformanceTiming.domLoading\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the parser started its work, that is when its corresponding Document/readystatechange_event event is thrown.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading)
*/
readonly domLoading: number;
/**
* The legacy **\`PerformanceTiming.domainLookupEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the domain lookup is finished.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd)
*/
readonly domainLookupEnd: number;
/**
* The legacy **\`PerformanceTiming.domainLookupStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the domain lookup starts.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart)
*/
readonly domainLookupStart: number;
/**
* The legacy **\`PerformanceTiming.fetchStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the browser is ready to fetch the document using an HTTP request.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart)
*/
readonly fetchStart: number;
/**
* The legacy **\`PerformanceTiming.loadEventEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the Window/load_event event handler terminated, that is when the load event is completed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd)
*/
readonly loadEventEnd: number;
/**
* The legacy **\`PerformanceTiming.loadEventStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the Window/load_event event was sent for the current document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart)
*/
readonly loadEventStart: number;
/**
* The legacy **\`PerformanceTiming.navigationStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, right after the prompt for unload terminates on the previous document in the same browsing context.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart)
*/
readonly navigationStart: number;
/**
* The legacy **\`PerformanceTiming.redirectEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the last HTTP redirect is completed, that is when the last byte of the HTTP response has been received.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd)
*/
readonly redirectEnd: number;
/**
* The legacy **\`PerformanceTiming.redirectStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the first HTTP redirect starts.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart)
*/
readonly redirectStart: number;
/**
* The legacy **\`PerformanceTiming.requestStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the browser sent the request to obtain the actual document, from the server or from a cache.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart)
*/
readonly requestStart: number;
/**
* The legacy **\`PerformanceTiming.responseEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the browser received the last byte of the response, or when the connection is closed if this happened first, from the server from a cache or from a local resource.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd)
*/
readonly responseEnd: number;
/**
* The legacy **\`PerformanceTiming.responseStart\`** read-only property returns an \`unsigned long long\` representing the moment in time (in milliseconds since the UNIX epoch) when the browser received the first byte of the response from the server, cache, or local resource.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart)
*/
readonly responseStart: number;
/**
* The legacy **\`PerformanceTiming.secureConnectionStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the secure connection handshake starts.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart)
*/
readonly secureConnectionStart: number;
/**
* The legacy **\`PerformanceTiming.unloadEventEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the Window/unload_event event handler finishes.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd)
*/
readonly unloadEventEnd: number;
/**
* The legacy **\`PerformanceTiming.unloadEventStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the Window/unload_event event has been thrown.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart)
*/
readonly unloadEventStart: number;
/**
* The legacy **\`toJSON()\`** method of the PerformanceTiming interface is a Serialization; it returns a JSON representation of the PerformanceTiming object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON)
*/
toJSON(): any;
}
/** @deprecated */
declare var PerformanceTiming: {
prototype: PerformanceTiming;
new(): PerformanceTiming;
};
/**
* The **\`PeriodicWave\`** interface defines a periodic waveform that can be used to shape the output of an OscillatorNode.
*
* [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;
}
/**
* The **\`PermissionStatus\`** interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus)
*/
interface PermissionStatus extends EventTarget {
/**
* The **\`name\`** read-only property of the PermissionStatus interface returns the name of a requested permission.
*
* [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;
/**
* The **\`state\`** read-only property of the This property returns one of \`'granted'\`, \`'denied'\`, or \`'prompt'\`.
*
* [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;
};
/**
* The **\`Permissions\`** interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions)
*/
interface Permissions {
/**
* The **\`query()\`** method of the Permissions interface returns the state of a user permission on the global scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query)
*/
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/**
* The **\`PictureInPictureEvent\`** interface represents picture-in-picture-related events, including HTMLVideoElement/enterpictureinpicture_event, HTMLVideoElement/leavepictureinpicture_event and PictureInPictureWindow/resize_event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent)
*/
interface PictureInPictureEvent extends Event {
/**
* The read-only **\`pictureInPictureWindow\`** property of the PictureInPictureEvent interface returns the PictureInPictureWindow the event relates to.
*
* [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;
}
/**
* The **\`PictureInPictureWindow\`** interface represents an object able to programmatically obtain the **\`width\`** and **\`height\`** and **\`resize event\`** of the floating video window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow)
*/
interface PictureInPictureWindow extends EventTarget {
/**
* The read-only **\`height\`** property of the PictureInPictureWindow interface returns the height of the floating video window in pixels.
*
* [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;
/**
* The read-only **\`width\`** property of the PictureInPictureWindow interface returns the width of the floating video window in pixels.
*
* [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;
};
/**
* The \`Plugin\` interface 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
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
* @deprecated
*/
readonly length: number;
/**
* Returns the plugin's name.
* @deprecated
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*/
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var Plugin: {
prototype: Plugin;
new(): Plugin;
};
/**
* The \`PluginArray\` interface is used to store a list of Plugin objects; it's returned by the Navigator.plugins property.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)
*/
interface PluginArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): Plugin | null;
/** @deprecated */
namedItem(name: string): Plugin | null;
/** @deprecated */
refresh(): void;
[index: number]: Plugin;
}
/** @deprecated */
declare var PluginArray: {
prototype: PluginArray;
new(): PluginArray;
};
/**
* The **\`PointerEvent\`** interface represents 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 {
/**
* The **\`altitudeAngle\`** read-only property of the PointerEvent interface represents the angle between a transducer (a pointer or stylus) axis and the X-Y plane of a device screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle)
*/
readonly altitudeAngle: number;
/**
* The **\`azimuthAngle\`** read-only property of the PointerEvent interface represents the angle between the Y-Z plane and the plane containing both the transducer (pointer or stylus) axis and the Y axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle)
*/
readonly azimuthAngle: number;
/**
* The **\`height\`** read-only property of the geometry, along the y-axis (in CSS pixels).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height)
*/
readonly height: number;
/**
* The **\`isPrimary\`** read-only property of the created the event is the _primary_ pointer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary)
*/
readonly isPrimary: boolean;
/**
* The **\`pointerId\`** read-only property of the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId)
*/
readonly pointerId: number;
/**
* The **\`pointerType\`** read-only property of the that caused a given pointer event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType)
*/
readonly pointerType: string;
/**
* The **\`pressure\`** read-only property of the input.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure)
*/
readonly pressure: number;
/**
* The **\`tangentialPressure\`** read-only property of the the pointer input (also known as barrel pressure or cylinder stress).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure)
*/
readonly tangentialPressure: number;
/**
* The **\`tiltX\`** read-only property of the PointerEvent interface is the angle (in degrees) between the _Y-Z plane_ of the pointer and the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX)
*/
readonly tiltX: number;
/**
* The **\`tiltY\`** read-only property of the PointerEvent interface is the angle (in degrees) between the _X-Z plane_ of the pointer and the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY)
*/
readonly tiltY: number;
/**
* The **\`twist\`** read-only property of the (e.g., pen stylus) around its major axis, in degrees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist)
*/
readonly twist: number;
/**
* The **\`width\`** read-only property of the geometry along the x-axis, measured in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width)
*/
readonly width: number;
/**
* The **\`getCoalescedEvents()\`** method of the PointerEvent interface returns a sequence of \`PointerEvent\` instances that were coalesced (merged) into a single Element/pointermove_event or Element/pointerrawupdate_event event.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents)
*/
getCoalescedEvents(): PointerEvent[];
/**
* The **\`getPredictedEvents()\`** method of the PointerEvent interface returns a sequence of \`PointerEvent\` instances that are estimated future pointer positions.
*
* [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 interface for the Window/popstate_event event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
*/
interface PopStateEvent extends Event {
/**
* The **\`hasUAVisualTransition\`** read-only property of the PopStateEvent interface returns \`true\` if the user agent performed a visual transition for this navigation before dispatching this event, or \`false\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/hasUAVisualTransition)
*/
readonly hasUAVisualTransition: boolean;
/**
* The **\`state\`** read-only property of the PopStateEvent interface represents the state stored when the event was created.
*
* [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;
}
/**
* The **\`ProcessingInstruction\`** interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don't recognize the instruction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
*/
interface ProcessingInstruction extends CharacterData, LinkStyle {
readonly ownerDocument: Document;
/**
* The read-only **\`target\`** property of the ProcessingInstruction interface represent the application to which the \`ProcessingInstruction\` is targeted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target)
*/
readonly target: string;
}
declare var ProcessingInstruction: {
prototype: ProcessingInstruction;
new(): ProcessingInstruction;
};
/**
* The **\`ProgressEvent\`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., 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 {
/**
* The **\`ProgressEvent.lengthComputable\`** read-only property is a boolean flag indicating if the resource concerned by the A boolean.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable)
*/
readonly lengthComputable: boolean;
/**
* The **\`ProgressEvent.loaded\`** read-only property is a number indicating the size of the data already transmitted or processed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
*/
readonly loaded: number;
readonly target: T | null;
/**
* The **\`ProgressEvent.total\`** read-only property is a number indicating the total size of the data being transmitted or processed.
*
* [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;
};
/**
* The **\`PromiseRejectionEvent\`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
*/
interface PromiseRejectionEvent extends Event {
/**
* The PromiseRejectionEvent interface's **\`promise\`** read-only property indicates the JavaScript rejected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
*/
readonly promise: Promise<any>;
/**
* The PromiseRejectionEvent **\`reason\`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
*
* [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;
};
/**
* The **\`PublicKeyCredential\`** interface provides information about a public key / private key pair, which is a credential for logging in to a service using an un-phishable and data-breach resistant asymmetric key pair instead of a password.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)
*/
interface PublicKeyCredential extends Credential {
/**
* The **\`authenticatorAttachment\`** read-only property of the PublicKeyCredential interface is a string that indicates the general category of authenticator used during the associated CredentialsContainer.create() or CredentialsContainer.get() call.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment)
*/
readonly authenticatorAttachment: string | null;
/**
* The **\`rawId\`** read-only property of the containing the identifier of the credentials.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId)
*/
readonly rawId: ArrayBuffer;
/**
* The **\`response\`** read-only property of the object which is sent from the authenticator to the user agent for the creation/fetching of credentials.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response)
*/
readonly response: AuthenticatorResponse;
/**
* The **\`getClientExtensionResults()\`** method of the PublicKeyCredential interface returns a map between the identifiers of extensions requested during credential creation or authentication, and their results after processing by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults)
*/
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
/**
* The **\`toJSON()\`** method of the PublicKeyCredential interface returns a JSON type representation of a PublicKeyCredential.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON)
*/
toJSON(): PublicKeyCredentialJSON;
}
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
/**
* The **\`getClientCapabilities()\`** static method of the PublicKeyCredential interface returns a Promise that resolves with an object that can be used to check whether or not particular WebAuthn client capabilities and extensions are supported.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientCapabilities_static)
*/
getClientCapabilities(): Promise<PublicKeyCredentialClientCapabilities>;
/**
* The **\`isConditionalMediationAvailable()\`** static method of the PublicKeyCredential interface returns a Promise which resolves to \`true\` if conditional mediation is available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable_static)
*/
isConditionalMediationAvailable(): Promise<boolean>;
/**
* The **\`isUserVerifyingPlatformAuthenticatorAvailable()\`** static method of the PublicKeyCredential interface returns a Promise which resolves to \`true\` if a user-verifying platform authenticator is present.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static)
*/
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
/**
* The **\`parseCreationOptionsFromJSON()\`** static method of the PublicKeyCredential interface creates a PublicKeyCredentialCreationOptions object from a JSON representation of its properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static)
*/
parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
/**
* The **\`parseRequestOptionsFromJSON()\`** static method of the PublicKeyCredential interface converts a JSON type representation into a PublicKeyCredentialRequestOptions instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)
*/
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
};
/**
* The **\`PushManager\`** interface of the Push API 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 {
/**
* The **\`PushManager.getSubscription()\`** method of the PushManager interface retrieves an existing push subscription.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription)
*/
getSubscription(): Promise<PushSubscription | null>;
/**
* The **\`permissionState()\`** method of the string indicating the permission state of the push manager.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState)
*/
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
/**
* The **\`subscribe()\`** method of the PushManager interface subscribes to a push service.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe)
*/
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
/**
* The **\`supportedContentEncodings\`** read-only static property of the PushManager interface returns an array of supported content codings that can be used to encrypt the payload of a push message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static)
*/
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* The \`PushSubscription\` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
*/
interface PushSubscription {
/**
* The **\`endpoint\`** read-only property of the the endpoint associated with the push subscription.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint)
*/
readonly endpoint: string;
/**
* The **\`expirationTime\`** read-only property of the of the subscription expiration time associated with the push subscription, if there is one, or \`null\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime)
*/
readonly expirationTime: EpochTimeStamp | null;
/**
* The **\`options\`** read-only property of the PushSubscription interface is an object containing the options used to create the subscription.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options)
*/
readonly options: PushSubscriptionOptions;
/**
* The \`getKey()\` method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey)
*/
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
/**
* The \`toJSON()\` method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON)
*/
toJSON(): PushSubscriptionJSON;
/**
* The \`unsubscribe()\` method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe)
*/
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/**
* The **\`PushSubscriptionOptions\`** interface of the Push API represents the options associated with a push subscription.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
*/
interface PushSubscriptionOptions {
/**
* The **\`applicationServerKey\`** read-only property of the PushSubscriptionOptions interface contains the public key used by the push server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey)
*/
readonly applicationServerKey: ArrayBuffer | null;
/**
* The **\`userVisibleOnly\`** read-only property of the PushSubscriptionOptions interface indicates if the returned push subscription will only be used for messages whose effect is made visible to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly)
*/
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/**
* The **\`RTCCertificate\`** interface of the WebRTC API provides an object representing a certificate that an RTCPeerConnection uses to authenticate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate)
*/
interface RTCCertificate {
/**
* The read-only **\`expires\`** property of the RTCCertificate interface returns the expiration date of the certificate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires)
*/
readonly expires: EpochTimeStamp;
/**
* The **\`getFingerprints()\`** method of the **RTCCertificate** interface is used to get an array of certificate fingerprints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints)
*/
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
};
interface RTCDTMFSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
/**
* The **\`RTCDTMFSender\`** interface provides a mechanism for transmitting DTMF codes on a WebRTC RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender)
*/
interface RTCDTMFSender extends EventTarget {
/**
* The **\`canInsertDTMF\`** read-only property of the RTCDTMFSender interface returns a boolean value which indicates whether the \`RTCDTMFSender\` is capable of sending DTMF tones over the RTCPeerConnection.
*
* [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;
/**
* The RTCDTMFSender interface's toneBuffer property returns a string containing a list of the DTMF tones currently queued for sending to the remote peer over the RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer)
*/
readonly toneBuffer: string;
/**
* The **\`insertDTMF()\`** method of the RTCDTMFSender interface sends DTMF tones to the remote peer over the RTCPeerConnection.
*
* [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;
};
/**
* The **\`RTCDTMFToneChangeEvent\`** interface represents events sent to indicate that DTMF tones have started or finished playing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent)
*/
interface RTCDTMFToneChangeEvent extends Event {
/**
* The read-only property **\`RTCDTMFToneChangeEvent.tone\`** returns the DTMF character which has just begun to play, or an empty string (\`''\`).
*
* [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": RTCErrorEvent;
"message": MessageEvent;
"open": Event;
}
/**
* The **\`RTCDataChannel\`** interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel)
*/
interface RTCDataChannel extends EventTarget {
/**
* The property **\`binaryType\`** on the the type of object which should be used to represent binary data received on the RTCDataChannel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType)
*/
binaryType: BinaryType;
/**
* The read-only \`RTCDataChannel\` property **\`bufferedAmount\`** returns the number of bytes of data currently queued to be sent over the data channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* The \`RTCDataChannel\` property **\`bufferedAmountLowThreshold\`** is used to specify the number of bytes of buffered outgoing data that is considered 'low.' The default value is 0\\.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)
*/
bufferedAmountLowThreshold: number;
/**
* The read-only \`RTCDataChannel\` property **\`id\`** returns an ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id)
*/
readonly id: number | null;
/**
* The read-only \`RTCDataChannel\` property **\`label\`** returns a string containing a name describing the data channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label)
*/
readonly label: string;
/**
* The read-only \`RTCDataChannel\` property **\`maxPacketLifeTime\`** returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime)
*/
readonly maxPacketLifeTime: number | null;
/**
* The read-only \`RTCDataChannel\` property **\`maxRetransmits\`** returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or \`null\`, which indicates that there is no maximum.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits)
*/
readonly maxRetransmits: number | null;
/**
* The read-only \`RTCDataChannel\` property **\`negotiated\`** indicates whether the (\`true\`) or by the WebRTC layer (\`false\`).
*
* [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: RTCErrorEvent) => 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;
/**
* The read-only \`RTCDataChannel\` property **\`ordered\`** indicates whether or not the data channel guarantees in-order delivery of messages; the default is \`true\`, which indicates that the data channel is indeed ordered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered)
*/
readonly ordered: boolean;
/**
* The read-only \`RTCDataChannel\` property **\`protocol\`** returns a string containing the name of the subprotocol in use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol)
*/
readonly protocol: string;
/**
* The read-only \`RTCDataChannel\` property **\`readyState\`** returns a string which indicates the state of the data channel's underlying data connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState)
*/
readonly readyState: RTCDataChannelState;
/**
* The **\`RTCDataChannel.close()\`** method closes the closure of the channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close)
*/
close(): void;
/**
* The **\`send()\`** method of the remote peer.
*
* [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<ArrayBuffer>): 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;
};
/**
* The **\`RTCDataChannelEvent\`** interface represents an event related to a specific RTCDataChannel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent)
*/
interface RTCDataChannelEvent extends Event {
/**
* The read-only property **\`RTCDataChannelEvent.channel\`** returns the RTCDataChannel associated with the 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": RTCErrorEvent;
"statechange": Event;
}
/**
* The **\`RTCDtlsTransport\`** interface provides access to information about the Datagram Transport Layer Security (**DTLS**) transport over which a RTCPeerConnection's RTP and RTCP packets are sent and received by its RTCRtpSender and RTCRtpReceiver objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport)
*/
interface RTCDtlsTransport extends EventTarget {
/**
* The **\`iceTransport\`** read-only property of the **RTCDtlsTransport** interface contains a reference to the underlying RTCIceTransport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport)
*/
readonly iceTransport: RTCIceTransport;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */
onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
/**
* The **\`state\`** read-only property of the Datagram Transport Layer Security (**DTLS**) transport state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state)
*/
readonly state: RTCDtlsTransportState;
getRemoteCertificates(): ArrayBuffer[];
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDtlsTransport: {
prototype: RTCDtlsTransport;
new(): RTCDtlsTransport;
};
/**
* The **\`RTCEncodedAudioFrame\`** of the WebRTC API represents an encoded audio frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame)
*/
interface RTCEncodedAudioFrame {
/**
* The **\`data\`** property of the RTCEncodedAudioFrame interface returns a buffer containing the data for an encoded frame.
*
* [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;
/**
* The **\`getMetadata()\`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata)
*/
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
/**
* The **\`RTCEncodedVideoFrame\`** of the WebRTC API represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame)
*/
interface RTCEncodedVideoFrame {
/**
* The **\`data\`** property of the RTCEncodedVideoFrame interface returns a buffer containing the frame data.
*
* [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;
/**
* The **\`type\`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)
*/
readonly type: RTCEncodedVideoFrameType;
/**
* The **\`getMetadata()\`** method of the RTCEncodedVideoFrame interface returns an object containing the metadata associated with the frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata)
*/
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
/**
* The **\`RTCError\`** interface describes an error which has occurred while handling WebRTC operations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError)
*/
interface RTCError extends DOMException {
/**
* The RTCError interface's read-only **\`errorDetail\`** property is a string indicating the WebRTC-specific error code that occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail)
*/
readonly errorDetail: RTCErrorDetailType;
/**
* The RTCError read-only property **\`receivedAlert\`** specifies the fatal DTLS error which resulted in an alert being received from the remote peer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert)
*/
readonly receivedAlert: number | null;
/**
* The read-only **\`sctpCauseCode\`** property in an why the SCTP negotiation failed, if the \`RTCError\` represents an SCTP error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode)
*/
readonly sctpCauseCode: number | null;
/**
* The RTCError interface's read-only property **\`sdpLineNumber\`** specifies the line number within the An unsigned integer value indicating the line within the SDP at which the syntax error described by the \`RTCError\` object occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber)
*/
readonly sdpLineNumber: number | null;
/**
* The read-only **\`sentAlert\`** property in an while sending data to the remote peer, if the error represents an outbound DTLS error.
*
* [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;
};
/**
* The WebRTC API's **\`RTCErrorEvent\`** interface represents an error sent to a WebRTC object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent)
*/
interface RTCErrorEvent extends Event {
/**
* The read-only RTCErrorEvent property **\`error\`** contains an RTCError object describing the details of the error which the event is announcing.
*
* [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\u2014part of the WebRTC API\u2014represents a candidate Interactive Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate)
*/
interface RTCIceCandidate {
/**
* The **RTCIceCandidate** interface's read-only **\`address\`** property is a string providing the IP address of the device which is the source of the candidate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address)
*/
readonly address: string | null;
/**
* The read-only property **\`candidate\`** on the RTCIceCandidate interface returns a string describing the candidate in detail.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate)
*/
readonly candidate: string;
/**
* The read-only **\`component\`** property on the RTCIceCandidate interface is a string which indicates whether the candidate is an RTP or an RTCP candidate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component)
*/
readonly component: RTCIceComponent | null;
/**
* The **\`foundation\`** read-only property of the RTCIceCandidate interface is a string that allows correlation of candidates from a common network path on multiple RTCIceTransport objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation)
*/
readonly foundation: string | null;
/**
* The **RTCIceCandidate** interface's read-only **\`port\`** property contains the port number on the device at the address given by RTCIceCandidate.address at which the candidate's peer can be reached.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port)
*/
readonly port: number | null;
/**
* The **RTCIceCandidate** interface's read-only **\`priority\`** property specifies the candidate's priority according to the remote peer; the higher this value is, the better the remote peer considers the candidate to be.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority)
*/
readonly priority: number | null;
/**
* The **RTCIceCandidate** interface's read-only **\`protocol\`** property is a string which indicates whether the candidate uses UDP or TCP as its transport protocol.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol)
*/
readonly protocol: RTCIceProtocol | null;
/**
* The **RTCIceCandidate** interface's read-only **\`relatedAddress\`** property is a string indicating the **related address** of a relay or reflexive candidate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress)
*/
readonly relatedAddress: string | null;
/**
* The **RTCIceCandidate** interface's read-only **\`relatedPort\`** property indicates the port number of reflexive or relay candidates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort)
*/
readonly relatedPort: number | null;
/**
* The read-only **\`sdpMLineIndex\`** property on the RTCIceCandidate interface is a zero-based index of the m-line describing the media associated with the candidate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex)
*/
readonly sdpMLineIndex: number | null;
/**
* The read-only property **\`sdpMid\`** on the RTCIceCandidate interface returns a string specifying the media stream identification tag of the media component with which the candidate is associated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid)
*/
readonly sdpMid: string | null;
/**
* The **RTCIceCandidate** interface's read-only **\`tcpType\`** property is included on TCP candidates to provide additional details about the candidate type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType)
*/
readonly tcpType: RTCIceTcpCandidateType | null;
/**
* The **RTCIceCandidate** interface's read-only **\`type\`** specifies the type of candidate the object represents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type)
*/
readonly type: RTCIceCandidateType | null;
/**
* The read-only **\`usernameFragment\`** property on the RTCIceCandidate interface is a string indicating the username fragment ('ufrag') that uniquely identifies a single ICE interaction session.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment)
*/
readonly usernameFragment: string | null;
/**
* The RTCIceCandidate method **\`toJSON()\`** converts the \`RTCIceCandidate\` on which it's called into JSON.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON)
*/
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate;
};
/** The **\`RTCIceCandidatePair\`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. */
interface RTCIceCandidatePair {
/** The **\`local\`** property of the **RTCIceCandidatePair** dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */
local: RTCIceCandidate;
/** The **\`remote\`** property of the **RTCIceCandidatePair** dictionary specifies the viable WebRTC connection. */
remote: RTCIceCandidate;
}
interface RTCIceTransportEventMap {
"gatheringstatechange": Event;
"selectedcandidatepairchange": Event;
"statechange": Event;
}
/**
* The **\`RTCIceTransport\`** interface 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 {
/**
* The **\`gatheringState\`** read-only property of the RTCIceTransport interface returns a string that indicates the current gathering state of the ICE agent for this transport: \`'new'\`, \`'gathering'\`, or \`'complete'\`.
*
* [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;
/**
* The **\`state\`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state)
*/
readonly state: RTCIceTransportState;
/**
* The **\`getSelectedCandidatePair()\`** method of the RTCIceTransport interface returns an RTCIceCandidatePair object containing the current best-choice pair of ICE candidates describing the configuration of the endpoints of the transport.
*
* [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;
}
/**
* The **\`RTCPeerConnection\`** interface represents a WebRTC connection between the local computer and a remote peer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection)
*/
interface RTCPeerConnection extends EventTarget {
/**
* The **\`canTrickleIceCandidates\`** read-only property of the RTCPeerConnection interface returns a boolean value which indicates whether or not the remote peer can accept trickled ICE candidates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates)
*/
readonly canTrickleIceCandidates: boolean | null;
/**
* The **\`connectionState\`** read-only property of the RTCPeerConnection interface indicates the current state of the peer connection by returning one of the following string values: \`new\`, \`connecting\`, \`connected\`, \`disconnected\`, \`failed\`, or \`closed\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState)
*/
readonly connectionState: RTCPeerConnectionState;
/**
* The **\`currentLocalDescription\`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing the local end of the connection as it was most recently successfully negotiated since the last time the RTCPeerConnection finished negotiating and connecting to a remote peer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription)
*/
readonly currentLocalDescription: RTCSessionDescription | null;
/**
* The **\`currentRemoteDescription\`** read-only property of the RTCPeerConnection interface returns an Also included is a list of any ICE candidates that may already have been generated by the ICE agent since the offer or answer represented by the description was first instantiated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription)
*/
readonly currentRemoteDescription: RTCSessionDescription | null;
/**
* The **\`iceConnectionState\`** read-only property of the RTCPeerConnection interface returns a string which state of the ICE agent associated with the RTCPeerConnection: \`new\`, \`checking\`, \`connected\`, \`completed\`, \`failed\`, \`disconnected\`, and \`closed\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState)
*/
readonly iceConnectionState: RTCIceConnectionState;
/**
* The **\`iceGatheringState\`** read-only property of the RTCPeerConnection interface returns a string that describes the overall ICE gathering state for this connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState)
*/
readonly iceGatheringState: RTCIceGatheringState;
/**
* The **\`localDescription\`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription describing the session for the local end of the connection.
*
* [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;
/**
* The **\`pendingLocalDescription\`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing a pending configuration change for the local end of the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription)
*/
readonly pendingLocalDescription: RTCSessionDescription | null;
/**
* The **\`pendingRemoteDescription\`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing a pending configuration change for the remote end of the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription)
*/
readonly pendingRemoteDescription: RTCSessionDescription | null;
/**
* The **\`remoteDescription\`** read-only property of the RTCPeerConnection interface returns a RTCSessionDescription describing the session (which includes configuration and media information) for the remote end of the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription)
*/
readonly remoteDescription: RTCSessionDescription | null;
/**
* The **\`sctp\`** read-only property of the RTCPeerConnection interface returns an RTCSctpTransport describing the SCTP transport over which SCTP data is being sent and received.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp)
*/
readonly sctp: RTCSctpTransport | null;
/**
* The **\`signalingState\`** read-only property of the RTCPeerConnection interface returns a string value describing the state of the signaling process on the local end of the connection while connecting or reconnecting to another peer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState)
*/
readonly signalingState: RTCSignalingState;
/**
* The **\`addIceCandidate()\`** method of the RTCPeerConnection interface adds a new remote candidate to the connection's remote description, which describes the state of the remote end of the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate)
*/
addIceCandidate(candidate?: RTCIceCandidateInit | null): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit | null, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/**
* The **\`addTrack()\`** method of the RTCPeerConnection interface adds a new media track to the set of tracks which will be transmitted to the other peer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack)
*/
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
/**
* The **\`addTransceiver()\`** method of the RTCPeerConnection interface creates a new RTCRtpTransceiver and adds it to the set of transceivers associated with the \`RTCPeerConnection\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver)
*/
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
/**
* The **\`close()\`** method of the RTCPeerConnection interface closes the current peer connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close)
*/
close(): void;
/**
* The **\`createAnswer()\`** method of the RTCPeerConnection interface creates an SDP answer to an offer received from a remote peer during the offer/answer negotiation of a WebRTC connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer)
*/
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/**
* The **\`createDataChannel()\`** method of the RTCPeerConnection interface creates a new channel linked with the remote peer, over which any kind of data may be transmitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel)
*/
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
/**
* The **\`createOffer()\`** method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC connection to a remote peer.
*
* [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>;
/**
* The **\`getConfiguration()\`** method of the RTCPeerConnection interface returns an object which indicates the current configuration of the RTCPeerConnection on which the method is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration)
*/
getConfiguration(): RTCConfiguration;
/**
* The **\`getReceivers()\`** method of the RTCPeerConnection interface returns an array of RTCRtpReceiver objects, each of which represents one RTP receiver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers)
*/
getReceivers(): RTCRtpReceiver[];
/**
* The **\`getSenders()\`** method of the RTCPeerConnection interface returns an array of RTCRtpSender objects, each of which represents the RTP sender responsible for transmitting one track's data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders)
*/
getSenders(): RTCRtpSender[];
/**
* The **\`getStats()\`** method of the RTCPeerConnection interface returns a promise which resolves with data providing statistics about either the overall connection or about the specified MediaStreamTrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats)
*/
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
/**
* The **\`getTransceivers()\`** method of the RTCPeerConnection interface returns a list of the RTCRtpTransceiver objects being used to send and receive data on the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers)
*/
getTransceivers(): RTCRtpTransceiver[];
/**
* The **\`removeTrack()\`** method of the RTCPeerConnection interface tells the local end of the connection to stop sending media from the specified track, without actually removing the corresponding RTCRtpSender from the list of senders as reported by RTCPeerConnection.getSenders().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack)
*/
removeTrack(sender: RTCRtpSender): void;
/**
* The **\`restartIce()\`** method of the RTCPeerConnection interface allows a web application to request that ICE candidate gathering be redone on both ends of the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce)
*/
restartIce(): void;
/**
* The **\`setConfiguration()\`** method of the RTCPeerConnection interface sets the current configuration of the connection based on the values included in the specified object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration)
*/
setConfiguration(configuration?: RTCConfiguration): void;
/**
* The **\`setLocalDescription()\`** method of the RTCPeerConnection interface changes the local description associated with the connection.
*
* [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>;
/**
* The **\`setRemoteDescription()\`** method of the RTCPeerConnection interface sets the specified session description as the remote peer's current offer or answer.
*
* [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;
/**
* The **\`generateCertificate()\`** static function of the RTCPeerConnection interface creates an X.509 certificate and corresponding private key, returning a promise that resolves with the new RTCCertificate once it's generated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static)
*/
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};
/**
* The **\`RTCPeerConnectionIceErrorEvent\`** interface\u2014based upon the Event interface\u2014provides details pertaining to an ICE error announced by sending an RTCPeerConnection.icecandidateerror_event event to the RTCPeerConnection object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent)
*/
interface RTCPeerConnectionIceErrorEvent extends Event {
/**
* The RTCPeerConnectionIceErrorEvent property **\`address\`** is a string which indicates the local IP address being used to communicate with the STUN or TURN server during negotiations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
*/
readonly address: string | null;
readonly errorCode: number;
readonly errorText: string;
readonly port: number | null;
readonly url: string;
}
declare var RTCPeerConnectionIceErrorEvent: {
prototype: RTCPeerConnectionIceErrorEvent;
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
};
/**
* The **\`RTCPeerConnectionIceEvent\`** interface represents events that occur in relation to ICE candidates with the target, usually an RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent)
*/
interface RTCPeerConnectionIceEvent extends Event {
/**
* The read-only **\`candidate\`** property of the RTCPeerConnectionIceEvent interface returns the An RTCIceCandidate object representing the ICE candidate that has been received, or \`null\` to indicate that there are no further candidates for this negotiation session.
*
* [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;
};
/**
* The **\`RTCRtpReceiver\`** interface of the WebRTC API 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 {
/**
* The **\`jitterBufferTarget\`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)
*/
jitterBufferTarget: DOMHighResTimeStamp | null;
/**
* The **\`track\`** read-only property of the associated with the current RTCRtpReceiver instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track)
*/
readonly track: MediaStreamTrack;
/**
* The **\`transform\`** property of the RTCRtpReceiver object is used to insert a transform stream (TransformStream) running in a worker thread into the receiver pipeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform)
*/
transform: RTCRtpTransform | null;
/**
* The read-only **\`transport\`** property of an used to interact with the underlying transport over which the receiver is exchanging Real-time Transport Control Protocol (RTCP) packets.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport)
*/
readonly transport: RTCDtlsTransport | null;
/**
* The **\`getContributingSources()\`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one CSRC (contributing source) identifier received by the current \`RTCRtpReceiver\` in the last ten seconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources)
*/
getContributingSources(): RTCRtpContributingSource[];
/**
* The **\`getParameters()\`** method of the RTCRtpReceiver interface returns an object describing the current configuration for how the receiver's RTCRtpReceiver.track is decoded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters)
*/
getParameters(): RTCRtpReceiveParameters;
/**
* The RTCRtpReceiver method **\`getStats()\`** asynchronously requests an RTCStatsReport object which provides statistics about incoming traffic on the owning RTCPeerConnection, returning a Promise whose fulfillment handler will be called once the results are available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats)
*/
getStats(): Promise<RTCStatsReport>;
/**
* The **\`getSynchronizationSources()\`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one SSRC (synchronization source) identifier received by the current \`RTCRtpReceiver\` in the last ten seconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)
*/
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
declare var RTCRtpReceiver: {
prototype: RTCRtpReceiver;
new(): RTCRtpReceiver;
/**
* The _static method_ **\`RTCRtpReceiver.getCapabilities()\`** returns an object describing the codec and header extension capabilities supported by RTCRtpReceiver objects on the current device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static)
*/
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/**
* The **\`RTCRtpScriptTransform\`** interface of the WebRTC API is used to insert a WebRTC Encoded Transform (a TransformStream running in a worker thread) into the WebRTC sender and receiver pipelines.
*
* [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;
};
/**
* The **\`RTCRtpSender\`** interface 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 {
/**
* The read-only **\`dtmf\`** property on the **RTCRtpSender** interface returns a over the RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf)
*/
readonly dtmf: RTCDTMFSender | null;
/**
* The **\`track\`** read-only property of the RTCRtpSender interface returns the MediaStreamTrack which is being handled by the \`RTCRtpSender\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track)
*/
readonly track: MediaStreamTrack | null;
/**
* The **\`transform\`** property of the RTCRtpSender object is used to insert a transform stream (TransformStream) running in a worker thread into the sender pipeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform)
*/
transform: RTCRtpTransform | null;
/**
* The read-only **\`transport\`** property of an used to interact with the underlying transport over which the sender is exchanging Real-time Transport Control Protocol (RTCP) packets.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport)
*/
readonly transport: RTCDtlsTransport | null;
/**
* The **\`getParameters()\`** method of the RTCRtpSender interface returns an object describing the current configuration for how the sender's RTCRtpSender.track will be encoded and transmitted to a remote RTCRtpReceiver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters)
*/
getParameters(): RTCRtpSendParameters;
/**
* The RTCRtpSender method **\`getStats()\`** asynchronously requests an RTCStatsReport object which provides statistics about outgoing traffic on the RTCPeerConnection which owns the sender, returning a Promise which is fulfilled when the results are available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats)
*/
getStats(): Promise<RTCStatsReport>;
/**
* The RTCRtpSender method **\`replaceTrack()\`** replaces the track currently being used as the sender's source with a new MediaStreamTrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack)
*/
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
/**
* The **\`setParameters()\`** method of the RTCRtpSender interface applies changes the configuration of sender's RTCRtpSender.track, which is the MediaStreamTrack for which the \`RTCRtpSender\` is responsible.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters)
*/
setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;
/**
* The RTCRtpSender method **\`setStreams()\`** associates the sender's RTCRtpSender.track with the specified MediaStream objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams)
*/
setStreams(...streams: MediaStream[]): void;
}
declare var RTCRtpSender: {
prototype: RTCRtpSender;
new(): RTCRtpSender;
/**
* The _static method_ **\`RTCRtpSender.getCapabilities()\`** returns an object describing the codec and header extension capabilities supported by the RTCRtpSender.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static)
*/
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/**
* The WebRTC interface **\`RTCRtpTransceiver\`** describes a permanent pairing of an RTCRtpSender and an RTCRtpReceiver, along with some shared state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver)
*/
interface RTCRtpTransceiver {
/**
* The read-only RTCRtpTransceiver property **\`currentDirection\`** is a string which indicates the current negotiated directionality of the transceiver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection)
*/
readonly currentDirection: RTCRtpTransceiverDirection | null;
/**
* The RTCRtpTransceiver property **\`direction\`** is a string that indicates the transceiver's _preferred_ directionality.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction)
*/
direction: RTCRtpTransceiverDirection;
/**
* The read-only RTCRtpTransceiver interface's **\`mid\`** property specifies the negotiated media ID (\`mid\`) which the local and remote peers have agreed upon to uniquely identify the stream's pairing of sender and receiver.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid)
*/
readonly mid: string | null;
/**
* The read-only **\`receiver\`** property of WebRTC's RTCRtpTransceiver interface indicates the data for the transceiver's stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver)
*/
readonly receiver: RTCRtpReceiver;
/**
* The read-only **\`sender\`** property of WebRTC's RTCRtpTransceiver interface indicates the for the transceiver's stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender)
*/
readonly sender: RTCRtpSender;
/**
* The **\`setCodecPreferences()\`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
*/
setCodecPreferences(codecs: RTCRtpCodec[]): void;
/**
* The **\`stop()\`** method in the RTCRtpTransceiver interface permanently stops the transceiver by stopping both the associated RTCRtpSender and \`\`\`js-nolint stop() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop)
*/
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
interface RTCSctpTransportEventMap {
"statechange": Event;
}
/**
* The **\`RTCSctpTransport\`** interface provides information which describes a Stream Control Transmission Protocol (**SCTP**) transport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport)
*/
interface RTCSctpTransport extends EventTarget {
/**
* The **\`maxChannels\`** read-only property of the RTCSctpTransport interface indicates the maximum number of RTCDataChannel objects that can be opened simultaneously.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels)
*/
readonly maxChannels: number | null;
/**
* The **\`maxMessageSize\`** read-only property of the RTCSctpTransport interface indicates the maximum size of a message that can be sent using the RTCDataChannel.send() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize)
*/
readonly maxMessageSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/statechange_event) */
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
/**
* The **\`state\`** read-only property of the RTCSctpTransport interface provides information which describes a Stream Control Transmission Protocol (SCTP) transport state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state)
*/
readonly state: RTCSctpTransportState;
/**
* The **\`transport\`** read-only property of the RTCSctpTransport interface returns a RTCDtlsTransport object representing the DTLS transport used for the transmission and receipt of data packets.
*
* [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;
};
/**
* The **\`RTCSessionDescription\`** interface describes one end of a connection\u2014or potential connection\u2014and how it's configured.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription)
*/
interface RTCSessionDescription {
/**
* The property **\`RTCSessionDescription.sdp\`** is a read-only string containing the SDP which describes the session.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp)
*/
readonly sdp: string;
/**
* The property **\`RTCSessionDescription.type\`** is a read-only string value which describes the description's type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type)
*/
readonly type: RTCSdpType;
/**
* The **\`RTCSessionDescription.toJSON()\`** method generates a \`\`\`js-nolint toJSON() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON)
*/
toJSON(): RTCSessionDescriptionInit;
}
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
/**
* The **\`RTCStatsReport\`** interface of the WebRTC API provides a statistics report for a RTCPeerConnection, RTCRtpSender, or RTCRtpReceiver.
*
* [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;
};
/**
* The WebRTC API interface **\`RTCTrackEvent\`** represents the RTCPeerConnection.track_event event, which is sent when a new MediaStreamTrack is added to an RTCRtpReceiver which is part of the RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent)
*/
interface RTCTrackEvent extends Event {
/**
* The read-only **\`receiver\`** property of the RTCTrackEvent interface indicates the The RTCRtpReceiver which pairs the \`receiver\` with a sender and other properties which establish a single bidirectional RTP stream for use by the RTCTrackEvent.track associated with the \`RTCTrackEvent\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver)
*/
readonly receiver: RTCRtpReceiver;
/**
* The WebRTC API interface RTCTrackEvent's read-only **\`streams\`** property specifies an array of track being added to the RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams)
*/
readonly streams: ReadonlyArray<MediaStream>;
/**
* The
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track)
*/
readonly track: MediaStreamTrack;
/**
* The WebRTC API interface RTCTrackEvent's read-only **\`transceiver\`** property indicates the The transceiver pairs the track's The RTCRtpTransceiver which pairs the \`receiver\` with a sender and other properties which establish a single bidirectional RTP stream for use by the RTCTrackEvent.track associated with the \`RTCTrackEvent\`.
*
* [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;
};
/**
* The **\`RadioNodeList\`** interface represents a collection of elements in a form returned by a call to HTMLFormControlsCollection.namedItem().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList)
*/
interface RadioNodeList extends NodeListOf<HTMLInputElement> {
/**
* If the underlying element collection contains radio buttons, the **\`RadioNodeList.value\`** property represents the checked radio button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value)
*/
value: string;
}
declare var RadioNodeList: {
prototype: RadioNodeList;
new(): RadioNodeList;
};
/**
* The **\`Range\`** interface represents 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 {
/**
* The **\`Range.commonAncestorContainer\`** read-only property returns the deepest \u2014 or furthest down the document tree \u2014 Node that contains both boundary points of the Range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
*/
readonly commonAncestorContainer: Node;
/**
* The **\`cloneContents()\`** method of the Range interface copies the selected Node children of the range's Range/commonAncestorContainer and puts them in a new DocumentFragment object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents)
*/
cloneContents(): DocumentFragment;
/**
* The **\`Range.cloneRange()\`** method returns a The returned clone is copied by value, not reference, so a change in either \`\`\`js-nolint cloneRange() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange)
*/
cloneRange(): Range;
/**
* The **\`collapse()\`** method of the Range interface collapses the A collapsed Range is empty, containing no content, specifying a single-point in a DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse)
*/
collapse(toStart?: boolean): void;
/**
* The **\`compareBoundaryPoints()\`** method of the Range interface compares the boundary points of the Range with those of another range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints)
*/
compareBoundaryPoints(how: number, sourceRange: Range): number;
/**
* The **\`comparePoint()\`** method of the Range interface determines whether a specified point is before, within, or after the Range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint)
*/
comparePoint(node: Node, offset: number): number;
/**
* The **\`Range.createContextualFragment()\`** method returns a XML fragment parsing algorithm with the start of the range (the _parent_ of the selected node) as the context node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment)
*/
createContextualFragment(string: string): DocumentFragment;
/**
* The **\`Range.deleteContents()\`** method removes all completely-selected Node within this range from the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents)
*/
deleteContents(): void;
/**
* The **\`Range.detach()\`** method does nothing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach)
*/
detach(): void;
/**
* The **\`extractContents()\`** method of the Range interface is similar to a combination of Range.cloneContents() and Range.deleteContents().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents)
*/
extractContents(): DocumentFragment;
/**
* The **\`Range.getBoundingClientRect()\`** method returns a DOMRect object that bounds the contents of the range; this is a rectangle enclosing the union of the bounding rectangles for all the elements in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect)
*/
getBoundingClientRect(): DOMRect;
/**
* The **\`Range.getClientRects()\`** method returns a list of DOMRect objects representing the area of the screen occupied by the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects)
*/
getClientRects(): DOMRectList;
/**
* The **\`Range.insertNode()\`** method inserts a node at the start of the Range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode)
*/
insertNode(node: Node): void;
/**
* The **\`Range.intersectsNode()\`** method returns a boolean indicating whether the given Node intersects the Range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode)
*/
intersectsNode(node: Node): boolean;
/**
* The **\`isPointInRange()\`** method of the Range interface determines whether a specified point is within the Range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange)
*/
isPointInRange(node: Node, offset: number): boolean;
/**
* The **\`Range.selectNode()\`** method sets the the parent of the _referenceNode_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode)
*/
selectNode(node: Node): void;
/**
* The **\`Range.selectNodeContents()\`** method sets the Range to contain the contents of a Node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents)
*/
selectNodeContents(node: Node): void;
/**
* The **\`Range.setEnd()\`** method sets the end position of a Range to be located at the given offset into the specified node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd)
*/
setEnd(node: Node, offset: number): void;
/**
* The **\`Range.setEndAfter()\`** method sets the end position of a \`Node\` of end of the \`Range\` will be the same as that for the \`referenceNode\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter)
*/
setEndAfter(node: Node): void;
/**
* The **\`Range.setEndBefore()\`** method sets the end position of a \`Range\` relative to another Node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore)
*/
setEndBefore(node: Node): void;
/**
* The **\`Range.setStart()\`** method sets the start position of a If the \`startNode\` is a Node of type Text, the number of characters from the start of \`startNode\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart)
*/
setStart(node: Node, offset: number): void;
/**
* The **\`Range.setStartAfter()\`** method sets the start position of a Range relative to a Node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter)
*/
setStartAfter(node: Node): void;
/**
* The **\`Range.setStartBefore()\`** method sets the start position of a Range relative to another Node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore)
*/
setStartBefore(node: Node): void;
/**
* The **\`surroundContents()\`** method of the Range interface surrounds the selected content by a provided node.
*
* [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;
};
/**
* The **\`ReadableByteStreamController\`** interface of the Streams API represents a controller for a readable byte stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
*/
interface ReadableByteStreamController {
/**
* The **\`byobRequest\`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or \`null\` if there are no pending requests.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)
*/
readonly byobRequest: ReadableStreamBYOBRequest | null;
/**
* The **\`desiredSize\`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its 'desired size'.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
*/
readonly desiredSize: number | null;
/**
* The **\`close()\`** method of the ReadableByteStreamController interface closes the associated stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)
*/
close(): void;
/**
* The **\`enqueue()\`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
*/
enqueue(chunk: ArrayBufferView<ArrayBuffer>): void;
/**
* The **\`error()\`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)
*/
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/**
* The \`ReadableStream\` interface of the Streams API represents a readable stream of byte data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
*/
interface ReadableStream<R = any> {
/**
* The **\`locked\`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
*/
readonly locked: boolean;
/**
* The **\`cancel()\`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
*/
cancel(reason?: any): Promise<void>;
/**
* The **\`getReader()\`** method of the ReadableStream interface creates a reader and locks the stream to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
*/
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
/**
* The **\`pipeThrough()\`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
*/
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
/**
* The **\`pipeTo()\`** method of the ReadableStream interface pipes the current \`ReadableStream\` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
*/
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
/**
* The **\`tee()\`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
*
* [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<ArrayBuffer>>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
/**
* The \`ReadableStreamBYOBReader\` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
*/
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/**
* The **\`read()\`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
*/
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/**
* The **\`releaseLock()\`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
*/
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream<Uint8Array<ArrayBuffer>>): ReadableStreamBYOBReader;
};
/**
* The **\`ReadableStreamBYOBRequest\`** interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
*/
interface ReadableStreamBYOBRequest {
/**
* The **\`view\`** getter property of the ReadableStreamBYOBRequest interface returns the current view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
*/
readonly view: ArrayBufferView<ArrayBuffer> | null;
/**
* The **\`respond()\`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)
*/
respond(bytesWritten: number): void;
/**
* The **\`respondWithNewView()\`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)
*/
respondWithNewView(view: ArrayBufferView<ArrayBuffer>): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
/**
* The **\`ReadableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
*/
interface ReadableStreamDefaultController<R = any> {
/**
* The **\`desiredSize\`** read-only property of the required to fill the stream's internal queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
*/
readonly desiredSize: number | null;
/**
* The **\`close()\`** method of the ReadableStreamDefaultController interface closes the associated stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)
*/
close(): void;
/**
* The **\`enqueue()\`** method of the \`\`\`js-nolint enqueue(chunk) \`\`\` - \`chunk\` - : The chunk to enqueue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
*/
enqueue(chunk?: R): void;
/**
* The **\`error()\`** method of the with the associated stream to error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
*/
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
/**
* The **\`ReadableStreamDefaultReader\`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
*/
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
/**
* The **\`read()\`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)
*/
read(): Promise<ReadableStreamReadResult<R>>;
/**
* The **\`releaseLock()\`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream.
*
* [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<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
cancel(reason?: any): Promise<void>;
}
interface RemotePlaybackEventMap {
"connect": Event;
"connecting": Event;
"disconnect": Event;
}
/**
* The **\`RemotePlayback\`** interface of the Remote Playback API allows the page to detect availability of remote playback devices, then connect to and control playing on these devices.
*
* [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;
/**
* The **\`state\`** read-only property of the RemotePlayback interface returns the current state of the \`RemotePlayback\` connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state)
*/
readonly state: RemotePlaybackState;
/**
* The **\`cancelWatchAvailability()\`** method of the RemotePlayback interface cancels the request to watch for one or all available devices.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability)
*/
cancelWatchAvailability(id?: number): Promise<void>;
/**
* The **\`prompt()\`** method of the RemotePlayback interface prompts the user to select an available remote playback device and give permission for the current media to be played using that device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt)
*/
prompt(): Promise<void>;
/**
* The **\`watchAvailability()\`** method of the RemotePlayback interface watches the list of available remote playback devices and returns a Promise that resolves with the \`callbackId\` of a remote playback device.
*
* [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;
};
/**
* The \`Report\` interface of the Reporting API represents a single report.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
*/
interface Report {
/**
* The **\`body\`** read-only property of the Report interface returns the body of the report, which is a \`ReportBody\` object containing the detailed report information.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
*/
readonly body: ReportBody | null;
/**
* The **\`type\`** read-only property of the Report interface returns the type of report generated, e.g., \`deprecation\` or \`intervention\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
*/
readonly type: string;
/**
* The **\`url\`** read-only property of the Report interface returns the URL of the document that generated the report.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
*/
readonly url: string;
toJSON(): any;
}
declare var Report: {
prototype: Report;
new(): Report;
};
/**
* The **\`ReportBody\`** interface of the Reporting API represents the body of a report.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
*/
interface ReportBody {
/**
* The **\`toJSON()\`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the \`ReportBody\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
*/
toJSON(): any;
}
declare var ReportBody: {
prototype: ReportBody;
new(): ReportBody;
};
/**
* The \`ReportingObserver\` interface of the Reporting API allows you to collect and access reports.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver)
*/
interface ReportingObserver {
/**
* The **\`disconnect()\`** method of the previously started observing from collecting reports.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect)
*/
disconnect(): void;
/**
* The **\`observe()\`** method of the collecting reports in its report queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe)
*/
observe(): void;
/**
* The **\`takeRecords()\`** method of the in the observer's report queue, and empties the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords)
*/
takeRecords(): ReportList;
}
declare var ReportingObserver: {
prototype: ReportingObserver;
new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};
/**
* The **\`Request\`** interface of the Fetch API represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
*/
interface Request extends Body {
/**
* The **\`cache\`** read-only property of the Request interface contains the cache mode of the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
readonly cache: RequestCache;
/**
* The **\`credentials\`** read-only property of the Request interface reflects the value given to the Request.Request() constructor in the \`credentials\` option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
*/
readonly credentials: RequestCredentials;
/**
* The **\`destination\`** read-only property of the **Request** interface returns a string describing the type of content being requested.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
*/
readonly destination: RequestDestination;
/**
* The **\`headers\`** read-only property of the with the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
*/
readonly headers: Headers;
/**
* The **\`integrity\`** read-only property of the Request interface contains the subresource integrity value of the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
/**
* The **\`keepalive\`** read-only property of the Request interface contains the request's \`keepalive\` setting (\`true\` or \`false\`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
*/
readonly keepalive: boolean;
/**
* The **\`method\`** read-only property of the \`POST\`, etc.) A String indicating the method of the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
*/
readonly method: string;
/**
* The **\`mode\`** read-only property of the Request interface contains the mode of the request (e.g., \`cors\`, \`no-cors\`, \`same-origin\`, or \`navigate\`.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
*/
readonly mode: RequestMode;
/**
* The **\`redirect\`** read-only property of the Request interface contains the mode for how redirects are handled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
*/
readonly redirect: RequestRedirect;
/**
* The **\`referrer\`** read-only property of the Request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
*/
readonly referrer: string;
/**
* The **\`referrerPolicy\`** read-only property of the referrer information, sent in the Referer header, should be included with the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* The read-only **\`signal\`** property of the Request interface returns the AbortSignal associated with the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
*/
readonly signal: AbortSignal;
/**
* The **\`url\`** read-only property of the Request interface contains the URL of the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
*/
readonly url: string;
/**
* The **\`clone()\`** method of the Request interface creates a copy of the current \`Request\` object.
*
* [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;
};
/**
* The **\`ResizeObserver\`** interface reports changes to the dimensions of an Element's content or border box, or the bounding box of an SVGElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver)
*/
interface ResizeObserver {
/**
* The **\`disconnect()\`** method of the or SVGElement targets.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect)
*/
disconnect(): void;
/**
* The **\`observe()\`** method of the \`\`\`js-nolint observe(target) observe(target, options) \`\`\` - \`target\` - : A reference to an Element or SVGElement to be observed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe)
*/
observe(target: Element, options?: ResizeObserverOptions): void;
/**
* The **\`unobserve()\`** method of the \`\`\`js-nolint unobserve(target) \`\`\` - \`target\` - : A reference to an Element or SVGElement to be unobserved.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve)
*/
unobserve(target: Element): void;
}
declare var ResizeObserver: {
prototype: ResizeObserver;
new(callback: ResizeObserverCallback): ResizeObserver;
};
/**
* The **\`ResizeObserverEntry\`** interface represents the object passed to the ResizeObserver.ResizeObserver constructor's callback function, which allows you to access the new dimensions of the Element or SVGElement being observed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry)
*/
interface ResizeObserverEntry {
/**
* The **\`borderBoxSize\`** read-only property of the ResizeObserverEntry interface returns an array containing the new border box size of the observed element when the callback is run.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize)
*/
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
/**
* The **\`contentBoxSize\`** read-only property of the ResizeObserverEntry interface returns an array containing the new content box size of the observed element when the callback is run.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize)
*/
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
/**
* The \`contentRect\` read-only property of the object containing the new size of the observed element when the callback is run.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect)
*/
readonly contentRect: DOMRectReadOnly;
/**
* The **\`devicePixelContentBoxSize\`** read-only property of the ResizeObserverEntry interface returns an array containing the size in device pixels of the observed element when the callback is run.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize)
*/
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
/**
* The **\`target\`** read-only property of the An Element or SVGElement representing the element being observed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target)
*/
readonly target: Element;
}
declare var ResizeObserverEntry: {
prototype: ResizeObserverEntry;
new(): ResizeObserverEntry;
};
/**
* The **\`ResizeObserverSize\`** interface of the Resize Observer API is used by the ResizeObserverEntry interface to access the box sizing properties of the element being observed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize)
*/
interface ResizeObserverSize {
/**
* The **\`blockSize\`** read-only property of the ResizeObserverSize interface returns the length of the observed element's border box in the block dimension.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize)
*/
readonly blockSize: number;
/**
* The **\`inlineSize\`** read-only property of the ResizeObserverSize interface returns the length of the observed element's border box in the inline dimension.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize)
*/
readonly inlineSize: number;
}
declare var ResizeObserverSize: {
prototype: ResizeObserverSize;
new(): ResizeObserverSize;
};
/**
* The **\`Response\`** interface of the Fetch API represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
*/
interface Response extends Body {
/**
* The **\`headers\`** read-only property of the with the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
*/
readonly headers: Headers;
/**
* The **\`ok\`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
*/
readonly ok: boolean;
/**
* The **\`redirected\`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
*/
readonly redirected: boolean;
/**
* The **\`status\`** read-only property of the Response interface contains the HTTP status codes of the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
*/
readonly status: number;
/**
* The **\`statusText\`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
*/
readonly statusText: string;
/**
* The **\`type\`** read-only property of the Response interface contains the type of the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
*/
readonly type: ResponseType;
/**
* The **\`url\`** read-only property of the Response interface contains the URL of the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
*/
readonly url: string;
/**
* The **\`clone()\`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
*
* [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;
/**
* The **\`error()\`** static method of the Response interface returns a new \`Response\` object associated with a network error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static)
*/
error(): Response;
/**
* The **\`json()\`** static method of the Response interface returns a \`Response\` that contains the provided JSON data as body, and a Content-Type header which is set to \`application/json\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
*/
json(data: any, init?: ResponseInit): Response;
/**
* The **\`redirect()\`** static method of the Response interface returns a \`Response\` resulting in a redirect to the specified URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)
*/
redirect(url: string | URL, status?: number): Response;
};
/**
* The **\`SVGAElement\`** interface provides access to the properties of an 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;
get relList(): DOMTokenList;
set relList(value: string);
/**
* The **\`SVGAElement.target\`** read-only property of SVGAElement returns an SVGAnimatedString object that specifies the portion of a target window, frame, pane into which a document is to be opened when a link is activated.
*
* [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;
};
/**
* The \`SVGAngle\` interface is used to represent a value that can be an &lt;angle&gt; or &lt;number&gt; value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle)
*/
interface SVGAngle {
/**
* The **\`unitType\`** property of the SVGAngle interface is one of the unit type constants and represents the units in which this angle's value is expressed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/unitType)
*/
readonly unitType: number;
/**
* The \`value\` property of the SVGAngle interface represents the floating point value of the \`<angle>\` in degrees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/value)
*/
value: number;
/**
* The \`valueAsString\` property of the SVGAngle interface represents the angle's value as a string, in the units expressed by SVGAngle.unitType.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueAsString)
*/
valueAsString: string;
/**
* The \`valueInSpecifiedUnits\` property of the SVGAngle interface represents the value of this angle as a number, in the units expressed by the angle's SVGAngle.unitType.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueInSpecifiedUnits)
*/
valueInSpecifiedUnits: number;
/**
* The \`convertToSpecifiedUnits()\` method of the SVGAngle interface allows you to convert the angle's value to the specified unit type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/convertToSpecifiedUnits)
*/
convertToSpecifiedUnits(unitType: number): void;
/**
* The \`newValueSpecifiedUnits()\` method of the SVGAngle interface sets the value to a number with an associated SVGAngle.unitType, thereby replacing the values for all of the attributes on the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/newValueSpecifiedUnits)
*/
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;
};
/**
* The **\`SVGAnimateElement\`** interface corresponds to the animate element.
*
* [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;
};
/**
* The **\`SVGAnimateMotionElement\`** interface corresponds to the animateMotion element.
*
* [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;
};
/**
* The \`SVGAnimateTransformElement\` interface corresponds to the animateTransform element.
*
* [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;
};
/**
* The **\`SVGAnimatedAngle\`** interface is used for attributes of basic type \\<angle> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle)
*/
interface SVGAnimatedAngle {
/**
* The **\`animVal\`** read-only property of the SVGAnimatedAngle interface represents the current animated value of the associated \`<angle>\` on an SVG element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/animVal)
*/
readonly animVal: SVGAngle;
/**
* The **\`baseVal\`** read-only property of the SVGAnimatedAngle interface represents the base (non-animated) value of the associated \`<angle>\` on an SVG element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/baseVal)
*/
readonly baseVal: SVGAngle;
}
declare var SVGAnimatedAngle: {
prototype: SVGAnimatedAngle;
new(): SVGAnimatedAngle;
};
/**
* The **\`SVGAnimatedBoolean\`** interface is used for attributes of type boolean which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean)
*/
interface SVGAnimatedBoolean {
/**
* The **\`animVal\`** read-only property of the SVGAnimatedBoolean interface represents the current animated value of the associated animatable boolean SVG attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/animVal)
*/
readonly animVal: boolean;
/**
* The **\`baseVal\`** property of the SVGAnimatedBoolean interface is the value of the associated animatable boolean SVG attribute in its base (none-animated) state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/baseVal)
*/
baseVal: boolean;
}
declare var SVGAnimatedBoolean: {
prototype: SVGAnimatedBoolean;
new(): SVGAnimatedBoolean;
};
/**
* The **\`SVGAnimatedEnumeration\`** interface describes attribute values which are constants from a particular enumeration and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration)
*/
interface SVGAnimatedEnumeration {
/**
* The **\`animVal\`** property of the SVGAnimatedEnumeration interface contains the current value of an SVG enumeration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/animVal)
*/
readonly animVal: number;
/**
* The **\`baseVal\`** property of the SVGAnimatedEnumeration interface contains the initial value of an SVG enumeration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/baseVal)
*/
baseVal: number;
}
declare var SVGAnimatedEnumeration: {
prototype: SVGAnimatedEnumeration;
new(): SVGAnimatedEnumeration;
};
/**
* The **\`SVGAnimatedInteger\`** interface is used for attributes of basic type \\<integer> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger)
*/
interface SVGAnimatedInteger {
/**
* The **\`animVal\`** property of the SVGAnimatedInteger interface represents the animated value of an \`<integer>\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/animVal)
*/
readonly animVal: number;
/**
* The **\`baseVal\`** property of the SVGAnimatedInteger interface represents the base (non-animated) value of an animatable \`<integer>\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/baseVal)
*/
baseVal: number;
}
declare var SVGAnimatedInteger: {
prototype: SVGAnimatedInteger;
new(): SVGAnimatedInteger;
};
/**
* The **\`SVGAnimatedLength\`** interface represents attributes of type \\<length> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)
*/
interface SVGAnimatedLength {
/**
* The **\`animVal\`** property of the SVGAnimatedLength interface contains the current value of an SVG enumeration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/animVal)
*/
readonly animVal: SVGLength;
/**
* The **\`baseVal\`** property of the SVGAnimatedLength interface contains the initial value of an SVG enumeration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/baseVal)
*/
readonly baseVal: SVGLength;
}
declare var SVGAnimatedLength: {
prototype: SVGAnimatedLength;
new(): SVGAnimatedLength;
};
/**
* The **\`SVGAnimatedLengthList\`** interface is used for attributes of type SVGLengthList which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList)
*/
interface SVGAnimatedLengthList {
/**
* The **\`animVal\`** read-only property of the SVGAnimatedLengthList interface represents the animated value of an attribute that accepts a list of \`<length>\`, \`<percentage>\`, or \`<number>\` values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/animVal)
*/
readonly animVal: SVGLengthList;
/**
* The **\`baseVal\`** read-only property of the SVGAnimatedLengthList interface represents the base (non-animated) value of an animatable attribute that accepts a list of \`<length>\`, \`<percentage>\`, or \`<number>\` values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/baseVal)
*/
readonly baseVal: SVGLengthList;
}
declare var SVGAnimatedLengthList: {
prototype: SVGAnimatedLengthList;
new(): SVGAnimatedLengthList;
};
/**
* The **\`SVGAnimatedNumber\`** interface represents attributes of type \\<number> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber)
*/
interface SVGAnimatedNumber {
/**
* The **\`animVal\`** read-only property of the SVGAnimatedNumber interface represents the animated value of an SVG element's numeric attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/animVal)
*/
readonly animVal: number;
/**
* The **\`baseVal\`** property of the SVGAnimatedNumber interface represents the base (non-animated) value of an animatable numeric attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/baseVal)
*/
baseVal: number;
}
declare var SVGAnimatedNumber: {
prototype: SVGAnimatedNumber;
new(): SVGAnimatedNumber;
};
/**
* The **\`SVGAnimatedNumberList\`** interface represents a list of attributes of type \\<number> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList)
*/
interface SVGAnimatedNumberList {
/**
* The **\`animVal\`** read-only property of the SVGAnimatedNumberList interface represents the current animated value of an animatable attribute that accepts a list of \`<number>\` values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/animVal)
*/
readonly animVal: SVGNumberList;
/**
* The **\`baseVal\`** read-only property of the SVGAnimatedNumberList interface represents the base (non-animated) value of an animatable attribute that accepts a list of \`<number>\` values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/baseVal)
*/
readonly baseVal: SVGNumberList;
}
declare var SVGAnimatedNumberList: {
prototype: SVGAnimatedNumberList;
new(): SVGAnimatedNumberList;
};
interface SVGAnimatedPoints {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/animatedPoints) */
readonly animatedPoints: SVGPointList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/points) */
readonly points: SVGPointList;
}
/**
* The **\`SVGAnimatedPreserveAspectRatio\`** interface represents attributes of type SVGPreserveAspectRatio which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)
*/
interface SVGAnimatedPreserveAspectRatio {
/**
* The **\`animVal\`** read-only property of the SVGAnimatedPreserveAspectRatio interface represents the value of the preserveAspectRatio attribute of an SVG element after any animations or transformations are applied.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal)
*/
readonly animVal: SVGPreserveAspectRatio;
/**
* The **\`baseVal\`** read-only property of the SVGAnimatedPreserveAspectRatio interface represents the base (non-animated) value of the preserveAspectRatio attribute of an SVG element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal)
*/
readonly baseVal: SVGPreserveAspectRatio;
}
declare var SVGAnimatedPreserveAspectRatio: {
prototype: SVGAnimatedPreserveAspectRatio;
new(): SVGAnimatedPreserveAspectRatio;
};
/**
* The **\`SVGAnimatedRect\`** interface represents an SVGRect attribute that can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect)
*/
interface SVGAnimatedRect {
/**
* The **\`animVal\`** read-only property of the SVGAnimatedRect interface represents the current animated value of the \`viewBox\` attribute of an SVG element as a read-only DOMRectReadOnly object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal)
*/
readonly animVal: DOMRectReadOnly;
/**
* The **\`baseVal\`** read-only property of the SVGAnimatedRect interface represents the current non-animated value of the \`viewBox\` attribute of an SVG element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal)
*/
readonly baseVal: DOMRect;
}
declare var SVGAnimatedRect: {
prototype: SVGAnimatedRect;
new(): SVGAnimatedRect;
};
/**
* The **\`SVGAnimatedString\`** interface represents string attributes which can be animated from each SVG declaration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)
*/
interface SVGAnimatedString {
/**
* The \`animVal\` read-only property of the SVGAnimatedString interface contains the same value as the SVGAnimatedString.baseVal property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal)
*/
readonly animVal: string;
/**
* BaseVal gets or sets the base value of the given attribute before any animations are applied.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal)
*/
baseVal: string;
}
declare var SVGAnimatedString: {
prototype: SVGAnimatedString;
new(): SVGAnimatedString;
};
/**
* The **\`SVGAnimatedTransformList\`** interface represents attributes which take a list of numbers and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList)
*/
interface SVGAnimatedTransformList {
/**
* The **\`animVal\`** read-only property of the SVGAnimatedTransformList interface represents the animated value of the \`transform\` attribute of an SVG element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/animVal)
*/
readonly animVal: SVGTransformList;
/**
* The **\`baseVal\`** read-only property of the SVGAnimatedTransformList interface represents the non-animated value of the \`transform\` attribute of an SVG element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/baseVal)
*/
readonly baseVal: SVGTransformList;
}
declare var SVGAnimatedTransformList: {
prototype: SVGAnimatedTransformList;
new(): SVGAnimatedTransformList;
};
/**
* The **\`SVGAnimationElement\`** interface is the base interface for all of the animation element interfaces: SVGAnimateElement, SVGSetElement, SVGAnimateColorElement, SVGAnimateMotionElement and SVGAnimateTransformElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement)
*/
interface SVGAnimationElement extends SVGElement, SVGTests {
/**
* The **\`targetElement\`** read-only property of the SVGAnimationElement interface refers to the element which is being animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement)
*/
readonly targetElement: SVGElement | null;
/**
* The SVGAnimationElement method \`beginElement()\` creates a begin instance time for the current time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElement)
*/
beginElement(): void;
/**
* The SVGAnimationElement method \`beginElementAt()\` creates a begin instance time for the current time plus the specified offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElementAt)
*/
beginElementAt(offset: number): void;
/**
* The SVGAnimationElement method \`endElement()\` creates an end instance time for the current time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElement)
*/
endElement(): void;
/**
* The SVGAnimationElement method \`endElementAt()\` creates an end instance time for the current time plus the specified offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElementAt)
*/
endElementAt(offset: number): void;
/**
* The SVGAnimationElement method \`getCurrentTime()\` returns a float representing the current time in seconds relative to time zero for the given time container.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getCurrentTime)
*/
getCurrentTime(): number;
/**
* The SVGAnimationElement method \`getSimpleDuration()\` returns a float representing the number of seconds for the simple duration for this animation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getSimpleDuration)
*/
getSimpleDuration(): number;
/**
* The SVGAnimationElement method \`getStartTime()\` returns a float representing the start time, in seconds, for this animation element's current interval, if it exists, regardless of whether the interval has begun yet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getStartTime)
*/
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;
};
/**
* The **\`SVGCircleElement\`** interface is an interface for the circle element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement)
*/
interface SVGCircleElement extends SVGGeometryElement {
/**
* The **\`cx\`** read-only property of the SVGCircleElement interface reflects the cx attribute of a circle element and by that defines the x-coordinate of the circle's center.< If unspecified, the effect is as if the value is set to \`0\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx)
*/
readonly cx: SVGAnimatedLength;
/**
* The **\`cy\`** read-only property of the SVGCircleElement interface reflects the cy attribute of a circle element and by that defines the y-coordinate of the circle's center.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy)
*/
readonly cy: SVGAnimatedLength;
/**
* The **\`r\`** read-only property of the SVGCircleElement interface reflects the r attribute of a circle element and by that defines the radius of the circle.
*
* [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;
};
/**
* The **\`SVGClipPathElement\`** interface 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 {
/**
* The read-only **\`clipPathUnits\`** property of the SVGClipPathElement interface reflects the clipPathUnits attribute of a clipPath element which defines the coordinate system to use for the content of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits)
*/
readonly clipPathUnits: SVGAnimatedEnumeration;
/**
* The read-only **\`transform\`** property of the SVGClipPathElement interface reflects the transform attribute of a clipPath element, that is a list of transformations applied to the element.
*
* [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;
};
/**
* The **\`SVGComponentTransferFunctionElement\`** interface represents a base interface used by the component transfer function interfaces.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement)
*/
interface SVGComponentTransferFunctionElement extends SVGElement {
/**
* The **\`amplitude\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the amplitude attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/amplitude)
*/
readonly amplitude: SVGAnimatedNumber;
/**
* The **\`exponent\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the exponent attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/exponent)
*/
readonly exponent: SVGAnimatedNumber;
/**
* The **\`intercept\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the intercept attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/intercept)
*/
readonly intercept: SVGAnimatedNumber;
/**
* The **\`offset\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the offset attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/offset)
*/
readonly offset: SVGAnimatedNumber;
/**
* The **\`slope\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the slope attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/slope)
*/
readonly slope: SVGAnimatedNumber;
/**
* The **\`tableValues\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the tableValues attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/tableValues)
*/
readonly tableValues: SVGAnimatedNumberList;
/**
* The **\`type\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the type attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/type)
*/
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;
};
/**
* The **\`SVGDefsElement\`** interface 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;
};
/**
* The **\`SVGDescElement\`** interface 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;
/**
* The **\`ownerSVGElement\`** property of the SVGElement interface reflects the nearest ancestor svg element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/ownerSVGElement)
*/
readonly ownerSVGElement: SVGSVGElement | null;
/**
* The **\`viewportElement\`** property of the SVGElement interface represents the \`SVGElement\` which established the current viewport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/viewportElement)
*/
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;
};
/**
* The **\`SVGEllipseElement\`** interface provides access to the properties of ellipse elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement)
*/
interface SVGEllipseElement extends SVGGeometryElement {
/**
* The **\`cx\`** read-only property of the SVGEllipseElement interface describes the x-axis coordinate of the center of the ellipse as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/cx)
*/
readonly cx: SVGAnimatedLength;
/**
* The **\`cy\`** read-only property of the SVGEllipseElement interface describes the y-axis coordinate of the center of the ellipse as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/cy)
*/
readonly cy: SVGAnimatedLength;
/**
* The **\`rx\`** read-only property of the SVGEllipseElement interface describes the x-axis radius of the ellipse as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/rx)
*/
readonly rx: SVGAnimatedLength;
/**
* The **\`ry\`** read-only property of the SVGEllipseElement interface describes the y-axis radius of the ellipse as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/ry)
*/
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;
};
/**
* The **\`SVGFEBlendElement\`** interface corresponds to the feBlend element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement)
*/
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFEBlendElement interface reflects the in attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`in2\`** read-only property of the SVGFEBlendElement interface reflects the in2 attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/in2)
*/
readonly in2: SVGAnimatedString;
/**
* The **\`mode\`** read-only property of the SVGFEBlendElement interface reflects the mode attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/mode)
*/
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;
};
/**
* The **\`SVGFEColorMatrixElement\`** interface corresponds to the feColorMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)
*/
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFEColorMatrixElement interface reflects the in attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`type\`** read-only property of the SVGFEColorMatrixElement interface reflects the type attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type)
*/
readonly type: SVGAnimatedEnumeration;
/**
* The **\`values\`** read-only property of the SVGFEColorMatrixElement interface reflects the values attribute of the given element.
*
* [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;
};
/**
* The **\`SVGFEComponentTransferElement\`** interface corresponds to the feComponentTransfer element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement)
*/
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFEComponentTransferElement interface reflects the in attribute of the given feComponentTransfer element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement/in1)
*/
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;
};
/**
* The **\`SVGFECompositeElement\`** interface corresponds to the feComposite element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement)
*/
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFECompositeElement interface reflects the in attribute of the given feComposite element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`in2\`** read-only property of the SVGFECompositeElement interface reflects the in2 attribute of the given feComposite element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/in2)
*/
readonly in2: SVGAnimatedString;
/**
* The **\`k1\`** read-only property of the SVGFECompositeElement interface reflects the k1 attribute of the given feComposite element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k1)
*/
readonly k1: SVGAnimatedNumber;
/**
* The **\`k2\`** read-only property of the SVGFECompositeElement interface reflects the k2 attribute of the given feComposite element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k2)
*/
readonly k2: SVGAnimatedNumber;
/**
* The **\`k3\`** read-only property of the SVGFECompositeElement interface reflects the k3 attribute of the given feComposite element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k3)
*/
readonly k3: SVGAnimatedNumber;
/**
* The **\`k4\`** read-only property of the SVGFECompositeElement interface reflects the k4 attribute of the given feComposite element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k4)
*/
readonly k4: SVGAnimatedNumber;
/**
* The **\`operator\`** read-only property of the SVGFECompositeElement interface reflects the operator attribute of the given feComposite element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/operator)
*/
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;
};
/**
* The **\`SVGFEConvolveMatrixElement\`** interface corresponds to the feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement)
*/
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`bias\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the bias attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/bias)
*/
readonly bias: SVGAnimatedNumber;
/**
* The **\`divisor\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the divisor attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/divisor)
*/
readonly divisor: SVGAnimatedNumber;
/**
* The **\`edgeMode\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the edgeMode attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/edgeMode)
*/
readonly edgeMode: SVGAnimatedEnumeration;
/**
* The **\`in1\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the in attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`kernelMatrix\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelMatrix attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelMatrix)
*/
readonly kernelMatrix: SVGAnimatedNumberList;
/**
* The **\`kernelUnitLengthX\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelUnitLength attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthX)
*/
readonly kernelUnitLengthX: SVGAnimatedNumber;
/**
* The **\`kernelUnitLengthY\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelUnitLength attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthY)
*/
readonly kernelUnitLengthY: SVGAnimatedNumber;
/**
* The **\`orderX\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the order attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/orderX)
*/
readonly orderX: SVGAnimatedInteger;
/**
* The **\`orderY\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the order attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/orderY)
*/
readonly orderY: SVGAnimatedInteger;
/**
* The **\`preserveAlpha\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the preserveAlpha attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/preserveAlpha)
*/
readonly preserveAlpha: SVGAnimatedBoolean;
/**
* The **\`targetX\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the targetX attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/targetX)
*/
readonly targetX: SVGAnimatedInteger;
/**
* The **\`targetY\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the targetY attribute of the given feConvolveMatrix element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/targetY)
*/
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;
};
/**
* The **\`SVGFEDiffuseLightingElement\`** interface corresponds to the feDiffuseLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement)
*/
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`diffuseConstant\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the diffuseConstant attribute of the given feDiffuseLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/diffuseConstant)
*/
readonly diffuseConstant: SVGAnimatedNumber;
/**
* The **\`in1\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the in attribute of the given feDiffuseLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`kernelUnitLengthX\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the X component of the kernelUnitLength attribute of the given feDiffuseLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthX)
*/
readonly kernelUnitLengthX: SVGAnimatedNumber;
/**
* The **\`kernelUnitLengthY\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the Y component of the kernelUnitLength attribute of the given feDiffuseLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthY)
*/
readonly kernelUnitLengthY: SVGAnimatedNumber;
/**
* The **\`surfaceScale\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the surfaceScale attribute of the given feDiffuseLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/surfaceScale)
*/
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;
};
/**
* The **\`SVGFEDisplacementMapElement\`** interface corresponds to the feDisplacementMap element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement)
*/
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFEDisplacementMapElement interface reflects the in attribute of the given feDisplacementMap element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`in2\`** read-only property of the SVGFEDisplacementMapElement interface reflects the in2 attribute of the given feDisplacementMap element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/in2)
*/
readonly in2: SVGAnimatedString;
/**
* The **\`scale\`** read-only property of the SVGFEDisplacementMapElement interface reflects the scale attribute of the given feDisplacementMap element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/scale)
*/
readonly scale: SVGAnimatedNumber;
/**
* The **\`xChannelSelector\`** read-only property of the SVGFEDisplacementMapElement interface reflects the xChannelSelector attribute of the given feDisplacementMap element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/xChannelSelector)
*/
readonly xChannelSelector: SVGAnimatedEnumeration;
/**
* The **\`yChannelSelector\`** read-only property of the SVGFEDisplacementMapElement interface reflects the yChannelSelector attribute of the given feDisplacementMap element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/yChannelSelector)
*/
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;
};
/**
* The **\`SVGFEDistantLightElement\`** interface corresponds to the feDistantLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement)
*/
interface SVGFEDistantLightElement extends SVGElement {
/**
* The **\`azimuth\`** read-only property of the SVGFEDistantLightElement interface reflects the azimuth attribute of the given feDistantLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/azimuth)
*/
readonly azimuth: SVGAnimatedNumber;
/**
* The **\`elevation\`** read-only property of the SVGFEDistantLightElement interface reflects the elevation attribute of the given feDistantLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/elevation)
*/
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;
};
/**
* The **\`SVGFEDropShadowElement\`** interface corresponds to the feDropShadow element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement)
*/
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`dx\`** read-only property of the SVGFEDropShadowElement interface reflects the dx attribute of the given feDropShadow element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/dx)
*/
readonly dx: SVGAnimatedNumber;
/**
* The **\`dy\`** read-only property of the SVGFEDropShadowElement interface reflects the dy attribute of the given feDropShadow element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/dy)
*/
readonly dy: SVGAnimatedNumber;
/**
* The **\`in1\`** read-only property of the SVGFEDropShadowElement interface reflects the in attribute of the given feDropShadow element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`stdDeviationX\`** read-only property of the SVGFEDropShadowElement interface reflects the (possibly automatically computed) X component of the stdDeviation attribute of the given feDropShadow element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/stdDeviationX)
*/
readonly stdDeviationX: SVGAnimatedNumber;
/**
* The **\`stdDeviationY\`** read-only property of the SVGFEDropShadowElement interface reflects the (possibly automatically computed) Y component of the stdDeviation attribute of the given feDropShadow element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/stdDeviationY)
*/
readonly stdDeviationY: SVGAnimatedNumber;
/**
* The \`setStdDeviation()\` method of the SVGFEDropShadowElement interface sets the values for the stdDeviation attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/setStdDeviation)
*/
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;
};
/**
* The **\`SVGFEFloodElement\`** interface 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;
};
/**
* The **\`SVGFEFuncAElement\`** interface 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;
};
/**
* The **\`SVGFEFuncBElement\`** interface 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;
};
/**
* The **\`SVGFEFuncGElement\`** interface 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;
};
/**
* The **\`SVGFEFuncRElement\`** interface 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;
};
/**
* The **\`SVGFEGaussianBlurElement\`** interface corresponds to the feGaussianBlur element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement)
*/
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFEGaussianBlurElement interface reflects the in attribute of the given feGaussianBlur element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`stdDeviationX\`** read-only property of the SVGFEGaussianBlurElement interface reflects the (possibly automatically computed) X component of the stdDeviation attribute of the given feGaussianBlur element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationX)
*/
readonly stdDeviationX: SVGAnimatedNumber;
/**
* The **\`stdDeviationY\`** read-only property of the SVGFEGaussianBlurElement interface reflects the (possibly automatically computed) Y component of the stdDeviation attribute of the given feGaussianBlur element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationY)
*/
readonly stdDeviationY: SVGAnimatedNumber;
/**
* The \`setStdDeviation()\` method of the SVGFEGaussianBlurElement interface sets the values for the stdDeviation attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation)
*/
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;
};
/**
* The **\`SVGFEImageElement\`** interface corresponds to the feImage element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement)
*/
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
/**
* The **\`preserveAspectRatio\`** read-only property of the SVGFEImageElement interface reflects the preserveAspectRatio attribute of the given feImage element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement/preserveAspectRatio)
*/
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;
};
/**
* The **\`SVGFEMergeElement\`** interface 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;
};
/**
* The **\`SVGFEMergeNodeElement\`** interface corresponds to the feMergeNode element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement)
*/
interface SVGFEMergeNodeElement extends SVGElement {
/**
* The **\`in1\`** read-only property of the SVGFEMergeNodeElement interface reflects the in attribute of the given feMergeNode element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement/in1)
*/
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;
};
/**
* The **\`SVGFEMorphologyElement\`** interface corresponds to the feMorphology element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement)
*/
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFEMorphologyElement interface reflects the in attribute of the given feMorphology element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`operator\`** read-only property of the SVGFEMorphologyElement interface reflects the operator attribute of the given feMorphology element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/operator)
*/
readonly operator: SVGAnimatedEnumeration;
/**
* The **\`radiusX\`** read-only property of the SVGFEMorphologyElement interface reflects the X component of the radius attribute of the given feMorphology element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusX)
*/
readonly radiusX: SVGAnimatedNumber;
/**
* The **\`radiusY\`** read-only property of the SVGFEMorphologyElement interface reflects the Y component of the radius attribute of the given feMorphology element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusY)
*/
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;
};
/**
* The **\`SVGFEOffsetElement\`** interface corresponds to the feOffset element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement)
*/
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`dx\`** read-only property of the SVGFEOffsetElement interface reflects the dx attribute of the given feOffset element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/dx)
*/
readonly dx: SVGAnimatedNumber;
/**
* The **\`dy\`** read-only property of the SVGFEOffsetElement interface reflects the dy attribute of the given feOffset element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/dy)
*/
readonly dy: SVGAnimatedNumber;
/**
* The **\`in1\`** read-only property of the SVGFEOffsetElement interface reflects the in attribute of the given feOffset element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/in1)
*/
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;
};
/**
* The **\`SVGFEPointLightElement\`** interface corresponds to the fePointLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement)
*/
interface SVGFEPointLightElement extends SVGElement {
/**
* The **\`x\`** read-only property of the SVGFEPointLightElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/x)
*/
readonly x: SVGAnimatedNumber;
/**
* The **\`y\`** read-only property of the SVGFEPointLightElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/y)
*/
readonly y: SVGAnimatedNumber;
/**
* The **\`z\`** read-only property of the SVGFEPointLightElement interface describes the z-axis value of the position of an SVG filter primitive as a SVGAnimatedNumber.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/z)
*/
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;
};
/**
* The **\`SVGFESpecularLightingElement\`** interface corresponds to the feSpecularLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement)
*/
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFESpecularLightingElement interface reflects the in attribute of the given feSpecularLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/in1)
*/
readonly in1: SVGAnimatedString;
/**
* The **\`kernelUnitLengthX\`** read-only property of the SVGFESpecularLightingElement interface reflects the x value of the kernelUnitLength attribute of the given feSpecularLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthX)
*/
readonly kernelUnitLengthX: SVGAnimatedNumber;
/**
* The **\`kernelUnitLengthY\`** read-only property of the SVGFESpecularLightingElement interface reflects the y value of the kernelUnitLength attribute of the given feSpecularLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthY)
*/
readonly kernelUnitLengthY: SVGAnimatedNumber;
/**
* The **\`specularConstant\`** read-only property of the SVGFESpecularLightingElement interface reflects the specularConstant attribute of the given feSpecularLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularConstant)
*/
readonly specularConstant: SVGAnimatedNumber;
/**
* The **\`specularExponent\`** read-only property of the SVGFESpecularLightingElement interface reflects the specularExponent attribute of the given feSpecularLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularExponent)
*/
readonly specularExponent: SVGAnimatedNumber;
/**
* The **\`surfaceScale\`** read-only property of the SVGFESpecularLightingElement interface reflects the surfaceScale attribute of the given feSpecularLighting element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/surfaceScale)
*/
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;
};
/**
* The **\`SVGFESpotLightElement\`** interface corresponds to the feSpotLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement)
*/
interface SVGFESpotLightElement extends SVGElement {
/**
* The **\`limitingConeAngle\`** read-only property of the SVGFESpotLightElement interface reflects the limitingConeAngle attribute of the given feSpotLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/limitingConeAngle)
*/
readonly limitingConeAngle: SVGAnimatedNumber;
/**
* The **\`pointsAtX\`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtX attribute of the given feSpotLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtX)
*/
readonly pointsAtX: SVGAnimatedNumber;
/**
* The **\`pointsAtY\`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtY attribute of the given feSpotLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtY)
*/
readonly pointsAtY: SVGAnimatedNumber;
/**
* The **\`pointsAtZ\`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtZ attribute of the given feSpotLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtZ)
*/
readonly pointsAtZ: SVGAnimatedNumber;
/**
* The **\`specularExponent\`** read-only property of the SVGFESpotLightElement interface reflects the specularExponent attribute of the given feSpotLight element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/specularExponent)
*/
readonly specularExponent: SVGAnimatedNumber;
/**
* The **\`x\`** read-only property of the SVGFESpotLightElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/x)
*/
readonly x: SVGAnimatedNumber;
/**
* The **\`y\`** read-only property of the SVGFESpotLightElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/y)
*/
readonly y: SVGAnimatedNumber;
/**
* The **\`z\`** read-only property of the SVGFESpotLightElement interface describes the z-axis value of the position of an SVG filter primitive as a SVGAnimatedNumber.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/z)
*/
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;
};
/**
* The **\`SVGFETileElement\`** interface corresponds to the feTile element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement)
*/
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`in1\`** read-only property of the SVGFETileElement interface reflects the in attribute of the given feTile element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement/in1)
*/
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;
};
/**
* The **\`SVGFETurbulenceElement\`** interface corresponds to the feTurbulence element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement)
*/
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/**
* The **\`baseFrequencyX\`** read-only property of the SVGFETurbulenceElement interface reflects the X component of the baseFrequency attribute of the given feTurbulence element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/baseFrequencyX)
*/
readonly baseFrequencyX: SVGAnimatedNumber;
/**
* The **\`baseFrequencyY\`** read-only property of the SVGFETurbulenceElement interface reflects the Y component of the baseFrequency attribute of the given feTurbulence element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/baseFrequencyY)
*/
readonly baseFrequencyY: SVGAnimatedNumber;
/**
* The **\`numOctaves\`** read-only property of the SVGFETurbulenceElement interface reflects the numOctaves attribute of the given feTurbulence element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/numOctaves)
*/
readonly numOctaves: SVGAnimatedInteger;
/**
* The **\`seed\`** read-only property of the SVGFETurbulenceElement interface reflects the seed attribute of the given feTurbulence element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/seed)
*/
readonly seed: SVGAnimatedNumber;
/**
* The **\`stitchTiles\`** read-only property of the SVGFETurbulenceElement interface reflects the stitchTiles attribute of the given feTurbulence element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/stitchTiles)
*/
readonly stitchTiles: SVGAnimatedEnumeration;
/**
* The **\`type\`** read-only property of the SVGFETurbulenceElement interface reflects the type attribute of the given feTurbulence element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/type)
*/
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;
};
/**
* The **\`SVGFilterElement\`** interface 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 {
/**
* The **\`filterUnits\`** read-only property of the SVGFilterElement interface reflects the filterUnits attribute of the given filter element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/filterUnits)
*/
readonly filterUnits: SVGAnimatedEnumeration;
/**
* The **\`height\`** read-only property of the SVGFilterElement interface describes the vertical size of an SVG filter primitive as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/height)
*/
readonly height: SVGAnimatedLength;
/**
* The **\`primitiveUnits\`** read-only property of the SVGFilterElement interface reflects the primitiveUnits attribute of the given filter element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/primitiveUnits)
*/
readonly primitiveUnits: SVGAnimatedEnumeration;
/**
* The **\`width\`** read-only property of the SVGFilterElement interface describes the horizontal size of an SVG filter primitive as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/width)
*/
readonly width: SVGAnimatedLength;
/**
* The **\`x\`** read-only property of the SVGFilterElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/x)
*/
readonly x: SVGAnimatedLength;
/**
* The **\`y\`** read-only property of the SVGFilterElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/y)
*/
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/height) */
readonly height: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/result) */
readonly result: SVGAnimatedString;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/width) */
readonly width: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/x) */
readonly x: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/y) */
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;
}
/**
* The **\`SVGForeignObjectElement\`** interface 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 {
/**
* The **\`height\`** read-only property of the SVGForeignObjectElement interface describes the height of the \`<foreignObject>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/height)
*/
readonly height: SVGAnimatedLength;
/**
* The **\`width\`** read-only property of the SVGForeignObjectElement interface describes the width of the \`<foreignObject>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/width)
*/
readonly width: SVGAnimatedLength;
/**
* The **\`x\`** read-only property of the SVGForeignObjectElement interface describes the x-axis coordinate of the \`<foreignObject>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/x)
*/
readonly x: SVGAnimatedLength;
/**
* The **\`y\`** read-only property of the SVGForeignObjectElement interface describes the y-axis coordinate of the \`<foreignObject>\` element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/y)
*/
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;
};
/**
* The **\`SVGGElement\`** interface 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;
};
/**
* The \`SVGGeometryElement\` interface represents SVG elements whose rendering is defined by geometry with an equivalent path, and which can be filled and stroked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement)
*/
interface SVGGeometryElement extends SVGGraphicsElement {
/**
* The **\`SVGGeometryElement.pathLength\`** property reflects the A number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength)
*/
readonly pathLength: SVGAnimatedNumber;
/**
* The **\`SVGGeometryElement.getPointAtLength()\`** method returns the point at a given distance along the path.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength)
*/
getPointAtLength(distance: number): DOMPoint;
/**
* The **\`SVGGeometryElement.getTotalLength()\`** method returns the user agent's computed value for the total length of the path in user units.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength)
*/
getTotalLength(): number;
/**
* The **\`isPointInFill()\`** method of the SVGGeometryElement interface determines whether a given point is within the fill shape of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill)
*/
isPointInFill(point?: DOMPointInit): boolean;
/**
* The **\`isPointInStroke()\`** method of the SVGGeometryElement interface determines whether a given point is within the stroke shape of an element.
*
* [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 {
/**
* The **\`gradientTransform\`** read-only property of the SVGGradientElement interface reflects the gradientTransform attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientTransform)
*/
readonly gradientTransform: SVGAnimatedTransformList;
/**
* The **\`gradientUnits\`** read-only property of the SVGGradientElement interface reflects the gradientUnits attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientUnits)
*/
readonly gradientUnits: SVGAnimatedEnumeration;
/**
* The **\`spreadMethod\`** read-only property of the SVGGradientElement interface reflects the spreadMethod attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/spreadMethod)
*/
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;
};
/**
* The **\`SVGGraphicsElement\`** interface represents 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 {
/**
* The **\`transform\`** read-only property of the SVGGraphicsElement interface reflects the computed value of the transform property and its corresponding transform attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/transform)
*/
readonly transform: SVGAnimatedTransformList;
/**
* The **\`SVGGraphicsElement.getBBox()\`** method allows us to determine the coordinates of the smallest rectangle in which the object fits.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox)
*/
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
/**
* The \`getCTM()\` method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getCTM)
*/
getCTM(): DOMMatrix | null;
/**
* The \`getScreenCTM()\` method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getScreenCTM)
*/
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;
};
/**
* The **\`SVGImageElement\`** interface corresponds to the image element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)
*/
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
/**
* The **\`crossOrigin\`** property of the SVGImageElement interface is a string which specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossOrigin)
*/
crossOrigin: string | null;
/**
* The **\`height\`** read-only property of the corresponding to the height attribute of the given An SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height)
*/
readonly height: SVGAnimatedLength;
/**
* The **\`preserveAspectRatio\`** read-only property of the SVGImageElement interface returns an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio)
*/
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
/**
* The **\`width\`** read-only property of the corresponding to the width attribute of the given image element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width)
*/
readonly width: SVGAnimatedLength;
/**
* The **\`x\`** read-only property of the corresponding to the x attribute of the given image element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x)
*/
readonly x: SVGAnimatedLength;
/**
* The **\`y\`** read-only property of the corresponding to the y attribute of the given image element.
*
* [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;
};
/**
* The **\`SVGLength\`** interface correspond to the \\<length> basic data type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength)
*/
interface SVGLength {
/**
* The **\`unitType\`** property of the SVGLength interface that represents type of the value as specified by one of the \`SVG_LENGTHTYPE_*\` constants defined on this interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/unitType)
*/
readonly unitType: number;
/**
* The \`value\` property of the SVGLength interface represents the floating point value of the \\<length> in user units.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/value)
*/
value: number;
/**
* The \`valueAsString\` property of the SVGLength interface represents the \\<length>'s value as a string, in the units expressed by SVGLength.unitType.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/valueAsString)
*/
valueAsString: string;
/**
* The \`valueInSpecifiedUnits\` property of the SVGLength interface represents floating point value, in the units expressed by SVGLength.unitType.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/valueInSpecifiedUnits)
*/
valueInSpecifiedUnits: number;
/**
* The \`convertToSpecifiedUnits()\` method of the SVGLength interface allows you to convert the length's value to the specified unit type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/convertToSpecifiedUnits)
*/
convertToSpecifiedUnits(unitType: number): void;
/**
* The \`newValueSpecifiedUnits()\` method of the SVGLength interface resets the value as a number with an associated SVGLength.unitType, thereby replacing the values for all of the attributes on the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/newValueSpecifiedUnits)
*/
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\`** interface defines a list of SVGLength objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)
*/
interface SVGLengthList {
/**
* The **\`length\`** property of the SVGLengthList interface returns the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/length)
*/
readonly length: number;
/**
* The **\`numberOfItems\`** property of the SVGLengthList interface returns the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/numberOfItems)
*/
readonly numberOfItems: number;
/**
* The **\`appendItem()\`** method of the SVGLengthList interface inserts a new item at the end of the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/appendItem)
*/
appendItem(newItem: SVGLength): SVGLength;
/**
* The **\`clear()\`** method of the SVGLengthList interface clears all existing items from the list, with the result being an empty list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/clear)
*/
clear(): void;
/**
* The **\`getItem()\`** method of the SVGLengthList interface returns the specified item from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/getItem)
*/
getItem(index: number): SVGLength;
/**
* The **\`initialize()\`** method of the SVGLengthList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/initialize)
*/
initialize(newItem: SVGLength): SVGLength;
/**
* The **\`insertItemBefore()\`** method of the SVGLengthList interface inserts a new item into the list at the specified position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/insertItemBefore)
*/
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
/**
* The **\`removeItem()\`** method of the SVGLengthList interface removes an existing item at the given index from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/removeItem)
*/
removeItem(index: number): SVGLength;
/**
* The **\`replaceItem()\`** method of the SVGLengthList interface replaces an existing item in the list with a new item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/replaceItem)
*/
replaceItem(newItem: SVGLength, index: number): SVGLength;
[index: number]: SVGLength;
}
declare var SVGLengthList: {
prototype: SVGLengthList;
new(): SVGLengthList;
};
/**
* The **\`SVGLineElement\`** interface 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 {
/**
* The **\`x1\`** read-only property of the SVGLineElement interface describes the start of the SVG line along the x-axis as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x1)
*/
readonly x1: SVGAnimatedLength;
/**
* The **\`x2\`** read-only property of the SVGLineElement interface describes the x-axis coordinate value of the end of a line as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x2)
*/
readonly x2: SVGAnimatedLength;
/**
* The **\`y1\`** read-only property of the SVGLineElement interface describes the start of the SVG line along the y-axis as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y1)
*/
readonly y1: SVGAnimatedLength;
/**
* The **\`y2\`** read-only property of the SVGLineElement interface describes the v-axis coordinate value of the end of a line as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y2)
*/
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;
};
/**
* The **\`SVGLinearGradientElement\`** interface corresponds to the linearGradient element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement)
*/
interface SVGLinearGradientElement extends SVGGradientElement {
/**
* The **\`x1\`** read-only property of the SVGLinearGradientElement interface describes the x-axis coordinate of the start point of the gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x1)
*/
readonly x1: SVGAnimatedLength;
/**
* The **\`x2\`** read-only property of the SVGLinearGradientElement interface describes the x-axis coordinate of the start point of the gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x2)
*/
readonly x2: SVGAnimatedLength;
/**
* The **\`y1\`** read-only property of the SVGLinearGradientElement interface describes the y-axis coordinate of the start point of the gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y1)
*/
readonly y1: SVGAnimatedLength;
/**
* The **\`y2\`** read-only property of the SVGLinearGradientElement interface describes the y-axis coordinate of the start point of the gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y2)
*/
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;
};
/**
* The **\`SVGMPathElement\`** interface corresponds to the mpath element.
*
* [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;
};
/**
* The **\`SVGMarkerElement\`** interface provides access to the properties of marker elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement)
*/
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
/**
* The **\`markerHeight\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the height of the marker viewport as defined by the markerHeight attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight)
*/
readonly markerHeight: SVGAnimatedLength;
/**
* The **\`markerUnits\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedEnumeration object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits)
*/
readonly markerUnits: SVGAnimatedEnumeration;
/**
* The **\`markerWidth\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the width of the marker viewport as defined by the markerWidth attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth)
*/
readonly markerWidth: SVGAnimatedLength;
/**
* The **\`orientAngle\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedAngle object containing the angle of the orient attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle)
*/
readonly orientAngle: SVGAnimatedAngle;
/**
* The **\`orientType\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedEnumeration object indicating whether the orient attribute is \`auto\`, an angle value, or something else.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType)
*/
readonly orientType: SVGAnimatedEnumeration;
/**
* The **\`refX\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the value of the refX attribute of the marker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX)
*/
readonly refX: SVGAnimatedLength;
/**
* The **\`refY\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the value of the refY attribute of the marker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY)
*/
readonly refY: SVGAnimatedLength;
/**
* The **\`setOrientToAngle()\`** method of the SVGMarkerElement interface sets the value of the \`orient\` attribute to the value in the SVGAngle passed in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle)
*/
setOrientToAngle(angle: SVGAngle): void;
/**
* The **\`setOrientToAuto()\`** method of the SVGMarkerElement interface sets the value of the \`orient\` attribute to \`auto\`.
*
* [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;
};
/**
* The **\`SVGMaskElement\`** interface 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 {
/**
* The read-only **\`height\`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the height attribute of the marker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height)
*/
readonly height: SVGAnimatedLength;
/**
* The read-only **\`maskContentUnits\`** property of the SVGMaskElement interface reflects the maskContentUnits attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits)
*/
readonly maskContentUnits: SVGAnimatedEnumeration;
/**
* The read-only **\`maskUnits\`** property of the SVGMaskElement interface reflects the maskUnits attribute of a mask element which defines the coordinate system to use for the mask of the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits)
*/
readonly maskUnits: SVGAnimatedEnumeration;
/**
* The read-only **\`width\`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the width attribute of the marker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width)
*/
readonly width: SVGAnimatedLength;
/**
* The read-only **\`x\`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the x attribute of the mask.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x)
*/
readonly x: SVGAnimatedLength;
/**
* The read-only **\`y\`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the marker.
*
* [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;
};
/**
* The **\`SVGMetadataElement\`** interface 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;
};
/**
* The **\`SVGNumber\`** interface corresponds to the &lt;number&gt; basic data type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber)
*/
interface SVGNumber {
/**
* The **\`value\`** read-only property of the SVGNumber interface represents the number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber/value)
*/
value: number;
}
declare var SVGNumber: {
prototype: SVGNumber;
new(): SVGNumber;
};
/**
* The **\`SVGNumberList\`** interface defines a list of numbers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList)
*/
interface SVGNumberList {
/**
* The **\`length\`** property of the SVGNumberList interface returns the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/length)
*/
readonly length: number;
/**
* The **\`numberOfItems\`** property of the SVGNumberList interface returns the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/numberOfItems)
*/
readonly numberOfItems: number;
/**
* The **\`appendItem()\`** method of the SVGNumberList interface inserts a new item at the end of the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/appendItem)
*/
appendItem(newItem: SVGNumber): SVGNumber;
/**
* The **\`clear()\`** method of the SVGNumberList interface clears all existing items from the list, with the result being an empty list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/clear)
*/
clear(): void;
/**
* The **\`getItem()\`** method of the SVGNumberList interface returns the specified item from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/getItem)
*/
getItem(index: number): SVGNumber;
/**
* The **\`initialize()\`** method of the SVGNumberList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/initialize)
*/
initialize(newItem: SVGNumber): SVGNumber;
/**
* The **\`insertItemBefore()\`** method of the SVGNumberList interface inserts a new item into the list at the specified position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/insertItemBefore)
*/
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
/**
* The **\`removeItem()\`** method of the SVGNumberList interface removes an existing item at the given index from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/removeItem)
*/
removeItem(index: number): SVGNumber;
/**
* The **\`replaceItem()\`** method of the SVGNumberList interface replaces an existing item in the list with a new item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/replaceItem)
*/
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
[index: number]: SVGNumber;
}
declare var SVGNumberList: {
prototype: SVGNumberList;
new(): SVGNumberList;
};
/**
* The **\`SVGPathElement\`** interface corresponds to the path element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)
*/
interface SVGPathElement extends SVGGeometryElement {
/**
* The **\`pathLength\`** read-only property of the SVGPathElement interface reflects the pathLength attribute of the given path element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/pathLength)
*/
readonly pathLength: SVGAnimatedNumber;
/**
* The **\`getPointAtLength()\`** method of the SVGPathElement interface returns the point at a given distance along the path.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/getPointAtLength)
*/
getPointAtLength(distance: number): DOMPoint;
/**
* The **\`getTotalLength()\`** method of the SVGPathElement interface returns the user agent's computed value for the total length of the path in user units.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/getTotalLength)
*/
getTotalLength(): number;
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;
};
/**
* The **\`SVGPatternElement\`** interface corresponds to the pattern element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement)
*/
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
/**
* The **\`height\`** read-only property of the SVGPatternElement interface describes the height of the pattern as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/height)
*/
readonly height: SVGAnimatedLength;
/**
* The **\`patternContentUnits\`** read-only property of the SVGPatternElement interface reflects the patternContentUnits attribute of the given pattern element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternContentUnits)
*/
readonly patternContentUnits: SVGAnimatedEnumeration;
/**
* The **\`patternTransform\`** read-only property of the SVGPatternElement interface reflects the patternTransform attribute of the given pattern element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternTransform)
*/
readonly patternTransform: SVGAnimatedTransformList;
/**
* The **\`patternUnits\`** read-only property of the SVGPatternElement interface reflects the patternUnits attribute of the given pattern element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternUnits)
*/
readonly patternUnits: SVGAnimatedEnumeration;
/**
* The **\`width\`** read-only property of the SVGPatternElement interface describes the width of the pattern as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/width)
*/
readonly width: SVGAnimatedLength;
/**
* The **\`x\`** read-only property of the SVGPatternElement interface describes the x-axis coordinate of the start point of the pattern as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/x)
*/
readonly x: SVGAnimatedLength;
/**
* The **\`y\`** read-only property of the SVGPatternElement interface describes the y-axis coordinate of the start point of the pattern as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/y)
*/
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;
};
/**
* The **\`SVGPointList\`** interface represents a list of DOMPoint objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList)
*/
interface SVGPointList {
/**
* The **\`length\`** read-only property of the SVGPointList interface returns the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length)
*/
readonly length: number;
/**
* The **\`numberOfItems\`** read-only property of the SVGPointList interface returns the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems)
*/
readonly numberOfItems: number;
/**
* The **\`appendItem()\`** method of the SVGPointList interface adds a DOMPoint to the end of the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem)
*/
appendItem(newItem: DOMPoint): DOMPoint;
/**
* The **\`clear()\`** method of the SVGPointList interface removes all items from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear)
*/
clear(): void;
/**
* The **\`getItem()\`** method of the SVGPointList interface gets one item from the list at the specified index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem)
*/
getItem(index: number): DOMPoint;
/**
* The **\`initialize()\`** method of the SVGPointList interface clears the list then adds a single new DOMPoint object to the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize)
*/
initialize(newItem: DOMPoint): DOMPoint;
/**
* The **\`insertItemBefore()\`** method of the SVGPointList interface inserts a DOMPoint before another item in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore)
*/
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
/**
* The **\`removeItem()\`** method of the SVGPointList interface removes a DOMPoint from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem)
*/
removeItem(index: number): DOMPoint;
/**
* The **\`replaceItem()\`** method of the SVGPointList interface replaces a DOMPoint in the list.
*
* [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;
};
/**
* The **\`SVGPolygonElement\`** interface 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;
};
/**
* The **\`SVGPolylineElement\`** interface 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;
};
/**
* The **\`SVGPreserveAspectRatio\`** interface corresponds to the preserveAspectRatio attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio)
*/
interface SVGPreserveAspectRatio {
/**
* The **\`align\`** read-only property of the SVGPreserveAspectRatio interface reflects the type of the alignment value as specified by one of the \`SVG_PRESERVEASPECTRATIO_*\` constants defined on this interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio/align)
*/
align: number;
/**
* The **\`meetOrSlice\`** read-only property of the SVGPreserveAspectRatio interface reflects the type of the meet-or-slice value as specified by one of the \`SVG_MEETORSLICE_*\` constants defined on this interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)
*/
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;
};
/**
* The **\`SVGRadialGradientElement\`** interface corresponds to the RadialGradient element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement)
*/
interface SVGRadialGradientElement extends SVGGradientElement {
/**
* The **\`cx\`** read-only property of the SVGRadialGradientElement interface describes the x-axis coordinate of the center of the radial gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cx)
*/
readonly cx: SVGAnimatedLength;
/**
* The **\`cy\`** read-only property of the SVGRadialGradientElement interface describes the y-axis coordinate of the center of the radial gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cy)
*/
readonly cy: SVGAnimatedLength;
/**
* The **\`fr\`** read-only property of the SVGRadialGradientElement interface describes the radius of the focal circle of the radial gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fr)
*/
readonly fr: SVGAnimatedLength;
/**
* The **\`fx\`** read-only property of the SVGRadialGradientElement interface describes the x-axis coordinate of the focal point of the radial gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fx)
*/
readonly fx: SVGAnimatedLength;
/**
* The **\`fy\`** read-only property of the SVGRadialGradientElement interface describes the y-axis coordinate of the focal point of the radial gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fy)
*/
readonly fy: SVGAnimatedLength;
/**
* The **\`r\`** read-only property of the SVGRadialGradientElement interface describes the radius of the radial gradient as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/r)
*/
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;
};
/**
* The \`SVGRectElement\` interface 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 {
/**
* The **\`height\`** read-only property of the SVGRectElement interface describes the vertical size of an SVG rectangle as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/height)
*/
readonly height: SVGAnimatedLength;
/**
* The **\`rx\`** read-only property of the SVGRectElement interface describes the horizontal curve of the corners of an SVG rectangle as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/rx)
*/
readonly rx: SVGAnimatedLength;
/**
* The **\`ry\`** read-only property of the SVGRectElement interface describes the vertical curve of the corners of an SVG rectangle as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/ry)
*/
readonly ry: SVGAnimatedLength;
/**
* The **\`width\`** read-only property of the SVGRectElement interface describes the horizontal size of an SVG rectangle as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/width)
*/
readonly width: SVGAnimatedLength;
/**
* The **\`x\`** read-only property of the SVGRectElement interface describes the horizontal coordinate of the position of an SVG rectangle as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/x)
*/
readonly x: SVGAnimatedLength;
/**
* The **\`y\`** read-only property of the SVGRectElement interface describes the vertical coordinate of the position of an SVG rectangle as a SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/y)
*/
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 {
}
/**
* The **\`SVGSVGElement\`** interface provides access to the properties of svg elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement)
*/
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
/**
* The **\`currentScale\`** property of the SVGSVGElement interface reflects the current scale factor relative to the initial view to take into account user magnification and panning operations on the outermost svg element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentScale)
*/
currentScale: number;
/**
* The **\`currentTranslate\`** read-only property of the SVGSVGElement interface reflects the translation factor that takes into account user 'magnification' corresponding to an outermost svg element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentTranslate)
*/
readonly currentTranslate: DOMPointReadOnly;
/**
* The **\`height\`** read-only property of the SVGSVGElement interface describes the vertical size of element as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/height)
*/
readonly height: SVGAnimatedLength;
/**
* The **\`width\`** read-only property of the SVGSVGElement interface describes the horizontal size of element as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/width)
*/
readonly width: SVGAnimatedLength;
/**
* The **\`x\`** read-only property of the SVGSVGElement interface describes the horizontal coordinate of the position of that SVG as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/x)
*/
readonly x: SVGAnimatedLength;
/**
* The **\`y\`** read-only property of the SVGSVGElement interface describes the vertical coordinate of the position of that SVG as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/y)
*/
readonly y: SVGAnimatedLength;
/**
* The \`animationsPaused()\` method of the SVGSVGElement interface checks whether the animations in the SVG document fragment are currently paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/animationsPaused)
*/
animationsPaused(): boolean;
/**
* The \`checkEnclosure()\` method of the SVGSVGElement interface checks if the rendered content of the given element is entirely contained within the supplied rectangle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkEnclosure)
*/
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
/**
* The \`checkIntersection()\` method of the SVGSVGElement interface checks if the rendered content of the given element intersects the supplied rectangle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkIntersection)
*/
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
/**
* The \`createSVGAngle()\` method of the SVGSVGElement interface creates an SVGAngle object outside of any document trees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGAngle)
*/
createSVGAngle(): SVGAngle;
/**
* The \`createSVGLength()\` method of the SVGSVGElement interface creates an SVGLength object outside of any document trees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGLength)
*/
createSVGLength(): SVGLength;
/**
* The \`createSVGMatrix()\` method of the SVGSVGElement interface creates a DOMMatrix object outside of any document trees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGMatrix)
*/
createSVGMatrix(): DOMMatrix;
/**
* The \`createSVGNumber()\` method of the SVGSVGElement interface creates an SVGNumber object outside of any document trees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGNumber)
*/
createSVGNumber(): SVGNumber;
/**
* The \`createSVGPoint()\` method of the SVGSVGElement interface creates a DOMPoint object outside of any document trees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGPoint)
*/
createSVGPoint(): DOMPoint;
/**
* The \`createSVGRect()\` method of the SVGSVGElement interface creates an DOMRect object outside of any document trees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
*/
createSVGRect(): DOMRect;
/**
* The \`createSVGTransform()\` method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGTransform)
*/
createSVGTransform(): SVGTransform;
/**
* The \`createSVGTransformFromMatrix()\` method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees, based on the given DOMMatrix object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGTransformFromMatrix)
*/
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
/**
* The \`deselectAll()\` method of the SVGSVGElement interface unselects any selected objects, including any selections of text strings and type-in bars.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/deselectAll)
*/
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
/**
* The \`getCurrentTime()\` method of the SVGSVGElement interface returns the current time in seconds relative to the start time for the current SVG document fragment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getCurrentTime)
*/
getCurrentTime(): number;
/**
* The \`getElementById()\` method of the SVGSVGElement interface searches the SVG document fragment (i.e., the search is restricted to a subset of the document tree) for an Element whose \`id\` property matches the specified string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
*/
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>;
/**
* The \`pauseAnimations()\` method of the SVGSVGElement interface suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this svg element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/pauseAnimations)
*/
pauseAnimations(): void;
/**
* The \`setCurrentTime()\` method of the SVGSVGElement interface adjusts the clock for this SVG document fragment, establishing a new current time.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/setCurrentTime)
*/
setCurrentTime(seconds: number): void;
/** @deprecated */
suspendRedraw(maxWaitMilliseconds: number): number;
/**
* The \`unpauseAnimations()\` method of the SVGSVGElement interface resumes (i.e., unpauses) currently running animations that are defined within the SVG document fragment, causing the animation clock to continue from the time at which it was suspended.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/unpauseAnimations)
*/
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;
};
/**
* The **\`SVGScriptElement\`** interface corresponds to the SVG script element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement)
*/
interface SVGScriptElement extends SVGElement, SVGURIReference {
/**
* The **\`type\`** read-only property of the SVGScriptElement interface reflects the type attribute of the given script element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement/type)
*/
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;
};
/**
* The **\`SVGSetElement\`** interface corresponds to the set element.
*
* [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;
};
/**
* The **\`SVGStopElement\`** interface corresponds to the stop element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement)
*/
interface SVGStopElement extends SVGElement {
/**
* The **\`offset\`** read-only property of the SVGStopElement interface reflects the offset attribute of the given stop element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement/offset)
*/
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\`** interface defines a list of strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList)
*/
interface SVGStringList {
/**
* The **\`length\`** property of the SVGStringList interface returns the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/length)
*/
readonly length: number;
/**
* The **\`numberOfItems\`** property of the SVGStringList interface returns the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/numberOfItems)
*/
readonly numberOfItems: number;
/**
* The **\`appendItem()\`** method of the SVGStringList interface inserts a new item at the end of the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/appendItem)
*/
appendItem(newItem: string): string;
/**
* The **\`clear()\`** method of the SVGStringList interface clears all existing items from the list, with the result being an empty list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/clear)
*/
clear(): void;
/**
* The **\`getItem()\`** method of the SVGStringList interface returns the specified item from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/getItem)
*/
getItem(index: number): string;
/**
* The **\`initialize()\`** method of the SVGStringList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/initialize)
*/
initialize(newItem: string): string;
/**
* The **\`insertItemBefore()\`** method of the SVGStringList interface inserts a new item into the list at the specified position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/insertItemBefore)
*/
insertItemBefore(newItem: string, index: number): string;
/**
* The **\`removeItem()\`** method of the SVGStringList interface removes an existing item at the given index from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/removeItem)
*/
removeItem(index: number): string;
/**
* The **\`replaceItem()\`** method of the SVGStringList interface replaces an existing item in the list with a new item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/replaceItem)
*/
replaceItem(newItem: string, index: number): string;
[index: number]: string;
}
declare var SVGStringList: {
prototype: SVGStringList;
new(): SVGStringList;
};
/**
* The **\`SVGStyleElement\`** interface corresponds to the SVG style element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
*/
interface SVGStyleElement extends SVGElement, LinkStyle {
disabled: boolean;
/**
* The **\`SVGStyleElement.media\`** property is a media query string corresponding to the \`media\` attribute of the given SVG style element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media)
*/
media: string;
/**
* The **\`SVGStyleElement.title\`** property is a string corresponding to the \`title\` attribute of the given SVG style element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title)
*/
title: string;
/**
* The **\`SVGStyleElement.type\`** property returns the type of the current style.
* @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;
};
/**
* The **\`SVGSwitchElement\`** interface 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;
};
/**
* The **\`SVGSymbolElement\`** interface 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;
};
/**
* The **\`SVGTSpanElement\`** interface represents 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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/requiredExtensions) */
readonly requiredExtensions: SVGStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/systemLanguage) */
readonly systemLanguage: SVGStringList;
}
/**
* The **\`SVGTextContentElement\`** interface is implemented by elements that support rendering child text content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement)
*/
interface SVGTextContentElement extends SVGGraphicsElement {
/**
* The **\`lengthAdjust\`** read-only property of the SVGTextContentElement interface reflects the lengthAdjust attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/lengthAdjust)
*/
readonly lengthAdjust: SVGAnimatedEnumeration;
/**
* The **\`textLength\`** read-only property of the SVGTextContentElement interface reflects the textLength attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/textLength)
*/
readonly textLength: SVGAnimatedLength;
/**
* The \`getCharNumAtPosition()\` method of the SVGTextContentElement interface represents the character which caused a text glyph to be rendered at a given position in the coordinate system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getCharNumAtPosition)
*/
getCharNumAtPosition(point?: DOMPointInit): number;
/**
* The \`getComputedTextLength()\` method of the SVGTextContentElement interface represents the computed length for the text within the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getComputedTextLength)
*/
getComputedTextLength(): number;
/**
* The \`getEndPositionOfChar()\` method of the SVGTextContentElement interface returns the trailing position of a typographic character after text layout has been performed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)
*/
getEndPositionOfChar(charnum: number): DOMPoint;
/**
* The \`getExtentOfChar()\` method of the SVGTextContentElement interface the represents computed tight bounding box of the glyph cell that corresponds to a given typographic character.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar)
*/
getExtentOfChar(charnum: number): DOMRect;
/**
* The \`getNumberOfChars()\` method of the SVGTextContentElement interface represents the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getNumberOfChars)
*/
getNumberOfChars(): number;
/**
* The \`getRotationOfChar()\` method of the SVGTextContentElement interface the represents the rotation of a typographic character.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getRotationOfChar)
*/
getRotationOfChar(charnum: number): number;
/**
* The \`getStartPositionOfChar()\` method of the SVGTextContentElement interface returns the position of a typographic character after text layout has been performed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)
*/
getStartPositionOfChar(charnum: number): DOMPoint;
/**
* The \`getSubStringLength()\` method of the SVGTextContentElement interface represents the computed length of the formatted text advance distance for a substring of text within the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getSubStringLength)
*/
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;
};
/**
* The **\`SVGTextElement\`** interface 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;
};
/**
* The **\`SVGTextPathElement\`** interface corresponds to the textPath element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement)
*/
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
/**
* The **\`method\`** read-only property of the SVGTextPathElement interface reflects the method attribute of the given textPath element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/method)
*/
readonly method: SVGAnimatedEnumeration;
/**
* The **\`spacing\`** read-only property of the SVGTextPathElement interface reflects the spacing attribute of the given textPath element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/spacing)
*/
readonly spacing: SVGAnimatedEnumeration;
/**
* The **\`startOffset\`** read-only property of the SVGTextPathElement interface reflects the X component of the startOffset attribute of the given textPath, which defines an offset from the start of the path for the initial current text position along the path after converting the path to the \`<textPath>\` element's coordinate system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/startOffset)
*/
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;
};
/**
* The **\`SVGTextPositioningElement\`** interface is implemented by elements that support attributes that position individual text glyphs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement)
*/
interface SVGTextPositioningElement extends SVGTextContentElement {
/**
* The **\`dx\`** read-only property of the SVGTextPositioningElement interface describes the x-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/dx)
*/
readonly dx: SVGAnimatedLengthList;
/**
* The **\`dy\`** read-only property of the SVGTextPositioningElement interface describes the y-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/dy)
*/
readonly dy: SVGAnimatedLengthList;
/**
* The **\`rotate\`** read-only property of the SVGTextPositioningElement interface reflects the rotation of individual text glyphs, as specified by the rotate attribute of the given element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/rotate)
*/
readonly rotate: SVGAnimatedNumberList;
/**
* The **\`x\`** read-only property of the SVGTextPositioningElement interface describes the x-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/x)
*/
readonly x: SVGAnimatedLengthList;
/**
* The **\`y\`** read-only property of the SVGTextPositioningElement interface describes the y-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/y)
*/
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;
};
/**
* The **\`SVGTitleElement\`** interface 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;
};
/**
* The **\`SVGTransform\`** interface reflects one of the component transformations within an SVGTransformList; thus, an \`SVGTransform\` object corresponds to a single component (e.g., \`scale(\u2026)\` or \`matrix(\u2026)\`) within a transform attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform)
*/
interface SVGTransform {
/**
* The **\`angle\`** read-only property of the SVGTransform interface represents the angle of the transformation in degrees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/angle)
*/
readonly angle: number;
/**
* The **\`matrix\`** read-only property of the SVGTransform interface represents the transformation matrix that corresponds to the transformation \`type\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix)
*/
readonly matrix: DOMMatrix;
/**
* The **\`type\`** read-only property of the SVGTransform interface represents the \`type\` of transformation applied, specified by one of the \`SVG_TRANSFORM_*\` constants defined on this interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/type)
*/
readonly type: number;
/**
* The \`setMatrix()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_MATRIX\`, with parameter \`matrix\` defining the new transformation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setMatrix)
*/
setMatrix(matrix?: DOMMatrix2DInit): void;
/**
* The \`setRotate()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_ROTATE\`, with parameter \`angle\` defining the rotation angle and parameters \`cx\` and \`cy\` defining the optional center of rotation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setRotate)
*/
setRotate(angle: number, cx: number, cy: number): void;
/**
* The \`setScale()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_SCALE\`, with parameters \`sx\` and \`sy\` defining the scale amounts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setScale)
*/
setScale(sx: number, sy: number): void;
/**
* The \`setSkewX()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_SKEWX\`, with parameter \`angle\` defining the amount of skew along the X-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewX)
*/
setSkewX(angle: number): void;
/**
* The \`setSkewY()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_SKEWY\`, with parameter \`angle\` defining the amount of skew along the Y-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewY)
*/
setSkewY(angle: number): void;
/**
* The \`setTranslate()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_TRANSLATE\`, with parameters \`tx\` and \`ty\` defining the translation amounts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setTranslate)
*/
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\`** interface defines a list of SVGTransform objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList)
*/
interface SVGTransformList {
/**
* The **\`length\`** read-only property of the SVGTransformList interface represents the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/length)
*/
readonly length: number;
/**
* The **\`numberOfItems\`** read-only property of the SVGTransformList interface represents the number of items in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/numberOfItems)
*/
readonly numberOfItems: number;
/**
* The \`appendItem()\` method of the SVGTransformList interface inserts a new item at the end of the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/appendItem)
*/
appendItem(newItem: SVGTransform): SVGTransform;
/**
* The \`clear()\` method of the SVGTransformList interface clears all existing current items from the list, with the result being an empty list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/clear)
*/
clear(): void;
/**
* The \`consolidate()\` method of the SVGTransformList interface consolidates the list of separate SVGTransform objects by multiplying the equivalent transformation matrices together to result in a list consisting of a single \`SVGTransform\` object of type \`SVG_TRANSFORM_MATRIX\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/consolidate)
*/
consolidate(): SVGTransform | null;
/**
* The \`createSVGTransformFromMatrix()\` method of the SVGTransformList interface creates an SVGTransform object which is initialized to a transform of type \`SVG_TRANSFORM_MATRIX\` and whose values are the given matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix)
*/
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
/**
* The \`getItem()\` method of the SVGTransformList interface returns the specified item from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/getItem)
*/
getItem(index: number): SVGTransform;
/**
* The \`initialize()\` method of the SVGTransformList interface clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/initialize)
*/
initialize(newItem: SVGTransform): SVGTransform;
/**
* The \`insertItemBefore()\` method of the SVGTransformList interface inserts a new item into the list at the specified position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/insertItemBefore)
*/
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
/**
* The \`removeItem()\` method of the SVGTransformList interface removes an existing item from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/removeItem)
*/
removeItem(index: number): SVGTransform;
/**
* The \`replaceItem()\` method of the SVGTransformList interface replaces an existing item in the list with a new item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/replaceItem)
*/
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
[index: number]: SVGTransform;
}
declare var SVGTransformList: {
prototype: SVGTransformList;
new(): SVGTransformList;
};
interface SVGURIReference {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/href) */
readonly href: SVGAnimatedString;
}
/**
* The **\`SVGUnitTypes\`** interface defines 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;
};
/**
* The **\`SVGUseElement\`** interface corresponds to the use element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement)
*/
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
/**
* The **\`height\`** read-only property of the SVGUseElement interface describes the height of the referenced element as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/height)
*/
readonly height: SVGAnimatedLength;
/**
* The **\`width\`** read-only property of the SVGUseElement interface describes the width of the referenced element as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/width)
*/
readonly width: SVGAnimatedLength;
/**
* The **\`x\`** read-only property of the SVGUseElement interface describes the x-axis coordinate of the start point of the referenced element as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/x)
*/
readonly x: SVGAnimatedLength;
/**
* The **\`y\`** read-only property of the SVGUseElement interface describes the y-axis coordinate of the start point of the referenced element as an SVGAnimatedLength.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/y)
*/
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;
};
/**
* The **\`SVGViewElement\`** interface 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;
};
/**
* The \`Screen\` interface represents 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 {
/**
* The read-only Screen interface's **\`availHeight\`** property returns the height, in CSS pixels, of the space available for Web content on the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight)
*/
readonly availHeight: number;
/**
* The **\`Screen.availWidth\`** property returns the amount of horizontal space (in CSS pixels) available to the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth)
*/
readonly availWidth: number;
/**
* The **\`Screen.colorDepth\`** read-only property returns the color depth of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth)
*/
readonly colorDepth: number;
/**
* The **\`Screen.height\`** read-only property returns the height of the screen in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height)
*/
readonly height: number;
/**
* The **\`orientation\`** read-only property of the An instance of ScreenOrientation representing the orientation of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation)
*/
readonly orientation: ScreenOrientation;
/**
* Returns the bit depth of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth)
*/
readonly pixelDepth: number;
/**
* The **\`Screen.width\`** read-only property returns the width of the screen in CSS pixels.
*
* [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;
}
/**
* The **\`ScreenOrientation\`** interface of the Screen Orientation API provides information about the current orientation of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation)
*/
interface ScreenOrientation extends EventTarget {
/**
* The **\`angle\`** read-only property of the angle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle)
*/
readonly angle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/change_event) */
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
/**
* The **\`type\`** read-only property of the type, one of \`portrait-primary\`, \`portrait-secondary\`, \`landscape-primary\`, or \`landscape-secondary\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type)
*/
readonly type: OrientationType;
/**
* The **\`unlock()\`** method of the document from its default orientation.
*
* [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;
}
/**
* The \`ScriptProcessorNode\` interface 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 {
/**
* The \`bufferSize\` property of the ScriptProcessorNode interface returns an integer representing both the input and output buffer size, in sample-frames.
* @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;
};
/**
* The **\`SecurityPolicyViolationEvent\`** interface inherits from Event, and represents the event object of a \`securitypolicyviolation\` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
*/
interface SecurityPolicyViolationEvent extends Event {
/**
* The **\`blockedURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the resource that was blocked because it violates a Content Security Policy (CSP).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)
*/
readonly blockedURI: string;
/**
* The **\`columnNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
*/
readonly columnNumber: number;
/**
* The **\`disposition\`** read-only property of the SecurityPolicyViolationEvent interface indicates how the violated Content Security Policy (CSP) is configured to be treated by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition)
*/
readonly disposition: SecurityPolicyViolationEventDisposition;
/**
* The **\`documentURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the document or worker in which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI)
*/
readonly documentURI: string;
/**
* The **\`effectiveDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)
*/
readonly effectiveDirective: string;
/**
* The **\`lineNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the line number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)
*/
readonly lineNumber: number;
/**
* The **\`originalPolicy\`** read-only property of the SecurityPolicyViolationEvent interface is a string containing the Content Security Policy (CSP) whose enforcement uncovered the violation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)
*/
readonly originalPolicy: string;
/**
* The **\`referrer\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer)
*/
readonly referrer: string;
/**
* The **\`sample\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing a sample of the resource that caused the Content Security Policy (CSP) violation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample)
*/
readonly sample: string;
/**
* The **\`sourceFile\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URL of the script in which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)
*/
readonly sourceFile: string;
/**
* The **\`statusCode\`** read-only property of the SecurityPolicyViolationEvent interface is a number representing the HTTP status code of the window or worker in which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode)
*/
readonly statusCode: number;
/**
* The **\`violatedDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection)
*/
interface Selection {
/**
* The **\`Selection.anchorNode\`** read-only property returns the Node in which the selection begins.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode)
*/
readonly anchorNode: Node | null;
/**
* The **\`Selection.anchorOffset\`** read-only property returns the number of characters that the selection's anchor is offset within the In the case of Selection.anchorNode being another type of node, **\`Selection.anchorOffset\`** returns the number of Node.childNodes the selection's anchor is offset within the Selection.anchorNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset)
*/
readonly anchorOffset: number;
/**
* The **\`direction\`** read-only property of the Selection interface is a string that provides the direction of the current selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/direction)
*/
readonly direction: string;
/**
* The **\`Selection.focusNode\`** read-only property returns the Node in which the selection ends.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode)
*/
readonly focusNode: Node | null;
/**
* The **\`Selection.focusOffset\`** read-only property returns the number of characters that the selection's focus is offset within the In the case of Selection.focusNode being another type of node, **\`Selection.focusOffset\`** returns the number of Node.childNodes the selection's focus is offset within the Selection.focusNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset)
*/
readonly focusOffset: number;
/**
* The **\`Selection.isCollapsed\`** read-only property returns a boolean value which indicates whether or not there is currently any text selected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed)
*/
readonly isCollapsed: boolean;
/**
* The **\`Selection.rangeCount\`** read-only property returns the number of ranges in the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount)
*/
readonly rangeCount: number;
/**
* The **\`type\`** read-only property of the type of the current selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type)
*/
readonly type: string;
/**
* The **\`Selection.addRange()\`** method adds a \`\`\`js-nolint addRange(range) \`\`\` - \`range\` - : A Range object that will be added to the Selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange)
*/
addRange(range: Range): void;
/**
* The **\`Selection.collapse()\`** method collapses the current selection to a single point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse)
*/
collapse(node: Node | null, offset?: number): void;
/**
* The **\`Selection.collapseToEnd()\`** method collapses the selection to the end of the last range in the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd)
*/
collapseToEnd(): void;
/**
* The **\`Selection.collapseToStart()\`** method collapses the selection to the start of the first range in the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart)
*/
collapseToStart(): void;
/**
* The **\`Selection.containsNode()\`** method indicates whether a specified node is part of the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode)
*/
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
/**
* The **\`deleteFromDocument()\`** method of the \`\`\`js-nolint deleteFromDocument() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument)
*/
deleteFromDocument(): void;
/**
* The **\`Selection.empty()\`** method removes all ranges from the selection, leaving the Selection.anchorNode and Selection.focusNode properties equal to \`null\` and nothing selected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/empty)
*/
empty(): void;
/**
* The **\`Selection.extend()\`** method moves the focus of the selection to a specified point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend)
*/
extend(node: Node, offset?: number): void;
/**
* The **\`Selection.getComposedRanges()\`** method returns an array of StaticRange objects representing the current selection ranges, and can return ranges that potentially cross shadow boundaries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getComposedRanges)
*/
getComposedRanges(options?: GetComposedRangesOptions): StaticRange[];
/**
* The **\`getRangeAt()\`** method of the Selection interface returns a range object representing a currently selected range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt)
*/
getRangeAt(index: number): Range;
/**
* The **\`Selection.modify()\`** method applies a change to the current selection or cursor position, using simple textual commands.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify)
*/
modify(alter?: string, direction?: string, granularity?: string): void;
/**
* The **\`Selection.removeAllRanges()\`** method removes all ranges from the selection, leaving the Selection.anchorNode and Selection.focusNode properties equal to \`null\` and nothing selected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges)
*/
removeAllRanges(): void;
/**
* The **\`Selection.removeRange()\`** method removes a range from a selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange)
*/
removeRange(range: Range): void;
/**
* The **\`Selection.selectAllChildren()\`** method adds all the children of the specified node to the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren)
*/
selectAllChildren(node: Node): void;
/**
* The **\`setBaseAndExtent()\`** method of the Selection interface sets the selection to be a range including all or parts of two specified DOM nodes, and any content located between them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent)
*/
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
/**
* The **\`Selection.setPosition()\`** method collapses the current selection to a single point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setPosition)
*/
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* The **\`ServiceWorker\`** interface of the Service Worker API provides a reference to a service worker.
* 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;
/**
* Returns the \`ServiceWorker\` serialized script URL defined as part of \`ServiceWorkerRegistration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL)
*/
readonly scriptURL: string;
/**
* The **\`state\`** read-only property of the of the service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state)
*/
readonly state: ServiceWorkerState;
/**
* The **\`postMessage()\`** method of the ServiceWorker interface sends a message to the worker.
*
* [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 Service Worker 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 {
/**
* The **\`controller\`** read-only property of the ServiceWorkerContainer interface returns a \`activated\` (the same object returned by \`null\` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.
*
* [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;
/**
* The **\`ready\`** read-only property of the ServiceWorkerContainer interface provides a way of delaying code execution until a service worker is active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready)
*/
readonly ready: Promise<ServiceWorkerRegistration>;
/**
* The **\`getRegistration()\`** method of the client URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)
*/
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
/**
* The **\`getRegistrations()\`** method of the \`ServiceWorkerContainer\`, in an array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)
*/
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
/**
* The **\`register()\`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
*/
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
/**
* The **\`startMessages()\`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()).
*
* [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;
}
/**
* The **\`ServiceWorkerRegistration\`** interface of the Service Worker API represents the service worker registration.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
*/
interface ServiceWorkerRegistration extends EventTarget {
/**
* The **\`active\`** read-only property of the This property is initially set to \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
*/
readonly active: ServiceWorker | null;
/**
* The **\`cookies\`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
*/
readonly cookies: CookieStoreManager;
/**
* The **\`installing\`** read-only property of the initially set to \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing)
*/
readonly installing: ServiceWorker | null;
/**
* The **\`navigationPreload\`** read-only property of the ServiceWorkerRegistration interface returns the NavigationPreloadManager associated with the current service worker registration.
*
* [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;
/**
* The **\`pushManager\`** read-only property of the support for subscribing, getting an active subscription, and accessing push permission status.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
*/
readonly pushManager: PushManager;
/**
* The **\`scope\`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope)
*/
readonly scope: string;
/**
* The **\`updateViaCache\`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via WorkerGlobalScope.importScripts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache)
*/
readonly updateViaCache: ServiceWorkerUpdateViaCache;
/**
* The **\`waiting\`** read-only property of the set to \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting)
*/
readonly waiting: ServiceWorker | null;
/**
* The **\`getNotifications()\`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)
*/
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
/**
* The **\`showNotification()\`** method of the service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification)
*/
showNotification(title: string, options?: NotificationOptions): Promise<void>;
/**
* The **\`unregister()\`** method of the registration and returns a Promise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)
*/
unregister(): Promise<boolean>;
/**
* The **\`update()\`** method of the worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)
*/
update(): Promise<ServiceWorkerRegistration>;
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;
}
/**
* The **\`ShadowRoot\`** interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot)
*/
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
/**
* The **\`clonable\`** read-only property of the ShadowRoot interface returns \`true\` if the shadow root is clonable, and \`false\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable)
*/
readonly clonable: boolean;
/**
* The **\`delegatesFocus\`** read-only property of the ShadowRoot interface returns \`true\` if the shadow root delegates focus, and \`false\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus)
*/
readonly delegatesFocus: boolean;
/**
* The **\`host\`** read-only property of the ShadowRoot returns a reference to the DOM element the \`ShadowRoot\` is attached to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host)
*/
readonly host: Element;
/**
* The **\`innerHTML\`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the \`ShadowRoot\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML)
*/
innerHTML: string;
/**
* The **\`mode\`** read-only property of the ShadowRoot specifies its mode \u2014 either \`open\` or \`closed\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode)
*/
readonly mode: ShadowRootMode;
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
/**
* The **\`serializable\`** read-only property of the ShadowRoot interface returns \`true\` if the shadow root is serializable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable)
*/
readonly serializable: boolean;
/**
* The read-only **\`slotAssignment\`** property of the ShadowRoot interface returns the _slot assignment mode_ for the shadow DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment)
*/
readonly slotAssignment: SlotAssignmentMode;
/**
* The **\`getHTML()\`** method of the ShadowRoot interface is used to serialize a shadow root's DOM to an HTML string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML)
*/
getHTML(options?: GetHTMLOptions): string;
/**
* The **\`setHTMLUnsafe()\`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
*/
setHTMLUnsafe(html: string): void;
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;
};
/**
* The **\`SharedWorker\`** interface represents a specific kind of worker that can be _accessed_ from several browsing contexts, such as several windows, iframes or even workers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker)
*/
interface SharedWorker extends EventTarget, AbstractWorker {
/**
* The **\`port\`** property of the SharedWorker interface returns a MessagePort object used to communicate and control the shared worker.
*
* [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;
}
/**
* The **\`SourceBuffer\`** interface represents a chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer)
*/
interface SourceBuffer extends EventTarget {
/**
* The **\`appendWindowEnd\`** property of the timestamp range that can be used to filter what media data is appended to the \`SourceBuffer\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd)
*/
appendWindowEnd: number;
/**
* The **\`appendWindowStart\`** property of the timestamp range that can be used to filter what media data is appended to the \`SourceBuffer\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart)
*/
appendWindowStart: number;
/**
* The **\`buffered\`** read-only property of the buffered in the \`SourceBuffer\` as a normalized TimeRanges object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered)
*/
readonly buffered: TimeRanges;
/**
* The **\`mode\`** property of the SourceBuffer interface controls whether media segments can be appended to the \`SourceBuffer\` in any order, or in a strict sequence.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
*/
mode: AppendMode;
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
/**
* The **\`timestampOffset\`** property of the media segments that are appended to the \`SourceBuffer\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset)
*/
timestampOffset: number;
/**
* The **\`updating\`** read-only property of the currently being updated \u2014 i.e., whether an SourceBuffer.appendBuffer() or SourceBuffer.remove() operation is currently in progress.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating)
*/
readonly updating: boolean;
/**
* The **\`abort()\`** method of the SourceBuffer interface aborts the current segment and resets the segment parser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort)
*/
abort(): void;
/**
* The **\`appendBuffer()\`** method of the to the \`SourceBuffer\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer)
*/
appendBuffer(data: BufferSource): void;
/**
* The **\`changeType()\`** method of the data to conform to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType)
*/
changeType(type: string): void;
/**
* The **\`remove()\`** method of the SourceBuffer interface removes media segments within a specific time range from the \`SourceBuffer\`.
*
* [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;
}
/**
* The **\`SourceBufferList\`** interface represents a simple container list for multiple SourceBuffer objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList)
*/
interface SourceBufferList extends EventTarget {
/**
* The **\`length\`** read-only property of the An unsigned long number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length)
*/
readonly length: number;
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: SourceBuffer;
}
declare var SourceBufferList: {
prototype: SourceBufferList;
new(): SourceBufferList;
};
/**
* The **\`SpeechRecognitionAlternative\`** interface of the Web Speech API represents a single word that has been recognized by the speech recognition service.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative)
*/
interface SpeechRecognitionAlternative {
/**
* The **\`confidence\`** read-only property of the confident the speech recognition system is that the recognition is correct.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence)
*/
readonly confidence: number;
/**
* The **\`transcript\`** read-only property of the transcript of the recognized word(s).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript)
*/
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
/**
* The **\`SpeechRecognitionResult\`** interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult)
*/
interface SpeechRecognitionResult {
/**
* The **\`isFinal\`** read-only property of the whether this result is final (\`true\`) or not (\`false\`) \u2014 if so, then this is the final time this result will be returned; if not, then this result is an interim result, and may be updated later on.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal)
*/
readonly isFinal: boolean;
/**
* The **\`length\`** read-only property of the \u2014 the number of SpeechRecognitionAlternative objects contained in the result (also referred to as 'n-best alternatives'.) The number of alternatives contained in the result depends on what the recognition was first initiated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length)
*/
readonly length: number;
/**
* The **\`item\`** getter of the array syntax.
*
* [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;
};
/**
* The **\`SpeechRecognitionResultList\`** interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in SpeechRecognition.continuous mode.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList)
*/
interface SpeechRecognitionResultList {
/**
* The **\`length\`** read-only property of the 'array' \u2014 the number of SpeechRecognitionResult objects in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length)
*/
readonly length: number;
/**
* The **\`item\`** getter of the syntax.
*
* [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;
}
/**
* The **\`SpeechSynthesis\`** interface of the Web Speech API 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;
/**
* The **\`paused\`** read-only property of the \`true\` if the \`SpeechSynthesis\` object is in a paused state, or \`false\` if not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused)
*/
readonly paused: boolean;
/**
* The **\`pending\`** read-only property of the \`true\` if the utterance queue contains as-yet-unspoken utterances.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending)
*/
readonly pending: boolean;
/**
* The **\`speaking\`** read-only property of the \`true\` if an utterance is currently in the process of being spoken \u2014 even if \`SpeechSynthesis\` is in a A boolean value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking)
*/
readonly speaking: boolean;
/**
* The **\`cancel()\`** method of the SpeechSynthesis interface removes all utterances from the utterance queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel)
*/
cancel(): void;
/**
* The **\`getVoices()\`** method of the current device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices)
*/
getVoices(): SpeechSynthesisVoice[];
/**
* The **\`pause()\`** method of the SpeechSynthesis interface puts the \`SpeechSynthesis\` object into a paused state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause)
*/
pause(): void;
/**
* The **\`resume()\`** method of the SpeechSynthesis interface puts the \`SpeechSynthesis\` object into a non-paused state: resumes it if it was already paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume)
*/
resume(): void;
/**
* The **\`speak()\`** method of the SpeechSynthesis interface adds an SpeechSynthesisUtterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.
*
* [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;
};
/**
* The **\`SpeechSynthesisErrorEvent\`** interface of the Web Speech API contains information about any errors that occur while processing SpeechSynthesisUtterance objects in the speech service.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent)
*/
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
/**
* The **\`error\`** property of the A string containing the error reason.
*
* [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;
};
/**
* The **\`SpeechSynthesisEvent\`** interface of the Web Speech API 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 {
/**
* The **\`charIndex\`** read-only property of the SpeechSynthesisUtterance interface returns the index position of the character in SpeechSynthesisUtterance.text that was being spoken when the event was triggered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex)
*/
readonly charIndex: number;
/**
* The read-only **\`charLength\`** property of the SpeechSynthesisEvent interface returns the number of characters left to be spoken after the character at the SpeechSynthesisEvent.charIndex position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength)
*/
readonly charLength: number;
/**
* The **\`elapsedTime\`** read-only property of the SpeechSynthesisEvent returns the elapsed time in seconds, after the SpeechSynthesisUtterance.text started being spoken, at which the event was triggered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime)
*/
readonly elapsedTime: number;
/**
* The **\`name\`** read-only property of the SpeechSynthesisUtterance interface returns the name associated with certain types of events occurring as the SpeechSynthesisUtterance.text is being spoken: the name of the SSML marker reached in the case of a SpeechSynthesisUtterance.mark_event event, or the type of boundary reached in the case of a SpeechSynthesisUtterance.boundary_event event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name)
*/
readonly name: string;
/**
* The **\`utterance\`** read-only property of the SpeechSynthesisUtterance interface returns the SpeechSynthesisUtterance instance that the event was triggered on.
*
* [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;
}
/**
* The **\`SpeechSynthesisUtterance\`** interface of the Web Speech API represents a speech request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance)
*/
interface SpeechSynthesisUtterance extends EventTarget {
/**
* The **\`lang\`** property of the SpeechSynthesisUtterance interface gets and sets the language of the utterance.
*
* [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;
/**
* The **\`pitch\`** property of the SpeechSynthesisUtterance interface gets and sets the pitch at which the utterance will be spoken at.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch)
*/
pitch: number;
/**
* The **\`rate\`** property of the SpeechSynthesisUtterance interface gets and sets the speed at which the utterance will be spoken at.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate)
*/
rate: number;
/**
* The **\`text\`** property of the The text may be provided as plain text, or a well-formed SSML document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text)
*/
text: string;
/**
* The **\`voice\`** property of the SpeechSynthesisUtterance interface gets and sets the voice that will be used to speak the utterance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice)
*/
voice: SpeechSynthesisVoice | null;
/**
* The **\`volume\`** property of the SpeechSynthesisUtterance interface gets and sets the volume that the utterance will be spoken at.
*
* [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;
};
/**
* The **\`SpeechSynthesisVoice\`** interface of the Web Speech API represents a voice that the system supports.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice)
*/
interface SpeechSynthesisVoice {
/**
* The **\`default\`** read-only property of the indicating whether the voice is the default voice for the current app (\`true\`), or not (\`false\`.) A boolean value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default)
*/
readonly default: boolean;
/**
* The **\`lang\`** read-only property of the SpeechSynthesisVoice interface returns a BCP 47 language tag indicating the language of the voice.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang)
*/
readonly lang: string;
/**
* The **\`localService\`** read-only property of the indicating whether the voice is supplied by a local speech synthesizer service (\`true\`), or a remote speech synthesizer service (\`false\`.) This property is provided to allow differentiation in the case that some voice options are provided by a remote service; it is possible that remote voices might have extra latency, bandwidth or cost associated with them, so such distinction may be useful.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService)
*/
readonly localService: boolean;
/**
* The **\`name\`** read-only property of the represents the voice.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name)
*/
readonly name: string;
/**
* The **\`voiceURI\`** read-only property of the the speech synthesis service for this voice.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI)
*/
readonly voiceURI: string;
}
declare var SpeechSynthesisVoice: {
prototype: SpeechSynthesisVoice;
new(): SpeechSynthesisVoice;
};
/**
* The DOM **\`StaticRange\`** interface extends AbstractRange to provide a method to specify a range of content in the DOM whose contents don't update to reflect changes which occur within the DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange)
*/
interface StaticRange extends AbstractRange {
}
declare var StaticRange: {
prototype: StaticRange;
new(init: StaticRangeInit): StaticRange;
};
/**
* The \`StereoPannerNode\` interface of the Web Audio API represents a simple stereo panner node that can be used to pan an audio stream left or right.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode)
*/
interface StereoPannerNode extends AudioNode {
/**
* The \`pan\` property of the StereoPannerNode interface is an a-rate AudioParam representing the amount of panning to apply.
*
* [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;
};
/**
* The **\`Storage\`** interface of the Web Storage API provides access to a particular domain's session or local storage.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)
*/
interface Storage {
/**
* The **\`length\`** read-only property of the \`Storage\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
*/
readonly length: number;
/**
* The **\`clear()\`** method of the Storage interface clears all keys stored in a given \`Storage\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
*/
clear(): void;
/**
* The **\`getItem()\`** method of the Storage interface, when passed a key name, will return that key's value, or \`null\` if the key does not exist, in the given \`Storage\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
*/
getItem(key: string): string | null;
/**
* The **\`key()\`** method of the Storage interface, when passed a number n, returns the name of the nth key in a given \`Storage\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
*/
key(index: number): string | null;
/**
* The **\`removeItem()\`** method of the Storage interface, when passed a key name, will remove that key from the given \`Storage\` object if it exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
*/
removeItem(key: string): void;
/**
* The **\`setItem()\`** method of the Storage interface, when passed a key name and value, will add that key to the given \`Storage\` object, or update that key's value if it already exists.
*
* [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;
};
/**
* The **\`StorageEvent\`** interface is implemented by the Window/storage_event event, which is sent to a window when a storage area the window 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 {
/**
* The **\`key\`** property of the StorageEvent interface returns the key for the storage item that was changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key)
*/
readonly key: string | null;
/**
* The **\`newValue\`** property of the StorageEvent interface returns the new value of the storage item whose value was changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue)
*/
readonly newValue: string | null;
/**
* The **\`oldValue\`** property of the StorageEvent interface returns the original value of the storage item whose value changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue)
*/
readonly oldValue: string | null;
/**
* The **\`storageArea\`** property of the StorageEvent interface returns the storage object that was affected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea)
*/
readonly storageArea: Storage | null;
/**
* The **\`url\`** property of the StorageEvent interface returns the URL of the document whose storage changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url)
*/
readonly url: string;
/**
* The **\`StorageEvent.initStorageEvent()\`** method is used to initialize the value of a StorageEvent.
* @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;
};
/**
* The **\`StorageManager\`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
*/
interface StorageManager {
/**
* The **\`estimate()\`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (\`usage\`), and how much space is available (\`quota\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)
*/
estimate(): Promise<StorageEstimate>;
/**
* The **\`getDirectory()\`** method of the StorageManager interface is used to obtain a reference to a FileSystemDirectoryHandle object allowing access to a directory and its contents, stored in the origin private file system (OPFS).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory)
*/
getDirectory(): Promise<FileSystemDirectoryHandle>;
/**
* The **\`persist()\`** method of the StorageManager interface requests permission to use persistent storage, and returns a Promise that resolves to \`true\` if permission is granted and bucket mode is persistent, and \`false\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist)
*/
persist(): Promise<boolean>;
/**
* The **\`persisted()\`** method of the StorageManager interface returns a Promise that resolves to \`true\` if your site's storage bucket is persistent.
*
* [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;
}
/**
* The **\`StylePropertyMap\`** interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap)
*/
interface StylePropertyMap extends StylePropertyMapReadOnly {
/**
* The **\`append()\`** method of the \`StylePropertyMap\` with the given property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append)
*/
append(property: string, ...values: (CSSStyleValue | string)[]): void;
/**
* The **\`clear()\`** method of the StylePropertyMap interface removes all declarations in the \`StylePropertyMap\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear)
*/
clear(): void;
/**
* The **\`delete()\`** method of the property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete)
*/
delete(property: string): void;
/**
* The **\`set()\`** method of the StylePropertyMap interface changes the CSS declaration with the given property.
*
* [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;
};
/**
* The **\`StylePropertyMapReadOnly\`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly)
*/
interface StylePropertyMapReadOnly {
/**
* The **\`size\`** read-only property of the containing the size of the \`StylePropertyMapReadOnly\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size)
*/
readonly size: number;
/**
* The **\`get()\`** method of the object for the first value of the specified property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get)
*/
get(property: string): undefined | CSSStyleValue;
/**
* The **\`getAll()\`** method of the \`\`\`js-nolint getAll(property) \`\`\` - \`property\` - : The name of the property to retrieve all values of.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll)
*/
getAll(property: string): CSSStyleValue[];
/**
* The **\`has()\`** method of the property is in the \`StylePropertyMapReadOnly\` object.
*
* [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;
};
/**
* An object implementing the \`StyleSheet\` interface represents a single style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet)
*/
interface StyleSheet {
/**
* The **\`disabled\`** property of the applying to the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled)
*/
disabled: boolean;
/**
* The **\`href\`** property of the StyleSheet interface returns the location of the style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href)
*/
readonly href: string | null;
/**
* The **\`media\`** property of the StyleSheet interface specifies the intended destination media for style information.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media)
*/
get media(): MediaList;
set media(mediaText: string);
/**
* The **\`ownerNode\`** property of the with the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode)
*/
readonly ownerNode: Element | ProcessingInstruction | null;
/**
* The **\`parentStyleSheet\`** property of the the given style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet)
*/
readonly parentStyleSheet: CSSStyleSheet | null;
/**
* The **\`title\`** property of the StyleSheet interface returns the advisory title of the current style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title)
*/
readonly title: string | null;
/**
* The **\`type\`** property of the StyleSheet interface specifies the style sheet language for the given style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type)
*/
readonly type: string;
}
declare var StyleSheet: {
prototype: StyleSheet;
new(): StyleSheet;
};
/**
* The \`StyleSheetList\` interface represents a list of CSSStyleSheet objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList)
*/
interface StyleSheetList {
/**
* The **\`length\`** read-only property of the StyleSheetList interface returns the number of CSSStyleSheet objects in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length)
*/
readonly length: number;
/**
* The **\`item()\`** method of the StyleSheetList interface returns a single CSSStyleSheet object.
*
* [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;
};
/**
* The **\`SubmitEvent\`** interface defines the object used to represent an HTML form's HTMLFormElement.submit_event event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent)
*/
interface SubmitEvent extends Event {
/**
* The read-only **\`submitter\`** property found on the SubmitEvent interface specifies the submit button or other element that was invoked to cause the form to be submitted.
*
* [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;
};
/**
* The **\`SubtleCrypto\`** interface of the Web Crypto API provides a number of low-level cryptographic functions.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
*/
interface SubtleCrypto {
/**
* The **\`decrypt()\`** method of the SubtleCrypto interface decrypts some encrypted data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)
*/
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/**
* The **\`deriveBits()\`** method of the key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)
*/
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>;
/**
* The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
*
* [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>;
/**
* The **\`digest()\`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)
*/
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
/**
* The **\`encrypt()\`** method of the SubtleCrypto interface encrypts data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)
*/
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/**
* The **\`exportKey()\`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.
*
* [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>;
/**
* The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
*/
generateKey(algorithm: "Ed25519" | { name: "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>;
/**
* The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
*
* [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>;
/**
* The **\`sign()\`** method of the SubtleCrypto interface generates a digital signature.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)
*/
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/**
* The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
*
* [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>;
/**
* The **\`verify()\`** method of the SubtleCrypto interface verifies a digital signature.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)
*/
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
/**
* The **\`wrapKey()\`** method of the SubtleCrypto interface 'wraps' a key.
*
* [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 **\`Text\`** interface represents a text Node in a DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)
*/
interface Text extends CharacterData, Slottable {
/**
* The read-only **\`wholeText\`** property of the Text interface returns the full text of all Text nodes logically adjacent to the node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)
*/
readonly wholeText: string;
/**
* The **\`splitText()\`** method of the Text interface breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText)
*/
splitText(offset: number): Text;
}
declare var Text: {
prototype: Text;
new(data?: string): Text;
};
/**
* The **\`TextDecoder\`** interface represents a decoder for a specific text encoding, such as \`UTF-8\`, \`ISO-8859-2\`, \`KOI8-R\`, \`GBK\`, etc.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
*/
interface TextDecoder extends TextDecoderCommon {
/**
* The **\`TextDecoder.decode()\`** method returns a string containing text decoded from the buffer passed as a parameter.
*
* [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;
}
/**
* The **\`TextDecoderStream\`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.
*
* [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;
};
/**
* The **\`TextEncoder\`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
*/
interface TextEncoder extends TextEncoderCommon {
/**
* The **\`TextEncoder.encode()\`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
*/
encode(input?: string): Uint8Array<ArrayBuffer>;
/**
* The **\`TextEncoder.encodeInto()\`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
*/
encodeInto(source: string, destination: Uint8Array<ArrayBufferLike>): 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;
}
/**
* The **\`TextEncoderStream\`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
*/
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/**
* The **\`TextEvent\`** interface is a legacy UI event interface for reporting changes to text UI elements.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent)
*/
interface TextEvent extends UIEvent {
/**
* The **\`data\`** read-only property of the TextEvent interface returns the last character added to the input element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/data)
*/
readonly data: string;
/**
* The **\`initTextEventEvent()\`** method of the TextEvent interface initializes the value of a \`TextEvent\` after it has been created.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent)
*/
initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void;
}
/** @deprecated */
declare var TextEvent: {
prototype: TextEvent;
new(): TextEvent;
};
/**
* The **\`TextMetrics\`** interface represents the dimensions of a piece of text in the canvas; a \`TextMetrics\` instance can be retrieved using the CanvasRenderingContext2D.measureText() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
*/
interface TextMetrics {
/**
* The read-only **\`actualBoundingBoxAscent\`** property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
*/
readonly actualBoundingBoxAscent: number;
/**
* The read-only \`actualBoundingBoxDescent\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
*/
readonly actualBoundingBoxDescent: number;
/**
* The read-only \`actualBoundingBoxLeft\` property of the TextMetrics interface is a \`double\` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels; positive numbers indicating a distance going left from the given alignment point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
*/
readonly actualBoundingBoxLeft: number;
/**
* The read-only \`actualBoundingBoxRight\` property of the TextMetrics interface is a \`double\` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
*/
readonly actualBoundingBoxRight: number;
/**
* The read-only \`alphabeticBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
*/
readonly alphabeticBaseline: number;
/**
* The read-only \`emHeightAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the _em_ square in the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
*/
readonly emHeightAscent: number;
/**
* The read-only \`emHeightDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the _em_ square in the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
*/
readonly emHeightDescent: number;
/**
* The read-only \`fontBoundingBoxAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute, to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
*/
readonly fontBoundingBoxAscent: number;
/**
* The read-only \`fontBoundingBoxDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
*/
readonly fontBoundingBoxDescent: number;
/**
* The read-only \`hangingBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
*/
readonly hangingBaseline: number;
/**
* The read-only \`ideographicBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
*/
readonly ideographicBaseline: number;
/**
* The read-only **\`width\`** property of the TextMetrics interface contains the text's advance width (the width of that inline box) in CSS pixels.
*
* [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;
}
/**
* The **\`TextTrack\`** interface of the WebVTT API represents a text track associated with a media element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack)
*/
interface TextTrack extends EventTarget {
/**
* The **\`activeCues\`** read-only property of the TextTrack interface returns a TextTrackCueList object listing the currently active cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues)
*/
readonly activeCues: TextTrackCueList | null;
/**
* The **\`cues\`** read-only property of the TextTrack interface returns a TextTrackCueList object containing all of the track's cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues)
*/
readonly cues: TextTrackCueList | null;
/**
* The **\`id\`** read-only property of the TextTrack interface returns the ID of the track if it has one.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id)
*/
readonly id: string;
/**
* The **\`inBandMetadataTrackDispatchType\`** read-only property of the TextTrack interface returns the text track's in-band metadata dispatch type of the text track represented by the TextTrack object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)
*/
readonly inBandMetadataTrackDispatchType: string;
/**
* The **\`kind\`** read-only property of the TextTrack interface returns the kind of text track this object represents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind)
*/
readonly kind: TextTrackKind;
/**
* The **\`label\`** read-only property of the TextTrack interface returns a human-readable label for the text track, if it is available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label)
*/
readonly label: string;
/**
* The **\`language\`** read-only property of the TextTrack interface returns the language of the text track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language)
*/
readonly language: string;
/**
* The TextTrack interface's **\`mode\`** property is a string specifying and controlling the text track's mode: \`disabled\`, \`hidden\`, or \`showing\`.
*
* [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;
/**
* The **\`addCue()\`** method of the TextTrack interface adds a new cue to the list of cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue)
*/
addCue(cue: TextTrackCue): void;
/**
* The **\`removeCue()\`** method of the TextTrack interface removes a cue from the 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;
}
/**
* The **\`TextTrackCue\`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
*/
interface TextTrackCue extends EventTarget {
/**
* The **\`endTime\`** property of the TextTrackCue interface returns and sets the end time of the cue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime)
*/
endTime: number;
/**
* The **\`id\`** property of the TextTrackCue interface returns and sets the identifier for this cue.
*
* [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;
/**
* The **\`pauseOnExit\`** property of the TextTrackCue interface returns or sets the flag indicating whether playback of the media should pause when the end of the range to which this cue applies is reached.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit)
*/
pauseOnExit: boolean;
/**
* The **\`startTime\`** property of the TextTrackCue interface returns and sets the start time of the cue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime)
*/
startTime: number;
/**
* The **\`track\`** read-only property of the TextTrackCue interface returns the TextTrack object that this cue belongs to.
*
* [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;
};
/**
* The **\`TextTrackCueList\`** interface of the WebVTT API is an array-like object that represents a dynamically updating list of TextTrackCue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList)
*/
interface TextTrackCueList {
/**
* The **\`length\`** read-only property of the TextTrackCueList interface returns the number of cues in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length)
*/
readonly length: number;
/**
* The **\`getCueById()\`** method of the TextTrackCueList interface returns the first VTTCue in the list represented by the \`TextTrackCueList\` object whose identifier matches the value of \`id\`.
*
* [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;
}
/**
* The **\`TextTrackList\`** interface is used to represent a list of the text tracks defined for the associated video or audio element, with each track represented by a separate textTrack object in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList)
*/
interface TextTrackList extends EventTarget {
/**
* The read-only **TextTrackList** property **\`length\`** returns the number of entries in the \`TextTrackList\`, each of which is a TextTrack representing one track in the media element.
*
* [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;
/**
* The **TextTrackList** method **\`getTrackById()\`** returns the first \`id\` matches the specified string.
*
* [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;
};
/**
* When loading a media resource for use by an audio or video element, the **\`TimeRanges\`** interface is used for representing the time ranges of the media resource that have been buffered, the time ranges that have been played, and the time ranges that are seekable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges)
*/
interface TimeRanges {
/**
* The **\`TimeRanges.length\`** read-only property returns the number of ranges in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length)
*/
readonly length: number;
/**
* The **\`end()\`** method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range ends.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end)
*/
end(index: number): number;
/**
* The **\`start()\`** method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range begins.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start)
*/
start(index: number): number;
}
declare var TimeRanges: {
prototype: TimeRanges;
new(): TimeRanges;
};
/**
* The **\`ToggleEvent\`** interface represents an event notifying the user an Element's state has changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent)
*/
interface ToggleEvent extends Event {
/**
* The **\`newState\`** read-only property of the ToggleEvent interface is a string representing the state the element is transitioning to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState)
*/
readonly newState: string;
/**
* The **\`oldState\`** read-only property of the ToggleEvent interface is a string representing the state the element is transitioning from.
*
* [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;
};
/**
* The **\`Touch\`** interface represents a single contact point on a touch-sensitive device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch)
*/
interface Touch {
/**
* The \`Touch.clientX\` read-only property returns the X coordinate of the touch point relative to the viewport, not including any scroll offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX)
*/
readonly clientX: number;
/**
* The **\`Touch.clientY\`** read-only property returns the Y coordinate of the touch point relative to the browser's viewport, not including any scroll offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY)
*/
readonly clientY: number;
/**
* The **\`Touch.force\`** read-only property returns the amount of pressure the user is applying to the touch surface for a Touch point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force)
*/
readonly force: number;
/**
* The **\`Touch.identifier\`** returns a value uniquely identifying this point of contact with the touch surface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier)
*/
readonly identifier: number;
/**
* The **\`Touch.pageX\`** read-only property returns the X coordinate of the touch point relative to the viewport, including any scroll offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX)
*/
readonly pageX: number;
/**
* The **\`Touch.pageY\`** read-only property returns the Y coordinate of the touch point relative to the viewport, including any scroll offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY)
*/
readonly pageY: number;
/**
* The **\`radiusX\`** read-only property of the Touch interface returns the X radius of the ellipse that most closely circumscribes the area of contact with the touch surface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX)
*/
readonly radiusX: number;
/**
* The **\`radiusY\`** read-only property of the Touch interface returns the Y radius of the ellipse that most closely circumscribes the area of contact with the touch surface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY)
*/
readonly radiusY: number;
/**
* The **\`rotationAngle\`** read-only property of the Touch interface returns the rotation angle, in degrees, of the contact area ellipse defined by Touch.radiusX and Touch.radiusY.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle)
*/
readonly rotationAngle: number;
/**
* Returns the X coordinate of the touch point relative to the screen, not including any scroll offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX)
*/
readonly screenX: number;
/**
* Returns the Y coordinate of the touch point relative to the screen, not including any scroll offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY)
*/
readonly screenY: number;
/**
* The read-only **\`target\`** property of the \`Touch\` interface returns the (EventTarget) on which the touch contact started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target)
*/
readonly target: EventTarget;
}
declare var Touch: {
prototype: Touch;
new(touchInitDict: TouchInit): Touch;
};
/**
* The **\`TouchEvent\`** interface represents an UIEvent which is sent when the state of contacts with a touch-sensitive surface changes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)
*/
interface TouchEvent extends UIEvent {
/**
* The read-only **\`altKey\`** property of the TouchEvent interface returns a boolean value indicating whether or not the <kbd>alt</kbd> (Alternate) key is enabled when the touch event is created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey)
*/
readonly altKey: boolean;
/**
* The **\`changedTouches\`** read-only property is a TouchList whose touch points (Touch objects) varies depending on the event type, as follows: - For the Element/touchstart_event event, it is a list of the touch points that became active with the current event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches)
*/
readonly changedTouches: TouchList;
/**
* The read-only **\`ctrlKey\`** property of the TouchEvent interface returns a boolean value indicating whether the <kbd>control</kbd> (Control) key is enabled when the touch event is created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey)
*/
readonly ctrlKey: boolean;
/**
* The read-only **\`metaKey\`** property of the TouchEvent interface returns a boolean value indicating whether or not the <kbd>Meta</kbd> key is enabled when the touch event is created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey)
*/
readonly metaKey: boolean;
/**
* The read-only **\`shiftKey\`** property of the \`TouchEvent\` interface returns a boolean value indicating whether or not the <kbd>shift</kbd> key is enabled when the touch event is created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey)
*/
readonly shiftKey: boolean;
/**
* The **\`targetTouches\`** read-only property is a TouchList listing all the Touch objects for touch points that are still in contact with the touch surface **and** whose Element/touchstart_event event occurred inside the same target element as the current target element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches)
*/
readonly targetTouches: TouchList;
/**
* **\`touches\`** is a read-only TouchList listing all the Touch objects for touch points that are currently in contact with the touch surface, regardless of whether or not they've changed or what their target element was at Element/touchstart_event time.
*
* [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;
};
/**
* The **\`TouchList\`** interface represents a list of contact points on a touch surface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList)
*/
interface TouchList {
/**
* The **\`length\`** read-only property indicates the number of items (touch points) in a given TouchList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length)
*/
readonly length: number;
/**
* The **\`item()\`** method returns the Touch object at the specified index in the TouchList.
*
* [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 of the HTML DOM API is used for events which represent changes to a 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 {
/**
* The read-only **\`track\`** property of the TrackEvent interface specifies the media track object to which the event applies.
*
* [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;
};
/**
* The **\`TransformStream\`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
*/
interface TransformStream<I = any, O = any> {
/**
* The **\`readable\`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this \`TransformStream\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
*/
readonly readable: ReadableStream<O>;
/**
* The **\`writable\`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this \`TransformStream\`.
*
* [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>;
};
/**
* The **\`TransformStreamDefaultController\`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
*/
interface TransformStreamDefaultController<O = any> {
/**
* The **\`desiredSize\`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)
*/
readonly desiredSize: number | null;
/**
* The **\`enqueue()\`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
*/
enqueue(chunk?: O): void;
/**
* The **\`error()\`** method of the TransformStreamDefaultController interface errors both sides of the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
*/
error(reason?: any): void;
/**
* The **\`terminate()\`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)
*/
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/**
* The **\`TransitionEvent\`** interface represents events providing information related to transitions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)
*/
interface TransitionEvent extends Event {
/**
* The **\`TransitionEvent.elapsedTime\`** read-only property is a \`float\` giving the amount of time the animation has been running, in seconds, when this event fired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime)
*/
readonly elapsedTime: number;
/**
* The **\`propertyName\`** read-only property of TransitionEvent objects is a string containing the name of the CSS property associated with the transition.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName)
*/
readonly propertyName: string;
/**
* The **\`TransitionEvent.pseudoElement\`** read-only property is a string, starting with \`'::'\`, containing the name of the pseudo-element the animation runs on.
*
* [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 **\`TreeWalker\`** object represents the nodes of a document subtree and a position within them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker)
*/
interface TreeWalker {
/**
* The **\`TreeWalker.currentNode\`** property represents the A Node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode)
*/
currentNode: Node;
/**
* The **\`TreeWalker.filter\`** read-only property returns the \`NodeFilter\` associated with the TreeWalker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter)
*/
readonly filter: NodeFilter | null;
/**
* The **\`TreeWalker.root\`** read-only property returns the root Node that the TreeWalker traverses.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root)
*/
readonly root: Node;
/**
* The **\`TreeWalker.whatToShow\`** read-only property returns a bitmask that indicates the types of nodes to show.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow)
*/
readonly whatToShow: number;
/**
* The **\`TreeWalker.firstChild()\`** method moves the current the found child.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild)
*/
firstChild(): Node | null;
/**
* The **\`TreeWalker.lastChild()\`** method moves the current the found child.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild)
*/
lastChild(): Node | null;
/**
* The **\`TreeWalker.nextNode()\`** method moves the current the found node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode)
*/
nextNode(): Node | null;
/**
* The **\`TreeWalker.nextSibling()\`** method moves the current is no such node, it returns \`null\` and the current node is not changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling)
*/
nextSibling(): Node | null;
/**
* The **\`TreeWalker.parentNode()\`** method moves the current and returns the found node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode)
*/
parentNode(): Node | null;
/**
* The **\`TreeWalker.previousNode()\`** method moves the current returns the found node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode)
*/
previousNode(): Node | null;
/**
* The **\`TreeWalker.previousSibling()\`** method moves the current there is no such node, it returns \`null\` and the current node is not changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling)
*/
previousSibling(): Node | null;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
};
/**
* The **\`UIEvent\`** interface represents simple user interface events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent)
*/
interface UIEvent extends Event {
/**
* The **\`UIEvent.detail\`** read-only property, when non-zero, provides the current (or next, depending on the event) click count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail)
*/
readonly detail: number;
/**
* The **\`UIEvent.view\`** read-only property returns the is the Window object the event happened in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view)
*/
readonly view: Window | null;
/**
* The **\`UIEvent.which\`** read-only property of the UIEvent interface returns a number that indicates which button was pressed on the mouse, or the numeric \`keyCode\` or the character code (\`charCode\`) of the key pressed on the keyboard.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which)
*/
readonly which: number;
/**
* The **\`UIEvent.initUIEvent()\`** method initializes a UI event once it's been created.
* @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 is used to parse, construct, normalize, and encode URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
*/
interface URL {
/**
* The **\`hash\`** property of the URL interface is a string containing a \`'#'\` followed by the fragment identifier of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
*/
hash: string;
/**
* The **\`host\`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a \`':'\`, followed by the URL.port of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
*/
host: string;
/**
* The **\`hostname\`** property of the URL interface is a string containing either the domain name or IP address of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
*/
hostname: string;
/**
* The **\`href\`** property of the URL interface is a string containing the whole URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
*/
href: string;
toString(): string;
/**
* The **\`origin\`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)
*/
readonly origin: string;
/**
* The **\`password\`** property of the URL interface is a string containing the password component of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
*/
password: string;
/**
* The **\`pathname\`** property of the URL interface represents a location in a hierarchical structure.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
*/
pathname: string;
/**
* The **\`port\`** property of the URL interface is a string containing the port number of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
*/
port: string;
/**
* The **\`protocol\`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final \`':'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
*/
protocol: string;
/**
* The **\`search\`** property of the URL interface is a search string, also called a _query string_, that is a string containing a \`'?'\` followed by the parameters of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
*/
search: string;
/**
* The **\`searchParams\`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
*/
readonly searchParams: URLSearchParams;
/**
* The **\`username\`** property of the URL interface is a string containing the username component of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
*/
username: string;
/**
* The **\`toJSON()\`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as \`\`\`js-nolint toJSON() \`\`\` None.
*
* [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;
/**
* The **\`URL.canParse()\`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
*/
canParse(url: string | URL, base?: string | URL): boolean;
/**
* The **\`createObjectURL()\`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
*/
createObjectURL(obj: Blob | MediaSource): string;
/**
* The **\`URL.parse()\`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
*/
parse(url: string | URL, base?: string | URL): URL | null;
/**
* The **\`revokeObjectURL()\`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
*/
revokeObjectURL(url: string): void;
};
type webkitURL = URL;
declare var webkitURL: typeof URL;
/**
* The **\`URLSearchParams\`** interface defines utility methods to work with the query string of a URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
*/
interface URLSearchParams {
/**
* The **\`size\`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
*/
readonly size: number;
/**
* The **\`append()\`** method of the URLSearchParams interface 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;
/**
* The **\`delete()\`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
*/
delete(name: string, value?: string): void;
/**
* The **\`get()\`** method of the URLSearchParams interface 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;
/**
* The **\`getAll()\`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
*/
getAll(name: string): string[];
/**
* The **\`has()\`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
*/
has(name: string, value?: string): boolean;
/**
* The **\`set()\`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
*/
set(name: string, value: string): void;
/**
* The **\`URLSearchParams.sort()\`** method sorts all key/value pairs contained in this object in place and returns \`undefined\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)
*/
sort(): void;
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;
};
/**
* The **\`UserActivation\`** interface provides information about whether a user is currently interacting with the page, or has completed an interaction since page load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation)
*/
interface UserActivation {
/**
* The read-only **\`hasBeenActive\`** property of the UserActivation interface indicates whether the current window has sticky activation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive)
*/
readonly hasBeenActive: boolean;
/**
* The read-only **\`isActive\`** property of the UserActivation interface indicates whether the current window has transient activation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/isActive)
*/
readonly isActive: boolean;
}
declare var UserActivation: {
prototype: UserActivation;
new(): UserActivation;
};
/**
* The \`VTTCue\` interface of the WebVTT API represents a cue that can be added to the text track associated with a particular video (or other media).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue)
*/
interface VTTCue extends TextTrackCue {
/**
* The **\`align\`** property of the VTTCue interface represents the alignment of all of the lines of text in the text box.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align)
*/
align: AlignSetting;
/**
* The **\`line\`** property of the VTTCue interface represents the cue line of this WebVTT cue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line)
*/
line: LineAndPositionSetting;
/**
* The **\`lineAlign\`** property of the VTTCue interface represents the alignment of this VTT cue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign)
*/
lineAlign: LineAlignSetting;
/**
* The **\`position\`** property of the VTTCue interface represents the indentation of the cue within the line.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position)
*/
position: LineAndPositionSetting;
/**
* The **\`positionAlign\`** property of the VTTCue interface is used to determine what VTTCue.position is anchored to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign)
*/
positionAlign: PositionAlignSetting;
/**
* The **\`region\`** property of the VTTCue interface returns and sets the VTTRegion that this cue belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region)
*/
region: VTTRegion | null;
/**
* The **\`size\`** property of the VTTCue interface represents the size of the cue as a percentage of the video size.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size)
*/
size: number;
/**
* The **\`snapToLines\`** property of the VTTCue interface is a Boolean indicating if the VTTCue.line property is an integer number of lines, or a percentage of the video size.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines)
*/
snapToLines: boolean;
/**
* The **\`text\`** property of the VTTCue interface represents the text contents of the cue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text)
*/
text: string;
/**
* The **\`vertical\`** property of the VTTCue interface is a string representing the cue's writing direction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical)
*/
vertical: DirectionSetting;
/**
* The **\`getCueAsHTML()\`** method of the VTTCue interface returns a DocumentFragment containing the cue content.
*
* [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;
};
/**
* The \`VTTRegion\` interface of the WebVTT API describes a portion of the video to render a VTTCue onto.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion)
*/
interface VTTRegion {
id: string;
lines: number;
regionAnchorX: number;
regionAnchorY: number;
scroll: ScrollSetting;
viewportAnchorX: number;
viewportAnchorY: number;
width: number;
}
declare var VTTRegion: {
prototype: VTTRegion;
new(): VTTRegion;
};
/**
* The **\`ValidityState\`** interface represents the _validity states_ that an element can be in, with respect to constraint validation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState)
*/
interface ValidityState {
/**
* The read-only **\`badInput\`** property of the ValidityState interface indicates if the user has provided input that the browser is unable to convert.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput)
*/
readonly badInput: boolean;
/**
* The read-only **\`customError\`** property of the \`ValidityState\` interface returns \`true\` if an element doesn't meet the validation required in the custom validity set by the element's HTMLInputElement.setCustomValidity method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError)
*/
readonly customError: boolean;
/**
* The read-only **\`patternMismatch\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`pattern\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch)
*/
readonly patternMismatch: boolean;
/**
* The read-only **\`rangeOverflow\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`max\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow)
*/
readonly rangeOverflow: boolean;
/**
* The read-only **\`rangeUnderflow\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`min\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow)
*/
readonly rangeUnderflow: boolean;
/**
* The read-only **\`stepMismatch\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`step\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch)
*/
readonly stepMismatch: boolean;
/**
* The read-only **\`tooLong\`** property of the \`ValidityState\` interface indicates if the value of an input or textarea, after having been edited by the user, exceeds the maximum code-unit length established by the element's \`maxlength\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong)
*/
readonly tooLong: boolean;
/**
* The read-only **\`tooShort\`** property of the \`ValidityState\` interface indicates if the value of an input, button, select, output, fieldset or textarea, after having been edited by the user, is less than the minimum code-unit length established by the element's \`minlength\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort)
*/
readonly tooShort: boolean;
/**
* The read-only **\`typeMismatch\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`type\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch)
*/
readonly typeMismatch: boolean;
/**
* The read-only **\`valid\`** property of the \`ValidityState\` interface indicates if the value of an input element meets all its validation constraints, and is therefore considered to be valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid)
*/
readonly valid: boolean;
/**
* The read-only **\`valueMissing\`** property of the \`ValidityState\` interface indicates if a \`required\` control, such as an input, select, or textarea, has an empty value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing)
*/
readonly valueMissing: boolean;
}
declare var ValidityState: {
prototype: ValidityState;
new(): ValidityState;
};
/**
* The **\`VideoColorSpace\`** interface of the WebCodecs API represents the color space of a video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace)
*/
interface VideoColorSpace {
/**
* The **\`fullRange\`** read-only property of the VideoColorSpace interface returns \`true\` if full-range color values are used.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange)
*/
readonly fullRange: boolean | null;
/**
* The **\`matrix\`** read-only property of the VideoColorSpace interface returns the matrix coefficient of the video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix)
*/
readonly matrix: VideoMatrixCoefficients | null;
/**
* The **\`primaries\`** read-only property of the VideoColorSpace interface returns the color gamut of the video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries)
*/
readonly primaries: VideoColorPrimaries | null;
/**
* The **\`transfer\`** read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer)
*/
readonly transfer: VideoTransferCharacteristics | null;
/**
* The **\`toJSON()\`** method of the VideoColorSpace interface is a _serializer_ that returns a JSON representation of the \`VideoColorSpace\` object.
*
* [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;
}
/**
* The **\`VideoDecoder\`** interface of the WebCodecs API decodes chunks of video.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
*/
interface VideoDecoder extends EventTarget {
/**
* The **\`decodeQueueSize\`** read-only property of the VideoDecoder interface returns the number of pending decode requests in the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize)
*/
readonly decodeQueueSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/**
* The **\`state\`** property of the VideoDecoder interface returns the current state of the underlying codec.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state)
*/
readonly state: CodecState;
/**
* The **\`close()\`** method of the VideoDecoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close)
*/
close(): void;
/**
* The **\`configure()\`** method of the VideoDecoder interface enqueues a control message to configure the video decoder for decoding chunks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure)
*/
configure(config: VideoDecoderConfig): void;
/**
* The **\`decode()\`** method of the VideoDecoder interface enqueues a control message to decode a given chunk of video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode)
*/
decode(chunk: EncodedVideoChunk): void;
/**
* The **\`flush()\`** method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush)
*/
flush(): Promise<void>;
/**
* The **\`reset()\`** method of the VideoDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
*
* [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;
/**
* The **\`isConfigSupported()\`** static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static)
*/
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
interface VideoEncoderEventMap {
"dequeue": Event;
}
/**
* The **\`VideoEncoder\`** interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
*/
interface VideoEncoder extends EventTarget {
/**
* The **\`encodeQueueSize\`** read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize)
*/
readonly encodeQueueSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/**
* The **\`state\`** read-only property of the VideoEncoder interface returns the current state of the underlying codec.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state)
*/
readonly state: CodecState;
/**
* The **\`close()\`** method of the VideoEncoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close)
*/
close(): void;
/**
* The **\`configure()\`** method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to 'configured' and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure)
*/
configure(config: VideoEncoderConfig): void;
/**
* The **\`encode()\`** method of the VideoEncoder interface asynchronously encodes a VideoFrame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode)
*/
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
/**
* The **\`flush()\`** method of the VideoEncoder interface forces all pending encodes to complete.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush)
*/
flush(): Promise<void>;
/**
* The **\`reset()\`** method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the VideoEncoder.state to 'unconfigured'.
*
* [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;
/**
* The **\`isConfigSupported()\`** static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static)
*/
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
/**
* The **\`VideoFrame\`** interface of the Web Codecs API represents a frame of a video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame)
*/
interface VideoFrame {
/**
* The **\`codedHeight\`** property of the VideoFrame interface returns the height of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight)
*/
readonly codedHeight: number;
/**
* The **\`codedRect\`** property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect)
*/
readonly codedRect: DOMRectReadOnly | null;
/**
* The **\`codedWidth\`** property of the VideoFrame interface returns the width of the \`VideoFrame\` in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth)
*/
readonly codedWidth: number;
/**
* The **\`colorSpace\`** property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace)
*/
readonly colorSpace: VideoColorSpace;
/**
* The **\`displayHeight\`** property of the VideoFrame interface returns the height of the \`VideoFrame\` after applying aspect ratio adjustments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight)
*/
readonly displayHeight: number;
/**
* The **\`displayWidth\`** property of the VideoFrame interface returns the width of the \`VideoFrame\` after applying aspect ratio adjustments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth)
*/
readonly displayWidth: number;
/**
* The **\`duration\`** property of the VideoFrame interface returns an integer indicating the duration of the video in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration)
*/
readonly duration: number | null;
/**
* The **\`format\`** property of the VideoFrame interface returns the pixel format of the \`VideoFrame\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format)
*/
readonly format: VideoPixelFormat | null;
/**
* The **\`timestamp\`** property of the VideoFrame interface returns an integer indicating the timestamp of the video in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp)
*/
readonly timestamp: number;
/**
* The **\`visibleRect\`** property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this \`VideoFrame\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect)
*/
readonly visibleRect: DOMRectReadOnly | null;
/**
* The **\`allocationSize()\`** method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize)
*/
allocationSize(options?: VideoFrameCopyToOptions): number;
/**
* The **\`clone()\`** method of the VideoFrame interface creates a new \`VideoFrame\` object referencing the same media resource as the original.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone)
*/
clone(): VideoFrame;
/**
* The **\`close()\`** method of the VideoFrame interface clears all states and releases the reference to the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close)
*/
close(): void;
/**
* The **\`copyTo()\`** method of the VideoFrame interface copies the contents of the \`VideoFrame\` to an \`ArrayBuffer\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo)
*/
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
declare var VideoFrame: {
prototype: VideoFrame;
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};
/**
* A **\`VideoPlaybackQuality\`** object is 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 {
/**
* The VideoPlaybackQuality interface's read-only **\`corruptedVideoFrames\`** property the number of corrupted video frames that have been received since the video element was last loaded or reloaded.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)
*/
readonly corruptedVideoFrames: number;
/**
* The read-only **\`creationTime\`** property on the the browsing context was created this quality sample was recorded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime)
*/
readonly creationTime: DOMHighResTimeStamp;
/**
* The read-only **\`droppedVideoFrames\`** property of the VideoPlaybackQuality interface returns the number of video frames which have been dropped rather than being displayed since the last time the media was loaded into the HTMLVideoElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames)
*/
readonly droppedVideoFrames: number;
/**
* The VideoPlaybackQuality interface's **\`totalVideoFrames\`** read-only property returns the total number of video frames that have been displayed or dropped since the media was loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames)
*/
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
/**
* The **\`ViewTransition\`** interface of the View Transition API represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition)
*/
interface ViewTransition {
/**
* The **\`finished\`** read-only property of the \`finished\` will only reject in the case of a same-document (SPA) transition, if the callback passed to Document.startViewTransition() throws or returns a promise that rejects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished)
*/
readonly finished: Promise<void>;
/**
* The **\`ready\`** read-only property of the \`ready\` will reject if the transition cannot begin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready)
*/
readonly ready: Promise<void>;
types: ViewTransitionTypeSet;
/**
* The **\`updateCallbackDone\`** read-only property of the \`updateCallbackDone\` is useful when you don't care about the success/failure of a same-document (SPA) view transition animation, and just want to know if and when the DOM is updated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone)
*/
readonly updateCallbackDone: Promise<void>;
/**
* The **\`skipTransition()\`** method of the \`\`\`js-nolint skipTransition() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition)
*/
skipTransition(): void;
}
declare var ViewTransition: {
prototype: ViewTransition;
new(): ViewTransition;
};
interface ViewTransitionTypeSet {
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
}
declare var ViewTransitionTypeSet: {
prototype: ViewTransitionTypeSet;
new(): ViewTransitionTypeSet;
};
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
}
/**
* The **\`VisualViewport\`** interface of the Visual Viewport API represents the visual viewport for a given window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport)
*/
interface VisualViewport extends EventTarget {
/**
* The **\`height\`** read-only property of the VisualViewport interface returns the height of the visual viewport, in CSS pixels, or \`0\` if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height)
*/
readonly height: number;
/**
* The **\`offsetLeft\`** read-only property of the VisualViewport interface returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels, or \`0\` if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft)
*/
readonly offsetLeft: number;
/**
* The **\`offsetTop\`** read-only property of the VisualViewport interface returns the offset of the top edge of the visual viewport from the top edge of the layout viewport in CSS pixels, or \`0\` if current document is not fully active.
*
* [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;
/**
* The **\`pageLeft\`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or \`0\` if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft)
*/
readonly pageLeft: number;
/**
* The **\`pageTop\`** read-only property of the VisualViewport interface returns the y coordinate of the top edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or \`0\` if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop)
*/
readonly pageTop: number;
/**
* The **\`scale\`** read-only property of the VisualViewport interface returns the pinch-zoom scaling factor applied to the visual viewport, or \`0\` if current document is not fully active, or \`1\` if there is no output device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale)
*/
readonly scale: number;
/**
* The **\`width\`** read-only property of the VisualViewport interface returns the width of the visual viewport, in CSS pixels, or \`0\` if current document is not fully active.
*
* [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;
};
/**
* The **\`WEBGL_color_buffer_float\`** extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.
*
* [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;
}
/**
* The **\`WEBGL_compressed_texture_astc\`** extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc)
*/
interface WEBGL_compressed_texture_astc {
/**
* The **\`WEBGL_compressed_texture_astc.getSupportedProfiles()\`** method returns an array of strings containing the names of the ASTC profiles supported by the implementation.
*
* [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;
}
/**
* The **\`WEBGL_compressed_texture_etc\`** extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.
*
* [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;
}
/**
* The **\`WEBGL_compressed_texture_etc1\`** extension is part of the WebGL API and exposes the ETC1 compressed texture format.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1)
*/
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/**
* The **\`WEBGL_compressed_texture_pvrtc\`** extension is part of the WebGL API and exposes four PVRTC compressed texture formats.
*
* [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;
}
/**
* The **\`WEBGL_compressed_texture_s3tc_srgb\`** extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.
*
* [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;
}
/**
* The **\`WEBGL_debug_shaders\`** extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders)
*/
interface WEBGL_debug_shaders {
/**
* The **\`WEBGL_debug_shaders.getTranslatedShaderSource()\`** method is part of the WebGL API and allows you to debug a translated shader.
*
* [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;
}
/**
* The **\`WEBGL_draw_buffers\`** extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers)
*/
interface WEBGL_draw_buffers {
/**
* The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
*
* [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;
}
/**
* The **WEBGL_lose_context** extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context)
*/
interface WEBGL_lose_context {
/**
* The **WEBGL_lose_context.loseContext()** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
*/
loseContext(): void;
/**
* The **WEBGL_lose_context.restoreContext()** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
*/
restoreContext(): void;
}
/**
* The **\`WEBGL_multi_draw\`** extension is part of the WebGL API and allows to render more than one primitive with a single function call.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw)
*/
interface WEBGL_multi_draw {
/**
* The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
*/
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
*/
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
*/
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
*/
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}
/**
* The **\`WakeLock\`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock)
*/
interface WakeLock {
/**
* The **\`request()\`** method of the WakeLock interface returns a Promise that fulfills with a WakeLockSentinel object if the system screen wake lock is granted.
*
* [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;
}
/**
* The **\`WakeLockSentinel\`** interface of the Screen Wake Lock API can be used to monitor the status of the platform screen wake lock, and manually release the lock when needed.
* 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;
/**
* The **\`released\`** read-only property of the WakeLockSentinel interface returns a boolean that indicates whether a WakeLockSentinel has been released.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released)
*/
readonly released: boolean;
/**
* The **\`type\`** read-only property of the WakeLockSentinel interface returns a string representation of the currently acquired WakeLockSentinel type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type)
*/
readonly type: WakeLockType;
/**
* The **\`release()\`** method of the WakeLockSentinel interface releases the WakeLockSentinel, returning a Promise that is resolved once the sentinel has been successfully released.
*
* [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;
};
/**
* The **\`WaveShaperNode\`** interface represents a non-linear distorter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode)
*/
interface WaveShaperNode extends AudioNode {
/**
* The \`curve\` property of the WaveShaperNode interface is a Float32Array of numbers describing the distortion to apply.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve)
*/
curve: Float32Array<ArrayBuffer> | null;
/**
* The \`oversample\` property of the WaveShaperNode interface is an enumerated value indicating if oversampling must be used.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample)
*/
oversample: OverSampleType;
}
declare var WaveShaperNode: {
prototype: WaveShaperNode;
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
/**
* The **WebGL2RenderingContext** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML canvas element.
*
* [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<ArrayBufferLike>, 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<ArrayBufferLike>, 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
createSampler(): WebGLSampler;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
createTransformFeedback(): WebGLTransformFeedback;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
createVertexArray(): WebGLVertexArrayObject;
/** [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<ArrayBufferLike>, 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<ArrayBufferLike> | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, 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<ArrayBufferLike> | 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/WebGL2RenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, usage: GLenum, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView<ArrayBufferLike>, 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<ArrayBufferLike>, 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<ArrayBufferLike>, 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<ArrayBufferLike> | 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<ArrayBufferLike>, 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<ArrayBufferLike> | 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<ArrayBufferLike>, 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<ArrayBufferLike> | 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<ArrayBufferLike>, 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/WebGL2RenderingContext/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;
}
/**
* The **WebGLActiveInfo** interface is 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 {
/**
* The read-only **\`WebGLActiveInfo.name\`** property represents the name of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name)
*/
readonly name: string;
/**
* The read-only **\`WebGLActiveInfo.size\`** property is a Number representing the size of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size)
*/
readonly size: GLint;
/**
* The read-only **\`WebGLActiveInfo.type\`** property represents the type of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type)
*/
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/**
* The **WebGLBuffer** interface is 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 **WebGLContextEvent** 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 {
/**
* The read-only **\`WebGLContextEvent.statusMessage\`** property contains additional event status information, or is an empty string if no additional information is available.
*
* [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;
};
/**
* The **WebGLFramebuffer** interface is 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;
};
/**
* The **\`WebGLQuery\`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery)
*/
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/**
* The **WebGLRenderbuffer** interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
*/
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/**
* The **\`WebGLRenderingContext\`** interface 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */
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/WebGL2RenderingContext/unpackColorSpace) */
unpackColorSpace: PredefinedColorSpace;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
createFramebuffer(): WebGLFramebuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
createProgram(): WebGLProgram;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
createRenderbuffer(): WebGLRenderbuffer;
/** [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;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */
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<ArrayBufferLike>): 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<ArrayBufferLike>): 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<ArrayBufferLike> | 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<ArrayBufferLike> | 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<ArrayBufferLike> | 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;
}
/**
* The **\`WebGLSampler\`** interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
*/
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/**
* The **WebGLShaderPrecisionFormat** interface is 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 {
/**
* The read-only **\`WebGLShaderPrecisionFormat.precision\`** property returns the number of bits of precision that can be represented.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision)
*/
readonly precision: GLint;
/**
* The read-only **\`WebGLShaderPrecisionFormat.rangeMax\`** property returns the base 2 log of the absolute value of the maximum value that can be represented.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)
*/
readonly rangeMax: GLint;
/**
* The read-only **\`WebGLShaderPrecisionFormat.rangeMin\`** property returns the base 2 log of the absolute value of the minimum value that can be represented.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)
*/
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
/**
* The **\`WebGLSync\`** interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync)
*/
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/**
* The **WebGLTexture** interface is 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;
};
/**
* The **\`WebGLTransformFeedback\`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback)
*/
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/**
* The **WebGLUniformLocation** interface is 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;
};
/**
* The **\`WebGLVertexArrayObject\`** interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.
*
* [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/WebGLVertexArrayObject) */
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/**
* The \`WebSocket\` object 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 {
/**
* The **\`WebSocket.binaryType\`** property controls the type of binary data being received over the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
*/
binaryType: BinaryType;
/**
* The **\`WebSocket.bufferedAmount\`** read-only property returns the number of bytes of data that have been queued using calls to \`send()\` but not yet transmitted to the network.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* The **\`WebSocket.extensions\`** read-only property returns the extensions selected by the server.
*
* [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;
/**
* The **\`WebSocket.protocol\`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the \`protocols\` parameter when creating the WebSocket object, or the empty string if no connection is established.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
*/
readonly protocol: string;
/**
* The **\`WebSocket.readyState\`** read-only property returns the current state of the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
*/
readonly readyState: number;
/**
* The **\`WebSocket.url\`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
*/
readonly url: string;
/**
* The **\`WebSocket.close()\`** method closes the already \`CLOSED\`, this method does nothing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
close(code?: number, reason?: string): void;
/**
* The **\`WebSocket.send()\`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of \`bufferedAmount\` by the number of bytes needed to contain the data.
*
* [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;
};
/**
* The **\`WebTransport\`** interface of the WebTransport API provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport in either or both directions, and close the connection once it is no longer needed.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
*/
interface WebTransport {
/**
* The **\`closed\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
*/
readonly closed: Promise<WebTransportCloseInfo>;
/**
* The **\`datagrams\`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams \u2014 unreliable data transmission.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)
*/
readonly datagrams: WebTransportDatagramDuplexStream;
/**
* The **\`incomingBidirectionalStreams\`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams)
*/
readonly incomingBidirectionalStreams: ReadableStream;
/**
* The **\`incomingUnidirectionalStreams\`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
*/
readonly incomingUnidirectionalStreams: ReadableStream;
/**
* The **\`ready\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
*/
readonly ready: Promise<void>;
/**
* The **\`close()\`** method of the WebTransport interface closes an ongoing WebTransport session.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close)
*/
close(closeInfo?: WebTransportCloseInfo): void;
/**
* The **\`createBidirectionalStream()\`** method of the WebTransport interface asynchronously opens and returns a bidirectional stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)
*/
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
/**
* The **\`createUnidirectionalStream()\`** method of the WebTransport interface asynchronously opens a unidirectional stream.
*
* [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;
};
/**
* The **\`WebTransportBidirectionalStream\`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
*/
interface WebTransportBidirectionalStream {
/**
* The **\`readable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportReceiveStream instance that can be used to reliably read incoming data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable)
*/
readonly readable: ReadableStream;
/**
* The **\`writable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportSendStream instance that can be used to write outgoing data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable)
*/
readonly writable: WritableStream;
}
declare var WebTransportBidirectionalStream: {
prototype: WebTransportBidirectionalStream;
new(): WebTransportBidirectionalStream;
};
/**
* The **\`WebTransportDatagramDuplexStream\`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
*/
interface WebTransportDatagramDuplexStream {
/**
* The **\`incomingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data \u2014 this is the maximum size, in chunks, that the incoming ReadableStream's internal queue can reach before it is considered full.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)
*/
incomingHighWaterMark: number;
/**
* The **\`incomingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for incoming datagrams, in milliseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)
*/
incomingMaxAge: number | null;
/**
* The **\`maxDatagramSize\`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to WebTransportDatagramDuplexStream.writable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)
*/
readonly maxDatagramSize: number;
/**
* The **\`outgoingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data \u2014 this is the maximum size, in chunks, that the outgoing WritableStream's internal queue can reach before it is considered full.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)
*/
outgoingHighWaterMark: number;
/**
* The **\`outgoingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for outgoing datagrams, in milliseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)
*/
outgoingMaxAge: number | null;
/**
* The **\`readable\`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream.
*
* [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;
};
/**
* The **\`WebTransportError\`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
*/
interface WebTransportError extends DOMException {
/**
* The **\`source\`** read-only property of the WebTransportError interface returns an enumerated value indicating the source of the error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source)
*/
readonly source: WebTransportErrorSource;
/**
* The **\`streamErrorCode\`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or \`null\` if one is not available.
*
* [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;
};
/**
* The **\`WheelEvent\`** interface represents 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 {
/**
* The **\`WheelEvent.deltaMode\`** read-only property returns an \`unsigned long\` representing the unit of the delta values scroll amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode)
*/
readonly deltaMode: number;
/**
* The **\`WheelEvent.deltaX\`** read-only property is a \`double\` representing the horizontal scroll amount in the You must check the \`deltaMode\` property to determine the unit of the \`deltaX\` value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX)
*/
readonly deltaX: number;
/**
* The **\`WheelEvent.deltaY\`** read-only property is a \`double\` representing the vertical scroll amount in the You must check the \`deltaMode\` property to determine the unit of the \`deltaY\` value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY)
*/
readonly deltaY: number;
/**
* The **\`WheelEvent.deltaZ\`** read-only property is a \`double\` representing the scroll amount along the z-axis, in the You must check the \`deltaMode\` property to determine the unit of the \`deltaZ\` value.
*
* [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;
}
/**
* The **\`Window\`** interface represents 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;
/**
* The **\`Window.closed\`** read-only property indicates whether the referenced window is closed or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
*/
readonly closed: boolean;
/**
* The **\`cookieStore\`** read-only property of the Window interface returns a reference to the CookieStore object for the current document context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cookieStore)
*/
readonly cookieStore: CookieStore;
/**
* The **\`customElements\`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
*/
readonly customElements: CustomElementRegistry;
/**
* The **\`devicePixelRatio\`** of Window interface returns the ratio of the resolution in _physical pixels_ to the resolution in _CSS pixels_ for the current display device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio)
*/
readonly devicePixelRatio: number;
/**
* **\`window.document\`** returns a reference to the document contained in the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document)
*/
readonly document: Document;
/**
* The read-only Window property **\`event\`** returns the Event which is currently being handled by the site's code.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
*/
readonly event: Event | undefined;
/**
* The \`external\` property of the Window API returns an instance of the \`External\` interface, which was intended to contain functions related to adding external search providers to the browser.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
*/
readonly external: External;
/**
* The **\`Window.frameElement\`** property returns the element (such as iframe or object) in which the window is embedded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement)
*/
readonly frameElement: Element | null;
/**
* Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames)
*/
readonly frames: WindowProxy;
/**
* The \`Window.history\` read-only property returns a reference to the History object, which provides an interface for manipulating the browser _session history_ (pages visited in the tab or frame that the current page is loaded in).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history)
*/
readonly history: History;
/**
* The read-only **\`innerHeight\`** property of the including the height of the horizontal scroll bar, if present.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight)
*/
readonly innerHeight: number;
/**
* The read-only Window property **\`innerWidth\`** returns the interior width of the window in pixels (that is, the width of the window's layout viewport).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth)
*/
readonly innerWidth: number;
/**
* Returns the number of frames (either frame or A number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length)
*/
readonly length: number;
/**
* The **\`Window.location\`** read-only property returns a Location object with information about the current location of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)
*/
get location(): Location;
set location(href: string);
/**
* Returns the \`locationbar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
*/
readonly locationbar: BarProp;
/**
* Returns the \`menubar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
*/
readonly menubar: BarProp;
/**
* The \`Window.name\` property gets/sets the name of the window's browsing context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
*/
name: string;
/**
* The **\`Window.navigator\`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
*
* [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;
/**
* The Window interface's **\`opener\`** property returns a reference to the window that opened the window, either with Window.open, or by navigating a link with a \`target\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener)
*/
opener: any;
/**
* Returns the orientation in degrees (in 90-degree increments) of the viewport relative to the device's natural orientation.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
*/
readonly orientation: number;
/**
* The **\`originAgentCluster\`** read-only property of the Window interface returns \`true\` if this window belongs to an _origin-keyed agent cluster_: this means that the operating system has provided dedicated resources (for example an operating system process) to this window's origin that are not shared with windows from other origins.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/originAgentCluster)
*/
readonly originAgentCluster: boolean;
/**
* The **\`Window.outerHeight\`** read-only property returns the height in pixels of the whole browser window, including any sidebar, window chrome, and window-resizing borders/handles.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight)
*/
readonly outerHeight: number;
/**
* **\`Window.outerWidth\`** read-only property returns the width of the outside of the browser window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth)
*/
readonly outerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
readonly pageXOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
readonly pageYOffset: number;
/**
* The **\`Window.parent\`** property is a reference to the parent of the current window or subframe.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
*/
readonly parent: WindowProxy;
/**
* Returns the \`personalbar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
*/
readonly personalbar: BarProp;
/**
* The Window property **\`screen\`** returns a reference to the screen object associated with the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen)
*/
readonly screen: Screen;
/**
* The **\`Window.screenLeft\`** read-only property returns the horizontal distance, in CSS pixels, from the left border of the user's browser viewport to the left side of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft)
*/
readonly screenLeft: number;
/**
* The **\`Window.screenTop\`** read-only property returns the vertical distance, in CSS pixels, from the top border of the user's browser viewport to the top side of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop)
*/
readonly screenTop: number;
/**
* The **\`Window.screenX\`** read-only property returns the horizontal distance, in CSS pixels, of the left border of the user's browser viewport to the left side of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX)
*/
readonly screenX: number;
/**
* The **\`Window.screenY\`** read-only property returns the vertical distance, in CSS pixels, of the top border of the user's browser viewport to the top edge of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY)
*/
readonly screenY: number;
/**
* The read-only **\`scrollX\`** property of the Window interface returns the number of pixels by which the document is currently scrolled horizontally.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
*/
readonly scrollX: number;
/**
* The read-only **\`scrollY\`** property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
*/
readonly scrollY: number;
/**
* Returns the \`scrollbars\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
*/
readonly scrollbars: BarProp;
/**
* The **\`Window.self\`** read-only property returns the window itself, as a WindowProxy.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self)
*/
readonly self: Window & typeof globalThis;
/**
* The \`speechSynthesis\` read-only property of the Window object returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis)
*/
readonly speechSynthesis: SpeechSynthesis;
/**
* The **\`status\`** property of the bar at the bottom of the browser window.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
*/
status: string;
/**
* Returns the \`statusbar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
*/
readonly statusbar: BarProp;
/**
* Returns the \`toolbar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
*/
readonly toolbar: BarProp;
/**
* Returns a reference to the topmost window in the window hierarchy.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top)
*/
readonly top: WindowProxy | null;
/**
* The **\`visualViewport\`** read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or \`null\` if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
*/
readonly visualViewport: VisualViewport | null;
/**
* The **\`window\`** property of a Window object points to the window object itself.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
*/
readonly window: Window & typeof globalThis;
/**
* \`window.alert()\` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert)
*/
alert(message?: any): void;
/**
* The **\`Window.blur()\`** method does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
*/
blur(): void;
/**
* The **\`window.cancelIdleCallback()\`** method cancels a callback previously scheduled with window.requestIdleCallback().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback)
*/
cancelIdleCallback(handle: number): void;
/**
* The **\`Window.captureEvents()\`** method does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
*/
captureEvents(): void;
/**
* The **\`Window.close()\`** method closes the current window, or the window on which it was called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
*/
close(): void;
/**
* \`window.confirm()\` instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm)
*/
confirm(message?: string): boolean;
/**
* Makes a request to bring the window to the front.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
*/
focus(): void;
/**
* The **\`Window.getComputedStyle()\`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
*/
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/**
* The **\`getSelection()\`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection)
*/
getSelection(): Selection | null;
/**
* The Window interface's **\`matchMedia()\`** method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia)
*/
matchMedia(query: string): MediaQueryList;
/**
* The **\`moveBy()\`** method of the Window interface moves the current window by a specified amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy)
*/
moveBy(x: number, y: number): void;
/**
* The **\`moveTo()\`** method of the Window interface moves the current window to the specified coordinates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo)
*/
moveTo(x: number, y: number): void;
/**
* The **\`open()\`** method of the \`Window\` interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open)
*/
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* The **\`window.postMessage()\`** method safely enables cross-origin communication between Window objects; _e.g.,_ between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.
*
* [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;
/**
* Opens the print dialog to print the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print)
*/
print(): void;
/**
* \`window.prompt()\` instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt)
*/
prompt(message?: string, _default?: string): string | null;
/**
* Releases the window from trapping events of a specific type.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
*/
releaseEvents(): void;
/**
* The **\`window.requestIdleCallback()\`** method queues a function to be called during a browser's idle periods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback)
*/
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/**
* The **\`Window.resizeBy()\`** method resizes the current window by a specified amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy)
*/
resizeBy(x: number, y: number): void;
/**
* The **\`Window.resizeTo()\`** method dynamically resizes the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo)
*/
resizeTo(width: number, height: number): void;
/**
* The **\`Window.scroll()\`** method scrolls the window to a particular place in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
*/
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/**
* The **\`Window.scrollBy()\`** method scrolls the document in the window by the given amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
*/
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/**
* **\`Window.scrollTo()\`** scrolls to a particular set of coordinates in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
*/
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* The **\`window.stop()\`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
* [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;
"pagereveal": PageRevealEvent;
"pageshow": PageTransitionEvent;
"pageswap": PageSwapEvent;
"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/pagereveal_event) */
onpagereveal: ((this: WindowEventHandlers, ev: PageRevealEvent) => 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/pageswap_event) */
onpageswap: ((this: WindowEventHandlers, ev: PageSwapEvent) => 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/Window/caches)
*/
readonly caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
readonly crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
readonly indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
readonly isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
readonly performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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/Window/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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, MessageEventTargetEventMap {
}
/**
* The **\`Worker\`** interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
*/
interface Worker extends EventTarget, AbstractWorker, MessageEventTarget<Worker> {
/**
* The **\`postMessage()\`** method of the Worker interface sends a message to the worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* The **\`terminate()\`** method of the Worker interface immediately terminates the Worker.
*
* [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;
};
/**
* The **\`Worklet\`** interface is a lightweight version of Web Workers and gives developers access to low-level parts of the rendering pipeline.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet)
*/
interface Worklet {
/**
* The **\`addModule()\`** method of the adds it to the current \`Worklet\`.
*
* [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;
};
/**
* The **\`WritableStream\`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
*/
interface WritableStream<W = any> {
/**
* The **\`locked\`** read-only property of the WritableStream interface returns a boolean indicating whether the \`WritableStream\` is locked to a writer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)
*/
readonly locked: boolean;
/**
* The **\`abort()\`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)
*/
abort(reason?: any): Promise<void>;
/**
* The **\`close()\`** method of the WritableStream interface closes the associated stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
*/
close(): Promise<void>;
/**
* The **\`getWriter()\`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
*
* [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>;
};
/**
* The **\`WritableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
*/
interface WritableStreamDefaultController {
/**
* The read-only **\`signal\`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)
*/
readonly signal: AbortSignal;
/**
* The **\`error()\`** method of the with the associated stream to error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
*/
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/**
* The **\`WritableStreamDefaultWriter\`** interface of the Streams API 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> {
/**
* The **\`closed\`** read-only property of the the stream errors or the writer's lock is released.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
*/
readonly closed: Promise<void>;
/**
* The **\`desiredSize\`** read-only property of the to fill the stream's internal queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
*/
readonly desiredSize: number | null;
/**
* The **\`ready\`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
*/
readonly ready: Promise<void>;
/**
* The **\`abort()\`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
*/
abort(reason?: any): Promise<void>;
/**
* The **\`close()\`** method of the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
*/
close(): Promise<void>;
/**
* The **\`releaseLock()\`** method of the corresponding stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
*/
releaseLock(): void;
/**
* The **\`write()\`** method of the operation.
*
* [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>;
};
/**
* The **XMLDocument** interface represents an XML document.
*
* [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;
}
/**
* \`XMLHttpRequest\` (XHR) objects are used to interact with servers.
*
* [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;
/**
* The **XMLHttpRequest.readyState** property returns the state an XMLHttpRequest client is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
*/
readonly readyState: number;
/**
* The XMLHttpRequest **\`response\`** property returns the response's body content as an ArrayBuffer, a Blob, a Document, a JavaScript Object, or a string, depending on the value of the request's XMLHttpRequest.responseType property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
*/
readonly response: any;
/**
* The read-only XMLHttpRequest property **\`responseText\`** returns the text received from a server following a request being sent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
*/
readonly responseText: string;
/**
* The XMLHttpRequest property **\`responseType\`** is an enumerated string value specifying the type of data contained in the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
*/
responseType: XMLHttpRequestResponseType;
/**
* The read-only **\`XMLHttpRequest.responseURL\`** property returns the serialized URL of the response or the empty string if the URL is \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL)
*/
readonly responseURL: string;
/**
* The **\`XMLHttpRequest.responseXML\`** read-only property returns a Document containing the HTML or XML retrieved by the request; or \`null\` if the request was unsuccessful, has not yet been sent, or if the data can't be parsed as XML or HTML.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML)
*/
readonly responseXML: Document | null;
/**
* The read-only **\`XMLHttpRequest.status\`** property returns the numerical HTTP status code of the \`XMLHttpRequest\`'s response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status)
*/
readonly status: number;
/**
* The read-only **\`XMLHttpRequest.statusText\`** property returns a string containing the response's status message as returned by the HTTP server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText)
*/
readonly statusText: string;
/**
* The **\`XMLHttpRequest.timeout\`** property is an \`unsigned long\` representing the number of milliseconds a request can take before automatically being terminated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
*/
timeout: number;
/**
* The XMLHttpRequest \`upload\` property returns an XMLHttpRequestUpload object that can be observed to monitor an upload's progress.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
*/
readonly upload: XMLHttpRequestUpload;
/**
* The **\`XMLHttpRequest.withCredentials\`** property is a boolean value that indicates whether or not cross-site \`Access-Control\` requests should be made using credentials such as cookies, authentication headers or TLS client certificates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
*/
withCredentials: boolean;
/**
* The **\`XMLHttpRequest.abort()\`** method aborts the request if it has already been sent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
*/
abort(): void;
/**
* The XMLHttpRequest method **\`getAllResponseHeaders()\`** returns all the response headers, separated by CRLF, as a string, or returns \`null\` if no response has been received.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)
*/
getAllResponseHeaders(): string;
/**
* The XMLHttpRequest method **\`getResponseHeader()\`** returns the string containing the text of a particular header's value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader)
*/
getResponseHeader(name: string): string | null;
/**
* The XMLHttpRequest method **\`open()\`** initializes a newly-created request, or re-initializes an existing one.
*
* [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;
/**
* The XMLHttpRequest method **\`overrideMimeType()\`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
*/
overrideMimeType(mime: string): void;
/**
* The XMLHttpRequest method **\`send()\`** sends the request to the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
*/
send(body?: Document | XMLHttpRequestBodyInit | null): void;
/**
* The XMLHttpRequest method **\`setRequestHeader()\`** sets the value of an HTTP request header.
*
* [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>;
}
/**
* \`XMLHttpRequestEventTarget\` is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.
*
* [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;
};
/**
* The **\`XMLHttpRequestUpload\`** interface represents the upload process for a specific XMLHttpRequest.
*
* [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;
};
/**
* The \`XMLSerializer\` interface provides the XMLSerializer.serializeToString method to construct an XML string representing a DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer)
*/
interface XMLSerializer {
/**
* The XMLSerializer method **\`serializeToString()\`** constructs a string representing the specified DOM tree in XML form.
*
* [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;
/**
* @deprecated
*
* [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 from its DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression)
*/
interface XPathExpression {
/**
* The **\`evaluate()\`** method of the returns an XPathResult.
*
* [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 **\`XPathResult\`** interface represents 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 {
/**
* The read-only **\`booleanValue\`** property of the The return value is the boolean value of the \`XPathResult\` returned by In case XPathResult.resultType is not \`BOOLEAN_TYPE\`, a The following example shows the use of the \`booleanValue\` property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue)
*/
readonly booleanValue: boolean;
/**
* The read-only **\`invalidIteratorState\`** property of the is \`true\` if XPathResult.resultType is \`UNORDERED_NODE_ITERATOR_TYPE\` or \`ORDERED_NODE_ITERATOR_TYPE\` and the document has been modified since this result was returned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState)
*/
readonly invalidIteratorState: boolean;
/**
* The read-only **\`numberValue\`** property of the The return value is the numeric value of the \`XPathResult\` returned by In case XPathResult.resultType is not \`NUMBER_TYPE\`, a The following example shows the use of the \`numberValue\` property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue)
*/
readonly numberValue: number;
/**
* The read-only **\`resultType\`** property of the the type constants.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType)
*/
readonly resultType: number;
/**
* The read-only **\`singleNodeValue\`** property of the \`null\` in case no node was matched of a result with \`FIRST_ORDERED_NODE_TYPE\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue)
*/
readonly singleNodeValue: Node | null;
/**
* The read-only **\`snapshotLength\`** property of the snapshot.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength)
*/
readonly snapshotLength: number;
/**
* The read-only **\`stringValue\`** property of the The return value is the string value of the \`XPathResult\` returned by In case XPathResult.resultType is not \`STRING_TYPE\`, a The following example shows the use of the \`stringValue\` property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue)
*/
readonly stringValue: string;
/**
* The **\`iterateNext()\`** method of the next node from it or \`null\` if there are no more nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext)
*/
iterateNext(): Node | null;
/**
* The **\`snapshotItem()\`** method of the \`null\` in case the index is not within the range of nodes.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor)
*/
interface XSLTProcessor {
/**
* The \`clearParameters()\` method of the XSLTProcessor interface removes all parameters (\`<xsl:param>\`) and their values from the stylesheet imported in the processor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters)
*/
clearParameters(): void;
/**
* The \`getParameter()\` method of the XSLTProcessor interface returns the value of a parameter (\`<xsl:param>\`) from the stylesheet imported in the processor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter)
*/
getParameter(namespaceURI: string | null, localName: string): any;
/**
* The \`importStylesheet()\` method of the XSLTProcessor interface imports an XSLT stylesheet for the processor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet)
*/
importStylesheet(style: Node): void;
/**
* The \`removeParameter()\` method of the XSLTProcessor interface removes the parameter (\`<xsl:param>\`) and its value from the stylesheet imported in the processor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter)
*/
removeParameter(namespaceURI: string | null, localName: string): void;
/**
* The \`reset()\` method of the XSLTProcessor interface removes all parameters (\`<xsl:param>\`) and the XSLT stylesheet from the processor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset)
*/
reset(): void;
/**
* The \`setParameter()\` method of the XSLTProcessor interface sets the value of a parameter (\`<xsl:param>\`) in the stylesheet imported in the processor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter)
*/
setParameter(namespaceURI: string | null, localName: string, value: any): void;
/**
* The \`transformToDocument()\` method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with \`XSLTProcessor\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument)
*/
transformToDocument(source: Node): Document;
/**
* The \`transformToFragment()\` method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the \`XSLTProcessor\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment)
*/
transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
/** The **\`CSS\`** interface holds useful CSS-related methods. */
declare namespace CSS {
/**
* The static, read-only **\`highlights\`** property of the CSS interface provides access to the \`HighlightRegistry\` used to style arbitrary text ranges using the css_custom_highlight_api.
*
* [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;
/**
* The **\`CSS.escape()\`** static method returns a string containing the escaped string passed as parameter, mostly for use as part of a CSS selector.
*
* [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;
/**
* The **\`CSS.registerProperty()\`** static method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value.
*
* [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;
/**
* The **\`CSS.supports()\`** static method returns a boolean value indicating if the browser supports a given CSS feature, or not.
*
* [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/Reference/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
value: ValueTypeMap[T];
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/Reference/JavaScript_interface/Instance) */
interface Instance {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/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/Reference/JavaScript_interface/Memory) */
interface Memory {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer) */
readonly buffer: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module) */
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */
exports(moduleObject: Module): ModuleExportDescriptor[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/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/Reference/JavaScript_interface/Table) */
interface Table {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */
get(index: number): any;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */
grow(delta: number, value?: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/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/Reference/JavaScript_interface/compile_static) */
function compile(bytes: BufferSource): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/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/Reference/JavaScript_interface/instantiateStreaming_static) */
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
function validate(bytes: BufferSource): boolean;
}
/** The **\`console\`** object provides access to the debugging console (e.g., the Web console in Firefox). */
/**
* The **\`console\`** object provides access to the debugging console (e.g., the Web console in Firefox).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)
*/
interface Console {
/**
* The **\`console.assert()\`** static method writes an error message to the console if the assertion is false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)
*/
assert(condition?: boolean, ...data: any[]): void;
/**
* The **\`console.clear()\`** static method clears the console if possible.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
*/
clear(): void;
/**
* The **\`console.count()\`** static method logs the number of times that this particular call to \`count()\` has been called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
*/
count(label?: string): void;
/**
* The **\`console.countReset()\`** static method resets counter used with console/count_static.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
*/
countReset(label?: string): void;
/**
* The **\`console.debug()\`** static method outputs a message to the console at the 'debug' log level.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
*/
debug(...data: any[]): void;
/**
* The **\`console.dir()\`** static method displays a list of the properties of the specified JavaScript object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
*/
dir(item?: any, options?: any): void;
/**
* The **\`console.dirxml()\`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
*/
dirxml(...data: any[]): void;
/**
* The **\`console.error()\`** static method outputs a message to the console at the 'error' log level.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
*/
error(...data: any[]): void;
/**
* The **\`console.group()\`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
*/
group(...data: any[]): void;
/**
* The **\`console.groupCollapsed()\`** static method creates a new inline group in the console.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
*/
groupCollapsed(...data: any[]): void;
/**
* The **\`console.groupEnd()\`** static method exits the current inline group in the console.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
*/
groupEnd(): void;
/**
* The **\`console.info()\`** static method outputs a message to the console at the 'info' log level.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
*/
info(...data: any[]): void;
/**
* The **\`console.log()\`** static method outputs a message to the console.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
*/
log(...data: any[]): void;
/**
* The **\`console.table()\`** static method displays tabular data as a table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
*/
table(tabularData?: any, properties?: string[]): void;
/**
* The **\`console.time()\`** static method starts a timer you can use to track how long an operation takes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
*/
time(label?: string): void;
/**
* The **\`console.timeEnd()\`** static method stops a timer that was previously started by calling console/time_static.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
*/
timeEnd(label?: string): void;
/**
* The **\`console.timeLog()\`** static method logs the current value of a timer that was previously started by calling console/time_static.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
*/
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/**
* The **\`console.trace()\`** static method outputs a stack trace to the console.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
*/
trace(...data: any[]): void;
/**
* The **\`console.warn()\`** static method outputs a warning message to the console at the 'warning' log level.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
*/
warn(...data: any[]): void;
}
declare var console: Console;
interface AudioDataOutputCallback {
(output: AudioData): void;
}
interface BlobCallback {
(blob: Blob | null): void;
}
interface CustomElementConstructor {
new (...params: any[]): HTMLElement;
}
interface DecodeErrorCallback {
(error: DOMException): void;
}
interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
interface EncodedAudioChunkOutputCallback {
(output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): 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<T> {
(lock: Lock | null): T;
}
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 ViewTransitionUpdateCallback {
(): any;
}
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;
/**
* The **\`Window.closed\`** read-only property indicates whether the referenced window is closed or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
*/
declare var closed: boolean;
/**
* The **\`cookieStore\`** read-only property of the Window interface returns a reference to the CookieStore object for the current document context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cookieStore)
*/
declare var cookieStore: CookieStore;
/**
* The **\`customElements\`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
*/
declare var customElements: CustomElementRegistry;
/**
* The **\`devicePixelRatio\`** of Window interface returns the ratio of the resolution in _physical pixels_ to the resolution in _CSS pixels_ for the current display device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio)
*/
declare var devicePixelRatio: number;
/**
* **\`window.document\`** returns a reference to the document contained in the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document)
*/
declare var document: Document;
/**
* The read-only Window property **\`event\`** returns the Event which is currently being handled by the site's code.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
*/
declare var event: Event | undefined;
/**
* The \`external\` property of the Window API returns an instance of the \`External\` interface, which was intended to contain functions related to adding external search providers to the browser.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
*/
declare var external: External;
/**
* The **\`Window.frameElement\`** property returns the element (such as iframe or object) in which the window is embedded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement)
*/
declare var frameElement: Element | null;
/**
* Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames)
*/
declare var frames: WindowProxy;
/**
* The \`Window.history\` read-only property returns a reference to the History object, which provides an interface for manipulating the browser _session history_ (pages visited in the tab or frame that the current page is loaded in).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history)
*/
declare var history: History;
/**
* The read-only **\`innerHeight\`** property of the including the height of the horizontal scroll bar, if present.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight)
*/
declare var innerHeight: number;
/**
* The read-only Window property **\`innerWidth\`** returns the interior width of the window in pixels (that is, the width of the window's layout viewport).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth)
*/
declare var innerWidth: number;
/**
* Returns the number of frames (either frame or A number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length)
*/
declare var length: number;
/**
* The **\`Window.location\`** read-only property returns a Location object with information about the current location of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)
*/
declare var location: Location;
/**
* Returns the \`locationbar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
*/
declare var locationbar: BarProp;
/**
* Returns the \`menubar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
*/
declare var menubar: BarProp;
/**
* The \`Window.name\` property gets/sets the name of the window's browsing context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
*/
/** @deprecated */
declare const name: void;
/**
* The **\`Window.navigator\`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
*
* [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;
/**
* The Window interface's **\`opener\`** property returns a reference to the window that opened the window, either with Window.open, or by navigating a link with a \`target\` attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener)
*/
declare var opener: any;
/**
* Returns the orientation in degrees (in 90-degree increments) of the viewport relative to the device's natural orientation.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
*/
declare var orientation: number;
/**
* The **\`originAgentCluster\`** read-only property of the Window interface returns \`true\` if this window belongs to an _origin-keyed agent cluster_: this means that the operating system has provided dedicated resources (for example an operating system process) to this window's origin that are not shared with windows from other origins.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/originAgentCluster)
*/
declare var originAgentCluster: boolean;
/**
* The **\`Window.outerHeight\`** read-only property returns the height in pixels of the whole browser window, including any sidebar, window chrome, and window-resizing borders/handles.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight)
*/
declare var outerHeight: number;
/**
* **\`Window.outerWidth\`** read-only property returns the width of the outside of the browser window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth)
*/
declare var outerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
declare var pageXOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
declare var pageYOffset: number;
/**
* The **\`Window.parent\`** property is a reference to the parent of the current window or subframe.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
*/
declare var parent: WindowProxy;
/**
* Returns the \`personalbar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
*/
declare var personalbar: BarProp;
/**
* The Window property **\`screen\`** returns a reference to the screen object associated with the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen)
*/
declare var screen: Screen;
/**
* The **\`Window.screenLeft\`** read-only property returns the horizontal distance, in CSS pixels, from the left border of the user's browser viewport to the left side of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft)
*/
declare var screenLeft: number;
/**
* The **\`Window.screenTop\`** read-only property returns the vertical distance, in CSS pixels, from the top border of the user's browser viewport to the top side of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop)
*/
declare var screenTop: number;
/**
* The **\`Window.screenX\`** read-only property returns the horizontal distance, in CSS pixels, of the left border of the user's browser viewport to the left side of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX)
*/
declare var screenX: number;
/**
* The **\`Window.screenY\`** read-only property returns the vertical distance, in CSS pixels, of the top border of the user's browser viewport to the top edge of the screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY)
*/
declare var screenY: number;
/**
* The read-only **\`scrollX\`** property of the Window interface returns the number of pixels by which the document is currently scrolled horizontally.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
*/
declare var scrollX: number;
/**
* The read-only **\`scrollY\`** property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
*/
declare var scrollY: number;
/**
* Returns the \`scrollbars\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
*/
declare var scrollbars: BarProp;
/**
* The **\`Window.self\`** read-only property returns the window itself, as a WindowProxy.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self)
*/
declare var self: Window & typeof globalThis;
/**
* The \`speechSynthesis\` read-only property of the Window object returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis)
*/
declare var speechSynthesis: SpeechSynthesis;
/**
* The **\`status\`** property of the bar at the bottom of the browser window.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
*/
declare var status: string;
/**
* Returns the \`statusbar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
*/
declare var statusbar: BarProp;
/**
* Returns the \`toolbar\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
*/
declare var toolbar: BarProp;
/**
* Returns a reference to the topmost window in the window hierarchy.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top)
*/
declare var top: WindowProxy | null;
/**
* The **\`visualViewport\`** read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or \`null\` if current document is not fully active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
*/
declare var visualViewport: VisualViewport | null;
/**
* The **\`window\`** property of a Window object points to the window object itself.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
*/
declare var window: Window & typeof globalThis;
/**
* \`window.alert()\` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert)
*/
declare function alert(message?: any): void;
/**
* The **\`Window.blur()\`** method does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
*/
declare function blur(): void;
/**
* The **\`window.cancelIdleCallback()\`** method cancels a callback previously scheduled with window.requestIdleCallback().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback)
*/
declare function cancelIdleCallback(handle: number): void;
/**
* The **\`Window.captureEvents()\`** method does nothing.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
*/
declare function captureEvents(): void;
/**
* The **\`Window.close()\`** method closes the current window, or the window on which it was called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
*/
declare function close(): void;
/**
* \`window.confirm()\` instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm)
*/
declare function confirm(message?: string): boolean;
/**
* Makes a request to bring the window to the front.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
*/
declare function focus(): void;
/**
* The **\`Window.getComputedStyle()\`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
*/
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/**
* The **\`getSelection()\`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection)
*/
declare function getSelection(): Selection | null;
/**
* The Window interface's **\`matchMedia()\`** method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia)
*/
declare function matchMedia(query: string): MediaQueryList;
/**
* The **\`moveBy()\`** method of the Window interface moves the current window by a specified amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy)
*/
declare function moveBy(x: number, y: number): void;
/**
* The **\`moveTo()\`** method of the Window interface moves the current window to the specified coordinates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo)
*/
declare function moveTo(x: number, y: number): void;
/**
* The **\`open()\`** method of the \`Window\` interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open)
*/
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* The **\`window.postMessage()\`** method safely enables cross-origin communication between Window objects; _e.g.,_ between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.
*
* [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;
/**
* Opens the print dialog to print the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print)
*/
declare function print(): void;
/**
* \`window.prompt()\` instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt)
*/
declare function prompt(message?: string, _default?: string): string | null;
/**
* Releases the window from trapping events of a specific type.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
*/
declare function releaseEvents(): void;
/**
* The **\`window.requestIdleCallback()\`** method queues a function to be called during a browser's idle periods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback)
*/
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/**
* The **\`Window.resizeBy()\`** method resizes the current window by a specified amount.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy)
*/
declare function resizeBy(x: number, y: number): void;
/**
* The **\`Window.resizeTo()\`** method dynamically resizes the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo)
*/
declare function resizeTo(width: number, height: number): void;
/**
* The **\`Window.scroll()\`** method scrolls the window to a particular place in the document.
*
* [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;
/**
* The **\`Window.scrollBy()\`** method scrolls the document in the window by the given amount.
*
* [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;
/**
* **\`Window.scrollTo()\`** scrolls to a particular set of coordinates in the document.
*
* [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;
/**
* The **\`window.stop()\`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
*/
declare function stop(): void;
declare function toString(): string;
/**
* The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
*
* [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;
/** [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: PointerEvent) => 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/Element/beforematch_event) */
declare var onbeforematch: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null;
/** [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;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */
declare var onchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */
declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
declare var onclose: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
declare var oncontextmenu: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
declare var oncontextrestored: ((this: Window, ev: Event) => 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */
declare var onended: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */
declare var onerror: OnErrorEventHandler;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */
declare var onload: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/** [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/Element/lostpointercapture_event) */
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */
declare var onpause: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */
declare var onplay: ((this: Window, ev: Event) => any) | null;
/** [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;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
*/
declare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/** [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;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/** [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;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/** [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/HTMLElement/toggle_event) */
declare var ontoggle: ((this: Window, ev: ToggleEvent) => 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/** [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/pagereveal_event) */
declare var onpagereveal: ((this: Window, ev: PageRevealEvent) => 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/pageswap_event) */
declare var onpageswap: ((this: Window, ev: PageSwapEvent) => 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/Window/caches)
*/
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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 = ArrayBufferLike | ArrayBufferView<ArrayBufferLike>;
type AutoFill = AutoFillBase | \`\${OptionalPrefixToken<AutoFillSection>}\${OptionalPrefixToken<AutoFillAddressKind>}\${AutoFillField}\${OptionalPostfixToken<AutoFillCredentialField>}\`;
type AutoFillField = AutoFillNormalField | \`\${OptionalPrefixToken<AutoFillContactKind>}\${AutoFillContactField}\`;
type AutoFillSection = \`section-\${string}\`;
type Base64URLString = string;
type BigInteger = Uint8Array<ArrayBuffer>;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView<ArrayBuffer> | 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 CookieList = CookieListItem[];
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
type Float32List = Float32Array<ArrayBufferLike> | 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 ImageBufferSource = AllowSharedBufferSource | ReadableStream;
type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
type Int32List = Int32Array<ArrayBufferLike> | 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 PublicKeyCredentialClientCapabilities = Record<string, boolean>;
type PublicKeyCredentialJSON = any;
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 | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
type Uint32List = Uint32Array<ArrayBufferLike> | 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" | "interrupted" | "running" | "suspended";
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
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 BitrateMode = "constant" | "variable";
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 CookieSameSite = "lax" | "none" | "strict";
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 EncodedAudioChunkType = "delta" | "key";
type EncodedVideoChunkType = "delta" | "key";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FillLightMode = "auto" | "flash" | "off";
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 GamepadHapticEffectType = "dual-rumble" | "trigger-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 LoginStatus = "logged-in" | "logged-out";
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 NavigationType = "push" | "reload" | "replace" | "traverse";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OpusBitstreamFormat = "ogg" | "opus";
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 PaymentShippingType = "delivery" | "pickup" | "shipping";
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
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 RTCDtlsRole = "client" | "server" | "unknown";
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 RTCIceRole = "controlled" | "controlling" | "unknown";
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 RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other";
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 RedEyeReduction = "always" | "controllable" | "never";
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";
`;Bi["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 {
/**
* The **\`setValueCurveAtTime()\`** method of the following a curve defined by a list of values.
*
* [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 {
/**
* The **\`createIIRFilter()\`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
*/
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
/**
* The \`createPeriodicWave()\` method of the BaseAudioContext interface is used to create a PeriodicWave.
*
* [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](): ArrayIterator<CSSKeyframeRule>;
}
interface CSSNumericArray {
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
entries(): ArrayIterator<[number, CSSNumericValue]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSNumericValue>;
}
interface CSSRuleList {
[Symbol.iterator](): ArrayIterator<CSSRule>;
}
interface CSSStyleDeclaration {
[Symbol.iterator](): ArrayIterator<string>;
}
interface CSSTransformValue {
[Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
entries(): ArrayIterator<[number, CSSTransformComponent]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSTransformComponent>;
}
interface CSSUnparsedValue {
[Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSUnparsedSegment>;
}
interface Cache {
/**
* The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given 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 CookieStoreManager {
/**
* The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
*/
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
/**
* The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
*/
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
}
interface CustomStateSet extends Set<string> {
}
interface DOMRectList {
[Symbol.iterator](): ArrayIterator<DOMRect>;
}
interface DOMStringList {
[Symbol.iterator](): ArrayIterator<string>;
}
interface DOMTokenList {
[Symbol.iterator](): ArrayIterator<string>;
entries(): ArrayIterator<[number, string]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<string>;
}
interface DataTransferItemList {
[Symbol.iterator](): ArrayIterator<DataTransferItem>;
}
interface EventCounts extends ReadonlyMap<string, number> {
}
interface FileList {
[Symbol.iterator](): ArrayIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): FormDataIterator<T>;
}
interface FormData {
[Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): FormDataIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): FormDataIterator<string>;
/** Returns a list of values in the list. */
values(): FormDataIterator<FormDataEntryValue>;
}
interface HTMLAllCollection {
[Symbol.iterator](): ArrayIterator<Element>;
}
interface HTMLCollectionBase {
[Symbol.iterator](): ArrayIterator<Element>;
}
interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): ArrayIterator<T>;
}
interface HTMLFormElement {
[Symbol.iterator](): ArrayIterator<Element>;
}
interface HTMLSelectElement {
[Symbol.iterator](): ArrayIterator<HTMLOptionElement>;
}
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): HeadersIterator<T>;
}
interface Headers {
[Symbol.iterator](): HeadersIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): HeadersIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): HeadersIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): HeadersIterator<string>;
}
interface Highlight extends Set<AbstractRange> {
}
interface HighlightRegistry extends Map<string, Highlight> {
}
interface IDBDatabase {
/**
* The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface ImageTrackList {
[Symbol.iterator](): ArrayIterator<ImageTrack>;
}
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
}
interface MIDIOutput {
/**
* The **\`send()\`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.
*
* [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 MediaKeyStatusMapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): MediaKeyStatusMapIterator<T>;
}
interface MediaKeyStatusMap {
[Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
keys(): MediaKeyStatusMapIterator<BufferSource>;
values(): MediaKeyStatusMapIterator<MediaKeyStatus>;
}
interface MediaList {
[Symbol.iterator](): ArrayIterator<string>;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface MimeTypeArray {
[Symbol.iterator](): ArrayIterator<MimeType>;
}
interface NamedNodeMap {
[Symbol.iterator](): ArrayIterator<Attr>;
}
interface Navigator {
/**
* The **\`requestMediaKeySystemAccess()\`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
*/
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
/**
* The **\`vibrate()\`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)
*/
vibrate(pattern: Iterable<number>): boolean;
}
interface NodeList {
[Symbol.iterator](): ArrayIterator<Node>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): ArrayIterator<[number, Node]>;
/** Returns an list of keys in the list. */
keys(): ArrayIterator<number>;
/** Returns an list of values in the list. */
values(): ArrayIterator<Node>;
}
interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): ArrayIterator<TNode>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): ArrayIterator<[number, TNode]>;
/** Returns an list of keys in the list. */
keys(): ArrayIterator<number>;
/** Returns an list of values in the list. */
values(): ArrayIterator<TNode>;
}
interface Plugin {
[Symbol.iterator](): ArrayIterator<MimeType>;
}
interface PluginArray {
[Symbol.iterator](): ArrayIterator<Plugin>;
}
interface RTCRtpTransceiver {
/**
* The **\`setCodecPreferences()\`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
*/
setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
interface SVGLengthList {
[Symbol.iterator](): ArrayIterator<SVGLength>;
}
interface SVGNumberList {
[Symbol.iterator](): ArrayIterator<SVGNumber>;
}
interface SVGPointList {
[Symbol.iterator](): ArrayIterator<DOMPoint>;
}
interface SVGStringList {
[Symbol.iterator](): ArrayIterator<string>;
}
interface SVGTransformList {
[Symbol.iterator](): ArrayIterator<SVGTransform>;
}
interface SourceBufferList {
[Symbol.iterator](): ArrayIterator<SourceBuffer>;
}
interface SpeechRecognitionResult {
[Symbol.iterator](): ArrayIterator<SpeechRecognitionAlternative>;
}
interface SpeechRecognitionResultList {
[Symbol.iterator](): ArrayIterator<SpeechRecognitionResult>;
}
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
}
interface StylePropertyMapReadOnly {
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
keys(): StylePropertyMapReadOnlyIterator<string>;
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
}
interface StyleSheetList {
[Symbol.iterator](): ArrayIterator<CSSStyleSheet>;
}
interface SubtleCrypto {
/**
* The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
*
* [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>;
/**
* The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
*/
generateKey(algorithm: "Ed25519" | { name: "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>;
/**
* The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
*
* [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>;
/**
* The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
*
* [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](): ArrayIterator<TextTrackCue>;
}
interface TextTrackList {
[Symbol.iterator](): ArrayIterator<TextTrack>;
}
interface TouchList {
[Symbol.iterator](): ArrayIterator<Touch>;
}
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): URLSearchParamsIterator<T>;
}
interface URLSearchParams {
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): URLSearchParamsIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): URLSearchParamsIterator<string>;
/** Returns a list of values in the search params. */
values(): URLSearchParamsIterator<string>;
}
interface ViewTransitionTypeSet extends Set<string> {
}
interface WEBGL_draw_buffers {
/**
* The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
*/
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
/**
* The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
*/
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
*/
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
*/
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
*/
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | 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>): 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/WebGL2RenderingContext/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;
}
`;Bi["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;
`;Bi["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;
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
}
interface ArrayConstructor {
/**
* Creates an array from an array-like object.
* @param arrayLike An array-like object to convert to an array.
*/
from<T>(arrayLike: ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param arrayLike An array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of<T>(...items: T[]): T[];
}
interface DateConstructor {
new (value: number | string | Date): Date;
}
interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
*/
readonly name: string;
}
interface Math {
/**
* Returns the number of leading zero bits in the 32-bit binary representation of a number.
* @param x A numeric expression.
*/
clz32(x: number): number;
/**
* Returns the result of 32-bit multiplication of two numbers.
* @param x First number
* @param y Second number
*/
imul(x: number, y: number): number;
/**
* Returns the sign of the x, indicating whether x is positive, negative or zero.
* @param x The numeric expression to test
*/
sign(x: number): number;
/**
* Returns the base 10 logarithm of a number.
* @param x A numeric expression.
*/
log10(x: number): number;
/**
* Returns the base 2 logarithm of a number.
* @param x A numeric expression.
*/
log2(x: number): number;
/**
* Returns the natural logarithm of 1 + x.
* @param x A numeric expression.
*/
log1p(x: number): number;
/**
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
* is the base of the natural logarithms).
* @param x A numeric expression.
*/
expm1(x: number): number;
/**
* Returns the hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cosh(x: number): number;
/**
* Returns the hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sinh(x: number): number;
/**
* Returns the hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tanh(x: number): number;
/**
* Returns the inverse hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
acosh(x: number): number;
/**
* Returns the inverse hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
asinh(x: number): number;
/**
* Returns the inverse hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
atanh(x: number): number;
/**
* Returns the square root of the sum of squares of its arguments.
* @param values Values to compute the square root for.
* If no arguments are passed, the result is +0.
* If there is only one argument, the result is the absolute value.
* If any argument is +Infinity or -Infinity, the result is +Infinity.
* If any argument is NaN, the result is NaN.
* If all arguments are either +0 or \u22120, the result is +0.
*/
hypot(...values: number[]): number;
/**
* Returns the integral part of the a numeric expression, x, removing any fractional digits.
* If x is already an integer, the result is x.
* @param x A numeric expression.
*/
trunc(x: number): number;
/**
* Returns the nearest single precision float representation of a number.
* @param x A numeric expression.
*/
fround(x: number): number;
/**
* Returns an implementation-dependent approximation to the cube root of number.
* @param x A numeric expression.
*/
cbrt(x: number): number;
}
interface NumberConstructor {
/**
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
* that is representable as a Number value, which is approximately:
* 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
*/
readonly EPSILON: number;
/**
* Returns true if passed value is finite.
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
* number. Only finite values of the type number, result in true.
* @param number A numeric value.
*/
isFinite(number: unknown): boolean;
/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
*/
isInteger(number: unknown): boolean;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
* to a number. Only values of the type number, that are also NaN, result in true.
* @param number A numeric value.
*/
isNaN(number: unknown): boolean;
/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
*/
isSafeInteger(number: unknown): boolean;
/**
* The value of the largest integer n such that n and n + 1 are both exactly representable as
* a Number value.
* The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
*/
readonly MAX_SAFE_INTEGER: number;
/**
* The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
* a Number value.
* The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
*/
readonly MIN_SAFE_INTEGER: number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
parseFloat(string: string): number;
/**
* Converts A string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
parseInt(string: string, radix?: number): number;
}
interface ObjectConstructor {
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source The source object from which to copy properties.
*/
assign<T extends {}, U>(target: T, source: U): T & U;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: object, ...sources: any[]): any;
/**
* Returns an array of all symbol properties found directly on object o.
* @param o Object to retrieve the symbols from.
*/
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: {}): string[];
/**
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/
is(value1: any, value2: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
* @param o The object to change its prototype.
* @param proto The value of the new prototype or null.
*/
setPrototypeOf(o: any, proto: object | null): any;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
}
interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order:
*
* - "g" for global
* - "i" for ignoreCase
* - "m" for multiline
* - "u" for unicode
* - "y" for sticky
*
* If no flags are set, the value is the empty string.
*/
readonly flags: string;
/**
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
* expression. Default is false. Read-only.
*/
readonly sticky: boolean;
/**
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
* expression. Default is false. Read-only.
*/
readonly unicode: boolean;
}
interface RegExpConstructor {
new (pattern: RegExp | string, flags?: string): RegExp;
(pattern: RegExp | string, flags?: string): RegExp;
}
interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
codePointAt(pos: number): number | undefined;
/**
* Returns true if searchString appears as a substring of the result of converting this
* object to a String, at one or more positions that are
* greater than or equal to position; otherwise, returns false.
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* endPosition \u2013 length(this). Otherwise returns false.
*/
endsWith(searchString: string, endPosition?: number): boolean;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form?: string): string;
/**
* Returns a String value that is made from count copies appended together. If count is 0,
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position?: number): boolean;
/**
* Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
* @deprecated A legacy feature for browser compatibility
* @param name
*/
anchor(name: string): string;
/**
* Returns a \`<big>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
big(): string;
/**
* Returns a \`<blink>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
blink(): string;
/**
* Returns a \`<b>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
bold(): string;
/**
* Returns a \`<tt>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
fixed(): string;
/**
* Returns a \`<font>\` HTML element and sets the color attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontcolor(color: string): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: number): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: string): string;
/**
* Returns an \`<i>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
italics(): string;
/**
* Returns an \`<a>\` HTML element and sets the href attribute value
* @deprecated A legacy feature for browser compatibility
*/
link(url: string): string;
/**
* Returns a \`<small>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
small(): string;
/**
* Returns a \`<strike>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
strike(): string;
/**
* Returns a \`<sub>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sub(): string;
/**
* Returns a \`<sup>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sup(): string;
}
interface StringConstructor {
/**
* Return the String value whose elements are, in order, the elements in the List elements.
* If length is 0, the empty string is returned.
*/
fromCodePoint(...codePoints: number[]): string;
/**
* String.raw is usually used as a tag function of a Tagged Template String. When called as
* such, the first argument will be a well formed template call site object and the rest
* parameter will contain the substitution values. It can also be called directly, for example,
* to interleave strings and values from your own tag function, and in this case the only thing
* it needs from the first argument is the raw property.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
}
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
`;Bi["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" />
`;Bi["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 = any> extends IteratorObject<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...[value]: [] | [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;
}
`;Bi["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 = any> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
interface Iterable<T, TReturn = any, TNext = any> {
[Symbol.iterator](): Iterator<T, TReturn, TNext>;
}
/**
* Describes a user-defined {@link Iterator} that is also iterable.
*/
interface IterableIterator<T, TReturn = any, TNext = any> extends Iterator<T, TReturn, TNext> {
[Symbol.iterator](): IterableIterator<T, TReturn, TNext>;
}
/**
* Describes an {@link Iterator} produced by the runtime that inherits from the intrinsic \`Iterator.prototype\`.
*/
interface IteratorObject<T, TReturn = unknown, TNext = unknown> extends Iterator<T, TReturn, TNext> {
[Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
}
/**
* Defines the \`TReturn\` type used for built-in iterators produced by \`Array\`, \`Map\`, \`Set\`, and others.
* This is \`undefined\` when \`strictBuiltInIteratorReturn\` is \`true\`; otherwise, this is \`any\`.
*/
type BuiltinIteratorReturn = intrinsic;
interface ArrayIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): ArrayIterator<T>;
}
interface Array<T> {
/** Iterator */
[Symbol.iterator](): ArrayIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): ArrayIterator<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](): ArrayIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): ArrayIterator<T>;
}
interface IArguments {
/** Iterator */
[Symbol.iterator](): ArrayIterator<any>;
}
interface MapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): MapIterator<T>;
}
interface Map<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): MapIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): MapIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): MapIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): MapIterator<V>;
}
interface ReadonlyMap<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): MapIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): MapIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): MapIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): MapIterator<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 SetIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): SetIterator<T>;
}
interface Set<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): SetIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): SetIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): SetIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): SetIterator<T>;
}
interface ReadonlySet<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): SetIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): SetIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): SetIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): SetIterator<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 StringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): StringIterator<T>;
}
interface String {
/** Iterator */
[Symbol.iterator](): StringIterator<string>;
}
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Int8ArrayConstructor {
new (elements: Iterable<number>): Int8Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Int8Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;
}
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Uint8ArrayConstructor {
new (elements: Iterable<number>): Uint8Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
}
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Uint8ClampedArrayConstructor {
new (elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
}
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Int16ArrayConstructor {
new (elements: Iterable<number>): Int16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Int16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;
}
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Uint16ArrayConstructor {
new (elements: Iterable<number>): Uint16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Uint16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
}
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Int32ArrayConstructor {
new (elements: Iterable<number>): Int32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Int32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;
}
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Uint32ArrayConstructor {
new (elements: Iterable<number>): Uint32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Uint32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
}
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Float32ArrayConstructor {
new (elements: Iterable<number>): Float32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Float32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;
}
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
}
interface Float64ArrayConstructor {
new (elements: Iterable<number>): Float64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Float64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;
}
`;Bi["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;
`;Bi["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;
`;Bi["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;
}
`;Bi["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;
`;Bi["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that determines if a constructor object recognizes an object as one of the
* constructor\u2019s instances. Called by the semantics of the instanceof operator.
*/
readonly hasInstance: unique symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
readonly isConcatSpreadable: unique symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
readonly match: unique symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
readonly replace: unique symbol;
/**
* A regular expression method that returns the index within a string that matches the
* regular expression. Called by the String.prototype.search method.
*/
readonly search: unique symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
readonly species: unique symbol;
/**
* A regular expression method that splits a string at the indices that match the regular
* expression. Called by the String.prototype.split method.
*/
readonly split: unique symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
readonly toPrimitive: unique symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
readonly toStringTag: unique symbol;
/**
* An Object whose truthy properties are properties that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: unique symbol;
}
interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;
readonly [Symbol.toStringTag]: string;
}
interface Array<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof any[]]?: boolean;
};
}
interface ReadonlyArray<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof readonly any[]]?: boolean;
};
}
interface Date {
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "default"): string;
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "string"): string;
/**
* Converts a Date object to a number.
*/
[Symbol.toPrimitive](hint: "number"): number;
/**
* Converts a Date object to a string or number.
*
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
*
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
*/
[Symbol.toPrimitive](hint: string): string | number;
}
interface Map<K, V> {
readonly [Symbol.toStringTag]: string;
}
interface WeakMap<K extends 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]: "ArrayBuffer";
}
interface DataView<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: string;
}
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: "Int8Array";
}
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: "Uint8Array";
}
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
}
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: "Int16Array";
}
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: "Uint16Array";
}
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: "Int32Array";
}
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: "Uint32Array";
}
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
readonly [Symbol.toStringTag]: "Float32Array";
}
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
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;
}
`;Bi["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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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;
}
`;Bi["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" />
`;Bi["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" />
`;Bi["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/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[];
}
`;Bi["lib.es2017.arraybuffer.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 ArrayBufferConstructor {
new (): ArrayBuffer;
}
`;Bi["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.arraybuffer" />
/// <reference lib="es2017.date" />
/// <reference lib="es2017.intl" />
/// <reference lib="es2017.object" />
/// <reference lib="es2017.sharedmemory" />
/// <reference lib="es2017.string" />
/// <reference lib="es2017.typedarrays" />
`;Bi["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;
}
`;Bi["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" />
`;Bi["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[];
}
}
`;Bi["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 own 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 own 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 own 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 own 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; };
}
`;Bi["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.toStringTag]: "SharedArrayBuffer";
}
interface SharedArrayBufferConstructor {
readonly prototype: SharedArrayBuffer;
new (byteLength?: number): SharedArrayBuffer;
readonly [Symbol.species]: SharedArrayBufferConstructor;
}
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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, 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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, 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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, 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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, 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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, 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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, 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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, 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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, 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<ArrayBufferLike>, 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<ArrayBufferLike>.
* @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<ArrayBufferLike>, 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<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
readonly [Symbol.toStringTag]: "Atomics";
}
declare var Atomics: Atomics;
`;Bi["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;
}
`;Bi["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<ArrayBuffer>;
}
interface Uint8ArrayConstructor {
new (): Uint8Array<ArrayBuffer>;
}
interface Uint8ClampedArrayConstructor {
new (): Uint8ClampedArray<ArrayBuffer>;
}
interface Int16ArrayConstructor {
new (): Int16Array<ArrayBuffer>;
}
interface Uint16ArrayConstructor {
new (): Uint16Array<ArrayBuffer>;
}
interface Int32ArrayConstructor {
new (): Int32Array<ArrayBuffer>;
}
interface Uint32ArrayConstructor {
new (): Uint32Array<ArrayBuffer>;
}
interface Float32ArrayConstructor {
new (): Float32Array<ArrayBuffer>;
}
interface Float64ArrayConstructor {
new (): Float64Array<ArrayBuffer>;
}
`;Bi["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 = any> extends AsyncIteratorObject<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...[value]: [] | [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;
}
`;Bi["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 = any> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
}
interface AsyncIterable<T, TReturn = any, TNext = any> {
[Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
}
/**
* Describes a user-defined {@link AsyncIterator} that is also async iterable.
*/
interface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {
[Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
}
/**
* Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic \`AsyncIterator.prototype\`.
*/
interface AsyncIteratorObject<T, TReturn = unknown, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
[Symbol.asyncIterator](): AsyncIteratorObject<T, TReturn, TNext>;
}
`;Bi["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" />
`;Bi["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" />
`;Bi["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;
interface NumberFormatPartTypeRegistry {
literal: never;
nan: never;
infinity: never;
percent: never;
integer: never;
group: never;
decimal: never;
fraction: never;
plusSign: never;
minusSign: never;
percentSign: never;
currency: never;
}
type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry;
interface NumberFormatPart {
type: NumberFormatPartTypes;
value: string;
}
interface NumberFormat {
formatToParts(number?: number | bigint): NumberFormatPart[];
}
}
`;Bi["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>;
}
`;Bi["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;
}
`;Bi["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>[];
}
`;Bi["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" />
`;Bi["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" />
`;Bi["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: never;
}
}
`;Bi["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;
}
`;Bi["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;
}
`;Bi["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;
}
`;Bi["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/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
*/
localeMatcher?: string;
/**
* The formatting style to use , the default is "decimal".
*/
style?: string;
numberingSystem?: string;
/**
* The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
*/
unit?: string;
/**
* The unit formatting style to use in unit formatting, the defaults is "short".
*/
unitDisplay?: string;
/**
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
*/
currency?: string;
/**
* How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
*
* "symbol" to use a localized currency symbol such as \u20AC,
*
* "code" to use the ISO currency code,
*
* "name" to use a localized currency name such as "dollar"
*/
currencyDisplay?: string;
/**
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
*/
useGrouping?: boolean;
/**
* The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
*/
minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
*/
maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
*/
maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The formatting that should be displayed for the number, the defaults is "standard"
*
* "standard" plain number formatting
*
* "scientific" return the order-of-magnitude for formatted number.
*
* "engineering" return the exponent of ten when divisible by three
*
* "compact" string representing exponent, defaults is using the "short" form
*/
notation?: string;
/**
* used only when notation is "compact"
*/
compactDisplay?: string;
}
interface BigInt {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings.
*/
toString(radix?: number): string;
/** Returns a string representation appropriate to the host environment's current locale. */
toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;
/** Returns the primitive value of the specified object. */
valueOf(): bigint;
readonly [Symbol.toStringTag]: "BigInt";
}
interface BigIntConstructor {
(value: bigint | boolean | number | string): bigint;
readonly prototype: BigInt;
/**
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asIntN(bits: number, int: bigint): bigint;
/**
* Interprets the low bits of a BigInt as an unsigned integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asUintN(bits: number, int: bigint): bigint;
}
declare var BigInt: BigIntConstructor;
/**
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: TArrayBuffer;
/** 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(): ArrayIterator<[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<TArrayBuffer>) => 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<TArrayBuffer>) => any, thisArg?: any): BigInt64Array<ArrayBuffer>;
/**
* 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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(): ArrayIterator<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<TArrayBuffer>) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
/**
* 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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<ArrayBuffer>;
/**
* 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<TArrayBuffer>) => 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<TArrayBuffer>;
/** Converts the array to a string by using the current locale. */
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigInt64Array<TArrayBuffer>;
/** Yields each value in the array. */
values(): ArrayIterator<bigint>;
[Symbol.iterator](): ArrayIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
[index: number]: bigint;
}
interface BigInt64ArrayConstructor {
readonly prototype: BigInt64Array<ArrayBufferLike>;
new (length?: number): BigInt64Array<ArrayBuffer>;
new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<ArrayBuffer>;
new (array: ArrayLike<bigint> | ArrayBuffer): BigInt64Array<ArrayBuffer>;
/** 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<bigint>): BigInt64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: TArrayBuffer;
/** 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(): ArrayIterator<[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<TArrayBuffer>) => 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<TArrayBuffer>) => any, thisArg?: any): BigUint64Array<ArrayBuffer>;
/**
* 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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(): ArrayIterator<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<TArrayBuffer>) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
/**
* 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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<TArrayBuffer>) => 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<ArrayBuffer>;
/**
* 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<TArrayBuffer>) => 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<TArrayBuffer>;
/** Converts the array to a string by using the current locale. */
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigUint64Array<TArrayBuffer>;
/** Yields each value in the array. */
values(): ArrayIterator<bigint>;
[Symbol.iterator](): ArrayIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
[index: number]: bigint;
}
interface BigUint64ArrayConstructor {
readonly prototype: BigUint64Array<ArrayBufferLike>;
new (length?: number): BigUint64Array<ArrayBuffer>;
new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<ArrayBuffer>;
new (array: ArrayLike<bigint> | ArrayBuffer): BigUint64Array<ArrayBuffer>;
/** 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<bigint>): BigUint64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<bigint>): BigUint64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
}
declare var BigUint64Array: BigUint64ArrayConstructor;
interface DataView<TArrayBuffer extends ArrayBufferLike> {
/**
* 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;
}
}
`;Bi["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" />
`;Bi["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;
}
`;Bi["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" />
`;Bi["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/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/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/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/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/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/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/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/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/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/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/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/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/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
*/
const RelativeTimeFormat: {
/**
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
*
* [MDN](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
*/
supportedLocalesOf(
locales?: LocalesArgument,
options?: RelativeTimeFormatOptions,
): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptionsStyleRegistry {
unit: never;
}
interface NumberFormatOptionsCurrencyDisplayRegistry {
narrowSymbol: never;
}
interface NumberFormatOptionsSignDisplayRegistry {
auto: never;
never: never;
always: never;
exceptZero: never;
}
type NumberFormatOptionsSignDisplay = keyof NumberFormatOptionsSignDisplayRegistry;
interface NumberFormatOptions {
numberingSystem?: string | undefined;
compactDisplay?: "short" | "long" | undefined;
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
signDisplay?: NumberFormatOptionsSignDisplay | undefined;
unit?: string | undefined;
unitDisplay?: "short" | "long" | "narrow" | undefined;
currencySign?: "standard" | "accounting" | undefined;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: "short" | "long";
notation: "standard" | "scientific" | "engineering" | "compact";
signDisplay: NumberFormatOptionsSignDisplay;
unit?: string;
unitDisplay?: "short" | "long" | "narrow";
currencySign?: "standard" | "accounting";
}
interface NumberFormatPartTypeRegistry {
compact: never;
exponentInteger: never;
exponentMinusSign: never;
exponentSeparator: never;
unit: never;
unknown: never;
}
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/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/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
*
* [MDN](https://developer.mozilla.org/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/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/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/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
*/
resolvedOptions(): ResolvedDisplayNamesOptions;
}
/**
* The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/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/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/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/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/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/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[];
}
}
`;Bi["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;
}
`;Bi["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>>[]>;
}
`;Bi["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"/>
/// <reference lib="es2020.bigint" />
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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, 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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, 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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, 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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, 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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, 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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, 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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, 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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, 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<ArrayBufferLike>, 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<ArrayBufferLike>, 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<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
}
`;Bi["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" />
/// <reference lib="es2020.intl" />
/// <reference lib="es2020.symbol.wellknown" />
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): RegExpStringIterator<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;
}
`;Bi["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 RegExpStringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): RegExpStringIterator<T>;
}
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): RegExpStringIterator<RegExpMatchArray>;
}
`;Bi["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" />
`;Bi["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" />
`;Bi["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/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/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/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/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/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/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/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/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/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedListFormatOptions;
}
const ListFormat: {
prototype: ListFormat;
/**
* Creates [Intl.ListFormat](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
* with some or all options of \`ListFormatOptions\`.
*
* @returns [Intl.ListFormatOptions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
*
* [MDN](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
*/
supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
};
}
`;Bi["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>>;
}
`;Bi["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;
}
`;Bi["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"/>
/// <reference lib="es2015.symbol.wellknown" />
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): boolean;
}
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;
`;Bi["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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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;
}
`;Bi["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.regexp" />
/// <reference lib="es2022.string" />
`;Bi["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"/>
/// <reference lib="es2021.promise" />
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;
}
`;Bi["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" />
`;Bi["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/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;
}
/**
* The \`Intl.Segmenter\` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
*/
interface Segmenter {
/**
* Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment)
*
* @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;
/**
* The \`resolvedOptions()\` method of \`Intl.Segmenter\` instances returns a new object with properties reflecting the options computed during initialization of this \`Segmenter\` object.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/resolvedOptions)
*/
resolvedOptions(): ResolvedSegmenterOptions;
}
interface ResolvedSegmenterOptions {
locale: string;
granularity: "grapheme" | "word" | "sentence";
}
interface SegmentIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): SegmentIterator<T>;
}
/**
* A \`Segments\` object is an iterable collection of the segments of a text string. It is returned by a call to the \`segment()\` method of an \`Intl.Segmenter\` object.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments)
*/
interface Segments {
/**
* Returns an object describing the segment in the original string that includes the code unit at a specified index.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments/containing)
*
* @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 | undefined;
/** Returns an iterator to iterate over the segments. */
[Symbol.iterator](): SegmentIterator<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;
}
/**
* The \`Intl.Segmenter\` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
*/
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/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
* with some or all options of \`SegmenterOptions\`.
*
* @returns [Intl.Segmenter](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
*
* [MDN](https://developer.mozilla.org/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/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
* with some or all possible options.
*
* [MDN](https://developer.mozilla.org/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/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[];
}
`;Bi["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;
}
`;Bi["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 a regular expression.
* Default is false. Read-only.
*/
readonly hasIndices: boolean;
}
`;Bi["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;
}
`;Bi["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, UTF-16 code unit 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, UTF-16 code unit 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<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: this) => 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: this) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int8Array<ArrayBuffer>;
/**
* 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 = Int8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Int8Array<ArrayBuffer>;
/**
* 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): Int8Array<ArrayBuffer>;
}
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: this) => 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: this) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: this,
) => 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: this,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8ClampedArray<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: this) => 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: this) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int16Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: this,
) => 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: this,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint16Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: this) => 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: this) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int32Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: this,
) => 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: this,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint32Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: this,
) => 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: this,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float32Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: this,
) => 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: this,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float64Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: bigint,
index: number,
array: this,
) => 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: this,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): BigInt64Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: bigint,
index: number,
array: this,
) => 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: this,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): BigUint64Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
}
`;Bi["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;
}
`;Bi["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" />
/// <reference lib="es2023.intl" />
`;Bi["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" />
`;Bi["lib.es2023.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 NumberFormatOptionsUseGroupingRegistry {
min2: never;
auto: never;
always: never;
}
interface NumberFormatOptionsSignDisplayRegistry {
negative: never;
}
interface NumberFormatOptions {
roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined;
roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 | undefined;
roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined;
}
interface ResolvedNumberFormatOptions {
roundingPriority: "auto" | "morePrecision" | "lessPrecision";
roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";
roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000;
trailingZeroDisplay: "auto" | "stripIfInteger";
}
interface NumberRangeFormatPart extends NumberFormatPart {
source: "startRange" | "endRange" | "shared";
}
type StringNumericLiteral = \`\${number}\` | "Infinity" | "-Infinity" | "+Infinity";
interface NumberFormat {
format(value: number | bigint | StringNumericLiteral): string;
formatToParts(value: number | bigint | StringNumericLiteral): NumberFormatPart[];
formatRange(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): string;
formatRangeToParts(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): NumberRangeFormatPart[];
}
}
`;Bi["lib.es2024.arraybuffer.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 ArrayBuffer {
/**
* If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/maxByteLength)
*/
get maxByteLength(): number;
/**
* Returns true if this ArrayBuffer can be resized.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resizable)
*/
get resizable(): boolean;
/**
* Resizes the ArrayBuffer to the specified size (in bytes).
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize)
*/
resize(newByteLength?: number): void;
/**
* Returns a boolean indicating whether or not this buffer has been detached (transferred).
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/detached)
*/
get detached(): boolean;
/**
* Creates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer)
*/
transfer(newByteLength?: number): ArrayBuffer;
/**
* Creates a new non-resizable ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transferToFixedLength)
*/
transferToFixedLength(newByteLength?: number): ArrayBuffer;
}
interface ArrayBufferConstructor {
new (byteLength: number, options?: { maxByteLength?: number; }): ArrayBuffer;
}
`;Bi["lib.es2024.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[]>;
}
`;Bi["lib.es2024.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="es2024.arraybuffer" />
/// <reference lib="es2024.collection" />
/// <reference lib="es2024.object" />
/// <reference lib="es2024.promise" />
/// <reference lib="es2024.regexp" />
/// <reference lib="es2024.sharedmemory" />
/// <reference lib="es2024.string" />
`;Bi["lib.es2024.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="es2024" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`;Bi["lib.es2024.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[]>>;
}
`;Bi["lib.es2024.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>;
}
`;Bi["lib.es2024.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 RegExp {
/**
* Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression.
* Default is false. Read-only.
*/
readonly unicodeSets: boolean;
}
`;Bi["lib.es2024.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="es2020.bigint" />
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">; };
}
interface SharedArrayBuffer {
/**
* Returns true if this SharedArrayBuffer can be grown.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/growable)
*/
get growable(): boolean;
/**
* If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/maxByteLength)
*/
get maxByteLength(): number;
/**
* Grows the SharedArrayBuffer to the specified size (in bytes).
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/grow)
*/
grow(newByteLength?: number): void;
}
interface SharedArrayBufferConstructor {
new (byteLength: number, options?: { maxByteLength?: number; }): SharedArrayBuffer;
}
`;Bi["lib.es2024.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 true if all leading surrogates and trailing surrogates appear paired and in order.
*/
isWellFormed(): boolean;
/**
* Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).
*/
toWellFormed(): string;
}
`;Bi["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) between the X axis and the line going through both the origin and the given 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 Universal Coordinated Time (UTC) and the time on the local computer. */
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.
* @throws {SyntaxError} If \`text\` is not valid JSON.
*/
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.
* @throws {TypeError} If a circular reference or a BigInt value is found.
*/
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.
* @throws {TypeError} If a circular reference or a BigInt value is found.
*/
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, UTF-16 code unit 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. Omitting this argument will remove all elements from the start
* paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type
* that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.
* @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. If value of this argument is either a negative number, zero,
* undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and
* not remove any elements.
* @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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
}
interface DataView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
readonly buffer: TArrayBuffer;
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<ArrayBufferLike>;
new <TArrayBuffer extends ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }>(buffer: TArrayBuffer, byteOffset?: number, byteLength?: number): DataView<TArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Int8Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Int8Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array<ArrayBufferLike>;
new (length: number): Int8Array<ArrayBuffer>;
new (array: ArrayLike<number>): Int8Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int8Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Int8Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int8Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Uint8Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array<ArrayBufferLike>;
new (length: number): Uint8Array<ArrayBuffer>;
new (array: ArrayLike<number>): Uint8Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Uint8Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray<ArrayBufferLike>;
new (length: number): Uint8ClampedArray<ArrayBuffer>;
new (array: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Uint8ClampedArray<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Int16Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Int16Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Int16ArrayConstructor {
readonly prototype: Int16Array<ArrayBufferLike>;
new (length: number): Int16Array<ArrayBuffer>;
new (array: ArrayLike<number>): Int16Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int16Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Int16Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Uint16Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array<ArrayBufferLike>;
new (length: number): Uint16Array<ArrayBuffer>;
new (array: ArrayLike<number>): Uint16Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint16Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Uint16Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Int32Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Int32Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Int32ArrayConstructor {
readonly prototype: Int32Array<ArrayBufferLike>;
new (length: number): Int32Array<ArrayBuffer>;
new (array: ArrayLike<number>): Int32Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int32Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Int32Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Uint32Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array<ArrayBufferLike>;
new (length: number): Uint32Array<ArrayBuffer>;
new (array: ArrayLike<number>): Uint32Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint32Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Uint32Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Float32Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Float32Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Float32ArrayConstructor {
readonly prototype: Float32Array<ArrayBufferLike>;
new (length: number): Float32Array<ArrayBuffer>;
new (array: ArrayLike<number>): Float32Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float32Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Float32Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float32Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;
}
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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* 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: this) => 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: this) => any, thisArg?: any): Float64Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Float64Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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<ArrayBuffer>;
/**
* 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: this) => 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<TArrayBuffer>;
/**
* 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(): this;
[index: number]: number;
}
interface Float64ArrayConstructor {
readonly prototype: Float64Array<ArrayBufferLike>;
new (length: number): Float64Array<ArrayBuffer>;
new (array: ArrayLike<number>): Float64Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float64Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Float64Array<ArrayBuffer>;
/**
* 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<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float64Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;
}
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 NumberFormatOptionsStyleRegistry {
decimal: never;
percent: never;
currency: never;
}
type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry;
interface NumberFormatOptionsCurrencyDisplayRegistry {
code: never;
symbol: never;
name: never;
}
type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry;
interface NumberFormatOptionsUseGroupingRegistry {}
type NumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean;
type ResolvedNumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false;
interface NumberFormatOptions {
localeMatcher?: "lookup" | "best fit" | undefined;
style?: NumberFormatOptionsStyle | undefined;
currency?: string | undefined;
currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined;
useGrouping?: NumberFormatOptionsUseGrouping | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: NumberFormatOptionsStyle;
currency?: string;
currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
minimumIntegerDigits: number;
minimumFractionDigits?: number;
maximumFractionDigits?: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: ResolvedNumberFormatOptionsUseGrouping;
}
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;
}
`;Bi["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" />
`;Bi["lib.esnext.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 ArrayConstructor {
/**
* Creates an array from an async iterator or iterable object.
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
*/
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
/**
* Creates an array from an async iterator or iterable object.
*
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of itarableOrArrayLike.
* Each return value is awaited before being added to result array.
* @param thisArg Value of 'this' used when executing mapfn.
*/
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
}
`;Bi["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"/>
/// <reference lib="es2024.collection" />
interface ReadonlySetLike<T> {
/**
* Despite its name, returns an iterator of the values in the set-like.
*/
keys(): Iterator<T>;
/**
* @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
*/
has(value: T): boolean;
/**
* @returns the number of (unique) elements in the set-like.
*/
readonly size: number;
}
interface Set<T> {
/**
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
*/
union<U>(other: ReadonlySetLike<U>): Set<T | U>;
/**
* @returns a new Set containing all the elements which are both in this Set and in the argument.
*/
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
/**
* @returns a new Set containing all the elements in this Set which are not also in the argument.
*/
difference<U>(other: ReadonlySetLike<U>): Set<T>;
/**
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
*/
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
/**
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
*/
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
/**
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
*/
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
/**
* @returns a boolean indicating whether this Set has no elements in common with the argument.
*/
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
}
interface ReadonlySet<T> {
/**
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
*/
union<U>(other: ReadonlySetLike<U>): Set<T | U>;
/**
* @returns a new Set containing all the elements which are both in this Set and in the argument.
*/
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
/**
* @returns a new Set containing all the elements in this Set which are not also in the argument.
*/
difference<U>(other: ReadonlySetLike<U>): Set<T>;
/**
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
*/
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
/**
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
*/
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
/**
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
*/
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
/**
* @returns a boolean indicating whether this Set has no elements in common with the argument.
*/
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
}
`;Bi["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="es2024" />
/// <reference lib="esnext.intl" />
/// <reference lib="esnext.decorators" />
/// <reference lib="esnext.disposable" />
/// <reference lib="esnext.collection" />
/// <reference lib="esnext.array" />
/// <reference lib="esnext.iterator" />
/// <reference lib="esnext.promise" />
/// <reference lib="esnext.float16" />
/// <reference lib="esnext.error" />
/// <reference lib="esnext.sharedmemory" />
`;Bi["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;
}
`;Bi["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" />
/// <reference lib="es2015.iterable" />
/// <reference lib="es2018.asynciterable" />
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;
interface IteratorObject<T, TReturn, TNext> extends Disposable {
}
interface AsyncIteratorObject<T, TReturn, TNext> extends AsyncDisposable {
}
`;Bi["lib.esnext.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 ErrorConstructor {
/**
* Indicates whether the argument provided is a built-in Error instance or not.
*/
isError(error: unknown): error is Error;
}
`;Bi["lib.esnext.float16.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" />
/**
* A typed array of 16-bit float values. The contents are initialized to 0. If the requested number
* of bytes could not be allocated an exception is raised.
*/
interface Float16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: TArrayBuffer;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* 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;
/**
* 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: this) => 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: this) => any, thisArg?: any): Float16Array<ArrayBuffer>;
/**
* 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: this) => 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: this) => boolean, thisArg?: any): number;
/**
* 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: this,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: this,
) => 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: this,
) => unknown,
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: this) => 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: number, 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: 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: this) => number, thisArg?: any): Float16Array<ArrayBuffer>;
/**
* 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: this) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;
/**
* Reverses the elements in an 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<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): Float16Array<ArrayBuffer>;
/**
* 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: this) => 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 Float16Array 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): Float16Array<TArrayBuffer>;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float16Array<ArrayBuffer>;
/**
* 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 = Float16Array.from([11.25, 2, -22.5, 1]);
* myNums.toSorted((a, b) => a - b) // Float16Array(4) [-22.5, 1, 2, 11.5]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Float16Array<ArrayBuffer>;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): this;
/**
* 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): Float16Array<ArrayBuffer>;
[index: number]: number;
[Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
values(): ArrayIterator<number>;
readonly [Symbol.toStringTag]: "Float16Array";
}
interface Float16ArrayConstructor {
readonly prototype: Float16Array<ArrayBufferLike>;
new (length?: number): Float16Array<ArrayBuffer>;
new (array: ArrayLike<number> | Iterable<number>): Float16Array<ArrayBuffer>;
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float16Array<TArrayBuffer>;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float16Array<ArrayBuffer>;
new (array: ArrayLike<number> | ArrayBuffer): Float16Array<ArrayBuffer>;
/**
* 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[]): Float16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements An iterable object to convert to an array.
*/
from(elements: Iterable<number>): Float16Array<ArrayBuffer>;
/**
* Creates an array from an array-like or iterable object.
* @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float16Array<ArrayBuffer>;
}
declare var Float16Array: Float16ArrayConstructor;
interface Math {
/**
* Returns the nearest half precision float representation of a number.
* @param x A numeric expression.
*/
f16round(x: number): number;
}
interface DataView<TArrayBuffer extends ArrayBufferLike> {
/**
* Gets the Float16 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.
*/
getFloat16(byteOffset: number, littleEndian?: boolean): number;
/**
* Stores an Float16 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.
*/
setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void;
}
`;Bi["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" />
`;Bi["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 {
// Empty
}
`;Bi["lib.esnext.iterator.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" />
// NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found
// in the \`declare global\` section, below. This is necessary as there is currently no way to declare an \`abstract\`
// member without declaring a \`class\`, but declaring \`class Iterator<T>\` globally would conflict with TypeScript's
// general purpose \`Iterator<T>\` interface.
export {};
// Abstract type that allows us to mark \`next\` as \`abstract\`
declare abstract class Iterator<T, TResult = undefined, TNext = unknown> { // eslint-disable-line @typescript-eslint/no-unsafe-declaration-merging
abstract next(value?: TNext): IteratorResult<T, TResult>;
}
// Merge all members of \`IteratorObject<T>\` into \`Iterator<T>\`
interface Iterator<T, TResult, TNext> extends globalThis.IteratorObject<T, TResult, TNext> {}
// Capture the \`Iterator\` constructor in a type we can use in the \`extends\` clause of \`IteratorConstructor\`.
type IteratorObjectConstructor = typeof Iterator;
declare global {
// Global \`IteratorObject<T, TReturn, TNext>\` interface that can be augmented by polyfills
interface IteratorObject<T, TReturn, TNext> {
/**
* Returns this iterator.
*/
[Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
/**
* Creates an iterator whose values are the result of applying the callback to the values from this iterator.
* @param callbackfn A function that accepts up to two arguments to be used to transform values from the underlying iterator.
*/
map<U>(callbackfn: (value: T, index: number) => U): IteratorObject<U, undefined, unknown>;
/**
* Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
* @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.
*/
filter<S extends T>(predicate: (value: T, index: number) => value is S): IteratorObject<S, undefined, unknown>;
/**
* Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
* @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.
*/
filter(predicate: (value: T, index: number) => unknown): IteratorObject<T, undefined, unknown>;
/**
* Creates an iterator whose values are the values from this iterator, stopping once the provided limit is reached.
* @param limit The maximum number of values to yield.
*/
take(limit: number): IteratorObject<T, undefined, unknown>;
/**
* Creates an iterator whose values are the values from this iterator after skipping the provided count.
* @param count The number of values to drop.
*/
drop(count: number): IteratorObject<T, undefined, unknown>;
/**
* Creates an iterator whose values are the result of applying the callback to the values from this iterator and then flattening the resulting iterators or iterables.
* @param callback A function that accepts up to two arguments to be used to transform values from the underlying iterator into new iterators or iterables to be flattened into the result.
*/
flatMap<U>(callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>): IteratorObject<U, undefined, unknown>;
/**
* Calls the specified callback function for all the elements in this iterator. 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 three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
* @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 a value from the iterator.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in this iterator. 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 three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
* @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 a value from the iterator.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;
/**
* Creates a new array from the values yielded by this iterator.
*/
toArray(): T[];
/**
* Performs the specified action for each element in the iterator.
* @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator.
*/
forEach(callbackfn: (value: T, index: number) => void): void;
/**
* Determines whether the specified callback function returns true for any element of this iterator.
* @param predicate A function that accepts up to two arguments. The some method calls
* the predicate function for each element in this iterator until the predicate returns a value
* true, or until the end of the iterator.
*/
some(predicate: (value: T, index: number) => unknown): boolean;
/**
* Determines whether all the members of this iterator satisfy the specified test.
* @param predicate A function that accepts up to two arguments. The every method calls
* the predicate function for each element in this iterator until the predicate returns
* false, or until the end of this iterator.
*/
every(predicate: (value: T, index: number) => unknown): boolean;
/**
* Returns the value of the first element in this iterator where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of this iterator, in
* 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.
*/
find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined;
find(predicate: (value: T, index: number) => unknown): T | undefined;
readonly [Symbol.toStringTag]: string;
}
// Global \`IteratorConstructor\` interface that can be augmented by polyfills
interface IteratorConstructor extends IteratorObjectConstructor {
/**
* Creates a native iterator from an iterator or iterable object.
* Returns its input if the input already inherits from the built-in Iterator class.
* @param value An iterator or iterable object to convert a native iterator.
*/
from<T>(value: Iterator<T, unknown, undefined> | Iterable<T, unknown, undefined>): IteratorObject<T, undefined, unknown>;
}
var Iterator: IteratorConstructor;
}
`;Bi["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 PromiseConstructor {
/**
* Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result
* in a Promise.
*
* @param callbackFn A function that is called synchronously. It can do anything: either return
* a value, throw an error, or return a promise.
* @param args Additional arguments, that will be passed to the callback.
*
* @returns A Promise that is:
* - Already fulfilled, if the callback synchronously returns a value.
* - Already rejected, if the callback synchronously throws an error.
* - Asynchronously fulfilled or rejected, if the callback returns a promise.
*/
try<T, U extends unknown[]>(callbackFn: (...args: U) => T | PromiseLike<T>, ...args: U): Promise<Awaited<T>>;
}
`;Bi["lib.esnext.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 {
/**
* Performs a finite-time microwait by signaling to the operating system or
* CPU that the current executing code is in a spin-wait loop.
*/
pause(n?: number): void;
}
`;Bi["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;
}
`;Bi["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 FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
}
interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
}
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
}
interface ReadableStream<R = any> {
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
}
`;Bi["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 AudioDataCopyToOptions {
format?: AudioSampleFormat;
frameCount?: number;
frameOffset?: number;
planeIndex: number;
}
interface AudioDataInit {
data: BufferSource;
format: AudioSampleFormat;
numberOfChannels: number;
numberOfFrames: number;
sampleRate: number;
timestamp: number;
transfer?: ArrayBuffer[];
}
interface AudioDecoderConfig {
codec: string;
description?: AllowSharedBufferSource;
numberOfChannels: number;
sampleRate: number;
}
interface AudioDecoderInit {
error: WebCodecsErrorCallback;
output: AudioDataOutputCallback;
}
interface AudioDecoderSupport {
config?: AudioDecoderConfig;
supported?: boolean;
}
interface AudioEncoderConfig {
bitrate?: number;
bitrateMode?: BitrateMode;
codec: string;
numberOfChannels: number;
opus?: OpusEncoderConfig;
sampleRate: number;
}
interface AudioEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedAudioChunkOutputCallback;
}
interface AudioEncoderSupport {
config?: AudioEncoderConfig;
supported?: 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 CookieInit {
domain?: string | null;
expires?: DOMHighResTimeStamp | null;
name: string;
partitioned?: boolean;
path?: string;
sameSite?: CookieSameSite;
value: string;
}
interface CookieListItem {
name?: string;
value?: string;
}
interface CookieStoreDeleteOptions {
domain?: string | null;
name: string;
partitioned?: boolean;
path?: string;
}
interface CookieStoreGetOptions {
name?: string;
url?: string;
}
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 EncodedAudioChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
transfer?: ArrayBuffer[];
type: EncodedAudioChunkType;
}
interface EncodedAudioChunkMetadata {
decoderConfig?: AudioDecoderConfig;
}
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 ExtendableCookieChangeEventInit extends ExtendableEventInit {
changed?: CookieList;
deleted?: CookieList;
}
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<void>;
preloadResponse?: Promise<any>;
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 ImageDecodeOptions {
completeFramesOnly?: boolean;
frameIndex?: number;
}
interface ImageDecodeResult {
complete: boolean;
image: VideoFrame;
}
interface ImageDecoderInit {
colorSpaceConversion?: ColorSpaceConversion;
data: ImageBufferSource;
desiredHeight?: number;
desiredWidth?: number;
preferAnimation?: boolean;
transfer?: ArrayBuffer[];
type: string;
}
interface ImageEncodeOptions {
quality?: number;
type?: 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 KeySystemTrackConfiguration {
robustness?: 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 {
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaCapabilitiesKeySystemConfiguration {
audio?: KeySystemTrackConfiguration;
distinctiveIdentifier?: MediaKeysRequirement;
initDataType?: string;
keySystem: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
video?: KeySystemTrackConfiguration;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
type: MediaDecodingType;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MediaStreamTrackProcessorInit {
maxBufferSize?: number;
}
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 OpusEncoderConfig {
complexity?: number;
format?: OpusBitstreamFormat;
frameDuration?: number;
packetlossperc?: number;
usedtx?: boolean;
useinbandfec?: boolean;
}
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 PushSubscriptionChangeEventInit extends ExtendableEventInit {
newSubscription?: PushSubscription;
oldSubscription?: PushSubscription;
}
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 extends RTCEncodedFrameMetadata {
sequenceNumber?: number;
}
interface RTCEncodedFrameMetadata {
contributingSources?: number[];
mimeType?: string;
payloadType?: number;
rtpTimestamp?: number;
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
dependencies?: number[];
frameId?: number;
height?: number;
spatialIndex?: 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 ReadableStreamIteratorOptions {
/**
* Asynchronously iterates over the chunks in the stream's internal queue.
*
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
*
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
*/
preventCancel?: boolean;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value: T | undefined;
}
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;
hasAlphaChannel?: boolean;
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;
contentHint?: string;
displayHeight?: number;
displayWidth?: number;
framerate?: number;
hardwareAcceleration?: HardwareAcceleration;
height: number;
latencyMode?: LatencyMode;
scalabilityMode?: string;
width: number;
}
interface VideoEncoderEncodeOptions {
avc?: VideoEncoderEncodeOptionsForAvc;
keyFrame?: boolean;
}
interface VideoEncoderEncodeOptionsForAvc {
quantizer?: number | null;
}
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 {
colorSpace?: PredefinedColorSpace;
format?: VideoPixelFormat;
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 WebTransportSendOptions {
sendOrder?: number;
}
interface WebTransportSendStreamOptions extends WebTransportSendOptions {
}
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 {
/**
* The **\`ANGLE_instanced_arrays.drawArraysInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)
*/
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
/**
* The **\`ANGLE_instanced_arrays.drawElementsInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method.
*
* [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;
/**
* The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE().
*
* [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;
}
/**
* The **\`AbortController\`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
*/
interface AbortController {
/**
* The **\`signal\`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
*/
readonly signal: AbortSignal;
/**
* The **\`abort()\`** method of the AbortController interface aborts an asynchronous operation before it has completed.
*
* [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;
}
/**
* The **\`AbortSignal\`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
*/
interface AbortSignal extends EventTarget {
/**
* The **\`aborted\`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (\`true\`) or not (\`false\`).
*
* [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;
/**
* The **\`reason\`** read-only property returns a JavaScript value that indicates the abort reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)
*/
readonly reason: any;
/**
* The **\`throwIfAborted()\`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
*
* [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;
/**
* The **\`AbortSignal.abort()\`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
*/
abort(reason?: any): AbortSignal;
/**
* The **\`AbortSignal.any()\`** static method takes an iterable of abort signals and returns an AbortSignal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
*/
any(signals: AbortSignal[]): AbortSignal;
/**
* The **\`AbortSignal.timeout()\`** static method returns an AbortSignal that will automatically abort after a specified time.
*
* [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;
}
/**
* The **\`AudioData\`** interface of the WebCodecs API represents an audio sample.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData)
*/
interface AudioData {
/**
* The **\`duration\`** read-only property of the AudioData interface returns the duration in microseconds of this \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration)
*/
readonly duration: number;
/**
* The **\`format\`** read-only property of the AudioData interface returns the sample format of the \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format)
*/
readonly format: AudioSampleFormat | null;
/**
* The **\`numberOfChannels\`** read-only property of the AudioData interface returns the number of channels in the \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels)
*/
readonly numberOfChannels: number;
/**
* The **\`numberOfFrames\`** read-only property of the AudioData interface returns the number of frames in the \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames)
*/
readonly numberOfFrames: number;
/**
* The **\`sampleRate\`** read-only property of the AudioData interface returns the sample rate in Hz.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate)
*/
readonly sampleRate: number;
/**
* The **\`timestamp\`** read-only property of the AudioData interface returns the timestamp of this \`AudioData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp)
*/
readonly timestamp: number;
/**
* The **\`allocationSize()\`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize)
*/
allocationSize(options: AudioDataCopyToOptions): number;
/**
* The **\`clone()\`** method of the AudioData interface creates a new \`AudioData\` object with reference to the same media resource as the original.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone)
*/
clone(): AudioData;
/**
* The **\`close()\`** method of the AudioData interface clears all states and releases the reference to the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close)
*/
close(): void;
/**
* The **\`copyTo()\`** method of the AudioData interface copies a plane of an \`AudioData\` object to a destination buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo)
*/
copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void;
}
declare var AudioData: {
prototype: AudioData;
new(init: AudioDataInit): AudioData;
};
interface AudioDecoderEventMap {
"dequeue": Event;
}
/**
* The **\`AudioDecoder\`** interface of the WebCodecs API decodes chunks of audio.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)
*/
interface AudioDecoder extends EventTarget {
/**
* The **\`decodeQueueSize\`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize)
*/
readonly decodeQueueSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */
ondequeue: ((this: AudioDecoder, ev: Event) => any) | null;
/**
* The **\`state\`** read-only property of the AudioDecoder interface returns the current state of the underlying codec.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state)
*/
readonly state: CodecState;
/**
* The **\`close()\`** method of the AudioDecoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close)
*/
close(): void;
/**
* The **\`configure()\`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure)
*/
configure(config: AudioDecoderConfig): void;
/**
* The **\`decode()\`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode)
*/
decode(chunk: EncodedAudioChunk): void;
/**
* The **\`flush()\`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush)
*/
flush(): Promise<void>;
/**
* The **\`reset()\`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset)
*/
reset(): void;
addEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioDecoder: {
prototype: AudioDecoder;
new(init: AudioDecoderInit): AudioDecoder;
/**
* The **\`isConfigSupported()\`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static)
*/
isConfigSupported(config: AudioDecoderConfig): Promise<AudioDecoderSupport>;
};
interface AudioEncoderEventMap {
"dequeue": Event;
}
/**
* The **\`AudioEncoder\`** interface of the WebCodecs API encodes AudioData objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)
*/
interface AudioEncoder extends EventTarget {
/**
* The **\`encodeQueueSize\`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize)
*/
readonly encodeQueueSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */
ondequeue: ((this: AudioEncoder, ev: Event) => any) | null;
/**
* The **\`state\`** read-only property of the AudioEncoder interface returns the current state of the underlying codec.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state)
*/
readonly state: CodecState;
/**
* The **\`close()\`** method of the AudioEncoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close)
*/
close(): void;
/**
* The **\`configure()\`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure)
*/
configure(config: AudioEncoderConfig): void;
/**
* The **\`encode()\`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode)
*/
encode(data: AudioData): void;
/**
* The **\`flush()\`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush)
*/
flush(): Promise<void>;
/**
* The **\`reset()\`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset)
*/
reset(): void;
addEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioEncoder: {
prototype: AudioEncoder;
new(init: AudioEncoderInit): AudioEncoder;
/**
* The **\`isConfigSupported()\`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static)
*/
isConfigSupported(config: AudioEncoderConfig): Promise<AudioEncoderSupport>;
};
/**
* The **\`Blob\`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
*/
interface Blob {
/**
* The **\`size\`** read-only property of the Blob interface returns the size of the Blob or File in bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)
*/
readonly size: number;
/**
* The **\`type\`** read-only property of the Blob interface returns the MIME type of the file.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)
*/
readonly type: string;
/**
* The **\`arrayBuffer()\`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)
*/
arrayBuffer(): Promise<ArrayBuffer>;
/**
* The **\`bytes()\`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)
*/
bytes(): Promise<Uint8Array<ArrayBuffer>>;
/**
* The **\`slice()\`** method of the Blob interface creates and returns a new \`Blob\` object which contains data from a subset of the blob on which it's called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)
*/
slice(start?: number, end?: number, contentType?: string): Blob;
/**
* The **\`stream()\`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the \`Blob\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)
*/
stream(): ReadableStream<Uint8Array<ArrayBuffer>>;
/**
* The **\`text()\`** method of the string containing the contents of the blob, interpreted as UTF-8.
*
* [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<ArrayBuffer>> | 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/bytes) */
bytes(): Promise<Uint8Array<ArrayBuffer>>;
/** [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;
}
/**
* The **\`BroadcastChannel\`** interface represents a named channel that any browsing context of a given origin can subscribe to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel)
*/
interface BroadcastChannel extends EventTarget {
/**
* The **\`name\`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name.
*
* [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;
/**
* The **\`close()\`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
*/
close(): void;
/**
* The **\`postMessage()\`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.
*
* [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;
};
/**
* The **\`ByteLengthQueuingStrategy\`** interface of the Streams API 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> {
/**
* The read-only **\`ByteLengthQueuingStrategy.highWaterMark\`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
*
* [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;
};
/**
* The **\`CSSImageValue\`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue)
*/
interface CSSImageValue extends CSSStyleValue {
}
declare var CSSImageValue: {
prototype: CSSImageValue;
new(): CSSImageValue;
};
/**
* The **\`CSSKeywordValue\`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue)
*/
interface CSSKeywordValue extends CSSStyleValue {
/**
* The **\`value\`** property of the \`CSSKeywordValue\`.
*
* [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;
};
/**
* The **\`CSSMathInvert\`** interface of the CSS Typed Object Model API represents a CSS calc used as \`calc(1 / <value>)\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
*/
interface CSSMathInvert extends CSSMathValue {
/**
* The CSSMathInvert.value read-only property of the A CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value)
*/
readonly value: CSSNumericValue;
}
declare var CSSMathInvert: {
prototype: CSSMathInvert;
new(arg: CSSNumberish): CSSMathInvert;
};
/**
* The **\`CSSMathMax\`** interface of the CSS Typed Object Model API represents the CSS max function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax)
*/
interface CSSMathMax extends CSSMathValue {
/**
* The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values)
*/
readonly values: CSSNumericArray;
}
declare var CSSMathMax: {
prototype: CSSMathMax;
new(...args: CSSNumberish[]): CSSMathMax;
};
/**
* The **\`CSSMathMin\`** interface of the CSS Typed Object Model API represents the CSS min function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin)
*/
interface CSSMathMin extends CSSMathValue {
/**
* The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values)
*/
readonly values: CSSNumericArray;
}
declare var CSSMathMin: {
prototype: CSSMathMin;
new(...args: CSSNumberish[]): CSSMathMin;
};
/**
* The **\`CSSMathNegate\`** interface of the CSS Typed Object Model API negates the value passed into it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate)
*/
interface CSSMathNegate extends CSSMathValue {
/**
* The CSSMathNegate.value read-only property of the A CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value)
*/
readonly value: CSSNumericValue;
}
declare var CSSMathNegate: {
prototype: CSSMathNegate;
new(arg: CSSNumberish): CSSMathNegate;
};
/**
* The **\`CSSMathProduct\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct)
*/
interface CSSMathProduct extends CSSMathValue {
/**
* The **\`CSSMathProduct.values\`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values)
*/
readonly values: CSSNumericArray;
}
declare var CSSMathProduct: {
prototype: CSSMathProduct;
new(...args: CSSNumberish[]): CSSMathProduct;
};
/**
* The **\`CSSMathSum\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum)
*/
interface CSSMathSum extends CSSMathValue {
/**
* The **\`CSSMathSum.values\`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values)
*/
readonly values: CSSNumericArray;
}
declare var CSSMathSum: {
prototype: CSSMathSum;
new(...args: CSSNumberish[]): CSSMathSum;
};
/**
* The **\`CSSMathValue\`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue)
*/
interface CSSMathValue extends CSSNumericValue {
/**
* The **\`CSSMathValue.operator\`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator)
*/
readonly operator: CSSMathOperator;
}
declare var CSSMathValue: {
prototype: CSSMathValue;
new(): CSSMathValue;
};
/**
* The **\`CSSMatrixComponent\`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent)
*/
interface CSSMatrixComponent extends CSSTransformComponent {
/**
* The **\`matrix\`** property of the See the matrix() and matrix3d() pages for examples.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix)
*/
matrix: DOMMatrix;
}
declare var CSSMatrixComponent: {
prototype: CSSMatrixComponent;
new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};
/**
* The **\`CSSNumericArray\`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray)
*/
interface CSSNumericArray {
/**
* The read-only **\`length\`** property of the An integer representing the number of CSSNumericValue objects in the list.
*
* [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;
};
/**
* The **\`CSSNumericValue\`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue)
*/
interface CSSNumericValue extends CSSStyleValue {
/**
* The **\`add()\`** method of the \`CSSNumericValue\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add)
*/
add(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`div()\`** method of the supplied value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div)
*/
div(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`equals()\`** method of the value are strictly equal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals)
*/
equals(...value: CSSNumberish[]): boolean;
/**
* The **\`max()\`** method of the passed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max)
*/
max(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`min()\`** method of the values passed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min)
*/
min(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`mul()\`** method of the the supplied value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul)
*/
mul(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`sub()\`** method of the \`CSSNumericValue\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub)
*/
sub(...values: CSSNumberish[]): CSSNumericValue;
/**
* The **\`to()\`** method of the another.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to)
*/
to(unit: string): CSSUnitValue;
/**
* The **\`toSum()\`** method of the \`\`\`js-nolint toSum(units) \`\`\` - \`units\` - : The units to convert to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum)
*/
toSum(...units: string[]): CSSMathSum;
/**
* The **\`type()\`** method of the \`CSSNumericValue\`, one of \`angle\`, \`flex\`, \`frequency\`, \`length\`, \`resolution\`, \`percent\`, \`percentHint\`, or \`time\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type)
*/
type(): CSSNumericType;
}
declare var CSSNumericValue: {
prototype: CSSNumericValue;
new(): CSSNumericValue;
};
/**
* The **\`CSSPerspective\`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective)
*/
interface CSSPerspective extends CSSTransformComponent {
/**
* The **\`length\`** property of the It is used to apply a perspective transform to the element and its content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length)
*/
length: CSSPerspectiveValue;
}
declare var CSSPerspective: {
prototype: CSSPerspective;
new(length: CSSPerspectiveValue): CSSPerspective;
};
/**
* The **\`CSSRotate\`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate)
*/
interface CSSRotate extends CSSTransformComponent {
/**
* The **\`angle\`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle)
*/
angle: CSSNumericValue;
/**
* The **\`x\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x)
*/
x: CSSNumberish;
/**
* The **\`y\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y)
*/
y: CSSNumberish;
/**
* The **\`z\`** property of the vector.
*
* [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;
};
/**
* The **\`CSSScale\`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale)
*/
interface CSSScale extends CSSTransformComponent {
/**
* The **\`x\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x)
*/
x: CSSNumberish;
/**
* The **\`y\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y)
*/
y: CSSNumberish;
/**
* The **\`z\`** property of the vector.
*
* [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;
};
/**
* The **\`CSSSkew\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew)
*/
interface CSSSkew extends CSSTransformComponent {
/**
* The **\`ax\`** property of the along the x-axis (or abscissa).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax)
*/
ax: CSSNumericValue;
/**
* The **\`ay\`** property of the along the y-axis (or ordinate).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay)
*/
ay: CSSNumericValue;
}
declare var CSSSkew: {
prototype: CSSSkew;
new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};
/**
* The **\`CSSSkewX\`** interface of the CSS Typed Object Model API represents the \`skewX()\` value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX)
*/
interface CSSSkewX extends CSSTransformComponent {
/**
* The **\`ax\`** property of the along the x-axis (or abscissa).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax)
*/
ax: CSSNumericValue;
}
declare var CSSSkewX: {
prototype: CSSSkewX;
new(ax: CSSNumericValue): CSSSkewX;
};
/**
* The **\`CSSSkewY\`** interface of the CSS Typed Object Model API represents the \`skewY()\` value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY)
*/
interface CSSSkewY extends CSSTransformComponent {
/**
* The **\`ay\`** property of the along the y-axis (or ordinate).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay)
*/
ay: CSSNumericValue;
}
declare var CSSSkewY: {
prototype: CSSSkewY;
new(ay: CSSNumericValue): CSSSkewY;
};
/**
* The **\`CSSStyleValue\`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue)
*/
interface CSSStyleValue {
toString(): string;
}
declare var CSSStyleValue: {
prototype: CSSStyleValue;
new(): CSSStyleValue;
};
/**
* The **\`CSSTransformComponent\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent)
*/
interface CSSTransformComponent {
/**
* The **\`is2D\`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D)
*/
is2D: boolean;
/**
* The **\`toMatrix()\`** method of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix)
*/
toMatrix(): DOMMatrix;
toString(): string;
}
declare var CSSTransformComponent: {
prototype: CSSTransformComponent;
new(): CSSTransformComponent;
};
/**
* The **\`CSSTransformValue\`** interface of the CSS Typed Object Model API represents \`transform-list\` values as used by the CSS transform property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue)
*/
interface CSSTransformValue extends CSSStyleValue {
/**
* The read-only **\`is2D\`** property of the In the case of the \`CSSTransformValue\` this property returns true unless any of the individual functions return false for \`Is2D\`, in which case it returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D)
*/
readonly is2D: boolean;
/**
* The read-only **\`length\`** property of the the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length)
*/
readonly length: number;
/**
* The **\`toMatrix()\`** method of the \`\`\`js-nolint toMatrix() \`\`\` None.
*
* [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;
};
/**
* The **\`CSSTranslate\`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate)
*/
interface CSSTranslate extends CSSTransformComponent {
/**
* The **\`x\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x)
*/
x: CSSNumericValue;
/**
* The **\`y\`** property of the translating vector.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y)
*/
y: CSSNumericValue;
/**
* The **\`z\`** property of the vector.
*
* [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;
};
/**
* The **\`CSSUnitValue\`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
*/
interface CSSUnitValue extends CSSNumericValue {
/**
* The **\`CSSUnitValue.unit\`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
*/
readonly unit: string;
/**
* The **\`CSSUnitValue.value\`** property of the A double.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value)
*/
value: number;
}
declare var CSSUnitValue: {
prototype: CSSUnitValue;
new(value: number, unit: string): CSSUnitValue;
};
/**
* The **\`CSSUnparsedValue\`** interface of the CSS Typed Object Model API represents property values that reference custom properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue)
*/
interface CSSUnparsedValue extends CSSStyleValue {
/**
* The **\`length\`** read-only property of the An integer.
*
* [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;
};
/**
* The **\`CSSVariableReferenceValue\`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue)
*/
interface CSSVariableReferenceValue {
/**
* The **\`fallback\`** read-only property of the A CSSUnparsedValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback)
*/
readonly fallback: CSSUnparsedValue | null;
/**
* The **\`variable\`** property of the A string beginning with \`--\` (that is, a custom property name).
*
* [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;
};
/**
* The **\`Cache\`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
*/
interface Cache {
/**
* The **\`add()\`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add)
*/
add(request: RequestInfo | URL): Promise<void>;
/**
* The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
*/
addAll(requests: RequestInfo[]): Promise<void>;
/**
* The **\`delete()\`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to \`true\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete)
*/
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
/**
* The **\`keys()\`** method of the Cache interface returns a representing the keys of the Cache.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys)
*/
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
/**
* The **\`match()\`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match)
*/
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
/**
* The **\`matchAll()\`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll)
*/
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
/**
* The **\`put()\`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache.
*
* [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 **\`CacheStorage\`** interface represents the storage for Cache objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
*/
interface CacheStorage {
/**
* The **\`delete()\`** method of the CacheStorage interface finds the Cache object matching the \`cacheName\`, and if found, deletes the Cache object and returns a Promise that resolves to \`true\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)
*/
delete(cacheName: string): Promise<boolean>;
/**
* The **\`has()\`** method of the CacheStorage interface returns a Promise that resolves to \`true\` if a You can access \`CacheStorage\` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)
*/
has(cacheName: string): Promise<boolean>;
/**
* The **\`keys()\`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)
*/
keys(): Promise<string[]>;
/**
* The **\`match()\`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match)
*/
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
/**
* The **\`open()\`** method of the the Cache object matching the \`cacheName\`.
*
* [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;
}
/**
* The **\`CanvasGradient\`** interface represents an opaque object describing a gradient.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
*/
interface CanvasGradient {
/**
* The **\`CanvasGradient.addColorStop()\`** method adds a new color stop, defined by an \`offset\` and a \`color\`, to a given canvas gradient.
*
* [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;
}
/**
* The **\`CanvasPattern\`** interface represents 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 {
/**
* The **\`CanvasPattern.setTransform()\`** method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern.
*
* [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/isContextLost) */
isContextLost(): boolean;
/** [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)
*/
interface Client {
/**
* The **\`frameType\`** read-only property of the Client interface indicates the type of browsing context of the current Client.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType)
*/
readonly frameType: FrameType;
/**
* The **\`id\`** read-only property of the Client interface returns the universally unique identifier of the Client object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id)
*/
readonly id: string;
/**
* The **\`type\`** read-only property of the Client interface indicates the type of client the service worker is controlling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type)
*/
readonly type: ClientTypes;
/**
* The **\`url\`** read-only property of the Client interface returns the URL of the current service worker client.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url)
*/
readonly url: string;
/**
* The **\`postMessage()\`** method of the (a Window, Worker, or SharedWorker).
*
* [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;
};
/**
* The \`Clients\` interface provides access to Client objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)
*/
interface Clients {
/**
* The **\`claim()\`** method of the Clients interface allows an active service worker to set itself as the ServiceWorkerContainer.controller for all clients within its ServiceWorkerRegistration.scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim)
*/
claim(): Promise<void>;
/**
* The **\`get()\`** method of the \`id\` and returns it in a Promise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get)
*/
get(id: string): Promise<Client | undefined>;
/**
* The **\`matchAll()\`** method of the Clients interface returns a Promise for a list of service worker clients whose origin is the same as the associated service worker's origin.
*
* [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>>;
/**
* The **\`openWindow()\`** method of the Clients interface creates a new top level browsing context and loads a given URL.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
*/
interface CloseEvent extends Event {
/**
* The **\`code\`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
*/
readonly code: number;
/**
* The **\`reason\`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
*/
readonly reason: string;
/**
* The **\`wasClean\`** read-only property of the CloseEvent interface returns \`true\` if the connection closed cleanly.
*
* [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;
};
/**
* The **\`CompressionStream\`** interface of the Compression Streams API is an API for compressing a stream of data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
*/
interface CompressionStream extends GenericTransformStream {
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
readonly writable: WritableStream<BufferSource>;
}
declare var CompressionStream: {
prototype: CompressionStream;
new(format: CompressionFormat): CompressionStream;
};
/**
* The **\`CookieStore\`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore)
*/
interface CookieStore extends EventTarget {
/**
* The **\`delete()\`** method of the CookieStore interface deletes a cookie that matches the given \`name\` or \`options\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete)
*/
delete(name: string): Promise<void>;
delete(options: CookieStoreDeleteOptions): Promise<void>;
/**
* The **\`get()\`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given \`name\` or \`options\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get)
*/
get(name: string): Promise<CookieListItem | null>;
get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>;
/**
* The **\`getAll()\`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the \`name\` or \`options\` passed to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll)
*/
getAll(name: string): Promise<CookieList>;
getAll(options?: CookieStoreGetOptions): Promise<CookieList>;
/**
* The **\`set()\`** method of the CookieStore interface sets a cookie with the given \`name\` and \`value\` or \`options\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set)
*/
set(name: string, value: string): Promise<void>;
set(options: CookieInit): Promise<void>;
}
declare var CookieStore: {
prototype: CookieStore;
new(): CookieStore;
};
/**
* The **\`CookieStoreManager\`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
*/
interface CookieStoreManager {
/**
* The **\`getSubscriptions()\`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
*/
getSubscriptions(): Promise<CookieStoreGetOptions[]>;
/**
* The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
*/
subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
/**
* The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
*/
unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
}
declare var CookieStoreManager: {
prototype: CookieStoreManager;
new(): CookieStoreManager;
};
/**
* The **\`CountQueuingStrategy\`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
*/
interface CountQueuingStrategy extends QueuingStrategy {
/**
* The read-only **\`CountQueuingStrategy.highWaterMark\`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
*
* [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;
};
/**
* The **\`Crypto\`** interface represents basic cryptography features available in the current context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
*/
interface Crypto {
/**
* The **\`Crypto.subtle\`** read-only property returns a cryptographic operations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
*/
readonly subtle: SubtleCrypto;
/**
* The **\`Crypto.getRandomValues()\`** method lets you get cryptographically strong random values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
*/
getRandomValues<T extends ArrayBufferView>(array: T): T;
/**
* The **\`randomUUID()\`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
* 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\`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
*/
interface CryptoKey {
/**
* The read-only **\`algorithm\`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)
*/
readonly algorithm: KeyAlgorithm;
/**
* The read-only **\`extractable\`** property of the CryptoKey interface indicates whether or not the key may be extracted using \`SubtleCrypto.exportKey()\` or \`SubtleCrypto.wrapKey()\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)
*/
readonly extractable: boolean;
/**
* The read-only **\`type\`** property of the CryptoKey interface indicates which kind of key is represented by the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)
*/
readonly type: KeyType;
/**
* The read-only **\`usages\`** property of the CryptoKey interface indicates what can be done with the key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)
*/
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/**
* The **\`CustomEvent\`** interface represents events initialized by an application for any purpose.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
*/
interface CustomEvent<T = any> extends Event {
/**
* The read-only **\`detail\`** property of the CustomEvent interface returns any data passed when initializing the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
*/
readonly detail: T;
/**
* The **\`CustomEvent.initCustomEvent()\`** method initializes a CustomEvent object.
* @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>;
};
/**
* The **\`DOMException\`** interface represents an abnormal event (called an **exception**) that 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 {
/**
* The **\`code\`** read-only property of the DOMException interface returns one of the legacy error code constants, or \`0\` if none match.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
*/
readonly code: number;
/**
* The **\`message\`** read-only property of the a message or description associated with the given error name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
*/
readonly message: string;
/**
* The **\`name\`** read-only property of the one of the strings associated with an error name.
*
* [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;
};
/**
* The **\`DOMMatrix\`** interface represents 4\xD74 matrices, suitable for 2D and 3D operations including rotation and translation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix)
*/
interface DOMMatrix extends DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
f: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
m44: number;
/**
* The **\`invertSelf()\`** method of the DOMMatrix interface inverts the original matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)
*/
invertSelf(): DOMMatrix;
/**
* The **\`multiplySelf()\`** method of the DOMMatrix interface multiplies a matrix by the \`otherMatrix\` parameter, computing the dot product of the original matrix and the specified matrix: \`A\u22C5B\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)
*/
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
/**
* The **\`preMultiplySelf()\`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified \`DOMMatrix\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)
*/
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
/**
* The \`rotateAxisAngleSelf()\` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)
*/
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/**
* The \`rotateFromVectorSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and \`(1, 0)\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf)
*/
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
/**
* The \`rotateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf)
*/
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/**
* The **\`scale3dSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of \`(0, 0, 0)\`, returning the 3D-scaled matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf)
*/
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* The **\`scaleSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of \`(0, 0)\`, returning the scaled matrix.
*
* [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;
/**
* The \`skewXSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf)
*/
skewXSelf(sx?: number): DOMMatrix;
/**
* The \`skewYSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf)
*/
skewYSelf(sy?: number): DOMMatrix;
/**
* The \`translateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf)
*/
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
/**
* The **\`DOMMatrixReadOnly\`** interface represents a read-only 4\xD74 matrix, suitable for 2D and 3D operations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)
*/
interface DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly f: number;
/**
* The readonly **\`is2D\`** property of the DOMMatrixReadOnly interface is a Boolean flag that is \`true\` when the matrix is 2D.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D)
*/
readonly is2D: boolean;
/**
* The readonly **\`isIdentity\`** property of the DOMMatrixReadOnly interface is a Boolean whose value is \`true\` if the matrix is the identity matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity)
*/
readonly isIdentity: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
readonly m44: number;
/**
* The **\`flipX()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)
*/
flipX(): DOMMatrix;
/**
* The **\`flipY()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY)
*/
flipY(): DOMMatrix;
/**
* The **\`inverse()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)
*/
inverse(): DOMMatrix;
/**
* The **\`multiply()\`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the \`otherMatrix\` parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)
*/
multiply(other?: DOMMatrixInit): DOMMatrix;
/**
* The \`rotate()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate)
*/
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/**
* The \`rotateAxisAngle()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)
*/
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/**
* The \`rotateFromVector()\` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and \`(1, 0)\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)
*/
rotateFromVector(x?: number, y?: number): DOMMatrix;
/**
* The **\`scale()\`** method of the original matrix with a scale transform applied.
*
* [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;
/**
* The **\`scale3d()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d)
*/
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
/**
* The \`skewX()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX)
*/
skewX(sx?: number): DOMMatrix;
/**
* The \`skewY()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY)
*/
skewY(sy?: number): DOMMatrix;
/**
* The **\`toFloat32Array()\`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)
*/
toFloat32Array(): Float32Array<ArrayBuffer>;
/**
* The **\`toFloat64Array()\`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)
*/
toFloat64Array(): Float64Array<ArrayBuffer>;
/**
* The **\`toJSON()\`** method of the DOMMatrixReadOnly interface creates and returns a JSON object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON)
*/
toJSON(): any;
/**
* The **\`transformPoint\`** method of the You can also create a new \`DOMPoint\` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint)
*/
transformPoint(point?: DOMPointInit): DOMPoint;
/**
* The \`translate()\` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.
*
* [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<ArrayBuffer>): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/**
* A **\`DOMPoint\`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint)
*/
interface DOMPoint extends DOMPointReadOnly {
/**
* The **\`DOMPoint\`** interface's **\`w\`** property holds the point's perspective value, w, for a point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w)
*/
w: number;
/**
* The **\`DOMPoint\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x)
*/
x: number;
/**
* The **\`DOMPoint\`** interface's **\`y\`** property holds the vertical coordinate, _y_, for a point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y)
*/
y: number;
/**
* The **\`DOMPoint\`** interface's **\`z\`** property specifies the depth coordinate of a point in space.
*
* [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;
/**
* The **\`fromPoint()\`** static method of the DOMPoint interface creates and returns a new mutable \`DOMPoint\` object given a source point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static)
*/
fromPoint(other?: DOMPointInit): DOMPoint;
};
/**
* The **\`DOMPointReadOnly\`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly)
*/
interface DOMPointReadOnly {
/**
* The **\`DOMPointReadOnly\`** interface's **\`w\`** property holds the point's perspective value, \`w\`, for a read-only point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w)
*/
readonly w: number;
/**
* The **\`DOMPointReadOnly\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a read-only point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x)
*/
readonly x: number;
/**
* The **\`DOMPointReadOnly\`** interface's **\`y\`** property holds the vertical coordinate, y, for a read-only point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y)
*/
readonly y: number;
/**
* The **\`DOMPointReadOnly\`** interface's **\`z\`** property holds the depth coordinate, z, for a read-only point in space.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z)
*/
readonly z: number;
/**
* The **\`matrixTransform()\`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new \`DOMPointReadOnly\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform)
*/
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/**
* The DOMPointReadOnly method \`toJSON()\` returns an object giving the \`\`\`js-nolint toJSON() \`\`\` None.
*
* [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;
/**
* The static **DOMPointReadOnly** method \`fromPoint()\` creates and returns a new \`DOMPointReadOnly\` object given a source point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)
*/
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
/**
* A \`DOMQuad\` is a collection of four \`DOMPoint\`s defining the corners of an arbitrary quadrilateral.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad)
*/
interface DOMQuad {
/**
* The **\`DOMQuad\`** interface's **\`p1\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1)
*/
readonly p1: DOMPoint;
/**
* The **\`DOMQuad\`** interface's **\`p2\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2)
*/
readonly p2: DOMPoint;
/**
* The **\`DOMQuad\`** interface's **\`p3\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3)
*/
readonly p3: DOMPoint;
/**
* The **\`DOMQuad\`** interface's **\`p4\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4)
*/
readonly p4: DOMPoint;
/**
* The DOMQuad method \`getBounds()\` returns a DOMRect object representing the smallest rectangle that fully contains the \`DOMQuad\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)
*/
getBounds(): DOMRect;
/**
* The DOMQuad method \`toJSON()\` returns a \`\`\`js-nolint toJSON() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)
*/
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;
};
/**
* A **\`DOMRect\`** describes the size and position of a rectangle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect)
*/
interface DOMRect extends DOMRectReadOnly {
/**
* The **\`height\`** property of the DOMRect interface represents the height of the rectangle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height)
*/
height: number;
/**
* The **\`width\`** property of the DOMRect interface represents the width of the rectangle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width)
*/
width: number;
/**
* The **\`x\`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x)
*/
x: number;
/**
* The **\`y\`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y)
*/
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
/**
* The **\`fromRect()\`** static method of the object with a given location and dimensions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)
*/
fromRect(other?: DOMRectInit): DOMRect;
};
/**
* The **\`DOMRectReadOnly\`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly)
*/
interface DOMRectReadOnly {
/**
* The **\`bottom\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the bottom coordinate value of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom)
*/
readonly bottom: number;
/**
* The **\`height\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the height of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height)
*/
readonly height: number;
/**
* The **\`left\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the left coordinate value of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left)
*/
readonly left: number;
/**
* The **\`right\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the right coordinate value of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right)
*/
readonly right: number;
/**
* The **\`top\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the top coordinate value of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top)
*/
readonly top: number;
/**
* The **\`width\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the width of the \`DOMRect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width)
*/
readonly width: number;
/**
* The **\`x\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the x coordinate of the \`DOMRect\`'s origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x)
*/
readonly x: number;
/**
* The **\`y\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the y coordinate of the \`DOMRect\`'s origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y)
*/
readonly y: number;
/**
* The DOMRectReadOnly method \`toJSON()\` returns a JSON representation of the \`DOMRectReadOnly\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON)
*/
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
/**
* The **\`fromRect()\`** static method of the object with a given location and dimensions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)
*/
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/**
* The **\`DOMStringList\`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (\`DOMString\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
*/
interface DOMStringList {
/**
* The read-only **\`length\`** property indicates the number of strings in the DOMStringList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
*/
readonly length: number;
/**
* The **\`contains()\`** method returns a boolean indicating whether the given string is in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
*/
contains(string: string): boolean;
/**
* The **\`item()\`** method returns a string from a \`DOMStringList\` by index.
*
* [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;
};
/**
* The **\`DecompressionStream\`** interface of the Compression Streams API is an API for decompressing a stream of data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
*/
interface DecompressionStream extends GenericTransformStream {
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
readonly writable: WritableStream<BufferSource>;
}
declare var DecompressionStream: {
prototype: DecompressionStream;
new(format: CompressionFormat): DecompressionStream;
};
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap, MessageEventTargetEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
"rtctransform": RTCTransformEvent;
}
/**
* The **\`DedicatedWorkerGlobalScope\`** object (the Worker global scope) is accessible through the WorkerGlobalScope.self keyword.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)
*/
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider, MessageEventTarget<DedicatedWorkerGlobalScope> {
/**
* The **\`name\`** read-only property of the the Worker.Worker constructor can pass to get a reference to the DedicatedWorkerGlobalScope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;
/**
* The **\`close()\`** method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the \`DedicatedWorkerGlobalScope\`'s event loop, effectively closing this particular scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
*/
close(): void;
/**
* The **\`postMessage()\`** method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
*
* [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;
};
/**
* The **\`EXT_blend_minmax\`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax)
*/
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
/**
* The **\`EXT_color_buffer_float\`** extension is part of WebGL and adds the ability to render a variety of floating point formats.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float)
*/
interface EXT_color_buffer_float {
}
/**
* The **\`EXT_color_buffer_half_float\`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.
*
* [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;
}
/**
* The WebGL API's \`EXT_float_blend\` extension allows blending and draw buffers with 32-bit floating-point components.
*
* [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 {
}
/**
* The **\`EXT_sRGB\`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.
*
* [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;
}
/**
* The **\`EXT_shader_texture_lod\`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod)
*/
interface EXT_shader_texture_lod {
}
/**
* The \`EXT_texture_compression_bptc\` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats.
*
* [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;
}
/**
* The \`EXT_texture_compression_rgtc\` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats.
*
* [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;
}
/**
* The **\`EXT_texture_norm16\`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer).
*
* [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;
}
/**
* The **\`EncodedAudioChunk\`** interface of the WebCodecs API represents a chunk of encoded audio data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk)
*/
interface EncodedAudioChunk {
/**
* The **\`byteLength\`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength)
*/
readonly byteLength: number;
/**
* The **\`duration\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration)
*/
readonly duration: number | null;
/**
* The **\`timestamp\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp)
*/
readonly timestamp: number;
/**
* The **\`type\`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type)
*/
readonly type: EncodedAudioChunkType;
/**
* The **\`copyTo()\`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo)
*/
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedAudioChunk: {
prototype: EncodedAudioChunk;
new(init: EncodedAudioChunkInit): EncodedAudioChunk;
};
/**
* The **\`EncodedVideoChunk\`** interface of the WebCodecs API represents a chunk of encoded video data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk)
*/
interface EncodedVideoChunk {
/**
* The **\`byteLength\`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength)
*/
readonly byteLength: number;
/**
* The **\`duration\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration)
*/
readonly duration: number | null;
/**
* The **\`timestamp\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp)
*/
readonly timestamp: number;
/**
* The **\`type\`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type)
*/
readonly type: EncodedVideoChunkType;
/**
* The **\`copyTo()\`** method of the EncodedVideoChunk interface copies the encoded chunk of video data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo)
*/
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedVideoChunk: {
prototype: EncodedVideoChunk;
new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};
/**
* The **\`ErrorEvent\`** interface represents 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 {
/**
* The **\`colno\`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)
*/
readonly colno: number;
/**
* The **\`error\`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)
*/
readonly error: any;
/**
* The **\`filename\`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)
*/
readonly filename: string;
/**
* The **\`lineno\`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)
*/
readonly lineno: number;
/**
* The **\`message\`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
*
* [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;
};
/**
* The **\`Event\`** interface represents an event which takes place on an \`EventTarget\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
*/
interface Event {
/**
* The **\`bubbles\`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
*/
readonly bubbles: boolean;
/**
* The **\`cancelBubble\`** property of the Event interface is deprecated.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
*/
cancelBubble: boolean;
/**
* The **\`cancelable\`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
*/
readonly cancelable: boolean;
/**
* The read-only **\`composed\`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
*/
readonly composed: boolean;
/**
* The **\`currentTarget\`** read-only property of the Event interface identifies the element to which the event handler has been attached.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
*/
readonly currentTarget: EventTarget | null;
/**
* The **\`defaultPrevented\`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
*/
readonly defaultPrevented: boolean;
/**
* The **\`eventPhase\`** read-only property of the being evaluated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
*/
readonly eventPhase: number;
/**
* The **\`isTrusted\`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and \`false\` when the event was dispatched via The only exception is the \`click\` event, which initializes the \`isTrusted\` property to \`false\` in user agents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
readonly isTrusted: boolean;
/**
* The Event property **\`returnValue\`** indicates whether the default action for this event has been prevented or not.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
*/
returnValue: boolean;
/**
* The deprecated **\`Event.srcElement\`** is an alias for the Event.target property.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
*/
readonly srcElement: EventTarget | null;
/**
* The read-only **\`target\`** property of the dispatched.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
*/
readonly target: EventTarget | null;
/**
* The **\`timeStamp\`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* The **\`type\`** read-only property of the Event interface returns a string containing the event's type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
*/
readonly type: string;
/**
* The **\`composedPath()\`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
*/
composedPath(): EventTarget[];
/**
* The **\`Event.initEvent()\`** method is used to initialize the value of an event created using Document.createEvent().
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
*/
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* The **\`preventDefault()\`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
*/
preventDefault(): void;
/**
* The **\`stopImmediatePropagation()\`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
*/
stopImmediatePropagation(): void;
/**
* The **\`stopPropagation()\`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
*
* [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;
}
/**
* The **\`EventSource\`** interface is web content's interface to server-sent events.
*
* [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;
/**
* The **\`readyState\`** read-only property of the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
*/
readonly readyState: number;
/**
* The **\`url\`** read-only property of the URL of the source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
*/
readonly url: string;
/**
* The **\`withCredentials\`** read-only property of the the \`EventSource\` object was instantiated with CORS credentials set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
*/
readonly withCredentials: boolean;
/**
* The **\`close()\`** method of the EventSource interface closes the connection, if one is made, and sets the \`\`\`js-nolint close() \`\`\` None.
*
* [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;
};
/**
* The **\`EventTarget\`** interface is 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 {
/**
* The **\`addEventListener()\`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
dispatchEvent(event: Event): boolean;
/**
* The **\`removeEventListener()\`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
*
* [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;
};
/**
* The **\`ExtendableCookieChangeEvent\`** interface of the Cookie Store API is the event type passed to ServiceWorkerGlobalScope/cookiechange_event event fired at the ServiceWorkerGlobalScope when any cookie changes occur which match the service worker's cookie change subscription list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent)
*/
interface ExtendableCookieChangeEvent extends ExtendableEvent {
/**
* The **\`changed\`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been changed by the given \`ExtendableCookieChangeEvent\` instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/changed)
*/
readonly changed: ReadonlyArray<CookieListItem>;
/**
* The **\`deleted\`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been deleted by the given \`ExtendableCookieChangeEvent\` instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/deleted)
*/
readonly deleted: ReadonlyArray<CookieListItem>;
}
declare var ExtendableCookieChangeEvent: {
prototype: ExtendableCookieChangeEvent;
new(type: string, eventInitDict?: ExtendableCookieChangeEventInit): ExtendableCookieChangeEvent;
};
/**
* The **\`ExtendableEvent\`** interface extends the lifetime of the \`install\` and \`activate\` events dispatched on the global scope as part of the service worker lifecycle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
*/
interface ExtendableEvent extends Event {
/**
* The **\`ExtendableEvent.waitUntil()\`** method tells the event dispatcher that work is ongoing.
*
* [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;
};
/**
* The **\`ExtendableMessageEvent\`** interface of the Service Worker API represents the event object of a ServiceWorkerGlobalScope/message_event event fired on a service worker (when a message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)
*/
interface ExtendableMessageEvent extends ExtendableEvent {
/**
* The **\`data\`** read-only property of the data type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data)
*/
readonly data: any;
/**
* The **\`lastEventID\`** read-only property of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* The **\`origin\`** read-only property of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin)
*/
readonly origin: string;
/**
* The **\`ports\`** read-only property of the channel (the channel the message is being sent through.) An array of MessagePort objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports)
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* The **\`source\`** read-only property of the A Client, ServiceWorker or MessagePort object.
*
* [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 ServiceWorkerGlobalScope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
*/
interface FetchEvent extends ExtendableEvent {
/**
* The **\`clientId\`** read-only property of the current service worker is controlling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId)
*/
readonly clientId: string;
/**
* The **\`handled\`** property of the FetchEvent interface returns a promise indicating if the event has been handled by the fetch algorithm or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled)
*/
readonly handled: Promise<void>;
/**
* The **\`preloadResponse\`** read-only property of the FetchEvent interface returns a Promise that resolves to the navigation preload Response if navigation preload was triggered, or \`undefined\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse)
*/
readonly preloadResponse: Promise<any>;
/**
* The **\`request\`** read-only property of the the event handler.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request)
*/
readonly request: Request;
/**
* The **\`resultingClientId\`** read-only property of the navigation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId)
*/
readonly resultingClientId: string;
/**
* The **\`respondWith()\`** method of allows you to provide a promise for a Response yourself.
*
* [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;
};
/**
* The **\`File\`** interface 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 {
/**
* The **\`lastModified\`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
*/
readonly lastModified: number;
/**
* The **\`name\`** read-only property of the File interface returns the name of the file represented by a File object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
*/
readonly name: string;
/**
* The **\`webkitRelativePath\`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its \`webkitdirectory\` attribute set.
*
* [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;
};
/**
* The **\`FileList\`** interface represents an object of this type 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
*/
interface FileList {
/**
* The **\`length\`** read-only property of the FileList interface returns the number of files in the \`FileList\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length)
*/
readonly length: number;
/**
* The **\`item()\`** method of the FileList interface returns a File object representing the file at the specified index in the file list.
*
* [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>;
}
/**
* The **\`FileReader\`** interface 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 {
/**
* The **\`error\`** read-only property of the FileReader interface returns the error that occurred while reading the file.
*
* [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;
/**
* The **\`readyState\`** read-only property of the FileReader interface provides the current state of the reading operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
*/
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
/**
* The **\`result\`** read-only property of the FileReader interface returns the file's contents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result)
*/
readonly result: string | ArrayBuffer | null;
/**
* The **\`abort()\`** method of the FileReader interface aborts the read operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort)
*/
abort(): void;
/**
* The **\`readAsArrayBuffer()\`** method of the FileReader interface is used to start reading the contents of a specified Blob or File.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer)
*/
readAsArrayBuffer(blob: Blob): void;
/**
* The **\`readAsBinaryString()\`** method of the FileReader interface is used to start reading the contents of the specified Blob or File.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): void;
/**
* The **\`readAsDataURL()\`** method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL)
*/
readAsDataURL(blob: Blob): void;
/**
* The **\`readAsText()\`** method of the FileReader interface is used to read the contents of the specified Blob or File.
*
* [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;
};
/**
* The **\`FileReaderSync\`** interface allows to read File or Blob objects synchronously.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)
*/
interface FileReaderSync {
/**
* The **\`readAsArrayBuffer()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into an ArrayBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer)
*/
readAsArrayBuffer(blob: Blob): ArrayBuffer;
/**
* The **\`readAsBinaryString()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): string;
/**
* The **\`readAsDataURL()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string representing a data URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL)
*/
readAsDataURL(blob: Blob): string;
/**
* The **\`readAsText()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a 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;
};
/**
* The **\`FileSystemDirectoryHandle\`** interface of the File System API provides a handle to a file system directory.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
*/
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
/**
* The **\`getDirectoryHandle()\`** method of the within the directory handle on which the method is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)
*/
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
/**
* The **\`getFileHandle()\`** method of the directory the method is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)
*/
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
/**
* The **\`removeEntry()\`** method of the directory handle contains a file or directory called the name specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry)
*/
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
/**
* The **\`resolve()\`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve)
*/
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/**
* The **\`FileSystemFileHandle\`** interface of the File System API represents a handle to a file system entry.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
*/
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
/**
* The **\`createSyncAccessHandle()\`** method of the that can be used to synchronously read from and write to a file.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle)
*/
createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
/**
* The **\`createWritable()\`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable)
*/
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
/**
* The **\`getFile()\`** method of the If the file on disk changes or is removed after this method is called, the returned \`\`\`js-nolint getFile() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile)
*/
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/**
* The **\`FileSystemHandle\`** interface of the File System API is an object which represents a file or directory entry.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
*/
interface FileSystemHandle {
/**
* The **\`kind\`** read-only property of the \`'file'\` if the associated entry is a file or \`'directory'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind)
*/
readonly kind: FileSystemHandleKind;
/**
* The **\`name\`** read-only property of the handle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name)
*/
readonly name: string;
/**
* The **\`isSameEntry()\`** method of the \`\`\`js-nolint isSameEntry(fileSystemHandle) \`\`\` - FileSystemHandle - : The \`FileSystemHandle\` to match against the handle on which the method is invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry)
*/
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/**
* The **\`FileSystemSyncAccessHandle\`** interface of the File System API represents a synchronous handle to a file system entry.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)
*/
interface FileSystemSyncAccessHandle {
/**
* The **\`close()\`** method of the \`\`\`js-nolint close() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close)
*/
close(): void;
/**
* The **\`flush()\`** method of the Bear in mind that you only need to call this method if you need the changes committed to disk at a specific time, otherwise you can leave the underlying operating system to handle this when it sees fit, which should be OK in most cases.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush)
*/
flush(): void;
/**
* The **\`getSize()\`** method of the \`\`\`js-nolint getSize() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize)
*/
getSize(): number;
/**
* The **\`read()\`** method of the \`\`\`js-nolint read(buffer, options) \`\`\` - \`buffer\` - : An ArrayBuffer or \`ArrayBufferView\` (such as a DataView) representing the buffer that the file content should be read into.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read)
*/
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
/**
* The **\`truncate()\`** method of the \`\`\`js-nolint truncate(newSize) \`\`\` - \`newSize\` - : The number of bytes to resize the file to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate)
*/
truncate(newSize: number): void;
/**
* The **\`write()\`** method of the Files within the origin private file system are not visible to end-users, therefore are not subject to the same security checks as methods running on files within the user-visible file system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write)
*/
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
}
declare var FileSystemSyncAccessHandle: {
prototype: FileSystemSyncAccessHandle;
new(): FileSystemSyncAccessHandle;
};
/**
* The **\`FileSystemWritableFileStream\`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
*/
interface FileSystemWritableFileStream extends WritableStream {
/**
* The **\`seek()\`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek)
*/
seek(position: number): Promise<void>;
/**
* The **\`truncate()\`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate)
*/
truncate(size: number): Promise<void>;
/**
* The **\`write()\`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write)
*/
write(data: FileSystemWriteChunkType): Promise<void>;
}
declare var FileSystemWritableFileStream: {
prototype: FileSystemWritableFileStream;
new(): FileSystemWritableFileStream;
};
/**
* The **\`FontFace\`** interface of the CSS Font Loading API represents a single usable font face.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace)
*/
interface FontFace {
/**
* The **\`ascentOverride\`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride)
*/
ascentOverride: string;
/**
* The **\`descentOverride\`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride)
*/
descentOverride: string;
/**
* The **\`display\`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display)
*/
display: FontDisplay;
/**
* The **\`FontFace.family\`** property allows the author to get or set the font family of a FontFace object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family)
*/
family: string;
/**
* The **\`featureSettings\`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font's variant properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings)
*/
featureSettings: string;
/**
* The **\`lineGapOverride\`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride)
*/
lineGapOverride: string;
/**
* The **\`loaded\`** read-only property of the FontFace interface returns a Promise that resolves with the current \`FontFace\` object when the font specified in the object's constructor is done loading or rejects with a \`SyntaxError\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded)
*/
readonly loaded: Promise<FontFace>;
/**
* The **\`status\`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of \`'unloaded'\`, \`'loading'\`, \`'loaded'\`, or \`'error'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status)
*/
readonly status: FontFaceLoadStatus;
/**
* The **\`stretch\`** property of the FontFace interface retrieves or sets how the font stretches.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch)
*/
stretch: string;
/**
* The **\`style\`** property of the FontFace interface retrieves or sets the font's style.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style)
*/
style: string;
/**
* The **\`unicodeRange\`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
*/
unicodeRange: string;
/**
* The **\`weight\`** property of the FontFace interface retrieves or sets the weight of the font.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight)
*/
weight: string;
/**
* The **\`load()\`** method of the FontFace interface requests and loads a font whose \`source\` was specified as a URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load)
*/
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": FontFaceSetLoadEvent;
"loadingdone": FontFaceSetLoadEvent;
"loadingerror": FontFaceSetLoadEvent;
}
/**
* The **\`FontFaceSet\`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.
*
* [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: FontFaceSetLoadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
/**
* The \`ready\` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready)
*/
readonly ready: Promise<FontFaceSet>;
/**
* The **\`status\`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status)
*/
readonly status: FontFaceSetLoadStatus;
/**
* The \`check()\` method of the FontFaceSet returns \`true\` if you can render some text using the given font specification without attempting to use any fonts in this \`FontFaceSet\` that are not yet fully loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)
*/
check(font: string, text?: string): boolean;
/**
* The \`load()\` method of the FontFaceSet forces all the fonts given in parameters to be loaded.
*
* [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(): FontFaceSet;
};
/**
* The **\`FontFaceSetLoadEvent\`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent)
*/
interface FontFaceSetLoadEvent extends Event {
/**
* The **\`fontfaces\`** read-only property of the An array of FontFace instance.
*
* [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;
}
/**
* The **\`FormData\`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
*/
interface FormData {
/**
* The **\`append()\`** method of the FormData interface appends a new value onto an existing key inside a \`FormData\` object, or adds the key if it does not already exist.
*
* [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;
/**
* The **\`delete()\`** method of the FormData interface deletes a key and its value(s) from a \`FormData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)
*/
delete(name: string): void;
/**
* The **\`get()\`** method of the FormData interface returns the first value associated with a given key from within a \`FormData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)
*/
get(name: string): FormDataEntryValue | null;
/**
* The **\`getAll()\`** method of the FormData interface returns all the values associated with a given key from within a \`FormData\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
*/
getAll(name: string): FormDataEntryValue[];
/**
* The **\`has()\`** method of the FormData interface returns whether a \`FormData\` object contains a certain key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
*/
has(name: string): boolean;
/**
* The **\`set()\`** method of the FormData interface sets a new value for an existing key inside a \`FormData\` object, or adds the key/value if it does not already exist.
*
* [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;
};
/**
* The **\`GPUError\`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
*/
interface GPUError {
/**
* The **\`message\`** read-only property of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message)
*/
readonly message: string;
}
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;
}
/**
* The **\`Headers\`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
*/
interface Headers {
/**
* The **\`append()\`** method of the Headers interface appends a new value onto an existing header inside a \`Headers\` object, or adds the header if it does not already exist.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
*/
append(name: string, value: string): void;
/**
* The **\`delete()\`** method of the Headers interface deletes a header from the current \`Headers\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)
*/
delete(name: string): void;
/**
* The **\`get()\`** method of the Headers interface returns a byte string of all the values of a header within a \`Headers\` object with a given name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)
*/
get(name: string): string | null;
/**
* The **\`getSetCookie()\`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)
*/
getSetCookie(): string[];
/**
* The **\`has()\`** method of the Headers interface returns a boolean stating whether a \`Headers\` object contains a certain header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)
*/
has(name: string): boolean;
/**
* The **\`set()\`** method of the Headers interface sets a new value for an existing header inside a \`Headers\` object, or adds the header if it does not already exist.
*
* [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;
};
/**
* The **\`IDBCursor\`** interface of the IndexedDB API 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 {
/**
* The **\`direction\`** read-only property of the direction of traversal of the cursor (set using section below for possible values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
*/
readonly direction: IDBCursorDirection;
/**
* The **\`key\`** read-only property of the position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
*/
readonly key: IDBValidKey;
/**
* The **\`primaryKey\`** read-only property of the cursor is currently being iterated or has iterated outside its range, this is set to undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
*/
readonly primaryKey: IDBValidKey;
/**
* The **\`request\`** read-only property of the IDBCursor interface returns the IDBRequest used to obtain the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request)
*/
readonly request: IDBRequest;
/**
* The **\`source\`** read-only property of the null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* The **\`advance()\`** method of the IDBCursor interface sets the number of times a cursor should move its position forward.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
*/
advance(count: number): void;
/**
* The **\`continue()\`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
*/
continue(key?: IDBValidKey): void;
/**
* The **\`continuePrimaryKey()\`** method of the matches the key parameter as well as whose primary key matches the primary key parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
*/
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* The **\`delete()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
*/
delete(): IDBRequest<undefined>;
/**
* The **\`update()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/**
* The **\`IDBCursorWithValue\`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
*/
interface IDBCursorWithValue extends IDBCursor {
/**
* The **\`value\`** read-only property of the whatever that is.
*
* [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;
}
/**
* The **\`IDBDatabase\`** interface of the IndexedDB API 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
*/
interface IDBDatabase extends EventTarget {
/**
* The **\`name\`** read-only property of the \`IDBDatabase\` interface is a string that contains the name of the connected database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
*/
readonly name: string;
/**
* The **\`objectStoreNames\`** read-only property of the list of the names of the object stores currently in the connected 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;
/**
* The **\`version\`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
*/
readonly version: number;
/**
* The **\`close()\`** method of the IDBDatabase interface returns immediately and closes the connection in a separate thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
*/
close(): void;
/**
* The **\`createObjectStore()\`** method of the The method takes the name of the store as well as a parameter object that lets you define important optional properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* The **\`deleteObjectStore()\`** method of the the connected database, along with any indexes that reference it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
*/
deleteObjectStore(name: string): void;
/**
* The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
*
* [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;
};
/**
* The **\`IDBFactory\`** interface of the IndexedDB API lets applications asynchronously access the indexed databases.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
*/
interface IDBFactory {
/**
* The **\`cmp()\`** method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
*/
cmp(first: any, second: any): number;
/**
* The **\`databases\`** method of the IDBFactory interface returns a Promise that fulfills with an array of objects containing the name and version of all the available databases.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases)
*/
databases(): Promise<IDBDatabaseInfo[]>;
/**
* The **\`deleteDatabase()\`** method of the returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
*/
deleteDatabase(name: string): IDBOpenDBRequest;
/**
* The **\`open()\`** method of the IDBFactory interface requests opening a connection to a database.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
*/
interface IDBIndex {
/**
* The **\`keyPath\`** property of the IDBIndex interface returns the key path of the current index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath)
*/
readonly keyPath: string | string[];
/**
* The **\`multiEntry\`** read-only property of the behaves when the result of evaluating the index's key path yields an array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry)
*/
readonly multiEntry: boolean;
/**
* The **\`name\`** property of the IDBIndex interface contains a string which names the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
*/
name: string;
/**
* The **\`objectStore\`** property of the IDBIndex interface returns the object store referenced by the current index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
*/
readonly objectStore: IDBObjectStore;
/**
* The **\`unique\`** read-only property returns a boolean that states whether the index allows duplicate keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique)
*/
readonly unique: boolean;
/**
* The **\`count()\`** method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* The **\`get()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if \`key\` is set to an If a value is found, then a structured clone of it is created and set as the \`result\` of the request object: this returns the record the key is associated with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* The **\`getAll()\`** method of the IDBIndex interface retrieves all objects that are inside the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* The **\`getAllKeys()\`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the \`result\` of the request object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* The **\`getKey()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if \`key\` is set to an If a primary key is found, it is set as the \`result\` of the request object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* The **\`openCursor()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* The **\`openKeyCursor()\`** method of the a separate thread, creates a cursor over the specified key range, as arranged by this index.
*
* [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;
};
/**
* The **\`IDBKeyRange\`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
*/
interface IDBKeyRange {
/**
* The **\`lower\`** read-only property of the The lower bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
*/
readonly lower: any;
/**
* The **\`lowerOpen\`** read-only property of the lower-bound value is included in the key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
*/
readonly lowerOpen: boolean;
/**
* The **\`upper\`** read-only property of the The upper bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
*/
readonly upper: any;
/**
* The **\`upperOpen\`** read-only property of the upper-bound value is included in the key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
*/
readonly upperOpen: boolean;
/**
* The \`includes()\` method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
*/
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/**
* The **\`bound()\`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
*/
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/**
* The **\`lowerBound()\`** static method of the By default, it includes the lower endpoint value and is closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* The **\`only()\`** static method of the IDBKeyRange interface creates a new key range containing a single value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
*/
only(value: any): IDBKeyRange;
/**
* The **\`upperBound()\`** static method of the it includes the upper endpoint value and is closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
*/
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/**
* The **\`IDBObjectStore\`** interface of the IndexedDB API represents an object store in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
*/
interface IDBObjectStore {
/**
* The **\`autoIncrement\`** read-only property of the for this object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
*/
readonly autoIncrement: boolean;
/**
* The **\`indexNames\`** read-only property of the in this object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
*/
readonly indexNames: DOMStringList;
/**
* The **\`keyPath\`** read-only property of the If this property is null, the application must provide a key for each modification operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
*/
readonly keyPath: string | string[] | null;
/**
* The **\`name\`** property of the IDBObjectStore interface indicates the name of this object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
*/
name: string;
/**
* The **\`transaction\`** read-only property of the object store belongs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
*/
readonly transaction: IDBTransaction;
/**
* The **\`add()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* The **\`clear()\`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
*/
clear(): IDBRequest<undefined>;
/**
* The **\`count()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or of records in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* The **\`delete()\`** method of the and, in a separate thread, deletes the specified record or records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* The **\`deleteIndex()\`** method of the the connected database, used during a version upgrade.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
*/
deleteIndex(name: string): void;
/**
* The **\`get()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* The **\`getAll()\`** method of the containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* The \`getAllKeys()\` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* The **\`getKey()\`** method of the and, in a separate thread, returns the key selected by the specified query.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* The **\`index()\`** method of the IDBObjectStore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index)
*/
index(name: string): IDBIndex;
/**
* The **\`openCursor()\`** method of the and, in a separate thread, returns a new IDBCursorWithValue object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* The **\`openKeyCursor()\`** method of the whose result will be set to an IDBCursor that can be used to iterate through matching results.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* The **\`put()\`** method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.
*
* [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;
}
/**
* The **\`IDBOpenDBRequest\`** interface of the IndexedDB API provides access to the results of requests to open or delete databases (performed using IDBFactory.open and IDBFactory.deleteDatabase), using specific event handler attributes.
*
* [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 **\`IDBRequest\`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
*/
interface IDBRequest<T = any> extends EventTarget {
/**
* The **\`error\`** read-only property of the request.
*
* [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;
/**
* The **\`readyState\`** read-only property of the Every request starts in the \`pending\` state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
*/
readonly readyState: IDBRequestReadyState;
/**
* The **\`result\`** read-only property of the any - \`InvalidStateError\` DOMException - : Thrown when attempting to access the property if the request is not completed, and therefore the result is not available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
*/
readonly result: T;
/**
* The **\`source\`** read-only property of the Index or an object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
*/
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* The **\`transaction\`** read-only property of the IDBRequest interface returns the transaction for the request, that is, the transaction the request is being made inside.
*
* [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;
}
/**
* The **\`IDBTransaction\`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction)
*/
interface IDBTransaction extends EventTarget {
/**
* The **\`db\`** read-only property of the IDBTransaction interface returns the database connection with which this transaction is associated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
*/
readonly db: IDBDatabase;
/**
* The **\`durability\`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability)
*/
readonly durability: IDBTransactionDurability;
/**
* The **\`IDBTransaction.error\`** property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
*/
readonly error: DOMException | null;
/**
* The **\`mode\`** read-only property of the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is \`readonly\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
*/
readonly mode: IDBTransactionMode;
/**
* The **\`objectStoreNames\`** read-only property of the of IDBObjectStore objects.
*
* [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;
/**
* The **\`abort()\`** method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
*/
abort(): void;
/**
* The **\`commit()\`** method of the IDBTransaction interface commits the transaction if it is called on an active transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit)
*/
commit(): void;
/**
* The **\`objectStore()\`** method of the added to the scope of this transaction.
*
* [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;
};
/**
* The **\`IDBVersionChangeEvent\`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.upgradeneeded_event event handler function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
*/
interface IDBVersionChangeEvent extends Event {
/**
* The **\`newVersion\`** read-only property of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion)
*/
readonly newVersion: number | null;
/**
* The **\`oldVersion\`** read-only property of the database.
*
* [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 **\`ImageBitmap\`** interface represents a bitmap image which can be drawn to a canvas without undue latency.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap)
*/
interface ImageBitmap {
/**
* The **\`ImageBitmap.height\`** read-only property returns the ImageBitmap object's height in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
*/
readonly height: number;
/**
* The **\`ImageBitmap.width\`** read-only property returns the ImageBitmap object's width in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
*/
readonly width: number;
/**
* The **\`ImageBitmap.close()\`** method disposes of all graphical resources associated with an \`ImageBitmap\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
/**
* The **\`ImageBitmapRenderingContext\`** interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)
*/
interface ImageBitmapRenderingContext {
/**
* The **\`ImageBitmapRenderingContext.transferFromImageBitmap()\`** method displays the given ImageBitmap in the canvas associated with this rendering context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/**
* The **\`ImageData\`** interface represents the underlying pixel data of an area of a canvas element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
*/
interface ImageData {
/**
* The read-only **\`ImageData.colorSpace\`** property is a string indicating the color space of the image data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace)
*/
readonly colorSpace: PredefinedColorSpace;
/**
* The readonly **\`ImageData.data\`** property returns a pixel data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: ImageDataArray;
/**
* The readonly **\`ImageData.height\`** property returns the number of rows in the ImageData object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
*/
readonly height: number;
/**
* The readonly **\`ImageData.width\`** property returns the number of pixels per row in the ImageData object.
*
* [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: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
/**
* The **\`ImageDecoder\`** interface of the WebCodecs API provides a way to unpack and decode encoded image data.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
*/
interface ImageDecoder {
/**
* The **\`complete\`** read-only property of the ImageDecoder interface returns true if encoded data has completed buffering.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete)
*/
readonly complete: boolean;
/**
* The **\`completed\`** read-only property of the ImageDecoder interface returns a promise that resolves once encoded data has finished buffering.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed)
*/
readonly completed: Promise<void>;
/**
* The **\`tracks\`** read-only property of the ImageDecoder interface returns a list of the tracks in the encoded image data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks)
*/
readonly tracks: ImageTrackList;
/**
* The **\`type\`** read-only property of the ImageDecoder interface reflects the MIME type configured during construction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type)
*/
readonly type: string;
/**
* The **\`close()\`** method of the ImageDecoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close)
*/
close(): void;
/**
* The **\`decode()\`** method of the ImageDecoder interface enqueues a control message to decode the frame of an image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode)
*/
decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;
/**
* The **\`reset()\`** method of the ImageDecoder interface aborts all pending \`decode()\` operations; rejecting all pending promises.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset)
*/
reset(): void;
}
declare var ImageDecoder: {
prototype: ImageDecoder;
new(init: ImageDecoderInit): ImageDecoder;
/**
* The **\`ImageDecoder.isTypeSupported()\`** static method checks if a given MIME type can be decoded by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static)
*/
isTypeSupported(type: string): Promise<boolean>;
};
/**
* The **\`ImageTrack\`** interface of the WebCodecs API represents an individual image track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
*/
interface ImageTrack {
/**
* The **\`animated\`** property of the ImageTrack interface returns \`true\` if the track is animated and therefore has multiple frames.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated)
*/
readonly animated: boolean;
/**
* The **\`frameCount\`** property of the ImageTrack interface returns the number of frames in the track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount)
*/
readonly frameCount: number;
/**
* The **\`repetitionCount\`** property of the ImageTrack interface returns the number of repetitions of this track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount)
*/
readonly repetitionCount: number;
/**
* The **\`selected\`** property of the ImageTrack interface returns \`true\` if the track is selected for decoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected)
*/
selected: boolean;
}
declare var ImageTrack: {
prototype: ImageTrack;
new(): ImageTrack;
};
/**
* The **\`ImageTrackList\`** interface of the WebCodecs API represents a list of image tracks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
*/
interface ImageTrackList {
/**
* The **\`length\`** property of the ImageTrackList interface returns the length of the \`ImageTrackList\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length)
*/
readonly length: number;
/**
* The **\`ready\`** property of the ImageTrackList interface returns a Promise that resolves when the \`ImageTrackList\` is populated with ImageTrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready)
*/
readonly ready: Promise<void>;
/**
* The **\`selectedIndex\`** property of the ImageTrackList interface returns the \`index\` of the selected track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex)
*/
readonly selectedIndex: number;
/**
* The **\`selectedTrack\`** property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack)
*/
readonly selectedTrack: ImageTrack | null;
[index: number]: ImageTrack;
}
declare var ImageTrackList: {
prototype: ImageTrackList;
new(): ImageTrackList;
};
interface ImportMeta {
url: string;
resolve(specifier: string): string;
}
/**
* The **\`KHR_parallel_shader_compile\`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (\`COMPLETION_STATUS_KHR\`) can be queried without potentially incurring stalls.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile)
*/
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/**
* The **\`Lock\`** interface of the Web Locks API provides the name and mode of a lock.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
*/
interface Lock {
/**
* The **\`mode\`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode)
*/
readonly mode: LockMode;
/**
* The **\`name\`** read-only property of the Lock interface returns the _name_ passed to The name of a lock is passed by script when the lock is requested.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name)
*/
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/**
* The **\`LockManager\`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing \`Lock\` object.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
*/
interface LockManager {
/**
* The **\`query()\`** method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query)
*/
query(): Promise<LockManagerSnapshot>;
/**
* The **\`request()\`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
*/
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
/**
* The **\`MediaCapabilities\`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities)
*/
interface MediaCapabilities {
/**
* The **\`decodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfils with information about how well the user agent can decode/display media with a given configuration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo)
*/
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
/**
* The **\`encodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration's capabilities for encoding media.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo)
*/
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* The **\`MediaSourceHandle\`** interface of the Media Source Extensions API is a proxy for a MediaSource that can be transferred from a dedicated worker back to the main thread and attached to a media element via its HTMLMediaElement.srcObject property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle)
*/
interface MediaSourceHandle {
}
declare var MediaSourceHandle: {
prototype: MediaSourceHandle;
new(): MediaSourceHandle;
};
/**
* The **\`MediaStreamTrackProcessor\`** interface of the Insertable Streams for MediaStreamTrack API consumes a video MediaStreamTrack object's source and generates a stream of VideoFrame objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor)
*/
interface MediaStreamTrackProcessor {
/**
* The **\`readable\`** property of the MediaStreamTrackProcessor interface returns a ReadableStream of VideoFrames.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor/readable)
*/
readonly readable: ReadableStream;
}
declare var MediaStreamTrackProcessor: {
prototype: MediaStreamTrackProcessor;
new(init: MediaStreamTrackProcessorInit): MediaStreamTrackProcessor;
};
/**
* The **\`MessageChannel\`** interface of the Channel Messaging API 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 {
/**
* The **\`port1\`** read-only property of the the port attached to the context that originated the channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
*/
readonly port1: MessagePort;
/**
* The **\`port2\`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/**
* The **\`MessageEvent\`** interface represents a message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
*/
interface MessageEvent<T = any> extends Event {
/**
* The **\`data\`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
*/
readonly data: T;
/**
* The **\`lastEventId\`** read-only property of the unique ID for the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* The **\`origin\`** read-only property of the origin of the message emitter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
*/
readonly origin: string;
/**
* The **\`ports\`** read-only property of the containing all MessagePort objects sent with the message, in order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* The **\`source\`** read-only property of the a WindowProxy, MessagePort, or a \`MessageEventSource\` (which can be a WindowProxy, message emitter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessageEventTargetEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface MessageEventTarget<T> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
onmessage: ((this: T, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
onmessageerror: ((this: T, ev: MessageEvent) => any) | null;
addEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface MessagePortEventMap extends MessageEventTargetEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The **\`MessagePort\`** interface of the Channel Messaging API 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, MessageEventTarget<MessagePort> {
/**
* The **\`close()\`** method of the MessagePort interface disconnects the port, so it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
*/
close(): void;
/**
* The **\`postMessage()\`** method of the transfers ownership of objects to other browsing contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* The **\`start()\`** method of the MessagePort interface starts the sending of messages queued 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;
};
/**
* The **\`NavigationPreloadManager\`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
*/
interface NavigationPreloadManager {
/**
* The **\`disable()\`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using NavigationPreloadManager.enable() It returns a promise that resolves with \`undefined\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)
*/
disable(): Promise<void>;
/**
* The **\`enable()\`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)
*/
enable(): Promise<void>;
/**
* The **\`getState()\`** method of the NavigationPreloadManager interface returns a Promise that resolves to an object with properties that indicate whether preload is enabled and what value will be sent in the Service-Worker-Navigation-Preload HTTP header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState)
*/
getState(): Promise<NavigationPreloadState>;
/**
* The **\`setHeaderValue()\`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a Window/fetch operation made during service worker navigation preloading.
*
* [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;
}
/**
* The **\`Notification\`** interface of the Notifications API 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 {
/**
* The **\`badge\`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
*/
readonly badge: string;
/**
* The **\`body\`** read-only property of the specified in the \`body\` option of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body)
*/
readonly body: string;
/**
* The **\`data\`** read-only property of the data, as specified in the \`data\` option of the The notification's data can be any arbitrary data that you want associated with the notification.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data)
*/
readonly data: any;
/**
* The **\`dir\`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the \`dir\` option of the Notification.Notification constructor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir)
*/
readonly dir: NotificationDirection;
/**
* The **\`icon\`** read-only property of the part of the notification, as specified in the \`icon\` option of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon)
*/
readonly icon: string;
/**
* The **\`lang\`** read-only property of the as specified in the \`lang\` option of the The language itself is specified using a string representing a language tag according to MISSING: RFC(5646, 'Tags for Identifying Languages (also known as BCP 47)')].
*
* [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;
/**
* The **\`requireInteraction\`** read-only property of the Notification interface returns a boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction)
*/
readonly requireInteraction: boolean;
/**
* The **\`silent\`** read-only property of the silent, i.e., no sounds or vibrations should be issued regardless of the device settings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent)
*/
readonly silent: boolean | null;
/**
* The **\`tag\`** read-only property of the as specified in the \`tag\` option of the The idea of notification tags is that more than one notification can share the same tag, linking them together.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag)
*/
readonly tag: string;
/**
* The **\`title\`** read-only property of the specified in the \`title\` parameter of the A string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title)
*/
readonly title: string;
/**
* The **\`close()\`** method of the Notification interface is used to close/remove a previously displayed notification.
*
* [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;
/**
* The **\`permission\`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static)
*/
readonly permission: NotificationPermission;
};
/**
* The **\`NotificationEvent\`** interface of the Notifications API represents a notification event dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)
*/
interface NotificationEvent extends ExtendableEvent {
/**
* The **\`action\`** read-only property of the NotificationEvent interface returns the string ID of the notification button the user clicked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action)
*/
readonly action: string;
/**
* The **\`notification\`** read-only property of the NotificationEvent interface returns the instance of the Notification that was clicked to fire the event.
*
* [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;
};
/**
* The **\`OES_draw_buffers_indexed\`** extension is part of the WebGL API and enables the use of different blend options when writing to multiple color buffers simultaneously.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed)
*/
interface OES_draw_buffers_indexed {
/**
* The \`blendEquationSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets the RGB and alpha blend equations separately for a particular draw buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES)
*/
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
/**
* The \`blendEquationiOES()\` method of the \`OES_draw_buffers_indexed\` WebGL extension sets both the RGB blend and alpha blend equations for a particular draw buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES)
*/
blendEquationiOES(buf: GLuint, mode: GLenum): void;
/**
* The \`blendFuncSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for RGB and alpha components separately for a particular draw buffer.
*
* [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;
/**
* The \`blendFunciOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for a particular draw buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES)
*/
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
/**
* The \`colorMaskiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets which color components to enable or to disable when drawing or rendering for a particular draw buffer.
*
* [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;
/**
* The \`disableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES)
*/
disableiOES(target: GLenum, index: GLuint): void;
/**
* The \`enableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
*
* [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 {
}
/**
* The \`OES_fbo_render_mipmap\` extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.
*
* [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 {
}
/**
* The **OES_vertex_array_object** extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object)
*/
interface OES_vertex_array_object {
/**
* The **\`OES_vertex_array_object.bindVertexArrayOES()\`** method of the WebGL API binds a passed WebGLVertexArrayObject object to the buffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)
*/
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/**
* The **\`OES_vertex_array_object.createVertexArrayOES()\`** method of the WebGL API creates and initializes a pointing to vertex array data and which provides names for different sets of vertex data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)
*/
createVertexArrayOES(): WebGLVertexArrayObjectOES;
/**
* The **\`OES_vertex_array_object.deleteVertexArrayOES()\`** method of the WebGL API deletes a given \`\`\`js-nolint deleteVertexArrayOES(arrayObject) \`\`\` - \`arrayObject\` - : A WebGLVertexArrayObject (VAO) object to delete.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)
*/
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/**
* The **\`OES_vertex_array_object.isVertexArrayOES()\`** method of the WebGL API returns \`true\` if the passed object is a WebGLVertexArrayObject object.
*
* [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;
}
/**
* The \`OVR_multiview2\` extension is part of the WebGL API and adds support for rendering into multiple views simultaneously.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2)
*/
interface OVR_multiview2 {
/**
* The **\`OVR_multiview2.framebufferTextureMultiviewOVR()\`** method of the WebGL API attaches a multiview texture to a WebGLFramebuffer.
*
* [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;
}
/**
* When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
*/
interface OffscreenCanvas extends EventTarget {
/**
* The **\`height\`** property returns and sets the height of an OffscreenCanvas object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* The **\`width\`** property returns and sets the width of an OffscreenCanvas object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
*/
width: number;
/**
* The **\`OffscreenCanvas.convertToBlob()\`** method creates a Blob object representing the image contained in the canvas.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* The **\`OffscreenCanvas.getContext()\`** method returns a drawing context for an offscreen canvas, or \`null\` if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.
*
* [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;
/**
* The **\`OffscreenCanvas.transferToImageBitmap()\`** method creates an ImageBitmap object from the most recently rendered image of the \`OffscreenCanvas\`.
*
* [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;
};
/**
* The **\`OffscreenCanvasRenderingContext2D\`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an \`OffscreenCanvas\` object.
*
* [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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */
readonly canvas: OffscreenCanvas;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/**
* The **\`Path2D\`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
*/
interface Path2D extends CanvasPath {
/**
* The **\`Path2D.addPath()\`** method of the Canvas 2D API adds one Path2D object to another \`Path2D\` object.
*
* [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;
}
/**
* The **\`Performance\`** interface provides access to performance-related information for the current page.
*
* [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;
/**
* The **\`timeOrigin\`** read-only property of the Performance interface returns the high resolution timestamp that is used as the baseline for performance-related timestamps.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin)
*/
readonly timeOrigin: DOMHighResTimeStamp;
/**
* The **\`clearMarks()\`** method removes all or specific PerformanceMark objects from the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks)
*/
clearMarks(markName?: string): void;
/**
* The **\`clearMeasures()\`** method removes all or specific PerformanceMeasure objects from the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures)
*/
clearMeasures(measureName?: string): void;
/**
* The **\`clearResourceTimings()\`** method removes all performance entries with an PerformanceEntry.entryType of \`'resource'\` from the browser's performance timeline and sets the size of the performance resource data buffer to zero.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings)
*/
clearResourceTimings(): void;
/**
* The **\`getEntries()\`** method returns an array of all PerformanceEntry objects currently present in the performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries)
*/
getEntries(): PerformanceEntryList;
/**
* The **\`getEntriesByName()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given _name_ and _type_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)
*/
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/**
* The **\`getEntriesByType()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given _type_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)
*/
getEntriesByType(type: string): PerformanceEntryList;
/**
* The **\`mark()\`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark)
*/
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
/**
* The **\`measure()\`** method creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure)
*/
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
/**
* The **\`performance.now()\`** method returns a high resolution timestamp in milliseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now)
*/
now(): DOMHighResTimeStamp;
/**
* The **\`setResourceTimingBufferSize()\`** method sets the desired size of the browser's resource timing buffer which stores the \`'resource'\` performance entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize)
*/
setResourceTimingBufferSize(maxSize: number): void;
/**
* The **\`toJSON()\`** method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object.
*
* [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;
};
/**
* The **\`PerformanceEntry\`** object encapsulates a single performance metric that is part of the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
*/
interface PerformanceEntry {
/**
* The read-only **\`duration\`** property returns a DOMHighResTimeStamp that is the duration of the PerformanceEntry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration)
*/
readonly duration: DOMHighResTimeStamp;
/**
* The read-only **\`entryType\`** property returns a string representing the type of performance metric that this entry represents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType)
*/
readonly entryType: string;
/**
* The read-only **\`name\`** property of the PerformanceEntry interface is a string representing the name for a performance entry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name)
*/
readonly name: string;
/**
* The read-only **\`startTime\`** property returns the first DOMHighResTimeStamp recorded for this PerformanceEntry.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime)
*/
readonly startTime: DOMHighResTimeStamp;
/**
* The **\`toJSON()\`** method is a Serialization; it returns a JSON representation of the PerformanceEntry object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON)
*/
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/**
* **\`PerformanceMark\`** is an interface for PerformanceEntry objects with an PerformanceEntry.entryType of \`'mark'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
*/
interface PerformanceMark extends PerformanceEntry {
/**
* The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (either when using Performance.mark or the PerformanceMark.PerformanceMark constructor).
*
* [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 PerformanceEntry.entryType of \`'measure'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
*/
interface PerformanceMeasure extends PerformanceEntry {
/**
* The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (when using Performance.measure.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail)
*/
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/**
* The **\`PerformanceObserver\`** interface is used to observe performance measurement events and be notified of new PerformanceEntry as they are recorded in the browser's _performance timeline_.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver)
*/
interface PerformanceObserver {
/**
* The **\`disconnect()\`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any PerformanceEntry events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect)
*/
disconnect(): void;
/**
* The **\`observe()\`** method of the **PerformanceObserver** interface is used to specify the set of performance entry types to observe.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe)
*/
observe(options?: PerformanceObserverInit): void;
/**
* The **\`takeRecords()\`** method of the PerformanceObserver interface returns the current list of PerformanceEntry objects stored in the performance observer, emptying it out.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords)
*/
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
/**
* The static **\`supportedEntryTypes\`** read-only property of the PerformanceObserver interface returns an array of the PerformanceEntry.entryType values supported by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static)
*/
readonly supportedEntryTypes: ReadonlyArray<string>;
};
/**
* The **\`PerformanceObserverEntryList\`** interface is a list of PerformanceEntry that were explicitly observed via the PerformanceObserver.observe method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList)
*/
interface PerformanceObserverEntryList {
/**
* The **\`getEntries()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries)
*/
getEntries(): PerformanceEntryList;
/**
* The **\`getEntriesByName()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given PerformanceEntry.name and PerformanceEntry.entryType.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)
*/
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/**
* The **\`getEntriesByType()\`** method of the PerformanceObserverEntryList returns a list of explicitly _observed_ PerformanceEntry objects for a given PerformanceEntry.entryType.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)
*/
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/**
* The **\`PerformanceResourceTiming\`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
*/
interface PerformanceResourceTiming extends PerformanceEntry {
/**
* The **\`connectEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd)
*/
readonly connectEnd: DOMHighResTimeStamp;
/**
* The **\`connectStart\`** read-only property returns the DOMHighResTimeStamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
*/
readonly connectStart: DOMHighResTimeStamp;
/**
* The **\`decodedBodySize\`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
*/
readonly decodedBodySize: number;
/**
* The **\`domainLookupEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes the domain-name lookup for the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)
*/
readonly domainLookupEnd: DOMHighResTimeStamp;
/**
* The **\`domainLookupStart\`** read-only property returns the DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart)
*/
readonly domainLookupStart: DOMHighResTimeStamp;
/**
* The **\`encodedBodySize\`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize)
*/
readonly encodedBodySize: number;
/**
* The **\`fetchStart\`** read-only property represents a DOMHighResTimeStamp immediately before the browser starts to fetch the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
*/
readonly fetchStart: DOMHighResTimeStamp;
/**
* The **\`initiatorType\`** read-only property is a string representing web platform feature that initiated the resource load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType)
*/
readonly initiatorType: string;
/**
* The **\`nextHopProtocol\`** read-only property is a string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)
*/
readonly nextHopProtocol: string;
/**
* The **\`redirectEnd\`** read-only property returns a DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd)
*/
readonly redirectEnd: DOMHighResTimeStamp;
/**
* The **\`redirectStart\`** read-only property returns a DOMHighResTimeStamp representing the start time of the fetch which that initiates the redirect.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart)
*/
readonly redirectStart: DOMHighResTimeStamp;
/**
* The **\`requestStart\`** read-only property returns a DOMHighResTimeStamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
*/
readonly requestStart: DOMHighResTimeStamp;
/**
* The **\`responseEnd\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd)
*/
readonly responseEnd: DOMHighResTimeStamp;
/**
* The **\`responseStart\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart)
*/
readonly responseStart: DOMHighResTimeStamp;
/**
* The **\`responseStatus\`** read-only property represents the HTTP response status code returned when fetching the resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus)
*/
readonly responseStatus: number;
/**
* The **\`secureConnectionStart\`** read-only property returns a DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)
*/
readonly secureConnectionStart: DOMHighResTimeStamp;
/**
* The **\`serverTiming\`** read-only property returns an array of PerformanceServerTiming entries containing server timing metrics.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming)
*/
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
/**
* The **\`transferSize\`** read-only property represents the size (in octets) of the fetched resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
*/
readonly transferSize: number;
/**
* The **\`workerStart\`** read-only property of the PerformanceResourceTiming interface returns a The \`workerStart\` property can have the following values: - A DOMHighResTimeStamp.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart)
*/
readonly workerStart: DOMHighResTimeStamp;
/**
* The **\`toJSON()\`** method of the PerformanceResourceTiming interface is a Serialization; it returns a JSON representation of the PerformanceResourceTiming object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON)
*/
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/**
* The **\`PerformanceServerTiming\`** interface surfaces server metrics that are sent with the response in the Server-Timing HTTP header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming)
*/
interface PerformanceServerTiming {
/**
* The **\`description\`** read-only property returns a string value of the server-specified metric description, or an empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description)
*/
readonly description: string;
/**
* The **\`duration\`** read-only property returns a double that contains the server-specified metric duration, or the value \`0.0\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
*/
readonly duration: DOMHighResTimeStamp;
/**
* The **\`name\`** read-only property returns a string value of the server-specified metric name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name)
*/
readonly name: string;
/**
* The **\`toJSON()\`** method of the PerformanceServerTiming interface is a Serialization; it returns a JSON representation of the PerformanceServerTiming object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON)
*/
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
interface PermissionStatusEventMap {
"change": Event;
}
/**
* The **\`PermissionStatus\`** interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus)
*/
interface PermissionStatus extends EventTarget {
/**
* The **\`name\`** read-only property of the PermissionStatus interface returns the name of a requested permission.
*
* [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;
/**
* The **\`state\`** read-only property of the This property returns one of \`'granted'\`, \`'denied'\`, or \`'prompt'\`.
*
* [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;
};
/**
* The **\`Permissions\`** interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions)
*/
interface Permissions {
/**
* The **\`query()\`** method of the Permissions interface returns the state of a user permission on the global scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query)
*/
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/**
* The **\`ProgressEvent\`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., 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 {
/**
* The **\`ProgressEvent.lengthComputable\`** read-only property is a boolean flag indicating if the resource concerned by the A boolean.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable)
*/
readonly lengthComputable: boolean;
/**
* The **\`ProgressEvent.loaded\`** read-only property is a number indicating the size of the data already transmitted or processed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
*/
readonly loaded: number;
readonly target: T | null;
/**
* The **\`ProgressEvent.total\`** read-only property is a number indicating the total size of the data being transmitted or processed.
*
* [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;
};
/**
* The **\`PromiseRejectionEvent\`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
*/
interface PromiseRejectionEvent extends Event {
/**
* The PromiseRejectionEvent interface's **\`promise\`** read-only property indicates the JavaScript rejected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
*/
readonly promise: Promise<any>;
/**
* The PromiseRejectionEvent **\`reason\`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
*
* [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;
};
/**
* The **\`PushEvent\`** interface of the Push API represents a push message that has been received.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)
*/
interface PushEvent extends ExtendableEvent {
/**
* The \`data\` read-only property of the **\`PushEvent\`** interface returns a reference to a PushMessageData object containing data sent to the PushSubscription.
*
* [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;
};
/**
* The **\`PushManager\`** interface of the Push API 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 {
/**
* The **\`PushManager.getSubscription()\`** method of the PushManager interface retrieves an existing push subscription.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription)
*/
getSubscription(): Promise<PushSubscription | null>;
/**
* The **\`permissionState()\`** method of the string indicating the permission state of the push manager.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState)
*/
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
/**
* The **\`subscribe()\`** method of the PushManager interface subscribes to a push service.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe)
*/
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
/**
* The **\`supportedContentEncodings\`** read-only static property of the PushManager interface returns an array of supported content codings that can be used to encrypt the payload of a push message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static)
*/
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* The **\`PushMessageData\`** interface of the Push API 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 {
/**
* The **\`arrayBuffer()\`** method of the PushMessageData interface extracts push message data as an ArrayBuffer object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer)
*/
arrayBuffer(): ArrayBuffer;
/**
* The **\`blob()\`** method of the PushMessageData interface extracts push message data as a Blob object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob)
*/
blob(): Blob;
/**
* The **\`bytes()\`** method of the PushMessageData interface extracts push message data as an Uint8Array object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes)
*/
bytes(): Uint8Array<ArrayBuffer>;
/**
* The **\`json()\`** method of the PushMessageData interface extracts push message data by parsing it as a JSON string and returning the result.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json)
*/
json(): any;
/**
* The **\`text()\`** method of the PushMessageData interface extracts push message data as a plain text string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text)
*/
text(): string;
}
declare var PushMessageData: {
prototype: PushMessageData;
new(): PushMessageData;
};
/**
* The \`PushSubscription\` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
*/
interface PushSubscription {
/**
* The **\`endpoint\`** read-only property of the the endpoint associated with the push subscription.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint)
*/
readonly endpoint: string;
/**
* The **\`expirationTime\`** read-only property of the of the subscription expiration time associated with the push subscription, if there is one, or \`null\` otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime)
*/
readonly expirationTime: EpochTimeStamp | null;
/**
* The **\`options\`** read-only property of the PushSubscription interface is an object containing the options used to create the subscription.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options)
*/
readonly options: PushSubscriptionOptions;
/**
* The \`getKey()\` method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey)
*/
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
/**
* The \`toJSON()\` method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON)
*/
toJSON(): PushSubscriptionJSON;
/**
* The \`unsubscribe()\` method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.
*
* [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. */
interface PushSubscriptionChangeEvent extends ExtendableEvent {
readonly newSubscription: PushSubscription | null;
readonly oldSubscription: PushSubscription | null;
}
declare var PushSubscriptionChangeEvent: {
prototype: PushSubscriptionChangeEvent;
new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;
};
/**
* The **\`PushSubscriptionOptions\`** interface of the Push API represents the options associated with a push subscription.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
*/
interface PushSubscriptionOptions {
/**
* The **\`applicationServerKey\`** read-only property of the PushSubscriptionOptions interface contains the public key used by the push server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey)
*/
readonly applicationServerKey: ArrayBuffer | null;
/**
* The **\`userVisibleOnly\`** read-only property of the PushSubscriptionOptions interface indicates if the returned push subscription will only be used for messages whose effect is made visible to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly)
*/
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
interface RTCDataChannelEventMap {
"bufferedamountlow": Event;
"close": Event;
"closing": Event;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/**
* The **\`RTCDataChannel\`** interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel)
*/
interface RTCDataChannel extends EventTarget {
/**
* The property **\`binaryType\`** on the the type of object which should be used to represent binary data received on the RTCDataChannel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType)
*/
binaryType: BinaryType;
/**
* The read-only \`RTCDataChannel\` property **\`bufferedAmount\`** returns the number of bytes of data currently queued to be sent over the data channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* The \`RTCDataChannel\` property **\`bufferedAmountLowThreshold\`** is used to specify the number of bytes of buffered outgoing data that is considered 'low.' The default value is 0\\.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)
*/
bufferedAmountLowThreshold: number;
/**
* The read-only \`RTCDataChannel\` property **\`id\`** returns an ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id)
*/
readonly id: number | null;
/**
* The read-only \`RTCDataChannel\` property **\`label\`** returns a string containing a name describing the data channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label)
*/
readonly label: string;
/**
* The read-only \`RTCDataChannel\` property **\`maxPacketLifeTime\`** returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime)
*/
readonly maxPacketLifeTime: number | null;
/**
* The read-only \`RTCDataChannel\` property **\`maxRetransmits\`** returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or \`null\`, which indicates that there is no maximum.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits)
*/
readonly maxRetransmits: number | null;
/**
* The read-only \`RTCDataChannel\` property **\`negotiated\`** indicates whether the (\`true\`) or by the WebRTC layer (\`false\`).
*
* [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;
/**
* The read-only \`RTCDataChannel\` property **\`ordered\`** indicates whether or not the data channel guarantees in-order delivery of messages; the default is \`true\`, which indicates that the data channel is indeed ordered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered)
*/
readonly ordered: boolean;
/**
* The read-only \`RTCDataChannel\` property **\`protocol\`** returns a string containing the name of the subprotocol in use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol)
*/
readonly protocol: string;
/**
* The read-only \`RTCDataChannel\` property **\`readyState\`** returns a string which indicates the state of the data channel's underlying data connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState)
*/
readonly readyState: RTCDataChannelState;
/**
* The **\`RTCDataChannel.close()\`** method closes the closure of the channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close)
*/
close(): void;
/**
* The **\`send()\`** method of the remote peer.
*
* [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<ArrayBuffer>): 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;
};
/**
* The **\`RTCEncodedAudioFrame\`** of the WebRTC API represents an encoded audio frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame)
*/
interface RTCEncodedAudioFrame {
/**
* The **\`data\`** property of the RTCEncodedAudioFrame interface returns a buffer containing the data for an encoded frame.
*
* [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;
/**
* The **\`getMetadata()\`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata)
*/
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
/**
* The **\`RTCEncodedVideoFrame\`** of the WebRTC API represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame)
*/
interface RTCEncodedVideoFrame {
/**
* The **\`data\`** property of the RTCEncodedVideoFrame interface returns a buffer containing the frame data.
*
* [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;
/**
* The **\`type\`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)
*/
readonly type: RTCEncodedVideoFrameType;
/**
* The **\`getMetadata()\`** method of the RTCEncodedVideoFrame interface returns an object containing the metadata associated with the frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata)
*/
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
/**
* The **\`RTCRtpScriptTransformer\`** interface of the WebRTC API provides a worker-side Stream API interface that a WebRTC Encoded Transform can use to modify encoded media frames in the incoming and outgoing WebRTC pipelines.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer)
*/
interface RTCRtpScriptTransformer extends EventTarget {
/**
* The **\`options\`** read-only property of the RTCRtpScriptTransformer interface returns the object that was (optionally) passed as the second argument during construction of the corresponding RTCRtpScriptTransform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options)
*/
readonly options: any;
/**
* The **\`readable\`** read-only property of the RTCRtpScriptTransformer interface returns a ReadableStream instance is a source for encoded media frames.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable)
*/
readonly readable: ReadableStream;
/**
* The **\`writable\`** read-only property of the RTCRtpScriptTransformer interface returns a WritableStream instance that can be used as a sink for encoded media frames enqueued on the corresponding RTCRtpScriptTransformer.readable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable)
*/
readonly writable: WritableStream;
/**
* The **\`generateKeyFrame()\`** method of the RTCRtpScriptTransformer interface causes a video encoder to generate a key frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)
*/
generateKeyFrame(rid?: string): Promise<number>;
/**
* The **\`sendKeyFrameRequest()\`** method of the RTCRtpScriptTransformer interface may be called by a WebRTC Encoded Transform that is processing incoming encoded video frames, in order to request a key frame from the sender.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest)
*/
sendKeyFrameRequest(): Promise<void>;
}
declare var RTCRtpScriptTransformer: {
prototype: RTCRtpScriptTransformer;
new(): RTCRtpScriptTransformer;
};
/**
* The **\`RTCTransformEvent\`** of the WebRTC API represent an event that is fired in a dedicated worker when an encoded frame has been queued for processing by a WebRTC Encoded Transform.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent)
*/
interface RTCTransformEvent extends Event {
/**
* The read-only **\`transformer\`** property of the RTCTransformEvent interface returns the RTCRtpScriptTransformer associated with the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer)
*/
readonly transformer: RTCRtpScriptTransformer;
}
declare var RTCTransformEvent: {
prototype: RTCTransformEvent;
new(): RTCTransformEvent;
};
/**
* The **\`ReadableByteStreamController\`** interface of the Streams API represents a controller for a readable byte stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
*/
interface ReadableByteStreamController {
/**
* The **\`byobRequest\`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or \`null\` if there are no pending requests.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)
*/
readonly byobRequest: ReadableStreamBYOBRequest | null;
/**
* The **\`desiredSize\`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its 'desired size'.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
*/
readonly desiredSize: number | null;
/**
* The **\`close()\`** method of the ReadableByteStreamController interface closes the associated stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)
*/
close(): void;
/**
* The **\`enqueue()\`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
*/
enqueue(chunk: ArrayBufferView<ArrayBuffer>): void;
/**
* The **\`error()\`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)
*/
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/**
* The \`ReadableStream\` interface of the Streams API represents a readable stream of byte data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
*/
interface ReadableStream<R = any> {
/**
* The **\`locked\`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
*/
readonly locked: boolean;
/**
* The **\`cancel()\`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
*/
cancel(reason?: any): Promise<void>;
/**
* The **\`getReader()\`** method of the ReadableStream interface creates a reader and locks the stream to it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
*/
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
/**
* The **\`pipeThrough()\`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
*/
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
/**
* The **\`pipeTo()\`** method of the ReadableStream interface pipes the current \`ReadableStream\` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
*/
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
/**
* The **\`tee()\`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
*
* [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<ArrayBuffer>>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
/**
* The \`ReadableStreamBYOBReader\` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
*/
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/**
* The **\`read()\`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
*/
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/**
* The **\`releaseLock()\`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
*/
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream<Uint8Array<ArrayBuffer>>): ReadableStreamBYOBReader;
};
/**
* The **\`ReadableStreamBYOBRequest\`** interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
*/
interface ReadableStreamBYOBRequest {
/**
* The **\`view\`** getter property of the ReadableStreamBYOBRequest interface returns the current view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
*/
readonly view: ArrayBufferView<ArrayBuffer> | null;
/**
* The **\`respond()\`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)
*/
respond(bytesWritten: number): void;
/**
* The **\`respondWithNewView()\`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)
*/
respondWithNewView(view: ArrayBufferView<ArrayBuffer>): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
/**
* The **\`ReadableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
*/
interface ReadableStreamDefaultController<R = any> {
/**
* The **\`desiredSize\`** read-only property of the required to fill the stream's internal queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
*/
readonly desiredSize: number | null;
/**
* The **\`close()\`** method of the ReadableStreamDefaultController interface closes the associated stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)
*/
close(): void;
/**
* The **\`enqueue()\`** method of the \`\`\`js-nolint enqueue(chunk) \`\`\` - \`chunk\` - : The chunk to enqueue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
*/
enqueue(chunk?: R): void;
/**
* The **\`error()\`** method of the with the associated stream to error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
*/
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
/**
* The **\`ReadableStreamDefaultReader\`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
*/
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
/**
* The **\`read()\`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)
*/
read(): Promise<ReadableStreamReadResult<R>>;
/**
* The **\`releaseLock()\`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream.
*
* [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<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
cancel(reason?: any): Promise<void>;
}
/**
* The \`Report\` interface of the Reporting API represents a single report.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
*/
interface Report {
/**
* The **\`body\`** read-only property of the Report interface returns the body of the report, which is a \`ReportBody\` object containing the detailed report information.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
*/
readonly body: ReportBody | null;
/**
* The **\`type\`** read-only property of the Report interface returns the type of report generated, e.g., \`deprecation\` or \`intervention\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
*/
readonly type: string;
/**
* The **\`url\`** read-only property of the Report interface returns the URL of the document that generated the report.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
*/
readonly url: string;
toJSON(): any;
}
declare var Report: {
prototype: Report;
new(): Report;
};
/**
* The **\`ReportBody\`** interface of the Reporting API represents the body of a report.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
*/
interface ReportBody {
/**
* The **\`toJSON()\`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the \`ReportBody\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
*/
toJSON(): any;
}
declare var ReportBody: {
prototype: ReportBody;
new(): ReportBody;
};
/**
* The \`ReportingObserver\` interface of the Reporting API allows you to collect and access reports.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver)
*/
interface ReportingObserver {
/**
* The **\`disconnect()\`** method of the previously started observing from collecting reports.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect)
*/
disconnect(): void;
/**
* The **\`observe()\`** method of the collecting reports in its report queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe)
*/
observe(): void;
/**
* The **\`takeRecords()\`** method of the in the observer's report queue, and empties the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords)
*/
takeRecords(): ReportList;
}
declare var ReportingObserver: {
prototype: ReportingObserver;
new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};
/**
* The **\`Request\`** interface of the Fetch API represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
*/
interface Request extends Body {
/**
* The **\`cache\`** read-only property of the Request interface contains the cache mode of the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
readonly cache: RequestCache;
/**
* The **\`credentials\`** read-only property of the Request interface reflects the value given to the Request.Request() constructor in the \`credentials\` option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
*/
readonly credentials: RequestCredentials;
/**
* The **\`destination\`** read-only property of the **Request** interface returns a string describing the type of content being requested.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
*/
readonly destination: RequestDestination;
/**
* The **\`headers\`** read-only property of the with the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
*/
readonly headers: Headers;
/**
* The **\`integrity\`** read-only property of the Request interface contains the subresource integrity value of the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
/**
* The **\`keepalive\`** read-only property of the Request interface contains the request's \`keepalive\` setting (\`true\` or \`false\`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
*/
readonly keepalive: boolean;
/**
* The **\`method\`** read-only property of the \`POST\`, etc.) A String indicating the method of the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
*/
readonly method: string;
/**
* The **\`mode\`** read-only property of the Request interface contains the mode of the request (e.g., \`cors\`, \`no-cors\`, \`same-origin\`, or \`navigate\`.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
*/
readonly mode: RequestMode;
/**
* The **\`redirect\`** read-only property of the Request interface contains the mode for how redirects are handled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
*/
readonly redirect: RequestRedirect;
/**
* The **\`referrer\`** read-only property of the Request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
*/
readonly referrer: string;
/**
* The **\`referrerPolicy\`** read-only property of the referrer information, sent in the Referer header, should be included with the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* The read-only **\`signal\`** property of the Request interface returns the AbortSignal associated with the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
*/
readonly signal: AbortSignal;
/**
* The **\`url\`** read-only property of the Request interface contains the URL of the request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
*/
readonly url: string;
/**
* The **\`clone()\`** method of the Request interface creates a copy of the current \`Request\` object.
*
* [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;
};
/**
* The **\`Response\`** interface of the Fetch API represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
*/
interface Response extends Body {
/**
* The **\`headers\`** read-only property of the with the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
*/
readonly headers: Headers;
/**
* The **\`ok\`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
*/
readonly ok: boolean;
/**
* The **\`redirected\`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
*/
readonly redirected: boolean;
/**
* The **\`status\`** read-only property of the Response interface contains the HTTP status codes of the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
*/
readonly status: number;
/**
* The **\`statusText\`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
*/
readonly statusText: string;
/**
* The **\`type\`** read-only property of the Response interface contains the type of the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
*/
readonly type: ResponseType;
/**
* The **\`url\`** read-only property of the Response interface contains the URL of the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
*/
readonly url: string;
/**
* The **\`clone()\`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
*
* [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;
/**
* The **\`error()\`** static method of the Response interface returns a new \`Response\` object associated with a network error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static)
*/
error(): Response;
/**
* The **\`json()\`** static method of the Response interface returns a \`Response\` that contains the provided JSON data as body, and a Content-Type header which is set to \`application/json\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
*/
json(data: any, init?: ResponseInit): Response;
/**
* The **\`redirect()\`** static method of the Response interface returns a \`Response\` resulting in a redirect to the specified URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)
*/
redirect(url: string | URL, status?: number): Response;
};
/**
* The **\`SecurityPolicyViolationEvent\`** interface inherits from Event, and represents the event object of a \`securitypolicyviolation\` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
*/
interface SecurityPolicyViolationEvent extends Event {
/**
* The **\`blockedURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the resource that was blocked because it violates a Content Security Policy (CSP).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)
*/
readonly blockedURI: string;
/**
* The **\`columnNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
*/
readonly columnNumber: number;
/**
* The **\`disposition\`** read-only property of the SecurityPolicyViolationEvent interface indicates how the violated Content Security Policy (CSP) is configured to be treated by the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition)
*/
readonly disposition: SecurityPolicyViolationEventDisposition;
/**
* The **\`documentURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the document or worker in which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI)
*/
readonly documentURI: string;
/**
* The **\`effectiveDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)
*/
readonly effectiveDirective: string;
/**
* The **\`lineNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the line number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)
*/
readonly lineNumber: number;
/**
* The **\`originalPolicy\`** read-only property of the SecurityPolicyViolationEvent interface is a string containing the Content Security Policy (CSP) whose enforcement uncovered the violation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)
*/
readonly originalPolicy: string;
/**
* The **\`referrer\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer)
*/
readonly referrer: string;
/**
* The **\`sample\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing a sample of the resource that caused the Content Security Policy (CSP) violation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample)
*/
readonly sample: string;
/**
* The **\`sourceFile\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URL of the script in which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)
*/
readonly sourceFile: string;
/**
* The **\`statusCode\`** read-only property of the SecurityPolicyViolationEvent interface is a number representing the HTTP status code of the window or worker in which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode)
*/
readonly statusCode: number;
/**
* The **\`violatedDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
*
* [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;
}
/**
* The **\`ServiceWorker\`** interface of the Service Worker API provides a reference to a service worker.
* 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;
/**
* Returns the \`ServiceWorker\` serialized script URL defined as part of \`ServiceWorkerRegistration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL)
*/
readonly scriptURL: string;
/**
* The **\`state\`** read-only property of the of the service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state)
*/
readonly state: ServiceWorkerState;
/**
* The **\`postMessage()\`** method of the ServiceWorker interface sends a message to the worker.
*
* [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 Service Worker 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 {
/**
* The **\`controller\`** read-only property of the ServiceWorkerContainer interface returns a \`activated\` (the same object returned by \`null\` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.
*
* [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;
/**
* The **\`ready\`** read-only property of the ServiceWorkerContainer interface provides a way of delaying code execution until a service worker is active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready)
*/
readonly ready: Promise<ServiceWorkerRegistration>;
/**
* The **\`getRegistration()\`** method of the client URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)
*/
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
/**
* The **\`getRegistrations()\`** method of the \`ServiceWorkerContainer\`, in an array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)
*/
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
/**
* The **\`register()\`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
*/
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
/**
* The **\`startMessages()\`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()).
*
* [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;
"cookiechange": ExtendableCookieChangeEvent;
"fetch": FetchEvent;
"install": ExtendableEvent;
"message": ExtendableMessageEvent;
"messageerror": MessageEvent;
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
"pushsubscriptionchange": PushSubscriptionChangeEvent;
}
/**
* The **\`ServiceWorkerGlobalScope\`** interface of the Service Worker API represents the global execution context of a service worker.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
*/
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
/**
* The **\`clients\`** read-only property of the object associated with the service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients)
*/
readonly clients: Clients;
/**
* The **\`cookieStore\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the CookieStore object associated with this service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookieStore)
*/
readonly cookieStore: CookieStore;
/** [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/cookiechange_event) */
oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => 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: PushSubscriptionChangeEvent) => any) | null;
/**
* The **\`registration\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorkerRegistration object, which represents the service worker's registration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration)
*/
readonly registration: ServiceWorkerRegistration;
/**
* The **\`serviceWorker\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorker object, which represents the service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker)
*/
readonly serviceWorker: ServiceWorker;
/**
* The **\`skipWaiting()\`** method of the ServiceWorkerGlobalScope interface forces the waiting service worker to become the active service worker.
*
* [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;
}
/**
* The **\`ServiceWorkerRegistration\`** interface of the Service Worker API represents the service worker registration.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
*/
interface ServiceWorkerRegistration extends EventTarget {
/**
* The **\`active\`** read-only property of the This property is initially set to \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
*/
readonly active: ServiceWorker | null;
/**
* The **\`cookies\`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
*/
readonly cookies: CookieStoreManager;
/**
* The **\`installing\`** read-only property of the initially set to \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing)
*/
readonly installing: ServiceWorker | null;
/**
* The **\`navigationPreload\`** read-only property of the ServiceWorkerRegistration interface returns the NavigationPreloadManager associated with the current service worker registration.
*
* [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;
/**
* The **\`pushManager\`** read-only property of the support for subscribing, getting an active subscription, and accessing push permission status.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
*/
readonly pushManager: PushManager;
/**
* The **\`scope\`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope)
*/
readonly scope: string;
/**
* The **\`updateViaCache\`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via WorkerGlobalScope.importScripts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache)
*/
readonly updateViaCache: ServiceWorkerUpdateViaCache;
/**
* The **\`waiting\`** read-only property of the set to \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting)
*/
readonly waiting: ServiceWorker | null;
/**
* The **\`getNotifications()\`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)
*/
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
/**
* The **\`showNotification()\`** method of the service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification)
*/
showNotification(title: string, options?: NotificationOptions): Promise<void>;
/**
* The **\`unregister()\`** method of the registration and returns a Promise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)
*/
unregister(): Promise<boolean>;
/**
* The **\`update()\`** method of the worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)
*/
update(): Promise<ServiceWorkerRegistration>;
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;
}
/**
* The **\`SharedWorkerGlobalScope\`** object (the SharedWorker global scope) is accessible through the window.self keyword.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope)
*/
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
/**
* The **\`name\`** read-only property of the that the SharedWorker.SharedWorker constructor can pass to get a reference to the SharedWorkerGlobalScope.
*
* [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;
/**
* The **\`close()\`** method of the SharedWorkerGlobalScope interface discards any tasks queued in the \`SharedWorkerGlobalScope\`'s event loop, effectively closing this particular scope.
*
* [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;
};
/**
* The **\`StorageManager\`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
*/
interface StorageManager {
/**
* The **\`estimate()\`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (\`usage\`), and how much space is available (\`quota\`).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)
*/
estimate(): Promise<StorageEstimate>;
/**
* The **\`getDirectory()\`** method of the StorageManager interface is used to obtain a reference to a FileSystemDirectoryHandle object allowing access to a directory and its contents, stored in the origin private file system (OPFS).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory)
*/
getDirectory(): Promise<FileSystemDirectoryHandle>;
/**
* The **\`persisted()\`** method of the StorageManager interface returns a Promise that resolves to \`true\` if your site's storage bucket is persistent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted)
*/
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/**
* The **\`StylePropertyMapReadOnly\`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly)
*/
interface StylePropertyMapReadOnly {
/**
* The **\`size\`** read-only property of the containing the size of the \`StylePropertyMapReadOnly\` object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size)
*/
readonly size: number;
/**
* The **\`get()\`** method of the object for the first value of the specified property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get)
*/
get(property: string): undefined | CSSStyleValue;
/**
* The **\`getAll()\`** method of the \`\`\`js-nolint getAll(property) \`\`\` - \`property\` - : The name of the property to retrieve all values of.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll)
*/
getAll(property: string): CSSStyleValue[];
/**
* The **\`has()\`** method of the property is in the \`StylePropertyMapReadOnly\` object.
*
* [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;
};
/**
* The **\`SubtleCrypto\`** interface of the Web Crypto API provides a number of low-level cryptographic functions.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
*/
interface SubtleCrypto {
/**
* The **\`decrypt()\`** method of the SubtleCrypto interface decrypts some encrypted data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)
*/
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/**
* The **\`deriveBits()\`** method of the key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)
*/
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>;
/**
* The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
*
* [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>;
/**
* The **\`digest()\`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)
*/
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
/**
* The **\`encrypt()\`** method of the SubtleCrypto interface encrypts data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)
*/
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/**
* The **\`exportKey()\`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.
*
* [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>;
/**
* The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
*/
generateKey(algorithm: "Ed25519" | { name: "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>;
/**
* The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
*
* [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>;
/**
* The **\`sign()\`** method of the SubtleCrypto interface generates a digital signature.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)
*/
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/**
* The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
*
* [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>;
/**
* The **\`verify()\`** method of the SubtleCrypto interface verifies a digital signature.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)
*/
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
/**
* The **\`wrapKey()\`** method of the SubtleCrypto interface 'wraps' a key.
*
* [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 **\`TextDecoder\`** interface represents a decoder for a specific text encoding, such as \`UTF-8\`, \`ISO-8859-2\`, \`KOI8-R\`, \`GBK\`, etc.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
*/
interface TextDecoder extends TextDecoderCommon {
/**
* The **\`TextDecoder.decode()\`** method returns a string containing text decoded from the buffer passed as a parameter.
*
* [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;
}
/**
* The **\`TextDecoderStream\`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.
*
* [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;
};
/**
* The **\`TextEncoder\`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
*/
interface TextEncoder extends TextEncoderCommon {
/**
* The **\`TextEncoder.encode()\`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
*/
encode(input?: string): Uint8Array<ArrayBuffer>;
/**
* The **\`TextEncoder.encodeInto()\`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
*/
encodeInto(source: string, destination: Uint8Array<ArrayBufferLike>): 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;
}
/**
* The **\`TextEncoderStream\`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
*/
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/**
* The **\`TextMetrics\`** interface represents the dimensions of a piece of text in the canvas; a \`TextMetrics\` instance can be retrieved using the CanvasRenderingContext2D.measureText() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
*/
interface TextMetrics {
/**
* The read-only **\`actualBoundingBoxAscent\`** property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
*/
readonly actualBoundingBoxAscent: number;
/**
* The read-only \`actualBoundingBoxDescent\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
*/
readonly actualBoundingBoxDescent: number;
/**
* The read-only \`actualBoundingBoxLeft\` property of the TextMetrics interface is a \`double\` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels; positive numbers indicating a distance going left from the given alignment point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
*/
readonly actualBoundingBoxLeft: number;
/**
* The read-only \`actualBoundingBoxRight\` property of the TextMetrics interface is a \`double\` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
*/
readonly actualBoundingBoxRight: number;
/**
* The read-only \`alphabeticBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
*/
readonly alphabeticBaseline: number;
/**
* The read-only \`emHeightAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the _em_ square in the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
*/
readonly emHeightAscent: number;
/**
* The read-only \`emHeightDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the _em_ square in the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
*/
readonly emHeightDescent: number;
/**
* The read-only \`fontBoundingBoxAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute, to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
*/
readonly fontBoundingBoxAscent: number;
/**
* The read-only \`fontBoundingBoxDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
*/
readonly fontBoundingBoxDescent: number;
/**
* The read-only \`hangingBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
*/
readonly hangingBaseline: number;
/**
* The read-only \`ideographicBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
*/
readonly ideographicBaseline: number;
/**
* The read-only **\`width\`** property of the TextMetrics interface contains the text's advance width (the width of that inline box) in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
/**
* The **\`TransformStream\`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
*/
interface TransformStream<I = any, O = any> {
/**
* The **\`readable\`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this \`TransformStream\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
*/
readonly readable: ReadableStream<O>;
/**
* The **\`writable\`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this \`TransformStream\`.
*
* [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>;
};
/**
* The **\`TransformStreamDefaultController\`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
*/
interface TransformStreamDefaultController<O = any> {
/**
* The **\`desiredSize\`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)
*/
readonly desiredSize: number | null;
/**
* The **\`enqueue()\`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
*/
enqueue(chunk?: O): void;
/**
* The **\`error()\`** method of the TransformStreamDefaultController interface errors both sides of the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
*/
error(reason?: any): void;
/**
* The **\`terminate()\`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)
*/
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/**
* The **\`URL\`** interface is used to parse, construct, normalize, and encode URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
*/
interface URL {
/**
* The **\`hash\`** property of the URL interface is a string containing a \`'#'\` followed by the fragment identifier of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
*/
hash: string;
/**
* The **\`host\`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a \`':'\`, followed by the URL.port of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
*/
host: string;
/**
* The **\`hostname\`** property of the URL interface is a string containing either the domain name or IP address of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
*/
hostname: string;
/**
* The **\`href\`** property of the URL interface is a string containing the whole URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
*/
href: string;
toString(): string;
/**
* The **\`origin\`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)
*/
readonly origin: string;
/**
* The **\`password\`** property of the URL interface is a string containing the password component of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
*/
password: string;
/**
* The **\`pathname\`** property of the URL interface represents a location in a hierarchical structure.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
*/
pathname: string;
/**
* The **\`port\`** property of the URL interface is a string containing the port number of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
*/
port: string;
/**
* The **\`protocol\`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final \`':'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
*/
protocol: string;
/**
* The **\`search\`** property of the URL interface is a search string, also called a _query string_, that is a string containing a \`'?'\` followed by the parameters of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
*/
search: string;
/**
* The **\`searchParams\`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
*/
readonly searchParams: URLSearchParams;
/**
* The **\`username\`** property of the URL interface is a string containing the username component of the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
*/
username: string;
/**
* The **\`toJSON()\`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as \`\`\`js-nolint toJSON() \`\`\` None.
*
* [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;
/**
* The **\`URL.canParse()\`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
*/
canParse(url: string | URL, base?: string | URL): boolean;
/**
* The **\`createObjectURL()\`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
*/
createObjectURL(obj: Blob): string;
/**
* The **\`URL.parse()\`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
*/
parse(url: string | URL, base?: string | URL): URL | null;
/**
* The **\`revokeObjectURL()\`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
*/
revokeObjectURL(url: string): void;
};
/**
* The **\`URLSearchParams\`** interface defines utility methods to work with the query string of a URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
*/
interface URLSearchParams {
/**
* The **\`size\`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
*/
readonly size: number;
/**
* The **\`append()\`** method of the URLSearchParams interface 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;
/**
* The **\`delete()\`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
*/
delete(name: string, value?: string): void;
/**
* The **\`get()\`** method of the URLSearchParams interface 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;
/**
* The **\`getAll()\`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
*/
getAll(name: string): string[];
/**
* The **\`has()\`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
*/
has(name: string, value?: string): boolean;
/**
* The **\`set()\`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
*/
set(name: string, value: string): void;
/**
* The **\`URLSearchParams.sort()\`** method sorts all key/value pairs contained in this object in place and returns \`undefined\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)
*/
sort(): void;
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;
};
/**
* The **\`VideoColorSpace\`** interface of the WebCodecs API represents the color space of a video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace)
*/
interface VideoColorSpace {
/**
* The **\`fullRange\`** read-only property of the VideoColorSpace interface returns \`true\` if full-range color values are used.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange)
*/
readonly fullRange: boolean | null;
/**
* The **\`matrix\`** read-only property of the VideoColorSpace interface returns the matrix coefficient of the video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix)
*/
readonly matrix: VideoMatrixCoefficients | null;
/**
* The **\`primaries\`** read-only property of the VideoColorSpace interface returns the color gamut of the video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries)
*/
readonly primaries: VideoColorPrimaries | null;
/**
* The **\`transfer\`** read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer)
*/
readonly transfer: VideoTransferCharacteristics | null;
/**
* The **\`toJSON()\`** method of the VideoColorSpace interface is a _serializer_ that returns a JSON representation of the \`VideoColorSpace\` object.
*
* [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;
}
/**
* The **\`VideoDecoder\`** interface of the WebCodecs API decodes chunks of video.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
*/
interface VideoDecoder extends EventTarget {
/**
* The **\`decodeQueueSize\`** read-only property of the VideoDecoder interface returns the number of pending decode requests in the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize)
*/
readonly decodeQueueSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/**
* The **\`state\`** property of the VideoDecoder interface returns the current state of the underlying codec.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state)
*/
readonly state: CodecState;
/**
* The **\`close()\`** method of the VideoDecoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close)
*/
close(): void;
/**
* The **\`configure()\`** method of the VideoDecoder interface enqueues a control message to configure the video decoder for decoding chunks.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure)
*/
configure(config: VideoDecoderConfig): void;
/**
* The **\`decode()\`** method of the VideoDecoder interface enqueues a control message to decode a given chunk of video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode)
*/
decode(chunk: EncodedVideoChunk): void;
/**
* The **\`flush()\`** method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush)
*/
flush(): Promise<void>;
/**
* The **\`reset()\`** method of the VideoDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
*
* [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;
/**
* The **\`isConfigSupported()\`** static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static)
*/
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
interface VideoEncoderEventMap {
"dequeue": Event;
}
/**
* The **\`VideoEncoder\`** interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
*/
interface VideoEncoder extends EventTarget {
/**
* The **\`encodeQueueSize\`** read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize)
*/
readonly encodeQueueSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/**
* The **\`state\`** read-only property of the VideoEncoder interface returns the current state of the underlying codec.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state)
*/
readonly state: CodecState;
/**
* The **\`close()\`** method of the VideoEncoder interface ends all pending work and releases system resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close)
*/
close(): void;
/**
* The **\`configure()\`** method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to 'configured' and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure)
*/
configure(config: VideoEncoderConfig): void;
/**
* The **\`encode()\`** method of the VideoEncoder interface asynchronously encodes a VideoFrame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode)
*/
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
/**
* The **\`flush()\`** method of the VideoEncoder interface forces all pending encodes to complete.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush)
*/
flush(): Promise<void>;
/**
* The **\`reset()\`** method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the VideoEncoder.state to 'unconfigured'.
*
* [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;
/**
* The **\`isConfigSupported()\`** static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static)
*/
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
/**
* The **\`VideoFrame\`** interface of the Web Codecs API represents a frame of a video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame)
*/
interface VideoFrame {
/**
* The **\`codedHeight\`** property of the VideoFrame interface returns the height of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight)
*/
readonly codedHeight: number;
/**
* The **\`codedRect\`** property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect)
*/
readonly codedRect: DOMRectReadOnly | null;
/**
* The **\`codedWidth\`** property of the VideoFrame interface returns the width of the \`VideoFrame\` in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth)
*/
readonly codedWidth: number;
/**
* The **\`colorSpace\`** property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace)
*/
readonly colorSpace: VideoColorSpace;
/**
* The **\`displayHeight\`** property of the VideoFrame interface returns the height of the \`VideoFrame\` after applying aspect ratio adjustments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight)
*/
readonly displayHeight: number;
/**
* The **\`displayWidth\`** property of the VideoFrame interface returns the width of the \`VideoFrame\` after applying aspect ratio adjustments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth)
*/
readonly displayWidth: number;
/**
* The **\`duration\`** property of the VideoFrame interface returns an integer indicating the duration of the video in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration)
*/
readonly duration: number | null;
/**
* The **\`format\`** property of the VideoFrame interface returns the pixel format of the \`VideoFrame\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format)
*/
readonly format: VideoPixelFormat | null;
/**
* The **\`timestamp\`** property of the VideoFrame interface returns an integer indicating the timestamp of the video in microseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp)
*/
readonly timestamp: number;
/**
* The **\`visibleRect\`** property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this \`VideoFrame\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect)
*/
readonly visibleRect: DOMRectReadOnly | null;
/**
* The **\`allocationSize()\`** method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize)
*/
allocationSize(options?: VideoFrameCopyToOptions): number;
/**
* The **\`clone()\`** method of the VideoFrame interface creates a new \`VideoFrame\` object referencing the same media resource as the original.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone)
*/
clone(): VideoFrame;
/**
* The **\`close()\`** method of the VideoFrame interface clears all states and releases the reference to the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close)
*/
close(): void;
/**
* The **\`copyTo()\`** method of the VideoFrame interface copies the contents of the \`VideoFrame\` to an \`ArrayBuffer\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo)
*/
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
declare var VideoFrame: {
prototype: VideoFrame;
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};
/**
* The **\`WEBGL_color_buffer_float\`** extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.
*
* [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;
}
/**
* The **\`WEBGL_compressed_texture_astc\`** extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc)
*/
interface WEBGL_compressed_texture_astc {
/**
* The **\`WEBGL_compressed_texture_astc.getSupportedProfiles()\`** method returns an array of strings containing the names of the ASTC profiles supported by the implementation.
*
* [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;
}
/**
* The **\`WEBGL_compressed_texture_etc\`** extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.
*
* [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;
}
/**
* The **\`WEBGL_compressed_texture_etc1\`** extension is part of the WebGL API and exposes the ETC1 compressed texture format.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1)
*/
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/**
* The **\`WEBGL_compressed_texture_pvrtc\`** extension is part of the WebGL API and exposes four PVRTC compressed texture formats.
*
* [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;
}
/**
* The **\`WEBGL_compressed_texture_s3tc_srgb\`** extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.
*
* [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;
}
/**
* The **\`WEBGL_debug_shaders\`** extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders)
*/
interface WEBGL_debug_shaders {
/**
* The **\`WEBGL_debug_shaders.getTranslatedShaderSource()\`** method is part of the WebGL API and allows you to debug a translated shader.
*
* [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;
}
/**
* The **\`WEBGL_draw_buffers\`** extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers)
*/
interface WEBGL_draw_buffers {
/**
* The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
*
* [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;
}
/**
* The **WEBGL_lose_context** extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context)
*/
interface WEBGL_lose_context {
/**
* The **WEBGL_lose_context.loseContext()** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
*/
loseContext(): void;
/**
* The **WEBGL_lose_context.restoreContext()** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
*/
restoreContext(): void;
}
/**
* The **\`WEBGL_multi_draw\`** extension is part of the WebGL API and allows to render more than one primitive with a single function call.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw)
*/
interface WEBGL_multi_draw {
/**
* The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
*/
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
*/
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
*/
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
*/
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}
/**
* The **WebGL2RenderingContext** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML canvas element.
*
* [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<ArrayBufferLike>, 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<ArrayBufferLike>, 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
createSampler(): WebGLSampler;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
createTransformFeedback(): WebGLTransformFeedback;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
createVertexArray(): WebGLVertexArrayObject;
/** [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<ArrayBufferLike>, 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<ArrayBufferLike> | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, 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<ArrayBufferLike> | 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/WebGL2RenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, usage: GLenum, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView<ArrayBufferLike>, 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<ArrayBufferLike>, 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<ArrayBufferLike>, 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<ArrayBufferLike> | 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<ArrayBufferLike>, 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<ArrayBufferLike> | 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<ArrayBufferLike>, 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<ArrayBufferLike> | 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<ArrayBufferLike>, 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/WebGL2RenderingContext/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;
}
/**
* The **WebGLActiveInfo** interface is 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 {
/**
* The read-only **\`WebGLActiveInfo.name\`** property represents the name of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name)
*/
readonly name: string;
/**
* The read-only **\`WebGLActiveInfo.size\`** property is a Number representing the size of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size)
*/
readonly size: GLint;
/**
* The read-only **\`WebGLActiveInfo.type\`** property represents the type of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type)
*/
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/**
* The **WebGLBuffer** interface is 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 **WebGLContextEvent** 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 {
/**
* The read-only **\`WebGLContextEvent.statusMessage\`** property contains additional event status information, or is an empty string if no additional information is available.
*
* [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;
};
/**
* The **WebGLFramebuffer** interface is 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;
};
/**
* The **\`WebGLQuery\`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery)
*/
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/**
* The **WebGLRenderbuffer** interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
*/
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/**
* The **\`WebGLRenderingContext\`** interface 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/WebGL2RenderingContext/drawingBufferColorSpace) */
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/WebGL2RenderingContext/unpackColorSpace) */
unpackColorSpace: PredefinedColorSpace;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
createFramebuffer(): WebGLFramebuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
createProgram(): WebGLProgram;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
createRenderbuffer(): WebGLRenderbuffer;
/** [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;
/** [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */
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<ArrayBufferLike>): 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<ArrayBufferLike>): 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<ArrayBufferLike> | 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<ArrayBufferLike> | 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<ArrayBufferLike> | 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;
}
/**
* The **\`WebGLSampler\`** interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.
*
* [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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
*/
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/**
* The **WebGLShaderPrecisionFormat** interface is 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 {
/**
* The read-only **\`WebGLShaderPrecisionFormat.precision\`** property returns the number of bits of precision that can be represented.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision)
*/
readonly precision: GLint;
/**
* The read-only **\`WebGLShaderPrecisionFormat.rangeMax\`** property returns the base 2 log of the absolute value of the maximum value that can be represented.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)
*/
readonly rangeMax: GLint;
/**
* The read-only **\`WebGLShaderPrecisionFormat.rangeMin\`** property returns the base 2 log of the absolute value of the minimum value that can be represented.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)
*/
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
/**
* The **\`WebGLSync\`** interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync)
*/
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/**
* The **WebGLTexture** interface is 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;
};
/**
* The **\`WebGLTransformFeedback\`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback)
*/
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/**
* The **WebGLUniformLocation** interface is 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;
};
/**
* The **\`WebGLVertexArrayObject\`** interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.
*
* [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/WebGLVertexArrayObject) */
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/**
* The \`WebSocket\` object 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 {
/**
* The **\`WebSocket.binaryType\`** property controls the type of binary data being received over the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
*/
binaryType: BinaryType;
/**
* The **\`WebSocket.bufferedAmount\`** read-only property returns the number of bytes of data that have been queued using calls to \`send()\` but not yet transmitted to the network.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* The **\`WebSocket.extensions\`** read-only property returns the extensions selected by the server.
*
* [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;
/**
* The **\`WebSocket.protocol\`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the \`protocols\` parameter when creating the WebSocket object, or the empty string if no connection is established.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
*/
readonly protocol: string;
/**
* The **\`WebSocket.readyState\`** read-only property returns the current state of the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
*/
readonly readyState: number;
/**
* The **\`WebSocket.url\`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
*/
readonly url: string;
/**
* The **\`WebSocket.close()\`** method closes the already \`CLOSED\`, this method does nothing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
close(code?: number, reason?: string): void;
/**
* The **\`WebSocket.send()\`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of \`bufferedAmount\` by the number of bytes needed to contain the data.
*
* [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;
};
/**
* The **\`WebTransport\`** interface of the WebTransport API provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport in either or both directions, and close the connection once it is no longer needed.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
*/
interface WebTransport {
/**
* The **\`closed\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
*/
readonly closed: Promise<WebTransportCloseInfo>;
/**
* The **\`datagrams\`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams \u2014 unreliable data transmission.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)
*/
readonly datagrams: WebTransportDatagramDuplexStream;
/**
* The **\`incomingBidirectionalStreams\`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams)
*/
readonly incomingBidirectionalStreams: ReadableStream;
/**
* The **\`incomingUnidirectionalStreams\`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
*/
readonly incomingUnidirectionalStreams: ReadableStream;
/**
* The **\`ready\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
*/
readonly ready: Promise<void>;
/**
* The **\`close()\`** method of the WebTransport interface closes an ongoing WebTransport session.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close)
*/
close(closeInfo?: WebTransportCloseInfo): void;
/**
* The **\`createBidirectionalStream()\`** method of the WebTransport interface asynchronously opens and returns a bidirectional stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)
*/
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
/**
* The **\`createUnidirectionalStream()\`** method of the WebTransport interface asynchronously opens a unidirectional stream.
*
* [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;
};
/**
* The **\`WebTransportBidirectionalStream\`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
*/
interface WebTransportBidirectionalStream {
/**
* The **\`readable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportReceiveStream instance that can be used to reliably read incoming data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable)
*/
readonly readable: ReadableStream;
/**
* The **\`writable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportSendStream instance that can be used to write outgoing data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable)
*/
readonly writable: WritableStream;
}
declare var WebTransportBidirectionalStream: {
prototype: WebTransportBidirectionalStream;
new(): WebTransportBidirectionalStream;
};
/**
* The **\`WebTransportDatagramDuplexStream\`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
*/
interface WebTransportDatagramDuplexStream {
/**
* The **\`incomingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data \u2014 this is the maximum size, in chunks, that the incoming ReadableStream's internal queue can reach before it is considered full.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)
*/
incomingHighWaterMark: number;
/**
* The **\`incomingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for incoming datagrams, in milliseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)
*/
incomingMaxAge: number | null;
/**
* The **\`maxDatagramSize\`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to WebTransportDatagramDuplexStream.writable.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)
*/
readonly maxDatagramSize: number;
/**
* The **\`outgoingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data \u2014 this is the maximum size, in chunks, that the outgoing WritableStream's internal queue can reach before it is considered full.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)
*/
outgoingHighWaterMark: number;
/**
* The **\`outgoingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for outgoing datagrams, in milliseconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)
*/
outgoingMaxAge: number | null;
/**
* The **\`readable\`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream.
*
* [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;
};
/**
* The **\`WebTransportError\`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
*/
interface WebTransportError extends DOMException {
/**
* The **\`source\`** read-only property of the WebTransportError interface returns an enumerated value indicating the source of the error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source)
*/
readonly source: WebTransportErrorSource;
/**
* The **\`streamErrorCode\`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or \`null\` if one is not available.
*
* [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;
};
/**
* The \`WindowClient\` interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)
*/
interface WindowClient extends Client {
/**
* The **\`focused\`** read-only property of the the current client has focus.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused)
*/
readonly focused: boolean;
/**
* The **\`visibilityState\`** read-only property of the This value can be one of \`'hidden'\`, \`'visible'\`, or \`'prerender'\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState)
*/
readonly visibilityState: DocumentVisibilityState;
/**
* The **\`focus()\`** method of the WindowClient interface gives user input focus to the current client and returns a \`\`\`js-nolint focus() \`\`\` None.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus)
*/
focus(): Promise<WindowClient>;
/**
* The **\`navigate()\`** method of the WindowClient interface loads a specified URL into a controlled client page then returns a \`\`\`js-nolint navigate(url) \`\`\` - \`url\` - : The location to navigate to.
*
* [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/Window/caches)
*/
readonly caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
readonly crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
readonly indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
readonly isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
readonly performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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/Window/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}
interface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEventMap {
}
/**
* The **\`Worker\`** interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
*/
interface Worker extends EventTarget, AbstractWorker, MessageEventTarget<Worker> {
/**
* The **\`postMessage()\`** method of the Worker interface sends a message to the worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* The **\`terminate()\`** method of the Worker interface immediately terminates the Worker.
*
* [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;
}
/**
* The **\`WorkerGlobalScope\`** interface of the Web Workers API is an interface representing the scope of any worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)
*/
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
/**
* The **\`location\`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
*/
readonly location: WorkerLocation;
/**
* The **\`navigator\`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
*
* [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* The **\`self\`** read-only property of the WorkerGlobalScope interface returns a reference to the \`WorkerGlobalScope\` itself.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
*/
readonly self: WorkerGlobalScope & typeof globalThis;
/**
* The **\`importScripts()\`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.
*
* [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 **\`WorkerLocation\`** interface defines the absolute location of the script executed by the Worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)
*/
interface WorkerLocation {
/**
* The **\`hash\`** property of a WorkerLocation object returns the URL.hash part of the worker's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash)
*/
readonly hash: string;
/**
* The **\`host\`** property of a WorkerLocation object returns the URL.host part of the worker's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host)
*/
readonly host: string;
/**
* The **\`hostname\`** property of a WorkerLocation object returns the URL.hostname part of the worker's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname)
*/
readonly hostname: string;
/**
* The **\`href\`** property of a WorkerLocation object returns a string containing the serialized URL for the worker's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href)
*/
readonly href: string;
toString(): string;
/**
* The **\`origin\`** property of a WorkerLocation object returns the worker's URL.origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin)
*/
readonly origin: string;
/**
* The **\`pathname\`** property of a WorkerLocation object returns the URL.pathname part of the worker's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname)
*/
readonly pathname: string;
/**
* The **\`port\`** property of a WorkerLocation object returns the URL.port part of the worker's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port)
*/
readonly port: string;
/**
* The **\`protocol\`** property of a WorkerLocation object returns the URL.protocol part of the worker's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol)
*/
readonly protocol: string;
/**
* The **\`search\`** property of a WorkerLocation object returns the URL.search part of the worker's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search)
*/
readonly search: string;
}
declare var WorkerLocation: {
prototype: WorkerLocation;
new(): WorkerLocation;
};
/**
* The **\`WorkerNavigator\`** interface represents a subset of the Navigator interface allowed to be accessed from a Worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
*/
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
/**
* The read-only **\`mediaCapabilities\`** property of the WorkerNavigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given format and output capabilities (as defined by the Media Capabilities API).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities)
*/
readonly mediaCapabilities: MediaCapabilities;
/**
* The **\`permissions\`** read-only property of the WorkerNavigator interface returns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions)
*/
readonly permissions: Permissions;
/**
* The **\`serviceWorker\`** read-only property of the WorkerNavigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serviceWorker)
*/
readonly serviceWorker: ServiceWorkerContainer;
}
declare var WorkerNavigator: {
prototype: WorkerNavigator;
new(): WorkerNavigator;
};
/**
* The **\`WritableStream\`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
*/
interface WritableStream<W = any> {
/**
* The **\`locked\`** read-only property of the WritableStream interface returns a boolean indicating whether the \`WritableStream\` is locked to a writer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)
*/
readonly locked: boolean;
/**
* The **\`abort()\`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)
*/
abort(reason?: any): Promise<void>;
/**
* The **\`close()\`** method of the WritableStream interface closes the associated stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
*/
close(): Promise<void>;
/**
* The **\`getWriter()\`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
*
* [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>;
};
/**
* The **\`WritableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
*/
interface WritableStreamDefaultController {
/**
* The read-only **\`signal\`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)
*/
readonly signal: AbortSignal;
/**
* The **\`error()\`** method of the with the associated stream to error.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
*/
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/**
* The **\`WritableStreamDefaultWriter\`** interface of the Streams API 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> {
/**
* The **\`closed\`** read-only property of the the stream errors or the writer's lock is released.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
*/
readonly closed: Promise<void>;
/**
* The **\`desiredSize\`** read-only property of the to fill the stream's internal queue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
*/
readonly desiredSize: number | null;
/**
* The **\`ready\`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
*/
readonly ready: Promise<void>;
/**
* The **\`abort()\`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
*/
abort(reason?: any): Promise<void>;
/**
* The **\`close()\`** method of the stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
*/
close(): Promise<void>;
/**
* The **\`releaseLock()\`** method of the corresponding stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
*/
releaseLock(): void;
/**
* The **\`write()\`** method of the operation.
*
* [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;
}
/**
* \`XMLHttpRequest\` (XHR) objects are used to interact with servers.
*
* [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;
/**
* The **XMLHttpRequest.readyState** property returns the state an XMLHttpRequest client is in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
*/
readonly readyState: number;
/**
* The XMLHttpRequest **\`response\`** property returns the response's body content as an ArrayBuffer, a Blob, a Document, a JavaScript Object, or a string, depending on the value of the request's XMLHttpRequest.responseType property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
*/
readonly response: any;
/**
* The read-only XMLHttpRequest property **\`responseText\`** returns the text received from a server following a request being sent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
*/
readonly responseText: string;
/**
* The XMLHttpRequest property **\`responseType\`** is an enumerated string value specifying the type of data contained in the response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
*/
responseType: XMLHttpRequestResponseType;
/**
* The read-only **\`XMLHttpRequest.responseURL\`** property returns the serialized URL of the response or the empty string if the URL is \`null\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL)
*/
readonly responseURL: string;
/**
* The read-only **\`XMLHttpRequest.status\`** property returns the numerical HTTP status code of the \`XMLHttpRequest\`'s response.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status)
*/
readonly status: number;
/**
* The read-only **\`XMLHttpRequest.statusText\`** property returns a string containing the response's status message as returned by the HTTP server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText)
*/
readonly statusText: string;
/**
* The **\`XMLHttpRequest.timeout\`** property is an \`unsigned long\` representing the number of milliseconds a request can take before automatically being terminated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
*/
timeout: number;
/**
* The XMLHttpRequest \`upload\` property returns an XMLHttpRequestUpload object that can be observed to monitor an upload's progress.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
*/
readonly upload: XMLHttpRequestUpload;
/**
* The **\`XMLHttpRequest.withCredentials\`** property is a boolean value that indicates whether or not cross-site \`Access-Control\` requests should be made using credentials such as cookies, authentication headers or TLS client certificates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
*/
withCredentials: boolean;
/**
* The **\`XMLHttpRequest.abort()\`** method aborts the request if it has already been sent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
*/
abort(): void;
/**
* The XMLHttpRequest method **\`getAllResponseHeaders()\`** returns all the response headers, separated by CRLF, as a string, or returns \`null\` if no response has been received.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)
*/
getAllResponseHeaders(): string;
/**
* The XMLHttpRequest method **\`getResponseHeader()\`** returns the string containing the text of a particular header's value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader)
*/
getResponseHeader(name: string): string | null;
/**
* The XMLHttpRequest method **\`open()\`** initializes a newly-created request, or re-initializes an existing one.
*
* [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;
/**
* The XMLHttpRequest method **\`overrideMimeType()\`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
*/
overrideMimeType(mime: string): void;
/**
* The XMLHttpRequest method **\`send()\`** sends the request to the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
*/
send(body?: XMLHttpRequestBodyInit | null): void;
/**
* The XMLHttpRequest method **\`setRequestHeader()\`** sets the value of an HTTP request header.
*
* [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>;
}
/**
* \`XMLHttpRequestEventTarget\` is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.
*
* [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;
};
/**
* The **\`XMLHttpRequestUpload\`** interface represents the upload process for a specific XMLHttpRequest.
*
* [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;
};
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/Reference/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
value: ValueTypeMap[T];
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/Reference/JavaScript_interface/Instance) */
interface Instance {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/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/Reference/JavaScript_interface/Memory) */
interface Memory {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer) */
readonly buffer: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module) */
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */
exports(moduleObject: Module): ModuleExportDescriptor[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/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/Reference/JavaScript_interface/Table) */
interface Table {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */
get(index: number): any;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */
grow(delta: number, value?: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/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/Reference/JavaScript_interface/compile_static) */
function compile(bytes: BufferSource): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/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/Reference/JavaScript_interface/instantiateStreaming_static) */
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
function validate(bytes: BufferSource): boolean;
}
/** The **\`console\`** object provides access to the debugging console (e.g., the Web console in Firefox). */
/**
* The **\`console\`** object provides access to the debugging console (e.g., the Web console in Firefox).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)
*/
interface Console {
/**
* The **\`console.assert()\`** static method writes an error message to the console if the assertion is false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)
*/
assert(condition?: boolean, ...data: any[]): void;
/**
* The **\`console.clear()\`** static method clears the console if possible.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
*/
clear(): void;
/**
* The **\`console.count()\`** static method logs the number of times that this particular call to \`count()\` has been called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
*/
count(label?: string): void;
/**
* The **\`console.countReset()\`** static method resets counter used with console/count_static.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
*/
countReset(label?: string): void;
/**
* The **\`console.debug()\`** static method outputs a message to the console at the 'debug' log level.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
*/
debug(...data: any[]): void;
/**
* The **\`console.dir()\`** static method displays a list of the properties of the specified JavaScript object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
*/
dir(item?: any, options?: any): void;
/**
* The **\`console.dirxml()\`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
*/
dirxml(...data: any[]): void;
/**
* The **\`console.error()\`** static method outputs a message to the console at the 'error' log level.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
*/
error(...data: any[]): void;
/**
* The **\`console.group()\`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
*/
group(...data: any[]): void;
/**
* The **\`console.groupCollapsed()\`** static method creates a new inline group in the console.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
*/
groupCollapsed(...data: any[]): void;
/**
* The **\`console.groupEnd()\`** static method exits the current inline group in the console.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
*/
groupEnd(): void;
/**
* The **\`console.info()\`** static method outputs a message to the console at the 'info' log level.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
*/
info(...data: any[]): void;
/**
* The **\`console.log()\`** static method outputs a message to the console.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
*/
log(...data: any[]): void;
/**
* The **\`console.table()\`** static method displays tabular data as a table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
*/
table(tabularData?: any, properties?: string[]): void;
/**
* The **\`console.time()\`** static method starts a timer you can use to track how long an operation takes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
*/
time(label?: string): void;
/**
* The **\`console.timeEnd()\`** static method stops a timer that was previously started by calling console/time_static.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
*/
timeEnd(label?: string): void;
/**
* The **\`console.timeLog()\`** static method logs the current value of a timer that was previously started by calling console/time_static.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
*/
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/**
* The **\`console.trace()\`** static method outputs a stack trace to the console.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
*/
trace(...data: any[]): void;
/**
* The **\`console.warn()\`** static method outputs a warning message to the console at the 'warning' log level.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
*/
warn(...data: any[]): void;
}
declare var console: Console;
interface AudioDataOutputCallback {
(output: AudioData): void;
}
interface EncodedAudioChunkOutputCallback {
(output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void;
}
interface EncodedVideoChunkOutputCallback {
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface LockGrantedCallback<T> {
(lock: Lock | null): T;
}
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;
}
/**
* The **\`name\`** read-only property of the the Worker.Worker constructor can pass to get a reference to the DedicatedWorkerGlobalScope.
*
* [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/rtctransform_event) */
declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;
/**
* The **\`close()\`** method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the \`DedicatedWorkerGlobalScope\`'s event loop, effectively closing this particular scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
*/
declare function close(): void;
/**
* The **\`postMessage()\`** method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
*
* [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;
/**
* The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/**
* The **\`location\`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
*/
declare var location: WorkerLocation;
/**
* The **\`navigator\`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
*
* [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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* The **\`self\`** read-only property of the WorkerGlobalScope interface returns a reference to the \`WorkerGlobalScope\` itself.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
*/
declare var self: WorkerGlobalScope & typeof globalThis;
/**
* The **\`importScripts()\`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
*/
declare function importScripts(...urls: (string | URL)[]): void;
/**
* The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
*
* [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/Window/caches)
*/
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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;
/** [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;
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 = ArrayBufferLike | ArrayBufferView<ArrayBufferLike>;
type BigInteger = Uint8Array<ArrayBuffer>;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;
type CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;
type CookieList = CookieListItem[];
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
type Float32List = Float32Array<ArrayBufferLike> | 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 ImageBufferSource = AllowSharedBufferSource | ReadableStream;
type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
type Int32List = Int32Array<ArrayBufferLike> | 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 | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlphaOption = "discard" | "keep";
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type BitrateMode = "constant" | "variable";
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 CookieSameSite = "lax" | "none" | "strict";
type DocumentVisibilityState = "hidden" | "visible";
type EncodedAudioChunkType = "delta" | "key";
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 MediaKeysRequirement = "not-allowed" | "optional" | "required";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OpusBitstreamFormat = "ogg" | "opus";
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
type PermissionState = "denied" | "granted" | "prompt";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
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";
`;Bi["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;
`;Bi["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](): ArrayIterator<CSSNumericValue>;
entries(): ArrayIterator<[number, CSSNumericValue]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSNumericValue>;
}
interface CSSTransformValue {
[Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
entries(): ArrayIterator<[number, CSSTransformComponent]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSTransformComponent>;
}
interface CSSUnparsedValue {
[Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSUnparsedSegment>;
}
interface Cache {
/**
* The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given 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 CookieStoreManager {
/**
* The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
*/
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
/**
* The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
*/
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
}
interface DOMStringList {
[Symbol.iterator](): ArrayIterator<string>;
}
interface FileList {
[Symbol.iterator](): ArrayIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): FormDataIterator<T>;
}
interface FormData {
[Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): FormDataIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): FormDataIterator<string>;
/** Returns a list of values in the list. */
values(): FormDataIterator<FormDataEntryValue>;
}
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): HeadersIterator<T>;
}
interface Headers {
[Symbol.iterator](): HeadersIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): HeadersIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): HeadersIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): HeadersIterator<string>;
}
interface IDBDatabase {
/**
* The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface ImageTrackList {
[Symbol.iterator](): ArrayIterator<ImageTrack>;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
}
interface StylePropertyMapReadOnly {
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
keys(): StylePropertyMapReadOnlyIterator<string>;
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
}
interface SubtleCrypto {
/**
* The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
*
* [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>;
/**
* The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
*/
generateKey(algorithm: "Ed25519" | { name: "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>;
/**
* The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
*
* [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>;
/**
* The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
*
* [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 URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): URLSearchParamsIterator<T>;
}
interface URLSearchParams {
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): URLSearchParamsIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): URLSearchParamsIterator<string>;
/** Returns a list of values in the search params. */
values(): URLSearchParamsIterator<string>;
}
interface WEBGL_draw_buffers {
/**
* The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
*/
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
/**
* The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
*/
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
*/
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
*/
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/**
* The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
*/
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | 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>): 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/WebGL2RenderingContext/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 th(m){return typeof m=="string"?/^file:\/\/\//.test(m)?!!Bi[m.substr(8)]:!1:m.path.indexOf("/lib.")===0?!!Bi[m.path.slice(1)]:!1}var Tz=class m{constructor(y,x){this._extraLibs=Object.create(null),this._languageService=$ve(this),this._ctx=y,this._compilerOptions=x.compilerOptions,this._extraLibs=x.extraLibs,this._inlayHintsOptions=x.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(W=>W.uri).filter(W=>!th(W)).map(W=>W.toString()).concat(Object.keys(this._extraLibs))}_getModel(y){let x=this._ctx.getMirrorModels();for(let W=0;W<x.length;W++){let X=x[W].uri;if(X.toString()===y||X.toString(!0)===y)return x[W]}return null}getScriptVersion(y){let x=this._getModel(y);return x?x.version.toString():this.isDefaultLibFileName(y)?"1":y in this._extraLibs?String(this._extraLibs[y].version):""}async getScriptText(y){return this._getScriptText(y)}_getScriptText(y){let x,W=this._getModel(y),X="lib."+y+".d.ts";if(W)x=W.getValue();else if(y in Bi)x=Bi[y];else if(X in Bi)x=Bi[X];else if(y in this._extraLibs)x=this._extraLibs[y].content;else return;return x}getScriptSnapshot(y){let x=this._getScriptText(y);if(x!==void 0)return{getText:(W,X)=>x.substring(W,X),getLength:()=>x.length,getChangeRange:()=>{}}}getScriptKind(y){switch(y.substr(y.lastIndexOf(".")+1)){case"ts":return cN.TS;case"tsx":return cN.TSX;case"js":return cN.JS;case"jsx":return cN.JSX;default:return this.getCompilationSettings().allowJs?cN.JS:cN.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(y){switch(y.target){case 99:let x="lib.esnext.full.d.ts";if(x in Bi||x in this._extraLibs)return x;case 7:case 6:case 5:case 4:case 3:case 2:default:let W=`lib.es${2013+(y.target||99)}.full.d.ts`;return W in Bi||W in this._extraLibs?W:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(y){return y===this.getDefaultLibFileName(this._compilerOptions)}readFile(y){return this._getScriptText(y)}fileExists(y){return this._getScriptText(y)!==void 0}async getLibFiles(){return Bi}static clearFiles(y){let x=[];for(let W of y){let X={...W};if(X.file=X.file?{fileName:X.file.fileName}:void 0,W.relatedInformation){X.relatedInformation=[];for(let he of W.relatedInformation){let Me={...he};Me.file=Me.file?{fileName:Me.file.fileName}:void 0,X.relatedInformation.push(Me)}}x.push(X)}return x}async getSyntacticDiagnostics(y){if(th(y))return[];let x=this._languageService.getSyntacticDiagnostics(y);return m.clearFiles(x)}async getSemanticDiagnostics(y){if(th(y))return[];let x=this._languageService.getSemanticDiagnostics(y);return m.clearFiles(x)}async getSuggestionDiagnostics(y){if(th(y))return[];let x=this._languageService.getSuggestionDiagnostics(y);return m.clearFiles(x)}async getCompilerOptionsDiagnostics(y){if(th(y))return[];let x=this._languageService.getCompilerOptionsDiagnostics();return m.clearFiles(x)}async getCompletionsAtPosition(y,x){if(!th(y))return this._languageService.getCompletionsAtPosition(y,x,void 0)}async getCompletionEntryDetails(y,x,W){return this._languageService.getCompletionEntryDetails(y,x,W,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(y,x,W){if(!th(y))return this._languageService.getSignatureHelpItems(y,x,W)}async getQuickInfoAtPosition(y,x){if(!th(y))return this._languageService.getQuickInfoAtPosition(y,x)}async getDocumentHighlights(y,x,W){if(!th(y))return this._languageService.getDocumentHighlights(y,x,W)}async getDefinitionAtPosition(y,x){if(!th(y))return this._languageService.getDefinitionAtPosition(y,x)}async getReferencesAtPosition(y,x){if(!th(y))return this._languageService.getReferencesAtPosition(y,x)}async getNavigationTree(y){if(!th(y))return this._languageService.getNavigationTree(y)}async getFormattingEditsForDocument(y,x){return th(y)?[]:this._languageService.getFormattingEditsForDocument(y,x)}async getFormattingEditsForRange(y,x,W,X){return th(y)?[]:this._languageService.getFormattingEditsForRange(y,x,W,X)}async getFormattingEditsAfterKeystroke(y,x,W,X){return th(y)?[]:this._languageService.getFormattingEditsAfterKeystroke(y,x,W,X)}async findRenameLocations(y,x,W,X,he){if(!th(y))return this._languageService.findRenameLocations(y,x,W,X,he)}async getRenameInfo(y,x,W){return th(y)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(y,x,W)}async getEmitOutput(y,x,W){if(th(y))return{outputFiles:[],emitSkipped:!0};let X=this._languageService.getEmitOutput(y,x,W),he=X.diagnostics?m.clearFiles(X.diagnostics):void 0;return{...X,diagnostics:he}}async getCodeFixesAtPosition(y,x,W,X,he){if(th(y))return[];let Me={};try{return this._languageService.getCodeFixesAtPosition(y,x,W,X,he,Me)}catch{return[]}}async updateExtraLibs(y){this._extraLibs=y}async provideInlayHints(y,x,W){if(th(y))return[];let X=this._inlayHintsOptions??{},he={start:x,length:W-x};try{return this._languageService.provideInlayHints(y,he,X)}catch{return[]}}};function p9e(m,y){let x=Tz;if(y.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(y.customWorkerPath);let W=self.customTSWorkerFactory;if(!W)throw new Error(`The script at ${y.customWorkerPath} does not add customTSWorkerFactory to self`);x=W(Tz,wQ,Bi)}return new x(m,y)}globalThis.ts=Qve;self.onmessage=()=>{r9e((m,y)=>p9e(m,y))};
/*! Bundled license information:
monaco-editor/esm/vs/language/typescript/lib/typescriptServices.js:
(*! *****************************************************************************
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.
***************************************************************************** *)
*/